public interface CefRenderHandler
| 限定符和类型 | 方法和说明 |
|---|---|
Point |
getScreenPoint(CefBrowser browser,
Point viewPoint)
Retrieve the screen point for the specified view point.
|
Rectangle |
getViewRect(CefBrowser browser)
Retrieve the view rectangle.
|
void |
onCursorChange(CefBrowser browser,
int cursor)
Handle cursor changes.
|
void |
onPaint(CefBrowser browser,
boolean popup,
Rectangle[] dirtyRects,
ByteBuffer buffer,
int width,
int height)
Handle painting.
|
void |
onPopupShow(CefBrowser browser,
boolean show)
Show or hide the popup window.
|
void |
onPopupSize(CefBrowser browser,
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.
|
void |
updateDragCursor(CefBrowser browser,
int operation)
Called when the web view wants to update the mouse cursor during a
drag & drop operation.
|
Rectangle getViewRect(CefBrowser browser)
browser - The browser generating the event.Point getScreenPoint(CefBrowser browser, Point viewPoint)
browser - The browser generating the event.viewPoint - The point in the view.void onPopupShow(CefBrowser browser, boolean show)
browser - The browser generating the event.show - True if the popup window is being shown.void onPopupSize(CefBrowser browser, Rectangle size)
browser - The browser generating the event.size - Size of the popup window.void onPaint(CefBrowser browser, boolean popup, Rectangle[] dirtyRects, ByteBuffer buffer, int width, int height)
browser - The browser generating the event.popup - True if painting a popup window.dirtyRects - Array of dirty regions.buffer - Pixel buffer for the whole window.width - Width of the buffer.height - Height of the buffer.void onCursorChange(CefBrowser browser, int cursor)
browser - The browser generating the event.cursor - The new cursor.boolean startDragging(CefBrowser browser, CefDragData dragData, int mask, int x, int y)
browser - The browser generating the event.dragData - Contextual information about the dragged contentmask - Describes the allowed operation (none, move, copy, link).x - Coordinate within CefBrowsery - Coordinate within CefBrowservoid updateDragCursor(CefBrowser browser, int operation)
browser - The browser generating the event.operation - Describes the allowed operation (none, move, copy, link).Copyright © 2017. All rights reserved.