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

Unified Diff: Source/devtools/front_end/ui/ContextMenu.js

Issue 660503002: Revert of [DevTools] Inject element into toolbox window, do not load modules there. (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_bootstrap/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/ui/ContextMenu.js
diff --git a/Source/devtools/front_end/ui/ContextMenu.js b/Source/devtools/front_end/ui/ContextMenu.js
index b81b0adc96c20642064a85f1f82095b128107999..6297985f0fbf455f657500f10703f012760bdaaf 100644
--- a/Source/devtools/front_end/ui/ContextMenu.js
+++ b/Source/devtools/front_end/ui/ContextMenu.js
@@ -197,9 +197,8 @@
* @constructor
* @extends {WebInspector.ContextSubMenuItem}
* @param {!Event} event
- * @param {!Window=} opt_window
- */
-WebInspector.ContextMenu = function(event, opt_window)
+ */
+WebInspector.ContextMenu = function(event)
{
WebInspector.ContextSubMenuItem.call(this, this, "");
/** @type {!Array.<!Promise.<!WebInspector.ContextMenu.Provider> >} */
@@ -211,7 +210,6 @@
this._y = event.y;
this._handlers = {};
this._id = 0;
- this._window = opt_window || window;
}
WebInspector.ContextMenu.initialize = function()
@@ -280,7 +278,7 @@
var softMenu = new WebInspector.SoftContextMenu(menuObject, this._itemSelected.bind(this));
softMenu.show(this._x, this._y);
} else {
- InspectorFrontendHost.showContextMenuAtPoint(this._x, this._y, menuObject, this._window);
+ InspectorFrontendHost.showContextMenuAtPoint(this._x, this._y, menuObject);
InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ContextMenuCleared, this._menuCleared, this);
InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Events.ContextMenuItemSelected, this._onItemSelected, this);
}
« no previous file with comments | « Source/devtools/front_end/toolbox_bootstrap/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698