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

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

Issue 660503002: Revert of [DevTools] Inject element into toolbox window, do not load modules there. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 38a46a37f091b13fe2b22f76a18bb5b46340273c..5f557f2549905a1afc37257aba35c478fd7d7cf8 100644
--- a/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
+++ b/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
@@ -10,14 +10,24 @@
if (!window.opener)
return;
- var delegate = /** @type {!WebInspector.ToolboxDelegate} */ (window.opener.WebInspector["app"]);
-
- WebInspector.zoomManager = new WebInspector.ZoomManager(delegate.inspectorFrontendHost());
+ WebInspector.zoomManager = new WebInspector.ZoomManager(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.installPortStyles();
+ var delegate = /** @type {!WebInspector.ToolboxDelegate} */ (window.opener.WebInspector["app"]);
var rootView = new WebInspector.RootView();
- delegate.toolboxLoaded(rootView.element);
+ var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder();
+ this._responsiveDesignView = new WebInspector.ResponsiveDesignView(inspectedPagePlaceholder);
+ this._responsiveDesignView.show(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