1 | import { FrontendApplicationConfig } from '@theia/application-package';
|
2 | import { FrontendApplicationState, StopReason } from '../common/frontend-application-state';
|
3 | import { BrowserWindow, BrowserWindowConstructorOptions } from '../../electron-shared/electron';
|
4 | import { ElectronMainApplicationGlobals } from './electron-main-constants';
|
5 | import { DisposableCollection, Emitter, Event } from '../common';
|
6 |
|
7 |
|
8 |
|
9 | export interface TheiaBrowserWindowOptions extends BrowserWindowConstructorOptions {
|
10 | isMaximized?: boolean;
|
11 | isFullScreen?: boolean;
|
12 | |
13 |
|
14 |
|
15 |
|
16 |
|
17 | screenLayout?: string;
|
18 | }
|
19 | export declare const TheiaBrowserWindowOptions: unique symbol;
|
20 | export declare const WindowApplicationConfig: unique symbol;
|
21 | export declare type WindowApplicationConfig = FrontendApplicationConfig;
|
22 | export declare class TheiaElectronWindow {
|
23 | protected readonly options: TheiaBrowserWindowOptions;
|
24 | protected readonly config: WindowApplicationConfig;
|
25 | protected readonly globals: ElectronMainApplicationGlobals;
|
26 | protected onDidCloseEmitter: Emitter<void>;
|
27 | get onDidClose(): Event<void>;
|
28 | protected readonly toDispose: DisposableCollection;
|
29 | protected _window: BrowserWindow;
|
30 | get window(): BrowserWindow;
|
31 | protected closeIsConfirmed: boolean;
|
32 | protected applicationState: FrontendApplicationState;
|
33 | protected init(): void;
|
34 | protected attachSecondaryWindowListener(): void;
|
35 | |
36 |
|
37 |
|
38 | protected attachReadyToShow(): void;
|
39 | protected attachCloseListeners(): void;
|
40 | protected doCloseWindow(): void;
|
41 | close(reason?: StopReason): Promise<boolean>;
|
42 | protected reload(): void;
|
43 | protected handleStopRequest(onSafeCallback: () => unknown, reason: StopReason): Promise<boolean>;
|
44 | protected checkSafeToStop(reason: StopReason): Promise<boolean>;
|
45 | protected restoreMaximizedState(): void;
|
46 | protected trackApplicationState(): void;
|
47 | protected attachReloadListener(): void;
|
48 | dispose(): void;
|
49 | }
|
50 | export interface TheiaElectronWindowFactory {
|
51 | (options: TheiaBrowserWindowOptions, config: FrontendApplicationConfig): TheiaElectronWindow;
|
52 | }
|
53 | export declare const TheiaElectronWindowFactory: unique symbol;
|
54 |
|
\ | No newline at end of file |