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