main/context-menu
Interfaces
Section titled “Interfaces”ContextMenuDependencies
Section titled “ContextMenuDependencies”Defined in: app/src/main/context-menu.ts:13
What the context menu needs from the composition root.
Properties
Section titled “Properties”developerTools
Section titled “developerTools”
readonlydeveloperTools: () =>boolean
Defined in: app/src/main/context-menu.ts:22
Whether the developer tools may open, which the policies decide.
Returns
Section titled “Returns”boolean
isInternal
Section titled “isInternal”
readonlyisInternal: (contents) =>boolean
Defined in: app/src/main/context-menu.ts:24
Whether a view shows one of the browser’s own pages, which never get the developer tools.
Parameters
Section titled “Parameters”contents
Section titled “contents”WebContents
Returns
Section titled “Returns”boolean
logger
Section titled “logger”
readonlylogger:Logger
Defined in: app/src/main/context-menu.ts:25
openTab
Section titled “openTab”
readonlyopenTab: (url,opener,activate) =>void
Defined in: app/src/main/context-menu.ts:20
Opens a URL from a page in a new tab next to it: the path and the guard of every tab that a page opens.
Parameters
Section titled “Parameters”string
opener
Section titled “opener”WebContents
activate
Section titled “activate”boolean
Returns
Section titled “Returns”void
searchTemplate
Section titled “searchTemplate”
readonlysearchTemplate: () =>Promise<string>
Defined in: app/src/main/context-menu.ts:15
The search URL template, once the settings have loaded.
Returns
Section titled “Returns”Promise<string>
Functions
Section titled “Functions”popupContextMenu()
Section titled “popupContextMenu()”popupContextMenu(
request,deps):Promise<void>
Defined in: app/src/main/context-menu.ts:34
Shows the native context menu for a click in a page or in the shell. This module loads with the first context menu, so it adds nothing to the start of the browser.
Parameters
Section titled “Parameters”request
Section titled “request”The view and what was clicked in it.
Settings and the tab path of the composition root.
Returns
Section titled “Returns”Promise<void>