Skip to content

Commit 51cb9c7

Browse files
S1artiemagreenblatt
authored andcommitted
Fixe CRLF line endings and import sorting in .java files
1 parent e611861 commit 51cb9c7

16 files changed

+938
-939
lines changed

java/org/cef/callback/CefPdfPrintCallback.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* will be called on the browser process UI thread.
1010
*/
1111
public interface CefPdfPrintCallback {
12-
1312
/**
1413
* Method that will be executed when the PDF printing has completed. |path|
1514
* is the output path. |ok| will be true if the printing completed
@@ -18,5 +17,4 @@ public interface CefPdfPrintCallback {
1817
* @param ok True if printing completed or false otherwise.
1918
*/
2019
public abstract void onPdfPrintFinished(String path, boolean ok);
21-
2220
}

java/org/cef/callback/CefSchemeRegistrar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public interface CefSchemeRegistrar {
6262
* If |isCspBypassing| is true the scheme can bypass Content-Security-Policy
6363
* (CSP) checks. This value should be false in most cases where |isStandard|
6464
* is true.
65-
*
65+
*
6666
* If |is_fetch_enabled| is true the scheme can perform Fetch API requests.
6767
*
6868
* This function may be called on any thread. It should only be called once
Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2-
// reserved. Use of this source code is governed by a BSD-style license that
3-
// can be found in the LICENSE file.
4-
5-
package org.cef.handler;
6-
7-
import java.awt.Rectangle;
8-
9-
import org.cef.browser.CefBrowser;
10-
11-
/**
12-
* Implement this interface to handle events if window rendering is enabled.
13-
*
14-
*/
15-
public interface CefWindowHandler {
16-
/**
17-
* Retrieve the view rectangle.
18-
* @param browser The browser generating the event.
19-
* @return The view rectangle.
20-
*/
21-
public Rectangle getRect(CefBrowser browser);
22-
23-
/**
24-
* Implement this method to handle mouse events on Windows.
25-
*
26-
* The method is called in case of the following events:
27-
* MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED and MOUSE_WHEEL for a
28-
* horizontal wheel movement.
29-
*
30-
* @param browser The browser generating the event.
31-
* @param event A mouse event like MouseEvent.MOUSE_MOVED.
32-
* @param screenX The absolute X position on the screen.
33-
* @param screenY The absolute Y position on the screen.
34-
* @param modifier The modifier keys down during event (e.g. Shift, Ctrl).
35-
* @param button An integer indicating which mouse button state changed.
36-
* If parameter event is set to MouseEvent.MOUSE_WHEEL, the value of this
37-
* parameter specifies the rotation indicator (negative value for left scroll
38-
* and positive value for right scroll).
39-
*/
40-
public void onMouseEvent(
41-
CefBrowser browser, int event, int screenX, int screenY, int modifier, int button);
42-
}
1+
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2+
// reserved. Use of this source code is governed by a BSD-style license that
3+
// can be found in the LICENSE file.
4+
5+
package org.cef.handler;
6+
7+
import org.cef.browser.CefBrowser;
8+
9+
import java.awt.Rectangle;
10+
11+
/**
12+
* Implement this interface to handle events if window rendering is enabled.
13+
*
14+
*/
15+
public interface CefWindowHandler {
16+
/**
17+
* Retrieve the view rectangle.
18+
* @param browser The browser generating the event.
19+
* @return The view rectangle.
20+
*/
21+
public Rectangle getRect(CefBrowser browser);
22+
23+
/**
24+
* Implement this method to handle mouse events on Windows.
25+
*
26+
* The method is called in case of the following events:
27+
* MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED and MOUSE_WHEEL for a
28+
* horizontal wheel movement.
29+
*
30+
* @param browser The browser generating the event.
31+
* @param event A mouse event like MouseEvent.MOUSE_MOVED.
32+
* @param screenX The absolute X position on the screen.
33+
* @param screenY The absolute Y position on the screen.
34+
* @param modifier The modifier keys down during event (e.g. Shift, Ctrl).
35+
* @param button An integer indicating which mouse button state changed.
36+
* If parameter event is set to MouseEvent.MOUSE_WHEEL, the value of this
37+
* parameter specifies the rotation indicator (negative value for left scroll
38+
* and positive value for right scroll).
39+
*/
40+
public void onMouseEvent(
41+
CefBrowser browser, int event, int screenX, int screenY, int modifier, int button);
42+
}
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2-
// reserved. Use of this source code is governed by a BSD-style license that
3-
// can be found in the LICENSE file.
4-
5-
package org.cef.handler;
6-
7-
import java.awt.Rectangle;
8-
9-
import org.cef.browser.CefBrowser;
10-
11-
/**
12-
* An abstract adapter class for receiving windowed render events.
13-
* The methods in this class are empty.
14-
* This class exists as convenience for creating handler objects.
15-
*/
16-
public abstract class CefWindowHandlerAdapter implements CefWindowHandler {
17-
@Override
18-
public Rectangle getRect(CefBrowser browser) {
19-
return new Rectangle(0, 0, 0, 0);
20-
}
21-
22-
@Override
23-
public void onMouseEvent(
24-
CefBrowser browser, int event, int screenX, int screenY, int modifier, int button) {}
25-
}
1+
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2+
// reserved. Use of this source code is governed by a BSD-style license that
3+
// can be found in the LICENSE file.
4+
5+
package org.cef.handler;
6+
7+
import org.cef.browser.CefBrowser;
8+
9+
import java.awt.Rectangle;
10+
11+
/**
12+
* An abstract adapter class for receiving windowed render events.
13+
* The methods in this class are empty.
14+
* This class exists as convenience for creating handler objects.
15+
*/
16+
public abstract class CefWindowHandlerAdapter implements CefWindowHandler {
17+
@Override
18+
public Rectangle getRect(CefBrowser browser) {
19+
return new Rectangle(0, 0, 0, 0);
20+
}
21+
22+
@Override
23+
public void onMouseEvent(
24+
CefBrowser browser, int event, int screenX, int screenY, int modifier, int button) {}
25+
}

java/tests/detailed/BrowserFrame.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44

55
package tests.detailed;
66

7+
import org.cef.CefApp;
8+
import org.cef.browser.CefBrowser;
9+
import org.cef.handler.CefLifeSpanHandlerAdapter;
10+
711
import java.awt.event.WindowAdapter;
812
import java.awt.event.WindowEvent;
13+
914
import javax.swing.JFrame;
1015
import javax.swing.SwingUtilities;
1116

12-
import org.cef.CefApp;
13-
import org.cef.browser.CefBrowser;
14-
import org.cef.handler.CefLifeSpanHandlerAdapter;
15-
1617
public class BrowserFrame extends JFrame {
1718
private volatile boolean isClosed_ = false;
1819
private CefBrowser browser_ = null;

0 commit comments

Comments
 (0)