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

Unified Diff: Source/devtools/front_end/elements/AnimationTimeline.js

Issue 1081753002: Devtools Animations: Support multiple frames in the animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months 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: Source/devtools/front_end/elements/AnimationTimeline.js
diff --git a/Source/devtools/front_end/elements/AnimationTimeline.js b/Source/devtools/front_end/elements/AnimationTimeline.js
index 28b48ca2d710e6b1f28aac949748cdc0a8d59373..291f2cf5dd801ff60a13e41b2730ef823695d008 100644
--- a/Source/devtools/front_end/elements/AnimationTimeline.js
+++ b/Source/devtools/front_end/elements/AnimationTimeline.js
@@ -46,7 +46,7 @@ WebInspector.AnimationTimeline.prototype = {
this._animationsPlaybackRate = WebInspector.AnimationsSidebarPane.GlobalPlaybackRates[event.target.value];
var target = WebInspector.targetManager.mainTarget();
if (target)
- target.animationAgent().setPlaybackRate(this._animationsPlaybackRate);
+ target.animationModel.setPlaybackRate(this._animationsPlaybackRate);
this._playbackLabel.textContent = this._animationsPlaybackRate + "x";
WebInspector.userMetrics.AnimationsPlaybackRateChanged.record();
if (this._scrubberPlayer)
@@ -366,7 +366,7 @@ WebInspector.AnimationTimeline.prototype = {
var target = WebInspector.targetManager.mainTarget();
if (target)
- target.animationAgent().setPlaybackRate(0);
+ target.animationModel.setPlaybackRate(0);
return true;
},
@@ -394,7 +394,7 @@ WebInspector.AnimationTimeline.prototype = {
this._timelineScrubberHead.window().requestAnimationFrame(this._updateScrubber.bind(this));
var target = WebInspector.targetManager.mainTarget();
if (target)
- target.animationAgent().setPlaybackRate(this._animationsPlaybackRate);
+ target.animationModel.setPlaybackRate(this._animationsPlaybackRate);
},
__proto__: WebInspector.VBox.prototype
« no previous file with comments | « Source/devtools/front_end/elements/AnimationControlPane.js ('k') | Source/devtools/front_end/sdk/AnimationModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698