Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(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.


Inner Classes, Typedefs, and Enums
typedef CefMenuHandler::MenuId
          
 
Method Summary
 virtual void GetMenuLabel( CefRefPtr< CefBrowser > browser, CefMenuHandler::MenuId menuId, CefString& label )
          Called to optionally override the default text for a context menu item.
 virtual bool OnBeforeMenu( CefRefPtr< CefBrowser > browser, const CefMenuInfo& menuInfo )
          Called before a context menu is displayed.
 virtual bool OnMenuAction( CefRefPtr< CefBrowser > browser, CefMenuHandler::MenuId menuId )
          Called when an option is selected from the default context menu.
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Method Detail

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.

 Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 1123
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt