(default)
Class CefMenuHandler
CefBase
|
+--CefMenuHandler
in cef_menu_handler.h
- class CefMenuHandler
- extends CefBase
Implement this interface to handle events related to browser context menus.
The methods of this class will be called on the UI thread.
GetMenuLabel
public virtual void GetMenuLabel( CefRefPtr< CefBrowser > browser, CefMenuHandler::MenuId menuId, CefString& label );
- Called to optionally override the default text for a context menu item.
|label| contains the default text and may be modified to substitute
alternate text.
OnBeforeMenu
public virtual bool OnBeforeMenu( CefRefPtr< CefBrowser > browser, const CefMenuInfo& menuInfo );
- Called before a context menu is displayed. Return false to display the
default context menu or true to cancel the display.
OnMenuAction
public virtual bool OnMenuAction( CefRefPtr< CefBrowser > browser, CefMenuHandler::MenuId menuId );
- Called when an option is selected from the default context menu. Return
false to execute the default action or true to cancel the action.
Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt