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

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

Issue 671913006: DevTools: Fix frontend compilation errors uncovered by r184188 (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/toolbox/module.json ('k') | 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @suppressGlobalPropertiesCheck
7 */ 8 */
8 WebInspector.Toolbox = function() 9 WebInspector.Toolbox = function()
9 { 10 {
10 if (!window.opener) 11 if (!window.opener)
11 return; 12 return;
12 13
13 var delegate = /** @type {!WebInspector.ToolboxDelegate} */ (window.opener.W ebInspector["app"]); 14 var delegate = /** @type {!WebInspector.ToolboxHost} */ (window.opener.WebIn spector["app"]);
14 15
15 WebInspector.initializeUIUtils(window); 16 WebInspector.initializeUIUtils(window);
16 WebInspector.zoomManager = new WebInspector.ZoomManager(window, delegate.ins pectorFrontendHost()); 17 WebInspector.zoomManager = new WebInspector.ZoomManager(window, delegate.ins pectorFrontendHost());
17 WebInspector.ContextMenu.installHandler(document); 18 WebInspector.ContextMenu.installHandler(document);
18 WebInspector.installPortStyles(document); 19 WebInspector.installPortStyles(document);
19 20
20 var rootView = new WebInspector.RootView(); 21 var rootView = new WebInspector.RootView();
21 delegate.toolboxLoaded(rootView.element); 22 delegate.toolboxLoaded(rootView.element);
22 rootView.attachToBody(); 23 rootView.attachToBody();
23 } 24 }
24 25
25 // FIXME: This stub is invoked from the backend and should be removed 26 // FIXME: This stub is invoked from the backend and should be removed
26 // once we migrate to the "pull" model for extensions retrieval. 27 // once we migrate to the "pull" model for extensions retrieval.
27 WebInspector.addExtensions = function() {} 28 WebInspector.addExtensions = function() {}
28 29
30 /**
31 * FIXME: Remove FIXME once http://crbug.com/425506 is fixed.
32 * @suppressGlobalPropertiesCheck
33 */
29 function windowLoaded() 34 function windowLoaded()
30 { 35 {
31 window.removeEventListener("DOMContentLoaded", windowLoaded, false); 36 window.removeEventListener("DOMContentLoaded", windowLoaded, false);
32 new WebInspector.Toolbox(); 37 new WebInspector.Toolbox();
33 } 38 }
34 39
35 if (document.readyState === "complete") 40 /**
36 new WebInspector.Toolbox(); 41 * FIXME: Remove FIXME once http://crbug.com/425506 is fixed.
37 else 42 * @suppressGlobalPropertiesCheck
38 window.addEventListener("DOMContentLoaded", windowLoaded, false); 43 */
44 function initToolbox()
45 {
46 if (document.readyState === "complete")
47 new WebInspector.Toolbox();
48 else
49 window.addEventListener("DOMContentLoaded", windowLoaded, false);
50 }
51 initToolbox();
OLDNEW
« no previous file with comments | « Source/devtools/front_end/toolbox/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698