| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |