1 | import { Event, Emitter } from '../../common';
|
2 | import { CorePreferences } from '../core-preferences';
|
3 | import { ContributionProvider } from '../../common/contribution-provider';
|
4 | import { FrontendApplicationContribution, FrontendApplication, OnWillStopAction } from '../frontend-application';
|
5 | import { WindowService } from './window-service';
|
6 | import { StopReason } from '../../common/frontend-application-state';
|
7 | export declare class DefaultWindowService implements WindowService, FrontendApplicationContribution {
|
8 | protected frontendApplication: FrontendApplication;
|
9 | protected allowVetoes: boolean;
|
10 | protected onUnloadEmitter: Emitter<void>;
|
11 | get onUnload(): Event<void>;
|
12 | protected readonly corePreferences: CorePreferences;
|
13 | protected readonly contributions: ContributionProvider<FrontendApplicationContribution>;
|
14 | onStart(app: FrontendApplication): void;
|
15 | openNewWindow(url: string): undefined;
|
16 | openNewDefaultWindow(): void;
|
17 | |
18 |
|
19 |
|
20 |
|
21 |
|
22 | protected collectContributionUnloadVetoes(): OnWillStopAction[];
|
23 | |
24 |
|
25 |
|
26 | protected registerUnloadListeners(): void;
|
27 | isSafeToShutDown(stopReason: StopReason): Promise<boolean>;
|
28 | setSafeToShutDown(): void;
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | protected handleBeforeUnloadEvent(event: BeforeUnloadEvent): string | void;
|
37 | |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | protected preventUnload(event: BeforeUnloadEvent): string | void;
|
47 | reload(): void;
|
48 | }
|
49 |
|
\ | No newline at end of file |