public interface CefContextMenuHandler
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
CefContextMenuHandler.EventFlags
Supported event bit flags.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onBeforeContextMenu(CefBrowser browser,
CefContextMenuParams params,
CefMenuModel model)
Called before a context menu is displayed.
|
boolean |
onContextMenuCommand(CefBrowser browser,
CefContextMenuParams params,
int commandId,
int eventFlags)
Called to execute a command selected from the context menu.
|
void |
onContextMenuDismissed(CefBrowser browser)
Called when the context menu is dismissed irregardless of whether the menu
was empty or a command was selected.
|
void onBeforeContextMenu(CefBrowser browser, CefContextMenuParams params, CefMenuModel model)
browser - The corresponding browser.params - provides information about the context menu state.model - can be cleared to show no context menu or modified
to show a custom menu.boolean onContextMenuCommand(CefBrowser browser, CefContextMenuParams params, int commandId, int eventFlags)
browser - The corresponding browser.params - Will have the same values as what was passed to onBeforeContextMenu().commandId - The id of the command.eventFlags - A combination of event flags defined in EventFlagsvoid onContextMenuDismissed(CefBrowser browser)
browser - The corresponding browser.Copyright © 2017. All rights reserved.