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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.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/sources/SourcesNavigator.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
index 0b8dbf6c6a79e5fe9438b149e9bf967f0ed58b65..d8611db33173a02eb3ab09da02a8a5f6cf33e3e4 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesNavigator.js
@@ -146,7 +146,8 @@ Sources.FilesNavigatorView = class extends Sources.NavigatorView {
var toolbar = new UI.Toolbar('navigator-toolbar');
var title = Common.UIString('Add folder to workspace');
var addButton = new UI.ToolbarButton(title, 'largeicon-add', title);
- addButton.addEventListener('click', () => Workspace.isolatedFileSystemManager.addFileSystem());
+ addButton.addEventListener(
+ UI.ToolbarButton.Events.Click, () => Workspace.isolatedFileSystemManager.addFileSystem());
toolbar.appendToolbarItem(addButton);
this.element.insertBefore(toolbar.element, this.element.firstChild);
}
@@ -197,7 +198,7 @@ Sources.SnippetsNavigatorView = class extends Sources.NavigatorView {
super();
var toolbar = new UI.Toolbar('navigator-toolbar');
var newButton = new UI.ToolbarButton('', 'largeicon-add', Common.UIString('New Snippet'));
- newButton.addEventListener('click', this._handleCreateSnippet.bind(this));
+ newButton.addEventListener(UI.ToolbarButton.Events.Click, this._handleCreateSnippet.bind(this));
toolbar.appendToolbarItem(newButton);
this.element.insertBefore(toolbar.element, this.element.firstChild);
}

Powered by Google App Engine
This is Rietveld 408576698