Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 346 keyframesRule: function() | 346 keyframesRule: function() |
| 347 { | 347 { |
| 348 return this._keyframesRule; | 348 return this._keyframesRule; |
| 349 }, | 349 }, |
| 350 | 350 |
| 351 /** | 351 /** |
| 352 * @return {string} | 352 * @return {string} |
| 353 */ | 353 */ |
| 354 easing: function() | 354 easing: function() |
| 355 { | 355 { |
| 356 return this._payload.easing; | 356 return this._easing || this._payload.easing; |
| 357 }, | |
| 358 | |
| 359 /** | |
| 360 * @param {string} value | |
| 361 * @param {string} id | |
| 362 * @param {boolean=} callProtocol | |
| 363 */ | |
| 364 setEasing: function(value, id, callProtocol) | |
| 365 { | |
| 366 this._easing = value; | |
| 367 if (callProtocol) | |
|
dgozman
2015/05/28 11:04:03
What's the usecase for callProtocol == false?
When
samli
2015/05/28 11:48:14
CSS animations respond to updated styles and hence
| |
| 368 this.target().animationAgent().setEasing(id, value); | |
| 357 }, | 369 }, |
| 358 | 370 |
| 359 __proto__: WebInspector.SDKObject.prototype | 371 __proto__: WebInspector.SDKObject.prototype |
| 360 } | 372 } |
| 361 | 373 |
| 362 /** | 374 /** |
| 363 * @constructor | 375 * @constructor |
| 364 * @extends {WebInspector.SDKObject} | 376 * @extends {WebInspector.SDKObject} |
| 365 * @param {!WebInspector.Target} target | 377 * @param {!WebInspector.Target} target |
| 366 * @param {!AnimationAgent.KeyframesRule} payload | 378 * @param {!AnimationAgent.KeyframesRule} payload |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 475 | 487 |
| 476 /** | 488 /** |
| 477 * @override | 489 * @override |
| 478 * @param {string} playerId | 490 * @param {string} playerId |
| 479 */ | 491 */ |
| 480 animationPlayerCanceled: function(playerId) | 492 animationPlayerCanceled: function(playerId) |
| 481 { | 493 { |
| 482 this._animationModel.animationPlayerCanceled(playerId); | 494 this._animationModel.animationPlayerCanceled(playerId); |
| 483 } | 495 } |
| 484 } | 496 } |
| OLD | NEW |