public interface CefRenderHandler
限定符和类型 | 方法和说明 |
---|---|
java.awt.Point |
getScreenPoint(CefBrowser browser, java.awt.Point viewPoint)
Retrieve the screen point for the specified view point.
(检索指定视点的屏幕点。)
|
java.awt.Rectangle |
getViewRect(CefBrowser browser)
Retrieve the view rectangle.
(检索视图矩形。)
|
void |
onCursorChange(CefBrowser browser, int cursor)
Handle cursor changes.
(处理光标更改。)
|
void |
onPaint(CefBrowser browser, boolean popup, java.awt.Rectangle[] dirtyRects, java.nio.ByteBuffer buffer, int width, int height)
Handle painting.
(处理绘画。)
|
void |
onPopupShow(CefBrowser browser, boolean show)
Show or hide the popup window.
(显示或隐藏弹出窗口。)
|
void |
onPopupSize(CefBrowser browser, java.awt.Rectangle size)
Size the popup window.
(调整弹出窗口的大小。)
|
boolean |
startDragging(CefBrowser browser, CefDragData dragData, int mask, int x, int y)
Called when the user starts dragging content in the web view.
(当用户开始在Web视图中拖动内容时调用。)
|
void |
updateDragCursor(CefBrowser browser, int operation)
Called when the web view wants to update the mouse cursor during a drag & drop operation.
(在拖放操作期间Web视图要更新鼠标光标时调用。)
|
java.awt.Point getScreenPoint(CefBrowser browser, java.awt.Point viewPoint)
browser
- The browser generating the event.
(-浏览器生成事件。)
viewPoint
- The point in the view.
(-视图中的点。)
java.awt.Rectangle getViewRect(CefBrowser browser)
browser
- The browser generating the event.
(-浏览器生成事件。)
void onCursorChange(CefBrowser browser, int cursor)
browser
- The browser generating the event.
(-浏览器生成事件。)
cursor
- The new cursor.
(-新光标。)
void onPaint(CefBrowser browser, boolean popup, java.awt.Rectangle[] dirtyRects, java.nio.ByteBuffer buffer, int width, int height)
browser
- The browser generating the event.
(-浏览器生成事件。)
popup
- True if painting a popup window.
(-如果绘制一个弹出窗口,则为true。)
dirtyRects
- Array of dirty regions.
(-脏区阵列。)
buffer
- Pixel buffer for the whole window.
(-整个窗口的像素缓冲区。)
width
- Width of the buffer.
(-缓冲区的宽度。)
height
- Height of the buffer.
(-缓冲区的高度。)
void onPopupShow(CefBrowser browser, boolean show)
browser
- The browser generating the event.
(-浏览器生成事件。)
show
- True if the popup window is being shown.
(-如果显示弹出窗口,则为True。)
void onPopupSize(CefBrowser browser, java.awt.Rectangle size)
browser
- The browser generating the event.
(-浏览器生成事件。)
size
- Size of the popup window.
(-弹出窗口的大小。)
boolean startDragging(CefBrowser browser, CefDragData dragData, int mask, int x, int y)
browser
- The browser generating the event.
(-浏览器生成事件。)
dragData
- Contextual information about the dragged content
(-有关所拖动内容的上下文信息)
mask
- Describes the allowed operation (none, move, copy, link).
(-描述允许的操作(无,移动,复制,链接)。)
x
- Coordinate within CefBrowser
(-在CefBrowser中协调)
y
- Coordinate within CefBrowser
(-在CefBrowser中协调)
void updateDragCursor(CefBrowser browser, int operation)
browser
- The browser generating the event.
(-浏览器生成事件。)
operation
- Describes the allowed operation (none, move, copy, link).
(-描述允许的操作(无,移动,复制,链接)。)