CefMenuModel
interface CefMenuModel
Supports creation and modification of menus. See cef_menu_id_t for the command ids that have default implementations. All user-defined command ids should be between MENU_ID_USER_FIRST and MENU_ID_USER_LAST. The methods of this class can only be accessed on the browser process the UI thread.
Types
Functions
Link copied to clipboard
Add a check item to the menu.
Link copied to clipboard
Add a radio item to the menu.
Link copied to clipboard
Add a separator to the menu.
Link copied to clipboard
Add a sub-menu to the menu.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the command id at the specified |index| or -1 if not found due to invalid range or the index being a separator.
Link copied to clipboard
Returns the group id for the specified |command_id| or -1 if invalid.
Link copied to clipboard
Returns the group id at the specified |index| or -1 if invalid.
Link copied to clipboard
Returns the index associated with the specified |command_id| or -1 if not found due to the command id not existing in the menu.
Link copied to clipboard
Returns the label at the specified |index| or empty if not found due to invalid range or the index being a separator.
Link copied to clipboard
Returns the submenu for the specified |command_id| or empty if invalid.
Link copied to clipboard
Returns the submenu at the specified |index| or empty if invalid.
Link copied to clipboard
Returns the item type for the specified |command_id|.
Link copied to clipboard
Returns the item type at the specified |index|.
Link copied to clipboard
Returns true if the specified |command_id| has a keyboard accelerator assigned.
Link copied to clipboard
Returns true if the specified |index| has a keyboard accelerator assigned.
Link copied to clipboard
Insert a check item in the menu at the specified |index|.
Link copied to clipboard
Insert an item in the menu at the specified |index|.
Link copied to clipboard
Link copied to clipboard
Insert a separator in the menu at the specified |index|.
Link copied to clipboard
Insert a sub-menu in the menu at the specified |index|.
Link copied to clipboard
Returns true if the specified |index| is checked.
Link copied to clipboard
Returns true if the specified |index| is enabled.
Link copied to clipboard
Returns true if the specified |index| is visible.
Link copied to clipboard
Remove the keyboard accelerator for the specified |command_id|.
Link copied to clipboard
Remove the keyboard accelerator at the specified |index|.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Check the specified |command_id|.
Link copied to clipboard
Check the specified |index|.
Link copied to clipboard
Sets the command id at the specified |index|.
Link copied to clipboard
Change the enabled status of the specified |command_id|.
Link copied to clipboard
Change the enabled status at the specified |index|.
Link copied to clipboard
Sets the group id for the specified |command_id|.
Link copied to clipboard
Sets the group id at the specified |index|.
Link copied to clipboard
Set the label at the specified |index|.
Link copied to clipboard
Change the visibility of the specified |command_id|.
Link copied to clipboard
Change the visibility at the specified |index|.