Chromium Embedded Framework (CEF)
133.4.1+gb158ecb+chromium-133.0.6943.6
|
Implement this interface to handle events related to commands. More...
#include "include/cef_command_handler.h"
Public Member Functions | |
virtual bool | OnChromeCommand (CefRefPtr< CefBrowser > browser, int command_id, cef_window_open_disposition_t disposition) |
Called to execute a Chrome command triggered via menu selection or keyboard shortcut. More... | |
virtual bool | IsChromeAppMenuItemVisible (CefRefPtr< CefBrowser > browser, int command_id) |
Called to check if a Chrome app menu item should be visible. More... | |
virtual bool | IsChromeAppMenuItemEnabled (CefRefPtr< CefBrowser > browser, int command_id) |
Called to check if a Chrome app menu item should be enabled. More... | |
virtual bool | IsChromePageActionIconVisible (cef_chrome_page_action_icon_type_t icon_type) |
Called during browser creation to check if a Chrome page action icon should be visible. More... | |
virtual bool | IsChromeToolbarButtonVisible (cef_chrome_toolbar_button_type_t button_type) |
Called during browser creation to check if a Chrome toolbar button should be visible. More... | |
![]() | |
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 | |
![]() | |
virtual | ~CefBaseRefCounted () |
Implement this interface to handle events related to commands.
The methods of this class will be called on the UI thread.
|
inlinevirtual |
Called to check if a Chrome app menu item should be enabled.
Use the cef_id_for_command_id_name() function for version-safe mapping of command IDC names from cef_command_ids.h to version-specific numerical |command_id| values. Only called for menu items that would be enabled by default. Only used with Chrome style.
|
inlinevirtual |
Called to check if a Chrome app menu item should be visible.
Use the cef_id_for_command_id_name() function for version-safe mapping of command IDC names from cef_command_ids.h to version-specific numerical |command_id| values. Only called for menu items that would be visible by default. Only used with Chrome style.
|
inlinevirtual |
Called during browser creation to check if a Chrome page action icon should be visible.
Only called for icons that would be visible by default. Only used with Chrome style.
|
inlinevirtual |
Called during browser creation to check if a Chrome toolbar button should be visible.
Only called for buttons that would be visible by default. Only used with Chrome style.
|
inlinevirtual |
Called to execute a Chrome command triggered via menu selection or keyboard shortcut.
Use the cef_id_for_command_id_name() function for version-safe mapping of command IDC names from cef_command_ids.h to version-specific numerical |command_id| values. |disposition| provides information about the intended command target. Return true if the command was handled or false for the default implementation. For context menu commands this will be called after CefContextMenuHandler::OnContextMenuCommand. Only used with Chrome style.