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

Unified Diff: third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js

Issue 2678623002: DevTools: pass title when creating settings (Closed)
Patch Set: a Created 3 years, 10 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
Index: third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js b/third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js
index c76c16d81fc490654cf058ce37da35a95d5def8d..cfa1feadffa4a8e34eafcd7242922687af370ad5 100644
--- a/third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/elements/EventListenersWidget.js
@@ -43,16 +43,16 @@ Elements.EventListenersWidget = class extends UI.ThrottledWidget {
'eventListenerDispatchFilterType', Elements.EventListenersWidget.DispatchFilterBy.All);
this._dispatchFilterBySetting.addChangeListener(this.update.bind(this));
- this._showFrameworkListenersSetting = Common.settings.createSetting('showFrameowkrListeners', true);
+ this._showFrameworkListenersSetting =
+ Common.settings.createSetting('showFrameowkrListeners', true, false, Common.UIString('Framework listeners'));
this._showFrameworkListenersSetting.addChangeListener(this._showFrameworkListenersChanged.bind(this));
this._eventListenersView = new Components.EventListenersView(this.element, this.update.bind(this));
var refreshButton = new UI.ToolbarButton(Common.UIString('Refresh'), 'largeicon-refresh');
refreshButton.addEventListener(UI.ToolbarButton.Events.Click, this.update.bind(this));
this._toolbarItems.push(refreshButton);
- this._toolbarItems.push(new UI.ToolbarCheckbox(
- Common.UIString('Ancestors'), Common.UIString('Show listeners on the ancestors'),
- this._showForAncestorsSetting));
+ this._toolbarItems.push(new UI.ToolbarSettingCheckbox(
+ this._showForAncestorsSetting, Common.UIString('Show listeners on the ancestors')));
var dispatchFilter = new UI.ToolbarComboBox(this._onDispatchFilterTypeChanged.bind(this));
/**
@@ -72,9 +72,8 @@ Elements.EventListenersWidget = class extends UI.ThrottledWidget {
this, Common.UIString('Blocking'), Elements.EventListenersWidget.DispatchFilterBy.Blocking);
dispatchFilter.setMaxWidth(200);
this._toolbarItems.push(dispatchFilter);
- this._toolbarItems.push(new UI.ToolbarCheckbox(
- Common.UIString('Framework listeners'), Common.UIString('Resolve event listeners bound with framework'),
- this._showFrameworkListenersSetting));
+ this._toolbarItems.push(new UI.ToolbarSettingCheckbox(
+ this._showFrameworkListenersSetting, Common.UIString('Resolve event listeners bound with framework')));
UI.context.addFlavorChangeListener(SDK.DOMNode, this.update, this);
this.update();

Powered by Google App Engine
This is Rietveld 408576698