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

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

Issue 2160843002: [DevTools] Introduce DOM capability. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js » ('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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 } 199 }
200 200
201 WebInspector.AnimationModel._symbol = Symbol("AnimationModel"); 201 WebInspector.AnimationModel._symbol = Symbol("AnimationModel");
202 202
203 /** 203 /**
204 * @param {!WebInspector.Target} target 204 * @param {!WebInspector.Target} target
205 * @return {?WebInspector.AnimationModel} 205 * @return {?WebInspector.AnimationModel}
206 */ 206 */
207 WebInspector.AnimationModel.fromTarget = function(target) 207 WebInspector.AnimationModel.fromTarget = function(target)
208 { 208 {
209 if (!target.hasBrowserCapability()) 209 if (!target.hasDOMCapability())
210 return null; 210 return null;
211 if (!target[WebInspector.AnimationModel._symbol]) 211 if (!target[WebInspector.AnimationModel._symbol])
212 target[WebInspector.AnimationModel._symbol] = new WebInspector.Animation Model(target); 212 target[WebInspector.AnimationModel._symbol] = new WebInspector.Animation Model(target);
213 213
214 return target[WebInspector.AnimationModel._symbol]; 214 return target[WebInspector.AnimationModel._symbol];
215 } 215 }
216 216
217 /** 217 /**
218 * @constructor 218 * @constructor
219 * @extends {WebInspector.SDKObject} 219 * @extends {WebInspector.SDKObject}
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 if (!this._capturing) 945 if (!this._capturing)
946 return; 946 return;
947 947
948 delete this._stopTimer; 948 delete this._stopTimer;
949 delete this._endTime; 949 delete this._endTime;
950 this._requests = []; 950 this._requests = [];
951 this._capturing = false; 951 this._capturing = false;
952 this._target.pageAgent().stopScreencast(); 952 this._target.pageAgent().stopScreencast();
953 } 953 }
954 } 954 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/animation/AnimationTimeline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698