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

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

Issue 980053006: Revert of Devtools Animations: Represent delay and end-delay on the animation timeline (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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.css ('k') | Source/devtools/protocol.json » ('j') | 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return this._payload.startTime; 145 return this._payload.startTime;
146 }, 146 },
147 147
148 /** 148 /**
149 * @return {number} 149 * @return {number}
150 */ 150 */
151 endTime: function() 151 endTime: function()
152 { 152 {
153 if (!this.source().iterations) 153 if (!this.source().iterations)
154 return Infinity; 154 return Infinity;
155 return this.startTime() + this.source().delay() + this.source().duration () * this.source().iterations() + this.source().endDelay(); 155 return this.startTime() + this.source().duration() * this.source().itera tions();
156 }, 156 },
157 157
158 /** 158 /**
159 * @return {number} 159 * @return {number}
160 */ 160 */
161 currentTime: function() 161 currentTime: function()
162 { 162 {
163 return this._payload.currentTime; 163 return this._payload.currentTime;
164 }, 164 },
165 165
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 * @param {number} delay 226 * @param {number} delay
227 */ 227 */
228 setDelay: function(delay) 228 setDelay: function(delay)
229 { 229 {
230 this._delay = delay; 230 this._delay = delay;
231 }, 231 },
232 232
233 /** 233 /**
234 * @return {number} 234 * @return {number}
235 */ 235 */
236 endDelay: function()
237 {
238 return this._payload.endDelay;
239 },
240
241 /**
242 * @return {number}
243 */
244 playbackRate: function() 236 playbackRate: function()
245 { 237 {
246 return this._payload.playbackRate; 238 return this._payload.playbackRate;
247 }, 239 },
248 240
249 /** 241 /**
250 * @return {number} 242 * @return {number}
251 */ 243 */
252 iterationStart: function() 244 iterationStart: function()
253 { 245 {
254 return this._payload.iterationStart; 246 return this._payload.iterationStart;
255 }, 247 },
256 248
257 /** 249 /**
258 * @return {number} 250 * @return {number}
259 */ 251 */
260 iterations: function() 252 iterations: function()
261 { 253 {
262 return this._payload.iterations || Infinity; 254 return this._payload.iterations;
263 }, 255 },
264 256
265 /** 257 /**
266 * @return {number} 258 * @return {number}
267 */ 259 */
268 duration: function() 260 duration: function()
269 { 261 {
270 return this._duration; 262 return this._duration;
271 }, 263 },
272 264
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 /** 456 /**
465 * @override 457 * @override
466 * @param {!AnimationAgent.AnimationPlayer} payload 458 * @param {!AnimationAgent.AnimationPlayer} payload
467 * @param {boolean} resetTimeline 459 * @param {boolean} resetTimeline
468 */ 460 */
469 animationPlayerCreated: function(payload, resetTimeline) 461 animationPlayerCreated: function(payload, resetTimeline)
470 { 462 {
471 this._animationModel.animationPlayerCreated(payload, resetTimeline); 463 this._animationModel.animationPlayerCreated(payload, resetTimeline);
472 } 464 }
473 } 465 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/elements/animationTimeline.css ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698