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

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

Issue 675753002: [DevTools] Drop "ui" module from toolbox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rootview bug fix 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
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 * @suppressGlobalPropertiesCheck 7 * @suppressGlobalPropertiesCheck
8 */ 8 */
9 WebInspector.Toolbox = function() 9 WebInspector.Toolbox = function()
10 { 10 {
11 if (!window.opener) 11 if (!window.opener)
12 return; 12 return;
13 13
14 var delegate = /** @type {!WebInspector.ToolboxHost} */ (window.opener.WebIn spector["app"]); 14 var host = /** @type {!WebInspector.ToolboxHost} */ (window.opener.WebInspec tor["app"]);
15 15 host.toolboxLoaded(document);
16 WebInspector.initializeUIUtils(window);
17 WebInspector.zoomManager = new WebInspector.ZoomManager(window, delegate.ins pectorFrontendHost());
18 WebInspector.ContextMenu.installHandler(document);
19 WebInspector.installPortStyles(document);
20
21 var rootView = new WebInspector.RootView();
22 delegate.toolboxLoaded(rootView.element);
23 rootView.attachToBody();
24 } 16 }
25 17
26 // FIXME: This stub is invoked from the backend and should be removed 18 // FIXME: This stub is invoked from the backend and should be removed
27 // once we migrate to the "pull" model for extensions retrieval. 19 // once we migrate to the "pull" model for extensions retrieval.
28 WebInspector.addExtensions = function() {} 20 WebInspector.addExtensions = function() {}
29 21
30 /** 22 /**
31 * FIXME: Remove FIXME once http://crbug.com/425506 is fixed. 23 * FIXME: Remove FIXME once http://crbug.com/425506 is fixed.
32 * @suppressGlobalPropertiesCheck 24 * @suppressGlobalPropertiesCheck
33 */ 25 */
34 function windowLoaded() 26 function windowLoaded()
35 { 27 {
36 window.removeEventListener("DOMContentLoaded", windowLoaded, false); 28 window.removeEventListener("DOMContentLoaded", windowLoaded, false);
37 new WebInspector.Toolbox(); 29 new WebInspector.Toolbox();
38 } 30 }
39 31
40 /** 32 /**
41 * FIXME: Remove FIXME once http://crbug.com/425506 is fixed. 33 * FIXME: Remove FIXME once http://crbug.com/425506 is fixed.
42 * @suppressGlobalPropertiesCheck 34 * @suppressGlobalPropertiesCheck
43 */ 35 */
44 function initToolbox() 36 function initToolbox()
45 { 37 {
46 if (document.readyState === "complete") 38 if (document.readyState === "complete")
47 new WebInspector.Toolbox(); 39 new WebInspector.Toolbox();
48 else 40 else
49 window.addEventListener("DOMContentLoaded", windowLoaded, false); 41 window.addEventListener("DOMContentLoaded", windowLoaded, false);
50 } 42 }
51 initToolbox(); 43 initToolbox();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698