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

Side by Side Diff: Source/devtools/front_end/sdk/AnimationModel.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/elements/AnimationTimeline.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 /** 6 /**
7 * @constructor 7 * @constructor
8 * @extends {WebInspector.SDKModel} 8 * @extends {WebInspector.SDKModel}
9 * @param {!WebInspector.Target} target 9 * @param {!WebInspector.Target} target
10 */ 10 */
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 }, 56 },
57 57
58 /** 58 /**
59 * @param {string} playerId 59 * @param {string} playerId
60 */ 60 */
61 animationPlayerCanceled: function(playerId) 61 animationPlayerCanceled: function(playerId)
62 { 62 {
63 this.dispatchEventToListeners(WebInspector.AnimationModel.Events.Animati onPlayerCanceled, { "playerId": playerId }); 63 this.dispatchEventToListeners(WebInspector.AnimationModel.Events.Animati onPlayerCanceled, { "playerId": playerId });
64 }, 64 },
65 65
66 /**
67 * @param {number} playbackRate
68 */
69 setPlaybackRate: function(playbackRate)
70 {
71 this._agent.setPlaybackRate(playbackRate);
72 },
73
66 ensureEnabled: function() 74 ensureEnabled: function()
67 { 75 {
68 if (this._enabled) 76 if (this._enabled)
69 return; 77 return;
70 this._agent.enable(); 78 this._agent.enable();
71 this._enabled = true; 79 this._enabled = true;
72 }, 80 },
73 81
74 __proto__: WebInspector.SDKModel.prototype 82 __proto__: WebInspector.SDKModel.prototype
75 } 83 }
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 484
477 /** 485 /**
478 * @override 486 * @override
479 * @param {string} playerId 487 * @param {string} playerId
480 */ 488 */
481 animationPlayerCanceled: function(playerId) 489 animationPlayerCanceled: function(playerId)
482 { 490 {
483 this._animationModel.animationPlayerCanceled(playerId); 491 this._animationModel.animationPlayerCanceled(playerId);
484 } 492 }
485 } 493 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/elements/AnimationTimeline.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698