UNPKG

1.21 kBTypeScriptView Raw
1import { SecondaryWindowService } from './secondary-window-service';
2import { WindowService } from './window-service';
3import { ExtractableWidget } from '../widgets';
4import { ApplicationShell } from '../shell';
5export declare class DefaultSecondaryWindowService implements SecondaryWindowService {
6 protected static SECONDARY_WINDOW_URL: string;
7 /**
8 * Randomized prefix to be included in opened windows' ids.
9 * This avoids conflicts when creating sub-windows from multiple theia instances (e.g. by opening Theia multiple times in the same browser)
10 */
11 protected readonly prefix: number;
12 /** Unique id. Increase after every access. */
13 private nextId;
14 protected secondaryWindows: Window[];
15 protected readonly windowService: WindowService;
16 init(): void;
17 createSecondaryWindow(widget: ExtractableWidget, shell: ApplicationShell): Window | undefined;
18 protected findWindow<T>(windowName: string): Window | undefined;
19 protected doCreateSecondaryWindow(widget: ExtractableWidget, shell: ApplicationShell): Window | undefined;
20 focus(win: Window): void;
21 protected nextWindowId(): string;
22}
23//# sourceMappingURL=default-secondary-window-service.d.ts.map
\No newline at end of file