diff options
Diffstat (limited to 'packages/main/src/infrastructure/electron/types.ts')
-rw-r--r-- | packages/main/src/infrastructure/electron/types.ts | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/packages/main/src/infrastructure/electron/types.ts b/packages/main/src/infrastructure/electron/types.ts index 9f03214..608a342 100644 --- a/packages/main/src/infrastructure/electron/types.ts +++ b/packages/main/src/infrastructure/electron/types.ts | |||
@@ -18,11 +18,9 @@ | |||
18 | * SPDX-License-Identifier: AGPL-3.0-only | 18 | * SPDX-License-Identifier: AGPL-3.0-only |
19 | */ | 19 | */ |
20 | 20 | ||
21 | import type { BrowserViewBounds } from '@sophie/shared'; | 21 | import type MainStore from '../../stores/MainStore.js'; |
22 | 22 | import type Profile from '../../stores/Profile.js'; | |
23 | import type MainStore from '../../stores/MainStore'; | 23 | import type Service from '../../stores/Service.js'; |
24 | import type Profile from '../../stores/Profile'; | ||
25 | import type Service from '../../stores/Service'; | ||
26 | 24 | ||
27 | export interface ViewFactory { | 25 | export interface ViewFactory { |
28 | createMainWindow(store: MainStore): Promise<MainWindow>; | 26 | createMainWindow(store: MainStore): Promise<MainWindow>; |
@@ -31,8 +29,6 @@ export interface ViewFactory { | |||
31 | 29 | ||
32 | createServiceView(service: Service, partition: Partition): ServiceView; | 30 | createServiceView(service: Service, partition: Partition): ServiceView; |
33 | 31 | ||
34 | loadServiceInject(): Promise<void>; | ||
35 | |||
36 | dispose(): void; | 32 | dispose(): void; |
37 | } | 33 | } |
38 | 34 | ||
@@ -41,6 +37,8 @@ export interface MainWindow { | |||
41 | 37 | ||
42 | setServiceView(serviceView: ServiceView | undefined): void; | 38 | setServiceView(serviceView: ServiceView | undefined): void; |
43 | 39 | ||
40 | reloadTranslations(): void; | ||
41 | |||
44 | dispose(): void; | 42 | dispose(): void; |
45 | } | 43 | } |
46 | 44 | ||
@@ -55,13 +53,19 @@ export interface ServiceView { | |||
55 | 53 | ||
56 | readonly partitionId: string; | 54 | readonly partitionId: string; |
57 | 55 | ||
58 | loadURL(url: string): Promise<void>; | 56 | loadURL(url: string): void; |
59 | 57 | ||
60 | goBack(): void; | 58 | goBack(): void; |
61 | 59 | ||
62 | goForward(): void; | 60 | goForward(): void; |
63 | 61 | ||
64 | setBounds(bounds: BrowserViewBounds): void; | 62 | reload(ignoreCache: boolean): void; |
63 | |||
64 | stop(): void; | ||
65 | |||
66 | toggleDeveloperTools(): void; | ||
67 | |||
68 | updateBounds(): void; | ||
65 | 69 | ||
66 | dispose(): void; | 70 | dispose(): void; |
67 | } | 71 | } |