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

Side by Side Diff: Source/devtools/front_end/main/AdvancedApp.js

Issue 385173007: DevTools: move UI components to target observers in preparation to early UI initialization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/inspector.html ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.App} 7 * @extends {WebInspector.App}
8 */ 8 */
9 WebInspector.AdvancedApp = function() 9 WebInspector.AdvancedApp = function()
10 { 10 {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 */ 163 */
164 WebInspector.Toolbox = function() 164 WebInspector.Toolbox = function()
165 { 165 {
166 if (!window.opener) 166 if (!window.opener)
167 return; 167 return;
168 168
169 WebInspector.zoomManager = window.opener.WebInspector.zoomManager; 169 WebInspector.zoomManager = window.opener.WebInspector.zoomManager;
170 WebInspector.overridesSupport = window.opener.WebInspector.overridesSupport; 170 WebInspector.overridesSupport = window.opener.WebInspector.overridesSupport;
171 WebInspector.settings = window.opener.WebInspector.settings; 171 WebInspector.settings = window.opener.WebInspector.settings;
172 WebInspector.experimentsSettings = window.opener.WebInspector.experimentsSet tings; 172 WebInspector.experimentsSettings = window.opener.WebInspector.experimentsSet tings;
173 WebInspector.cssModel = window.opener.WebInspector.cssModel; 173 WebInspector.targetManager = window.opener.WebInspector.targetManager;
174 WebInspector.domModel = window.opener.WebInspector.domModel;
175 WebInspector.workspace = window.opener.WebInspector.workspace; 174 WebInspector.workspace = window.opener.WebInspector.workspace;
176 WebInspector.resourceTreeModel = window.opener.WebInspector.resourceTreeMode l;
177 WebInspector.Revealer = window.opener.WebInspector.Revealer; 175 WebInspector.Revealer = window.opener.WebInspector.Revealer;
178 WebInspector.ContextMenu = window.opener.WebInspector.ContextMenu; 176 WebInspector.ContextMenu = window.opener.WebInspector.ContextMenu;
179 WebInspector.installPortStyles(); 177 WebInspector.installPortStyles();
180 178
181 var advancedApp = /** @type {!WebInspector.AdvancedApp} */ (window.opener.We bInspector.app); 179 var advancedApp = /** @type {!WebInspector.AdvancedApp} */ (window.opener.We bInspector.app);
182 var rootView = new WebInspector.RootView(); 180 var rootView = new WebInspector.RootView();
183 this._inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder() ; 181 this._inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder() ;
184 this._inspectedPagePlaceholder.addEventListener(WebInspector.InspectedPagePl aceholder.Events.Update, advancedApp._onSetInspectedPageBounds.bind(advancedApp, true)); 182 this._inspectedPagePlaceholder.addEventListener(WebInspector.InspectedPagePl aceholder.Events.Update, advancedApp._onSetInspectedPageBounds.bind(advancedApp, true));
185 this._responsiveDesignView = new WebInspector.ResponsiveDesignView(this._ins pectedPagePlaceholder); 183 this._responsiveDesignView = new WebInspector.ResponsiveDesignView(this._ins pectedPagePlaceholder);
186 this._responsiveDesignView.show(rootView.element); 184 this._responsiveDesignView.show(rootView.element);
187 rootView.attachToBody(); 185 rootView.attachToBody();
188 advancedApp._toolboxLoaded(this); 186 advancedApp._toolboxLoaded(this);
189 } 187 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/inspector.html ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698