Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1643)

Unified Diff: Source/devtools/front_end/toolbox_bootstrap/Toolbox.js

Issue 653613002: [DevTools] Inject element into toolbox window, do not load modules there. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
diff --git a/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js b/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
index e4b53c8bf8baed8cbab2ad31b4ed932f412a163e..ad1259ac5d2ad0be61e17010722fa8f5d9d82b60 100644
--- a/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
+++ b/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
@@ -10,26 +10,16 @@ WebInspector.Toolbox = function()
if (!window.opener)
return;
+ var delegate = /** @type {!WebInspector.ToolboxDelegate} */ (window.opener.WebInspector["app"]);
+
WebInspector.initializeUIUtils(window);
- WebInspector.zoomManager = new WebInspector.ZoomManager(window, window.opener.InspectorFrontendHost);
- WebInspector.overridesSupport = window.opener.WebInspector.overridesSupport;
- WebInspector.settings = window.opener.WebInspector.settings;
- WebInspector.experimentsSettings = window.opener.WebInspector.experimentsSettings;
- WebInspector.targetManager = window.opener.WebInspector.targetManager;
- WebInspector.workspace = window.opener.WebInspector.workspace;
- WebInspector.cssWorkspaceBinding = window.opener.WebInspector.cssWorkspaceBinding;
- WebInspector.Revealer = window.opener.WebInspector.Revealer;
- WebInspector.ContextMenu = window.opener.WebInspector.ContextMenu;
+ WebInspector.zoomManager = new WebInspector.ZoomManager(window, delegate.inspectorFrontendHost());
WebInspector.ContextMenu.installHandler(document);
WebInspector.installPortStyles(document);
- var delegate = /** @type {!WebInspector.ToolboxDelegate} */ (window.opener.WebInspector["app"]);
var rootView = new WebInspector.RootView();
- var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder();
- this._responsiveDesignView = new WebInspector.ResponsiveDesignView(inspectedPagePlaceholder);
- this._responsiveDesignView.show(rootView.element);
+ delegate.toolboxLoaded(rootView.element);
rootView.attachToBody();
- delegate.toolboxLoaded(this._responsiveDesignView, inspectedPagePlaceholder);
}
// FIXME: This stub is invoked from the backend and should be removed
« no previous file with comments | « Source/devtools/front_end/toolbox/ToolboxDelegate.js ('k') | Source/devtools/front_end/toolbox_bootstrap/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698