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

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

Issue 2482593003: DevTools: eliminate ToolbarButton.setState method; cleanup toolbar.css (Closed)
Patch Set: Created 4 years, 1 month 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: third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.js b/third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.js
index b37cff6e91760972af11451a9e23364a2e7849ac..a8fb9810414c2f4e394af898f94cae4347455195 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/ActionRegistry.js
@@ -113,6 +113,13 @@ WebInspector.Action = class extends WebInspector.Object {
}
/**
+ * @return {string}
+ */
+ toggledIcon() {
+ return this._extension.descriptor()['toggledIconClass'] || '';
+ }
+
+ /**
* @param {boolean} enabled
*/
setEnabled(enabled) {

Powered by Google App Engine
This is Rietveld 408576698