Chromium Embedded Framework (CEF)
126.2.0+g5c56e98+chromium-126.0.6478.62
|
Implement this interface to handle menu model events. More...
#include "include/cef_menu_model_delegate.h"
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 () |
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.
|
pure virtual |
Perform the action associated with the specified |command_id| and optional |event_flags|.
|
inlinevirtual |
Optionally modify a menu item label.
Return true if |label| was modified.
|
inlinevirtual |
The menu has closed.
|
inlinevirtual |
The menu is about to show.
|
inlinevirtual |
Called when the user moves the mouse outside the menu and over the owning window.
|
inlinevirtual |
Called on unhandled close submenu keyboard commands.
|is_rtl| will be true if the menu is displaying a right-to-left language.
|
inlinevirtual |
Called on unhandled open submenu keyboard commands.
|is_rtl| will be true if the menu is displaying a right-to-left language.