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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 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
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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698