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

Side by Side Diff: Source/devtools/front_end/sdk/AnimationModel.js

Issue 1042143005: Devtools Animations: Support multiple frames in the animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test 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
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 playbackRate: function() 152 playbackRate: function()
153 { 153 {
154 return this._payload.playbackRate; 154 return this._payload.playbackRate;
155 }, 155 },
156 156
157 /** 157 /**
158 * @return {number} 158 * @return {number}
159 */ 159 */
160 startTime: function() 160 startTime: function()
161 { 161 {
162 return this._payload.startTime; 162 return this._startTime === undefined ? this._payload.startTime : this._s tartTime;
163 }, 163 },
164 164
165 /** 165 /**
166 * @param {number} startTime
167 */
168 updateStartTime: function(startTime)
169 {
170 this._startTime = startTime;
171 },
172
173 /**
166 * @return {number} 174 * @return {number}
167 */ 175 */
168 endTime: function() 176 endTime: function()
169 { 177 {
170 if (!this.source().iterations) 178 if (!this.source().iterations)
171 return Infinity; 179 return Infinity;
172 return this.startTime() + this.source().delay() + this.source().duration () * this.source().iterations() + this.source().endDelay(); 180 return this.startTime() + this.source().delay() + this.source().duration () * this.source().iterations() + this.source().endDelay();
173 }, 181 },
174 182
175 /** 183 /**
(...skipping 300 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

Powered by Google App Engine
This is Rietveld 408576698