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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/DatabaseTableView.js

Issue 2553043003: [DevTools] Remove methods on Common.Event. (Closed)
Patch Set: rebased Created 4 years 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/resources/DatabaseTableView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseTableView.js b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseTableView.js
index 6b98450edc9ed48b5f63772eac16ff6118f0e98f..ce6f2629ce136181d4eb43c0225c81cd71de9208 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/DatabaseTableView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/DatabaseTableView.js
@@ -38,7 +38,7 @@ Resources.DatabaseTableView = class extends UI.SimpleView {
this._visibleColumnsSetting = Common.settings.createSetting('databaseTableViewVisibleColumns', {});
this.refreshButton = new UI.ToolbarButton(Common.UIString('Refresh'), 'largeicon-refresh');
- this.refreshButton.addEventListener('click', this._refreshButtonClicked, this);
+ this.refreshButton.addEventListener(UI.ToolbarButton.Events.Click, this._refreshButtonClicked, this);
this._visibleColumnsInput = new UI.ToolbarInput(Common.UIString('Visible columns'), 1);
this._visibleColumnsInput.addEventListener(UI.ToolbarInput.Event.TextChanged, this._onVisibleColumnsChanged, this);
}
@@ -134,6 +134,9 @@ Resources.DatabaseTableView = class extends UI.SimpleView {
this.element.appendChild(errorMsgElement);
}
+ /**
+ * @param {!Common.Event} event
+ */
_refreshButtonClicked(event) {
this.update();
}

Powered by Google App Engine
This is Rietveld 408576698