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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/toolbox/module.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ad1259ac5d2ad0be61e17010722fa8f5d9d82b60..e9cf9a31df2ba27fb8baaa91c2c55ddea1aeb85c 100644
--- a/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
+++ b/Source/devtools/front_end/toolbox_bootstrap/Toolbox.js
@@ -4,13 +4,14 @@
/**
* @constructor
+ * @suppressGlobalPropertiesCheck
*/
WebInspector.Toolbox = function()
{
if (!window.opener)
return;
- var delegate = /** @type {!WebInspector.ToolboxDelegate} */ (window.opener.WebInspector["app"]);
+ var delegate = /** @type {!WebInspector.ToolboxHost} */ (window.opener.WebInspector["app"]);
WebInspector.initializeUIUtils(window);
WebInspector.zoomManager = new WebInspector.ZoomManager(window, delegate.inspectorFrontendHost());
@@ -26,13 +27,25 @@ WebInspector.Toolbox = function()
// once we migrate to the "pull" model for extensions retrieval.
WebInspector.addExtensions = function() {}
+/**
+ * FIXME: Remove FIXME once http://crbug.com/425506 is fixed.
+ * @suppressGlobalPropertiesCheck
+ */
function windowLoaded()
{
window.removeEventListener("DOMContentLoaded", windowLoaded, false);
new WebInspector.Toolbox();
}
-if (document.readyState === "complete")
- new WebInspector.Toolbox();
-else
- window.addEventListener("DOMContentLoaded", windowLoaded, false);
+/**
+ * FIXME: Remove FIXME once http://crbug.com/425506 is fixed.
+ * @suppressGlobalPropertiesCheck
+ */
+function initToolbox()
+{
+ if (document.readyState === "complete")
+ new WebInspector.Toolbox();
+ else
+ window.addEventListener("DOMContentLoaded", windowLoaded, false);
+}
+initToolbox();
« 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