mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
sandbox - add webFrame APIs
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import 'vs/css!./media/issueReporter';
|
||||
import { clipboard, shell, webFrame } from 'electron';
|
||||
import { ipcRenderer } from 'vs/base/electron-sandbox/globals';
|
||||
import { clipboard, shell } from 'electron';
|
||||
import { ipcRenderer, webFrame } from 'vs/base/electron-sandbox/globals';
|
||||
import * as os from 'os';
|
||||
import * as browser from 'vs/base/browser/browser';
|
||||
import { $ } from 'vs/base/browser/dom';
|
||||
|
||||
@@ -70,6 +70,17 @@
|
||||
|
||||
getZoomFactor() {
|
||||
return webFrame.getZoomFactor();
|
||||
},
|
||||
|
||||
getZoomLevel() {
|
||||
return webFrame.getZoomLevel();
|
||||
},
|
||||
|
||||
/**
|
||||
* @param {number} level
|
||||
*/
|
||||
setZoomLevel(level) {
|
||||
webFrame.setZoomLevel(level);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import 'vs/css!./media/processExplorer';
|
||||
import { webFrame, clipboard } from 'electron';
|
||||
import { ipcRenderer } from 'vs/base/electron-sandbox/globals';
|
||||
import { clipboard } from 'electron';
|
||||
import { webFrame, ipcRenderer } from 'vs/base/electron-sandbox/globals';
|
||||
import { repeat } from 'vs/base/common/strings';
|
||||
import { totalmem } from 'os';
|
||||
import product from 'vs/platform/product/common/product';
|
||||
|
||||
Reference in New Issue
Block a user