forked from CinemaMod/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCefRenderHandlerAdapter.java
More file actions
57 lines (45 loc) · 1.61 KB
/
CefRenderHandlerAdapter.java
File metadata and controls
57 lines (45 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
package org.cef.handler;
import org.cef.browser.CefBrowser;
import org.cef.callback.CefDragData;
import java.awt.Point;
import java.awt.Rectangle;
import java.nio.ByteBuffer;
/**
* An abstract adapter class for receiving render events.
* The methods in this class are empty.
* This class exists as convenience for creating handler objects.
*/
public abstract class CefRenderHandlerAdapter implements CefRenderHandler {
@Override
public Rectangle getViewRect(CefBrowser browser) {
return new Rectangle(0, 0, 0, 0);
}
@Override
public boolean getScreenInfo(CefBrowser browser, CefScreenInfo screenInfo) {
return false;
}
@Override
public Point getScreenPoint(CefBrowser browser, Point viewPoint) {
return new Point(0, 0);
}
@Override
public void onPopupShow(CefBrowser browser, boolean show) {}
@Override
public void onPopupSize(CefBrowser browser, Rectangle size) {}
@Override
public void onPaint(CefBrowser browser, boolean popup, Rectangle[] dirtyRects,
ByteBuffer buffer, int width, int height) {}
@Override
public boolean onCursorChange(CefBrowser browser, int cursorType) {
return false;
}
@Override
public boolean startDragging(CefBrowser browser, CefDragData dragData, int mask, int x, int y) {
return false;
}
@Override
public void updateDragCursor(CefBrowser browser, int operation) {}
}