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 | focus(): void;
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 | protected collectContributionUnloadVetoes(): OnWillStopAction[];
|
25 | |
26 |
|
27 |
|
28 | protected registerUnloadListeners(): void;
|
29 | isSafeToShutDown(stopReason: StopReason): Promise<boolean>;
|
30 | setSafeToShutDown(): void;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | protected handleBeforeUnloadEvent(event: BeforeUnloadEvent): string | void;
|
39 | |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 | protected preventUnload(event: BeforeUnloadEvent): string | void;
|
49 | reload(): void;
|
50 | }
|
51 |
|
\ | No newline at end of file |