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

Unified Diff: third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js

Issue 2843763004: [DevTools] Introduce EmulationModel which will encapsulate emulation (Closed)
Patch Set: +throttling 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/screencast/ScreencastView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js b/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js
index a1250e94dfecf27a09c21f88ca61c025d82f7514..522340038e0cbc826839f3d7f6219b4a049a22a9 100644
--- a/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js
+++ b/third_party/WebKit/Source/devtools/front_end/screencast/ScreencastView.js
@@ -130,7 +130,8 @@ Screencast.ScreencastView = class extends UI.VBox {
'jpeg', 80, Math.floor(Math.min(maxImageDimension, dimensions.width)),
Math.floor(Math.min(maxImageDimension, dimensions.height)), undefined, this._screencastFrame.bind(this),
this._screencastVisibilityChanged.bind(this));
- Emulation.MultitargetTouchModel.instance().setCustomTouchEnabled(true);
+ for (var emulationModel of SDK.targetManager.models(SDK.EmulationModel))
+ emulationModel.overrideEmulateTouch(true);
if (this._overlayModel)
this._overlayModel.setHighlighter(this);
}
@@ -140,7 +141,8 @@ Screencast.ScreencastView = class extends UI.VBox {
return;
this._isCasting = false;
this._screenCaptureModel.stopScreencast();
- Emulation.MultitargetTouchModel.instance().setCustomTouchEnabled(false);
+ for (var emulationModel of SDK.targetManager.models(SDK.EmulationModel))
+ emulationModel.overrideEmulateTouch(false);
if (this._overlayModel)
this._overlayModel.setHighlighter(null);
}

Powered by Google App Engine
This is Rietveld 408576698