Skip to main content

Module context_menu

Module context_menu 

Source
Expand description

Chrome-specific context menu item structures, including types, icons, accelerators, and submenus.

Structs§

ChromeContextMenu
ChromeContextMenuAccelerator
ChromeContextMenuIcon
ChromeContextMenuItem

Enums§

ChromeContextMenuItemType

Constants§

CMD_BACK
Chromium-derived command ids mirrored from chrome/app/chrome_command_ids.h. Keep these values aligned with the Chromium revision used by CBF because the backend reports and accepts the same command id space.
CMD_CONTENT_COPY
Command id for copying selected content.
CMD_CONTENT_COPY_IMAGE
Command id for copying an image.
CMD_CONTENT_COPY_IMAGE_LOCATION
Command id for copying an image location.
CMD_CONTENT_COPY_LINK_LOCATION
Command id for copying a link location.
CMD_CONTENT_CUT
Command id for cutting selected content.
CMD_CONTENT_INSPECT_ELEMENT
Command id for inspecting element via DevTools.
CMD_CONTENT_OPEN_LINK_NEW_TAB
Command id for opening a link in a new tab.
CMD_CONTENT_OPEN_LINK_NEW_WINDOW
Command id for opening a link in a new window.
CMD_CONTENT_PASTE
Command id for pasting into content.
CMD_CONTENT_PASTE_AND_MATCH_STYLE
Command id for pasting while matching style.
CMD_CONTENT_REDO
Command id for redo in editable content.
CMD_CONTENT_SAVE_IMAGE_AS
Command id for saving an image as a file.
CMD_CONTENT_SELECT_ALL
Command id for selecting all content.
CMD_CONTENT_UNDO
Command id for undo in editable content.
CMD_COPY
Command id for copying selection.
CMD_CUT
Command id for cutting selection.
CMD_FORWARD
Command id for navigating forward.
CMD_PASTE
Command id for pasting clipboard contents.
CMD_PRINT
Command id for printing the page.
CMD_RELOAD
Command id for reloading the page.

Functions§

filter_supported
is_open_link_new_tab
Check whether a command id represents “open link in new tab”.
is_open_link_new_window
Check whether a command id represents “open link in new window”.