Index: Source/devtools/front_end/ui/ActionRegistry.js |
diff --git a/Source/devtools/front_end/ui/ActionRegistry.js b/Source/devtools/front_end/ui/ActionRegistry.js |
index ede0f0ce93a0e5c83327b07ef9cfa62430d4c800..387c46257f7152b6ac1557613c4aa6b7a29d574b 100644 |
--- a/Source/devtools/front_end/ui/ActionRegistry.js |
+++ b/Source/devtools/front_end/ui/ActionRegistry.js |
@@ -65,6 +65,17 @@ WebInspector.ActionRegistry.prototype = { |
{ |
/** @type {!WebInspector.ActionDelegate} */(actionDelegate).handleAction(WebInspector.context, actionId); |
} |
+ }, |
+ |
+ /** |
+ * @param {string} actionId |
+ * @return {!Object} |
+ */ |
+ getActionDescriptor: function(actionId) |
pfeldman
2015/08/18 05:08:31
s/get//
samli
2015/08/19 05:27:15
Ack.
|
+ { |
+ var extension = this._actionsById.get(actionId); |
+ console.assert(extension, "No action found for actionId '" + actionId + "'"); |
+ return extension.descriptor(); |
} |
} |