|
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 | +} |
0 commit comments