UNPKG

1.26 kBTypeScriptView Raw
1import { NewWindowOptions, WindowSearchParams } from '../../common/window';
2import { DefaultWindowService } from '../../browser/window/default-window-service';
3import { ElectronMainWindowService } from '../../electron-common/electron-main-window-service';
4import { ElectronWindowPreferences } from './electron-window-preferences';
5export declare class ElectronWindowService extends DefaultWindowService {
6 /**
7 * Lock to prevent multiple parallel executions of the `beforeunload` listener.
8 */
9 protected isUnloading: boolean;
10 /**
11 * Close the window right away when `true`, else check if we can unload.
12 */
13 protected closeOnUnload: boolean;
14 protected readonly delegate: ElectronMainWindowService;
15 protected readonly electronWindowPreferences: ElectronWindowPreferences;
16 openNewWindow(url: string, { external }?: NewWindowOptions): undefined;
17 openNewDefaultWindow(params?: WindowSearchParams): void;
18 protected init(): void;
19 protected registerUnloadListeners(): void;
20 /**
21 * Updates the window zoom level based on the preference value.
22 */
23 protected updateWindowZoomLevel(): Promise<void>;
24 reload(params?: WindowSearchParams): void;
25}
26//# sourceMappingURL=electron-window-service.d.ts.map
\No newline at end of file