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

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

Issue 1273363002: Devtools UI: Show multiple shortcuts, show more shortcuts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
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();
}
}

Powered by Google App Engine
This is Rietveld 408576698