Skip to content

main/overlays

existingOverlay(window): WindowOverlay | undefined

Defined in: app/src/main/overlays.ts:75

The overlay of a window, if it has one already.

BrowserWindowController

The window.

WindowOverlay | undefined


overlayBySender(senderId): WindowOverlay | undefined

Defined in: app/src/main/overlays.ts:55

The overlay whose page sent a request.

number

The id of the sending web contents.

WindowOverlay | undefined


overlayOf(window, options, router): WindowOverlay

Defined in: app/src/main/overlays.ts:17

The overlay of a window, made with its first popover or prompt. The first overlay connects the channels that every overlay page uses.

BrowserWindowController

The window.

OverlayOptions

What the overlays of all windows share.

IpcRouter

IPC router.

WindowOverlay


track(window, overlay): void

Defined in: app/src/main/overlays.ts:43

Remembers which page belongs to an overlay that is open, so its requests find it.

BrowserWindowController

The overlay’s window.

WindowOverlay

The overlay, after it opened.

void


windowOfOverlay(windows, overlay): BrowserWindowController | undefined

Defined in: app/src/main/overlays.ts:64

The window of an overlay.

readonly BrowserWindowController[]

The open windows.

WindowOverlay

The overlay.

BrowserWindowController | undefined