| 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 6297985f0fbf455f657500f10703f012760bdaaf..dd2efc3e4c4698d01e81759d3dd7aa9cafd4b89f 100644
|
| --- a/Source/devtools/front_end/ui/ContextMenu.js
|
| +++ b/Source/devtools/front_end/ui/ContextMenu.js
|
| @@ -224,6 +224,24 @@ WebInspector.ContextMenu.initialize = function()
|
| }
|
| }
|
|
|
| +/**
|
| + * @param {!Document} doc
|
| + */
|
| +WebInspector.ContextMenu.installHandler = function(doc)
|
| +{
|
| + doc.body.addEventListener("contextmenu", handler, false);
|
| +
|
| + /**
|
| + * @param {!Event} event
|
| + */
|
| + function handler(event)
|
| + {
|
| + var contextMenu = new WebInspector.ContextMenu(event);
|
| + contextMenu.appendApplicableItems(/** @type {!Object} */ (event.target));
|
| + contextMenu.show();
|
| + }
|
| +}
|
| +
|
| WebInspector.ContextMenu.prototype = {
|
| /**
|
| * @return {number}
|
|
|