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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.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/emulation/DeviceModeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
index 555208d48fffcdc9730ed5eb74b8a3c3cb0ba06c..5cc32caef64eb2ddd7a4bc2c59bb1acb8965b984 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
@@ -675,7 +675,8 @@ Emulation.DeviceModeModel = class {
* @param {boolean} mobile
*/
_applyTouch(touchEnabled, mobile) {
- Emulation.MultitargetTouchModel.instance().setTouchEnabled(touchEnabled, mobile);
+ for (var emulationModel of SDK.targetManager.models(SDK.EmulationModel))
+ emulationModel.emulateTouch(touchEnabled, mobile);
}
};

Powered by Google App Engine
This is Rietveld 408576698