| 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 /** | 561 /** |
| 562 * @constructor | 562 * @constructor |
| 563 * @extends {WebInspector.SDKObject} | 563 * @extends {WebInspector.SDKObject} |
| 564 * @param {!WebInspector.Target} target | 564 * @param {!WebInspector.Target} target |
| 565 * @param {!AnimationAgent.KeyframesRule} payload | 565 * @param {!AnimationAgent.KeyframesRule} payload |
| 566 */ | 566 */ |
| 567 WebInspector.AnimationModel.KeyframesRule = function(target, payload) | 567 WebInspector.AnimationModel.KeyframesRule = function(target, payload) |
| 568 { | 568 { |
| 569 WebInspector.SDKObject.call(this, target); | 569 WebInspector.SDKObject.call(this, target); |
| 570 this._payload = payload; | 570 this._payload = payload; |
| 571 this._keyframes = this._payload.keyframes.map(function (keyframeStyle) { | 571 this._keyframes = this._payload.keyframes.map(function(keyframeStyle) { |
| 572 return new WebInspector.AnimationModel.KeyframeStyle(target, keyframeSty
le); | 572 return new WebInspector.AnimationModel.KeyframeStyle(target, keyframeSty
le); |
| 573 }); | 573 }); |
| 574 } | 574 } |
| 575 | 575 |
| 576 WebInspector.AnimationModel.KeyframesRule.prototype = { | 576 WebInspector.AnimationModel.KeyframesRule.prototype = { |
| 577 /** | 577 /** |
| 578 * @param {!Array.<!AnimationAgent.KeyframeStyle>} payload | 578 * @param {!Array.<!AnimationAgent.KeyframeStyle>} payload |
| 579 */ | 579 */ |
| 580 _setKeyframesPayload: function(payload) | 580 _setKeyframesPayload: function(payload) |
| 581 { | 581 { |
| 582 this._keyframes = payload.map(function (keyframeStyle) { | 582 this._keyframes = payload.map(function(keyframeStyle) { |
| 583 return new WebInspector.AnimationModel.KeyframeStyle(this._target, k
eyframeStyle); | 583 return new WebInspector.AnimationModel.KeyframeStyle(this._target, k
eyframeStyle); |
| 584 }); | 584 }); |
| 585 }, | 585 }, |
| 586 | 586 |
| 587 /** | 587 /** |
| 588 * @return {string|undefined} | 588 * @return {string|undefined} |
| 589 */ | 589 */ |
| 590 name: function() | 590 name: function() |
| 591 { | 591 { |
| 592 return this._payload.name; | 592 return this._payload.name; |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 if (!this._capturing) | 943 if (!this._capturing) |
| 944 return; | 944 return; |
| 945 | 945 |
| 946 delete this._stopTimer; | 946 delete this._stopTimer; |
| 947 delete this._endTime; | 947 delete this._endTime; |
| 948 this._requests = []; | 948 this._requests = []; |
| 949 this._capturing = false; | 949 this._capturing = false; |
| 950 this._target.pageAgent().stopScreencast(); | 950 this._target.pageAgent().stopScreencast(); |
| 951 } | 951 } |
| 952 } | 952 } |
| OLD | NEW |