public interface CefContextMenuHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onBeforeContextMenu(CefBrowser browser,
CefFrame frame,
CefContextMenuParams params,
CefMenuModel model)
Called before a context menu is displayed.
|
boolean |
onContextMenuCommand(CefBrowser browser,
CefFrame frame,
CefContextMenuParams params,
int commandId,
int eventFlags)
Called to execute a command selected from the context menu.
|
void |
onContextMenuDismissed(CefBrowser browser,
CefFrame frame)
Called when the context menu is dismissed irregardless of whether the menu
was empty or a command was selected.
|
void onBeforeContextMenu(CefBrowser browser, CefFrame frame, CefContextMenuParams params, CefMenuModel model)
browser - The browser generating the event.frame - The frame generating the event. Instance only valid within the scope
of this method.params - Provides information about the context menu state. Instance
only valid within the scope of this method.model - Can be cleared to show no context menu or modified
to show a custom menu. Instance only valid within the scope of this
method.boolean onContextMenuCommand(CefBrowser browser, CefFrame frame, CefContextMenuParams params, int commandId, int eventFlags)
browser - The browser generating the event.frame - The frame generating the event. Instance only valid within the scope
of this method.params - Will have the same values that were passed to onBeforeContextMenu().
Instance only valid within the scope of this method.commandId - The id of the command.eventFlags - A combination of event flags defined in EventFlagsvoid onContextMenuDismissed(CefBrowser browser, CefFrame frame)
browser - The browser generating the event.frame - The corresponding frame. Instance only valid within the scope
of this method.