WebInspector has been split up

This commit is contained in:
Cheng Zhao 2017-01-25 08:44:01 +09:00 committed by Kevin Sawicki
parent 0a7c51b9aa
commit c72438f09f
5 changed files with 11 additions and 8 deletions

View file

@ -3,7 +3,8 @@ window.onload = function () {
window.InspectorFrontendHost.showContextMenuAtPoint = createMenu window.InspectorFrontendHost.showContextMenuAtPoint = createMenu
// Use dialog API to override file chooser dialog. // Use dialog API to override file chooser dialog.
window.WebInspector.createFileSelectorElement = createFileSelectorElement // Note: It will be moved to UI after Chrome 57.
window.Bindings.createFileSelectorElement = createFileSelectorElement
} }
window.confirm = function (message, title) { window.confirm = function (message, title) {

View file

@ -1689,8 +1689,8 @@ describe('BrowserWindow module', function () {
} }
const showLastPanel = function () { const showLastPanel = function () {
const lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id const lastPanelId = UI.inspectorView._tabbedPane._tabs.peekLast().id
WebInspector.inspectorView.showPanel(lastPanelId) UI.inspectorView.showPanel(lastPanelId)
} }
devToolsWebContents.executeJavaScript(`(${showLastPanel})()`, false, () => { devToolsWebContents.executeJavaScript(`(${showLastPanel})()`, false, () => {
showPanelTimeoutId = setTimeout(show, 100) showPanelTimeoutId = setTimeout(show, 100)

View file

@ -13,8 +13,8 @@
var showPanelIntevalId = setInterval(function () { var showPanelIntevalId = setInterval(function () {
if (webContents.devToolsWebContents) { if (webContents.devToolsWebContents) {
webContents.devToolsWebContents.executeJavaScript('(' + (function () { webContents.devToolsWebContents.executeJavaScript('(' + (function () {
var lastPanelId = WebInspector.inspectorView._tabbedPane._tabs.peekLast().id var lastPanelId = UI.inspectorView._tabbedPane._tabs.peekLast().id
WebInspector.inspectorView.showPanel(lastPanelId) UI.inspectorView.showPanel(lastPanelId)
}).toString() + ')()') }).toString() + ')()')
} else { } else {
clearInterval(showPanelIntevalId) clearInterval(showPanelIntevalId)

View file

@ -28,8 +28,10 @@
"serviceworker": true "serviceworker": true
}, },
"globals": [ "globals": [
"WebView", "Bindings",
"WebInspector" "Components",
"UI",
"WebView"
] ]
} }
} }

2
vendor/brightray vendored

@ -1 +1 @@
Subproject commit 593011033feed39fa037fa147648cfe93a4759bf Subproject commit a400856b41aa0485a4b43ba1714c84fef4bb06f8