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

Unified Diff: Source/devtools/front_end/ui/Toolbar.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
« no previous file with comments | « Source/devtools/front_end/ui/KeyboardShortcut.js ('k') | Source/devtools/front_end/ui/Tooltip.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 331056bfd793d36ab517514dfb7d13e95c83f9bc..a56de42eb1b35fc32905035c56431fa97d5ae82c 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
« no previous file with comments | « Source/devtools/front_end/ui/KeyboardShortcut.js ('k') | Source/devtools/front_end/ui/Tooltip.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698