@theia/core 1.37.0-next.9 → 1.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -9
- package/i18n/nls.cs.json +6 -1
- package/i18n/nls.de.json +6 -1
- package/i18n/nls.es.json +6 -1
- package/i18n/nls.fr.json +6 -1
- package/i18n/nls.hu.json +6 -1
- package/i18n/nls.it.json +6 -1
- package/i18n/nls.ja.json +6 -1
- package/i18n/nls.json +6 -1
- package/i18n/nls.pl.json +6 -1
- package/i18n/nls.pt-br.json +6 -1
- package/i18n/nls.pt-pt.json +6 -1
- package/i18n/nls.ru.json +6 -1
- package/i18n/nls.zh-cn.json +6 -1
- package/lib/browser/core-preferences.d.ts +4 -0
- package/lib/browser/core-preferences.d.ts.map +1 -1
- package/lib/browser/core-preferences.js +22 -0
- package/lib/browser/core-preferences.js.map +1 -1
- package/lib/browser/hover-service.d.ts +5 -0
- package/lib/browser/hover-service.d.ts.map +1 -1
- package/lib/browser/hover-service.js +7 -1
- package/lib/browser/hover-service.js.map +1 -1
- package/lib/browser/icon-theme-service.js +1 -1
- package/lib/browser/icon-theme-service.js.map +1 -1
- package/lib/browser/shell/application-shell.d.ts +2 -1
- package/lib/browser/shell/application-shell.d.ts.map +1 -1
- package/lib/browser/shell/application-shell.js +30 -3
- package/lib/browser/shell/application-shell.js.map +1 -1
- package/lib/browser/shell/tab-bars.d.ts +21 -5
- package/lib/browser/shell/tab-bars.d.ts.map +1 -1
- package/lib/browser/shell/tab-bars.js +94 -17
- package/lib/browser/shell/tab-bars.js.map +1 -1
- package/lib/browser/test/jsdom.js +1 -1
- package/lib/browser/test/jsdom.js.map +1 -1
- package/lib/browser/tree/tree-iterator.js +4 -4
- package/lib/browser/tree/tree-iterator.js.map +1 -1
- package/lib/browser/tree/tree-selection-state.spec.js +26 -2
- package/lib/browser/tree/tree-selection-state.spec.js.map +1 -1
- package/lib/common/i18n/localization.d.ts +1 -0
- package/lib/common/i18n/localization.d.ts.map +1 -1
- package/lib/common/i18n/localization.js +2 -16
- package/lib/common/i18n/localization.js.map +1 -1
- package/lib/common/nls.d.ts +1 -0
- package/lib/common/nls.d.ts.map +1 -1
- package/lib/common/nls.js +2 -1
- package/lib/common/nls.js.map +1 -1
- package/lib/common/quick-pick-service.d.ts +2 -1
- package/lib/common/quick-pick-service.d.ts.map +1 -1
- package/lib/common/quick-pick-service.js.map +1 -1
- package/lib/electron-browser/electron-clipboard-service.d.ts.map +1 -1
- package/lib/electron-browser/electron-clipboard-service.js +2 -3
- package/lib/electron-browser/electron-clipboard-service.js.map +1 -1
- package/lib/electron-browser/keyboard/electron-keyboard-layout-change-notifier.d.ts.map +1 -1
- package/lib/electron-browser/keyboard/electron-keyboard-layout-change-notifier.js +1 -2
- package/lib/electron-browser/keyboard/electron-keyboard-layout-change-notifier.js.map +1 -1
- package/lib/electron-browser/menu/electron-context-menu-renderer.d.ts +2 -3
- package/lib/electron-browser/menu/electron-context-menu-renderer.d.ts.map +1 -1
- package/lib/electron-browser/menu/electron-context-menu-renderer.js +10 -18
- package/lib/electron-browser/menu/electron-context-menu-renderer.js.map +1 -1
- package/lib/electron-browser/menu/electron-main-menu-factory.d.ts +10 -8
- package/lib/electron-browser/menu/electron-main-menu-factory.d.ts.map +1 -1
- package/lib/electron-browser/menu/electron-main-menu-factory.js +33 -32
- package/lib/electron-browser/menu/electron-main-menu-factory.js.map +1 -1
- package/lib/electron-browser/menu/electron-menu-contribution.d.ts +6 -6
- package/lib/electron-browser/menu/electron-menu-contribution.d.ts.map +1 -1
- package/lib/electron-browser/menu/electron-menu-contribution.js +39 -54
- package/lib/electron-browser/menu/electron-menu-contribution.js.map +1 -1
- package/lib/electron-browser/messaging/electron-ipc-connection-provider.d.ts.map +1 -1
- package/lib/electron-browser/messaging/electron-ipc-connection-provider.js +2 -6
- package/lib/electron-browser/messaging/electron-ipc-connection-provider.js.map +1 -1
- package/lib/electron-browser/preload.d.ts +2 -0
- package/lib/electron-browser/preload.d.ts.map +1 -0
- package/lib/electron-browser/preload.js +183 -0
- package/lib/electron-browser/preload.js.map +1 -0
- package/lib/electron-browser/token/electron-token-frontend-module.d.ts.map +1 -1
- package/lib/electron-browser/token/electron-token-frontend-module.js +1 -2
- package/lib/electron-browser/token/electron-token-frontend-module.js.map +1 -1
- package/lib/electron-browser/window/electron-frontend-application-state.d.ts.map +1 -1
- package/lib/electron-browser/window/electron-frontend-application-state.js +1 -3
- package/lib/electron-browser/window/electron-frontend-application-state.js.map +1 -1
- package/lib/electron-browser/window/electron-secondary-window-service.d.ts +1 -3
- package/lib/electron-browser/window/electron-secondary-window-service.d.ts.map +1 -1
- package/lib/electron-browser/window/electron-secondary-window-service.js +6 -34
- package/lib/electron-browser/window/electron-secondary-window-service.js.map +1 -1
- package/lib/electron-browser/window/electron-window-service.d.ts +1 -8
- package/lib/electron-browser/window/electron-window-service.d.ts.map +1 -1
- package/lib/electron-browser/window/electron-window-service.js +8 -25
- package/lib/electron-browser/window/electron-window-service.js.map +1 -1
- package/lib/electron-common/electron-api.d.ts +94 -0
- package/lib/electron-common/electron-api.d.ts.map +1 -0
- package/lib/electron-common/electron-api.js +53 -0
- package/lib/electron-common/electron-api.js.map +1 -0
- package/lib/electron-common/messaging/electron-connection-handler.d.ts +0 -7
- package/lib/electron-common/messaging/electron-connection-handler.d.ts.map +1 -1
- package/lib/electron-common/messaging/electron-connection-handler.js +1 -5
- package/lib/electron-common/messaging/electron-connection-handler.js.map +1 -1
- package/lib/electron-main/electron-api-main.d.ts +21 -0
- package/lib/electron-main/electron-api-main.d.ts.map +1 -0
- package/lib/electron-main/electron-api-main.js +261 -0
- package/lib/electron-main/electron-api-main.js.map +1 -0
- package/lib/electron-main/electron-main-application-module.d.ts.map +1 -1
- package/lib/electron-main/electron-main-application-module.js +3 -3
- package/lib/electron-main/electron-main-application-module.js.map +1 -1
- package/lib/electron-main/electron-main-application.d.ts +8 -2
- package/lib/electron-main/electron-main-application.d.ts.map +1 -1
- package/lib/electron-main/electron-main-application.js +32 -29
- package/lib/electron-main/electron-main-application.js.map +1 -1
- package/lib/electron-main/electron-security-token-service.d.ts.map +1 -1
- package/lib/electron-main/electron-security-token-service.js +2 -1
- package/lib/electron-main/electron-security-token-service.js.map +1 -1
- package/lib/electron-main/messaging/electron-messaging-contribution.d.ts +4 -5
- package/lib/electron-main/messaging/electron-messaging-contribution.d.ts.map +1 -1
- package/lib/electron-main/messaging/electron-messaging-contribution.js +4 -7
- package/lib/electron-main/messaging/electron-messaging-contribution.js.map +1 -1
- package/lib/electron-main/theia-electron-window.d.ts +2 -4
- package/lib/electron-main/theia-electron-window.d.ts.map +1 -1
- package/lib/electron-main/theia-electron-window.js +11 -34
- package/lib/electron-main/theia-electron-window.js.map +1 -1
- package/lib/node/i18n/localization-backend-contribution.d.ts.map +1 -1
- package/lib/node/i18n/localization-backend-contribution.js +2 -1
- package/lib/node/i18n/localization-backend-contribution.js.map +1 -1
- package/lib/node/i18n/localization-provider.d.ts.map +1 -1
- package/lib/node/i18n/localization-provider.js +2 -1
- package/lib/node/i18n/localization-provider.js.map +1 -1
- package/package.json +9 -6
- package/src/browser/core-preferences.ts +26 -0
- package/src/browser/hover-service.ts +12 -1
- package/src/browser/icon-theme-service.ts +1 -1
- package/src/browser/shell/application-shell.ts +29 -1
- package/src/browser/shell/tab-bars.ts +111 -17
- package/src/browser/style/hover-service.css +4 -0
- package/src/browser/style/tabs.css +25 -0
- package/src/browser/style/tree.css +1 -0
- package/src/browser/test/jsdom.ts +1 -1
- package/src/browser/tree/tree-iterator.ts +4 -4
- package/src/browser/tree/tree-selection-state.spec.ts +29 -2
- package/src/common/i18n/localization.ts +6 -16
- package/src/common/nls.ts +3 -1
- package/src/common/quick-pick-service.ts +2 -1
- package/src/electron-browser/electron-clipboard-service.ts +2 -3
- package/src/electron-browser/keyboard/electron-keyboard-layout-change-notifier.ts +1 -2
- package/src/electron-browser/menu/electron-context-menu-renderer.ts +10 -17
- package/src/electron-browser/menu/electron-main-menu-factory.ts +51 -44
- package/src/electron-browser/menu/electron-menu-contribution.ts +46 -57
- package/src/electron-browser/messaging/electron-ipc-connection-provider.ts +4 -9
- package/src/electron-browser/preload.ts +208 -0
- package/src/electron-browser/token/electron-token-frontend-module.ts +1 -2
- package/src/electron-browser/window/electron-frontend-application-state.ts +1 -3
- package/src/electron-browser/window/electron-secondary-window-service.ts +7 -31
- package/src/electron-browser/window/electron-window-service.ts +8 -25
- package/src/electron-common/electron-api.ts +134 -0
- package/src/electron-common/messaging/electron-connection-handler.ts +0 -9
- package/src/electron-main/electron-api-main.ts +291 -0
- package/src/electron-main/electron-main-application-module.ts +3 -4
- package/src/electron-main/electron-main-application.ts +33 -37
- package/src/electron-main/electron-security-token-service.ts +2 -1
- package/src/electron-main/messaging/electron-messaging-contribution.ts +8 -10
- package/src/electron-main/theia-electron-window.ts +8 -33
- package/src/node/i18n/localization-backend-contribution.ts +2 -1
- package/src/node/i18n/localization-provider.ts +2 -1
- package/LICENSE +0 -642
- package/electron-shared/@electron/remote/index.d.ts +0 -1
- package/electron-shared/@electron/remote/index.js +0 -1
- package/electron-shared/@electron/remote/main/index.d.ts +0 -1
- package/electron-shared/@electron/remote/main/index.js +0 -1
- package/lib/electron-common/messaging/electron-messages.d.ts +0 -25
- package/lib/electron-common/messaging/electron-messages.d.ts.map +0 -1
- package/lib/electron-common/messaging/electron-messages.js +0 -37
- package/lib/electron-common/messaging/electron-messages.js.map +0 -1
- package/lib/electron-main/electron-native-keymap.d.ts +0 -8
- package/lib/electron-main/electron-native-keymap.d.ts.map +0 -1
- package/lib/electron-main/electron-native-keymap.js +0 -48
- package/lib/electron-main/electron-native-keymap.js.map +0 -1
- package/src/electron-common/messaging/electron-messages.ts +0 -42
- package/src/electron-main/electron-native-keymap.ts +0 -40
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { StopReason } from '../../common/frontend-application-state';
|
|
2
|
-
/** @deprecated @since 1.28 import from common/frontend-application-state instead */
|
|
3
|
-
export { StopReason };
|
|
4
|
-
export declare const RequestTitleBarStyle = "requestTitleBarStyle";
|
|
5
|
-
export declare const TitleBarStyleChanged = "titleBarStyleChanged";
|
|
6
|
-
export declare const TitleBarStyleAtStartup = "titleBarStyleAtStartup";
|
|
7
|
-
export declare const Restart = "restart";
|
|
8
|
-
/**
|
|
9
|
-
* Emitted by main when close requested.
|
|
10
|
-
*/
|
|
11
|
-
export declare const CLOSE_REQUESTED_SIGNAL = "close-requested";
|
|
12
|
-
/**
|
|
13
|
-
* Emitted by window when a reload is requested.
|
|
14
|
-
*/
|
|
15
|
-
export declare const RELOAD_REQUESTED_SIGNAL = "reload-requested";
|
|
16
|
-
/**
|
|
17
|
-
* Emitted by the window when the application changes state
|
|
18
|
-
*/
|
|
19
|
-
export declare const APPLICATION_STATE_CHANGE_SIGNAL = "application-state-changed";
|
|
20
|
-
export interface CloseRequestArguments {
|
|
21
|
-
confirmChannel: string;
|
|
22
|
-
cancelChannel: string;
|
|
23
|
-
reason: StopReason;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=electron-messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"electron-messages.d.ts","sourceRoot":"","sources":["../../../src/electron-common/messaging/electron-messages.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,oFAAoF;AACpF,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAC3D,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC;;GAEG;AACH,eAAO,MAAM,sBAAsB,oBAAoB,CAAC;AACxD;;GAEG;AACH,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D;;GAEG;AACH,eAAO,MAAM,+BAA+B,8BAA8B,CAAC;AAE3E,MAAM,WAAW,qBAAqB;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,UAAU,CAAC;CACtB"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2021 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.APPLICATION_STATE_CHANGE_SIGNAL = exports.RELOAD_REQUESTED_SIGNAL = exports.CLOSE_REQUESTED_SIGNAL = exports.Restart = exports.TitleBarStyleAtStartup = exports.TitleBarStyleChanged = exports.RequestTitleBarStyle = exports.StopReason = void 0;
|
|
19
|
-
const frontend_application_state_1 = require("../../common/frontend-application-state");
|
|
20
|
-
Object.defineProperty(exports, "StopReason", { enumerable: true, get: function () { return frontend_application_state_1.StopReason; } });
|
|
21
|
-
exports.RequestTitleBarStyle = 'requestTitleBarStyle';
|
|
22
|
-
exports.TitleBarStyleChanged = 'titleBarStyleChanged';
|
|
23
|
-
exports.TitleBarStyleAtStartup = 'titleBarStyleAtStartup';
|
|
24
|
-
exports.Restart = 'restart';
|
|
25
|
-
/**
|
|
26
|
-
* Emitted by main when close requested.
|
|
27
|
-
*/
|
|
28
|
-
exports.CLOSE_REQUESTED_SIGNAL = 'close-requested';
|
|
29
|
-
/**
|
|
30
|
-
* Emitted by window when a reload is requested.
|
|
31
|
-
*/
|
|
32
|
-
exports.RELOAD_REQUESTED_SIGNAL = 'reload-requested';
|
|
33
|
-
/**
|
|
34
|
-
* Emitted by the window when the application changes state
|
|
35
|
-
*/
|
|
36
|
-
exports.APPLICATION_STATE_CHANGE_SIGNAL = 'application-state-changed';
|
|
37
|
-
//# sourceMappingURL=electron-messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"electron-messages.js","sourceRoot":"","sources":["../../../src/electron-common/messaging/electron-messages.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;;AAEhF,wFAAqE;AAE5D,2FAFA,uCAAU,OAEA;AAEN,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,sBAAsB,GAAG,wBAAwB,CAAC;AAClD,QAAA,OAAO,GAAG,SAAS,CAAC;AACjC;;GAEG;AACU,QAAA,sBAAsB,GAAG,iBAAiB,CAAC;AACxD;;GAEG;AACU,QAAA,uBAAuB,GAAG,kBAAkB,CAAC;AAC1D;;GAEG;AACU,QAAA,+BAA+B,GAAG,2BAA2B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ElectronMainApplication, ElectronMainApplicationContribution } from './electron-main-application';
|
|
2
|
-
export declare class ElectronNativeKeymap implements ElectronMainApplicationContribution {
|
|
3
|
-
/**
|
|
4
|
-
* Notify all renderer processes on keyboard layout change.
|
|
5
|
-
*/
|
|
6
|
-
onStart(application: ElectronMainApplication): void;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=electron-native-keymap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"electron-native-keymap.d.ts","sourceRoot":"","sources":["../../src/electron-main/electron-native-keymap.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,uBAAuB,EAAE,mCAAmC,EAAE,MAAM,6BAA6B,CAAC;AAE3G,qBACa,oBAAqB,YAAW,mCAAmC;IAE5E;;OAEG;IACH,OAAO,CAAC,WAAW,EAAE,uBAAuB,GAAG,IAAI;CAYtD"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2020 Ericsson and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.ElectronNativeKeymap = void 0;
|
|
25
|
-
const electron_1 = require("@theia/electron/shared/electron");
|
|
26
|
-
const nativeKeymap = require("@theia/electron/shared/native-keymap");
|
|
27
|
-
const inversify_1 = require("inversify");
|
|
28
|
-
let ElectronNativeKeymap = class ElectronNativeKeymap {
|
|
29
|
-
/**
|
|
30
|
-
* Notify all renderer processes on keyboard layout change.
|
|
31
|
-
*/
|
|
32
|
-
onStart(application) {
|
|
33
|
-
nativeKeymap.onDidChangeKeyboardLayout(() => {
|
|
34
|
-
const newLayout = {
|
|
35
|
-
info: nativeKeymap.getCurrentKeyboardLayout(),
|
|
36
|
-
mapping: nativeKeymap.getKeyMap()
|
|
37
|
-
};
|
|
38
|
-
for (const webContent of electron_1.webContents.getAllWebContents()) {
|
|
39
|
-
webContent.send('keyboardLayoutChanged', newLayout);
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
ElectronNativeKeymap = __decorate([
|
|
45
|
-
(0, inversify_1.injectable)()
|
|
46
|
-
], ElectronNativeKeymap);
|
|
47
|
-
exports.ElectronNativeKeymap = ElectronNativeKeymap;
|
|
48
|
-
//# sourceMappingURL=electron-native-keymap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"electron-native-keymap.js","sourceRoot":"","sources":["../../src/electron-main/electron-native-keymap.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,2EAA2E;AAC3E,gFAAgF;;;;;;;;;AAEhF,8DAA8D;AAC9D,qEAAqE;AACrE,yCAAuC;AAIvC,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAE7B;;OAEG;IACH,OAAO,CAAC,WAAoC;QACxC,YAAY,CAAC,yBAAyB,CAAC,GAAG,EAAE;YACxC,MAAM,SAAS,GAAG;gBACd,IAAI,EAAE,YAAY,CAAC,wBAAwB,EAAE;gBAC7C,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE;aACpC,CAAC;YACF,KAAK,MAAM,UAAU,IAAI,sBAAW,CAAC,iBAAiB,EAAE,EAAE;gBACtD,UAAU,CAAC,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC,CAAC;aACvD;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CAEJ,CAAA;AAjBY,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAiBhC;AAjBY,oDAAoB"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2021 TypeFox and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
import { StopReason } from '../../common/frontend-application-state';
|
|
18
|
-
/** @deprecated @since 1.28 import from common/frontend-application-state instead */
|
|
19
|
-
export { StopReason };
|
|
20
|
-
|
|
21
|
-
export const RequestTitleBarStyle = 'requestTitleBarStyle';
|
|
22
|
-
export const TitleBarStyleChanged = 'titleBarStyleChanged';
|
|
23
|
-
export const TitleBarStyleAtStartup = 'titleBarStyleAtStartup';
|
|
24
|
-
export const Restart = 'restart';
|
|
25
|
-
/**
|
|
26
|
-
* Emitted by main when close requested.
|
|
27
|
-
*/
|
|
28
|
-
export const CLOSE_REQUESTED_SIGNAL = 'close-requested';
|
|
29
|
-
/**
|
|
30
|
-
* Emitted by window when a reload is requested.
|
|
31
|
-
*/
|
|
32
|
-
export const RELOAD_REQUESTED_SIGNAL = 'reload-requested';
|
|
33
|
-
/**
|
|
34
|
-
* Emitted by the window when the application changes state
|
|
35
|
-
*/
|
|
36
|
-
export const APPLICATION_STATE_CHANGE_SIGNAL = 'application-state-changed';
|
|
37
|
-
|
|
38
|
-
export interface CloseRequestArguments {
|
|
39
|
-
confirmChannel: string;
|
|
40
|
-
cancelChannel: string;
|
|
41
|
-
reason: StopReason;
|
|
42
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2020 Ericsson and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
import { webContents } from '@theia/electron/shared/electron';
|
|
18
|
-
import * as nativeKeymap from '@theia/electron/shared/native-keymap';
|
|
19
|
-
import { injectable } from 'inversify';
|
|
20
|
-
import { ElectronMainApplication, ElectronMainApplicationContribution } from './electron-main-application';
|
|
21
|
-
|
|
22
|
-
@injectable()
|
|
23
|
-
export class ElectronNativeKeymap implements ElectronMainApplicationContribution {
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Notify all renderer processes on keyboard layout change.
|
|
27
|
-
*/
|
|
28
|
-
onStart(application: ElectronMainApplication): void {
|
|
29
|
-
nativeKeymap.onDidChangeKeyboardLayout(() => {
|
|
30
|
-
const newLayout = {
|
|
31
|
-
info: nativeKeymap.getCurrentKeyboardLayout(),
|
|
32
|
-
mapping: nativeKeymap.getKeyMap()
|
|
33
|
-
};
|
|
34
|
-
for (const webContent of webContents.getAllWebContents()) {
|
|
35
|
-
webContent.send('keyboardLayoutChanged', newLayout);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|