| 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..712e4b9f3f063e14ea7b7ca55ccab973ef8f9eb5 100644
|
| --- a/Source/devtools/front_end/ui/ActionRegistry.js
|
| +++ b/Source/devtools/front_end/ui/ActionRegistry.js
|
| @@ -65,6 +65,28 @@ WebInspector.ActionRegistry.prototype = {
|
| {
|
| /** @type {!WebInspector.ActionDelegate} */(actionDelegate).handleAction(WebInspector.context, actionId);
|
| }
|
| + },
|
| +
|
| + /**
|
| + * @param {string} actionId
|
| + * @return {string}
|
| + */
|
| + actionTitle: function(actionId)
|
| + {
|
| + var extension = this._actionsById.get(actionId);
|
| + console.assert(extension, "No action found for actionId '" + actionId + "'");
|
| + return extension.descriptor()["title"] || "";
|
| + },
|
| +
|
| + /**
|
| + * @param {string} actionId
|
| + * @return {string}
|
| + */
|
| + actionIcon: function(actionId)
|
| + {
|
| + var extension = this._actionsById.get(actionId);
|
| + console.assert(extension, "No action found for actionId '" + actionId + "'");
|
| + return extension.descriptor()["iconClass"] || "";
|
| }
|
| }
|
|
|
|
|