Chromium Embedded Framework (CEF)  115.2.0+g096e3eb+chromium-115.0.5790.13
CefMenuModelDelegate Class Referenceabstract

Implement this interface to handle menu model events. More...

#include "include/cef_menu_model_delegate.h"

Inheritance diagram for CefMenuModelDelegate:
CefBaseRefCounted

Public Member Functions

virtual void ExecuteCommand (CefRefPtr< CefMenuModel > menu_model, int command_id, cef_event_flags_t event_flags)=0
 Perform the action associated with the specified |command_id| and optional |event_flags|. More...
 
virtual void MouseOutsideMenu (CefRefPtr< CefMenuModel > menu_model, const CefPoint &screen_point)
 Called when the user moves the mouse outside the menu and over the owning window. More...
 
virtual void UnhandledOpenSubmenu (CefRefPtr< CefMenuModel > menu_model, bool is_rtl)
 Called on unhandled open submenu keyboard commands. More...
 
virtual void UnhandledCloseSubmenu (CefRefPtr< CefMenuModel > menu_model, bool is_rtl)
 Called on unhandled close submenu keyboard commands. More...
 
virtual void MenuWillShow (CefRefPtr< CefMenuModel > menu_model)
 The menu is about to show. More...
 
virtual void MenuClosed (CefRefPtr< CefMenuModel > menu_model)
 The menu has closed. More...
 
virtual bool FormatLabel (CefRefPtr< CefMenuModel > menu_model, CefString &label)
 Optionally modify a menu item label. More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Implement this interface to handle menu model events.

The methods of this class will be called on the browser process UI thread unless otherwise indicated.

Member Function Documentation

◆ ExecuteCommand()

virtual void CefMenuModelDelegate::ExecuteCommand ( CefRefPtr< CefMenuModel menu_model,
int  command_id,
cef_event_flags_t  event_flags 
)
pure virtual

Perform the action associated with the specified |command_id| and optional |event_flags|.

◆ FormatLabel()

virtual bool CefMenuModelDelegate::FormatLabel ( CefRefPtr< CefMenuModel menu_model,
CefString label 
)
inlinevirtual

Optionally modify a menu item label.

Return true if |label| was modified.

◆ MenuClosed()

virtual void CefMenuModelDelegate::MenuClosed ( CefRefPtr< CefMenuModel menu_model)
inlinevirtual

The menu has closed.

◆ MenuWillShow()

virtual void CefMenuModelDelegate::MenuWillShow ( CefRefPtr< CefMenuModel menu_model)
inlinevirtual

The menu is about to show.

◆ MouseOutsideMenu()

virtual void CefMenuModelDelegate::MouseOutsideMenu ( CefRefPtr< CefMenuModel menu_model,
const CefPoint screen_point 
)
inlinevirtual

Called when the user moves the mouse outside the menu and over the owning window.

◆ UnhandledCloseSubmenu()

virtual void CefMenuModelDelegate::UnhandledCloseSubmenu ( CefRefPtr< CefMenuModel menu_model,
bool  is_rtl 
)
inlinevirtual

Called on unhandled close submenu keyboard commands.

|is_rtl| will be true if the menu is displaying a right-to-left language.

◆ UnhandledOpenSubmenu()

virtual void CefMenuModelDelegate::UnhandledOpenSubmenu ( CefRefPtr< CefMenuModel menu_model,
bool  is_rtl 
)
inlinevirtual

Called on unhandled open submenu keyboard commands.

|is_rtl| will be true if the menu is displaying a right-to-left language.


The documentation for this class was generated from the following file: