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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.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/emulation/DeviceModeToolbar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
index a65842454acd5b1719fe5f6906c806054878b0a1..b7dec58ff9d4436da9a4a750cd47d4f954ea6841 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js
@@ -170,7 +170,7 @@ Emulation.DeviceModeToolbar = class {
toolbar.appendToolbarItem(
this._wrapToolbarItem(createElementWithClass('div', 'device-mode-empty-toolbar-element')));
this._modeButton = new UI.ToolbarButton('', 'largeicon-rotate-screen');
- this._modeButton.addEventListener('click', this._modeMenuClicked, this);
+ this._modeButton.addEventListener(UI.ToolbarButton.Events.Click, this._modeMenuClicked, this);
toolbar.appendToolbarItem(this._modeButton);
}

Powered by Google App Engine
This is Rietveld 408576698