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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/EmulationModel.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/sdk/EmulationModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/EmulationModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/EmulationModel.js
index 51d51cb4d461702db64d093bd6e7fbd39bab237a..353d9284ea053fa14bdb87bbefe2aa6d49c3d13a 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/EmulationModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/EmulationModel.js
@@ -5,12 +5,13 @@
SDK.EmulationModel = class extends SDK.SDKModel {
/**
* @param {!SDK.Target} target
+ * @param {!Protocol.Dispatcher} dispatcher
*/
- constructor(target) {
- super(target);
- this._emulationAgent = target.emulationAgent();
- this._pageAgent = target.pageAgent();
- this._deviceOrientationAgent = target.deviceOrientationAgent();
+ constructor(target, dispatcher) {
+ super(target, dispatcher);
+ this._emulationAgent = dispatcher.emulationAgent();
+ this._pageAgent = dispatcher.pageAgent();
+ this._deviceOrientationAgent = dispatcher.deviceOrientationAgent();
this._cssModel = target.model(SDK.CSSModel);
this._overlayModel = target.model(SDK.OverlayModel);
if (this._overlayModel)

Powered by Google App Engine
This is Rietveld 408576698