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

Side by Side Diff: Source/devtools/front_end/toolbox_bootstrap/Toolbox.js

Issue 648153002: DevTools: Fix "toolbox" app startup in the debug_devtools mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use "complete" state only 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 function windowLoaded()
6 {
7 window.removeEventListener("DOMContentLoaded", windowLoaded, false);
8 new WebInspector.Toolbox();
9 }
10 window.addEventListener("DOMContentLoaded", windowLoaded, false);
11
12 /** 5 /**
13 * @constructor 6 * @constructor
14 */ 7 */
15 WebInspector.Toolbox = function() 8 WebInspector.Toolbox = function()
16 { 9 {
17 if (!window.opener) 10 if (!window.opener)
18 return; 11 return;
19 12
20 WebInspector.zoomManager = new WebInspector.ZoomManager(window.opener.Inspec torFrontendHost); 13 WebInspector.zoomManager = new WebInspector.ZoomManager(window.opener.Inspec torFrontendHost);
21 WebInspector.overridesSupport = window.opener.WebInspector.overridesSupport; 14 WebInspector.overridesSupport = window.opener.WebInspector.overridesSupport;
(...skipping 11 matching lines...) Expand all
33 var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder(); 26 var inspectedPagePlaceholder = new WebInspector.InspectedPagePlaceholder();
34 this._responsiveDesignView = new WebInspector.ResponsiveDesignView(inspected PagePlaceholder); 27 this._responsiveDesignView = new WebInspector.ResponsiveDesignView(inspected PagePlaceholder);
35 this._responsiveDesignView.show(rootView.element); 28 this._responsiveDesignView.show(rootView.element);
36 rootView.attachToBody(); 29 rootView.attachToBody();
37 delegate.toolboxLoaded(this._responsiveDesignView, inspectedPagePlaceholder) ; 30 delegate.toolboxLoaded(this._responsiveDesignView, inspectedPagePlaceholder) ;
38 } 31 }
39 32
40 // FIXME: This stub is invoked from the backend and should be removed 33 // FIXME: This stub is invoked from the backend and should be removed
41 // once we migrate to the "pull" model for extensions retrieval. 34 // once we migrate to the "pull" model for extensions retrieval.
42 WebInspector.addExtensions = function() {} 35 WebInspector.addExtensions = function() {}
36
37 function windowLoaded()
38 {
39 window.removeEventListener("DOMContentLoaded", windowLoaded, false);
40 new WebInspector.Toolbox();
41 }
42
43 if (document.readyState === "complete")
44 new WebInspector.Toolbox();
45 else
46 window.addEventListener("DOMContentLoaded", windowLoaded, false);
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698