Skip to content

main/context-menu

Defined in: app/src/main/context-menu.ts:13

What the context menu needs from the composition root.

readonly developerTools: () => boolean

Defined in: app/src/main/context-menu.ts:22

Whether the developer tools may open, which the policies decide.

boolean

readonly isInternal: (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.

WebContents

boolean

readonly logger: Logger

Defined in: app/src/main/context-menu.ts:25

readonly openTab: (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.

string

WebContents

boolean

void

readonly searchTemplate: () => Promise<string>

Defined in: app/src/main/context-menu.ts:15

The search URL template, once the settings have loaded.

Promise<string>

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.

ContextMenuRequest

The view and what was clicked in it.

ContextMenuDependencies

Settings and the tab path of the composition root.

Promise<void>