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

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

Issue 2573323002: Revert of [DevTools] Remove methods on Common.Event. (Closed)
Patch Set: 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/ApplicationCacheItemsView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js
index f154fd658778514d4f2344e7bd477f88ed08e590..fbe91d0818b086f34e695d93716b028b27c026ac 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/ApplicationCacheItemsView.js
@@ -36,7 +36,7 @@
this._deleteButton = new UI.ToolbarButton(Common.UIString('Delete'), 'largeicon-delete');
this._deleteButton.setVisible(false);
- this._deleteButton.addEventListener(UI.ToolbarButton.Events.Click, this._deleteButtonClicked, this);
+ this._deleteButton.addEventListener('click', this._deleteButtonClicked, this);
this._connectivityIcon = createElement('label', 'dt-icon-label');
this._connectivityIcon.style.margin = '0 2px 0 5px';
@@ -239,9 +239,6 @@
this._dataGrid.rootNode().children[0].selected = true;
}
- /**
- * @param {!Common.Event} event
- */
_deleteButtonClicked(event) {
if (!this._dataGrid || !this._dataGrid.selectedNode)
return;

Powered by Google App Engine
This is Rietveld 408576698