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

Unified Diff: third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.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/animation/AnimationTimeline.js
diff --git a/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js b/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
index 643e9148c0615312bbc8deb3d9125a8ba15828aa..fc102c39548cbd63cd49d1d1af568e8639e24930 100644
--- a/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
+++ b/third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js
@@ -112,12 +112,12 @@ Animation.AnimationTimeline = class extends UI.VBox {
var toolbarContainer = this.contentElement.createChild('div', 'animation-timeline-toolbar-container');
var topToolbar = new UI.Toolbar('animation-timeline-toolbar', toolbarContainer);
var clearButton = new UI.ToolbarButton(Common.UIString('Clear all'), 'largeicon-clear');
- clearButton.addEventListener('click', this._reset.bind(this));
+ clearButton.addEventListener(UI.ToolbarButton.Events.Click, this._reset.bind(this));
topToolbar.appendToolbarItem(clearButton);
topToolbar.appendSeparator();
this._pauseButton = new UI.ToolbarToggle(Common.UIString('Pause all'), 'largeicon-pause', 'largeicon-resume');
- this._pauseButton.addEventListener('click', this._togglePauseAll.bind(this));
+ this._pauseButton.addEventListener(UI.ToolbarButton.Events.Click, this._togglePauseAll.bind(this));
topToolbar.appendToolbarItem(this._pauseButton);
var playbackRateControl = toolbarContainer.createChild('div', 'animation-playback-rate-control');
@@ -147,7 +147,7 @@ Animation.AnimationTimeline = class extends UI.VBox {
this._controlButton = new UI.ToolbarToggle(Common.UIString('Replay timeline'), 'largeicon-replay-animation');
this._controlState = Animation.AnimationTimeline._ControlState.Replay;
this._controlButton.setToggled(true);
- this._controlButton.addEventListener('click', this._controlButtonToggle.bind(this));
+ this._controlButton.addEventListener(UI.ToolbarButton.Events.Click, this._controlButtonToggle.bind(this));
toolbar.appendToolbarItem(this._controlButton);
var gridHeader = container.createChild('div', 'animation-grid-header');

Powered by Google App Engine
This is Rietveld 408576698