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

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: kill ToolbarToggle.setActive() 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..4e445c6ee2dda2ae80ba0db5fb02fadbe3dd40d2 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,20 @@ WebInspector.Action = class extends WebInspector.Object {
}
/**
+ * @return {string}
+ */
+ toggledIcon() {
+ return this._extension.descriptor()['toggledIconClass'] || '';
+ }
+
+ /**
+ * @return {boolean}
+ */
+ toggleWithRedColor() {
+ return !!this._extension.descriptor()['toggleWithRedColor'];
+ }
+
+ /**
* @param {boolean} enabled
*/
setEnabled(enabled) {

Powered by Google App Engine
This is Rietveld 408576698