Skip to content

main/downloads

Defined in: app/src/main/downloads.ts:60

The list of downloads: the downloads of this session and those that the profile database keeps from before, a panel at the downloads button, and the button’s progress.

new Downloads(deps): Downloads

Defined in: app/src/main/downloads.ts:73

DownloadsDependencies

The data service, the windows and the overlay.

Downloads

forgetPrivate(): void

Defined in: app/src/main/downloads.ts:166

Cancels the downloads of private windows and leaves them out of the list, after the last private window closed. Their finished files stay.

void

open(window, anchor): void

Defined in: app/src/main/downloads.ts:180

Opens the panel of the list at the downloads button of a window.

BrowserWindowController

The window.

The button.

number = coordinate

number = coordinate

number = coordinate

number = coordinate

void

reveal(privateWindow): void

Defined in: app/src/main/downloads.ts:88

Shows the downloads button from now on, such as for its shortcut.

boolean

Whether the button of private windows shows, or of regular ones.

void

summary(privateWindow): { active: number; progress: number | null; } | null

Defined in: app/src/main/downloads.ts:97

How the downloads button looks: null hides it until the browser downloads something. Regular and private windows each count only their own downloads.

boolean

Whether the button is one of a private window.

{ active: number; progress: number | null; } | null

track(item, privateWindow): void

Defined in: app/src/main/downloads.ts:116

Follows a download that started, whose file was chosen already.

DownloadItem

Electron’s download.

boolean

Whether a page of a private window started it.

void

Defined in: app/src/main/downloads.ts:23

What the list of downloads needs from the composition root.

readonly data: DataClient

Defined in: app/src/main/downloads.ts:24

readonly logger: Logger

Defined in: app/src/main/downloads.ts:30

readonly overlay: OverlayOptions

Defined in: app/src/main/downloads.ts:28

readonly router: IpcRouter

Defined in: app/src/main/downloads.ts:29

readonly webSession: (privateWindow) => Session

Defined in: app/src/main/downloads.ts:27

The session of web pages in regular or private windows, which downloads a file again.

boolean

Session

readonly windows: WindowManager

Defined in: app/src/main/downloads.ts:25