| Index: Source/devtools/front_end/ui/Toolbar.js
|
| diff --git a/Source/devtools/front_end/ui/Toolbar.js b/Source/devtools/front_end/ui/Toolbar.js
|
| index 39bce5a2139a301130966f7f5253814ec38ad264..dcfad5c584b2a6ac6d2567680b6b2de909b128f6 100644
|
| --- a/Source/devtools/front_end/ui/Toolbar.js
|
| +++ b/Source/devtools/front_end/ui/Toolbar.js
|
| @@ -666,6 +666,18 @@ WebInspector.ToolbarButton.prototype = {
|
| }
|
|
|
| /**
|
| + * @param {string} actionId
|
| + * @return {!WebInspector.ToolbarButton}
|
| + */
|
| +WebInspector.ToolbarButton.createActionButton = function(actionId)
|
| +{
|
| + var registry = WebInspector.actionRegistry;
|
| + var button = new WebInspector.ToolbarButton(registry.actionTitle(actionId), registry.actionIcon(actionId));
|
| + button.setAction(actionId);
|
| + return button;
|
| +}
|
| +
|
| +/**
|
| * @constructor
|
| * @extends {WebInspector.ToolbarButton}
|
| * @param {string} title
|
|
|