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

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

Issue 2851913002: [DevTools] Do not expose agents on Target
Patch Set: storage and tests.js Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js b/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js
index b1c2e7394517f9d41dd00241dab34172b958f668..3109bedb4f53b7bf1da9989fc3099d2cf68e25f4 100644
--- a/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/animation/AnimationModel.js
@@ -8,12 +8,13 @@
Animation.AnimationModel = class extends SDK.SDKModel {
/**
* @param {!SDK.Target} target
+ * @param {!Protocol.Dispatcher} dispatcher
*/
- constructor(target) {
- super(target);
+ constructor(target, dispatcher) {
+ super(target, dispatcher);
this._runtimeModel = /** @type {!SDK.RuntimeModel} */ (target.model(SDK.RuntimeModel));
- this._agent = target.animationAgent();
- target.registerAnimationDispatcher(new Animation.AnimationDispatcher(this));
+ this._agent = dispatcher.animationAgent();
+ dispatcher.registerAnimationDispatcher(new Animation.AnimationDispatcher(this));
/** @type {!Map.<string, !Animation.AnimationModel.Animation>} */
this._animationsById = new Map();
/** @type {!Map.<string, !Animation.AnimationModel.AnimationGroup>} */

Powered by Google App Engine
This is Rietveld 408576698