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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js

Issue 2731383002: [DevTools] Make touch emulation work with OOPIF. (Closed)
Patch Set: dialog fix to separate patch Created 3 years, 9 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/TouchModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js b/third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js
index 0d254dc487dc6bd692d50419e2e170740842bd2d..b560767caa2cfa39b318f681e11fd43936a236a3 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/TouchModel.js
@@ -11,7 +11,7 @@ Emulation.MultitargetTouchModel = class {
this._touchMobile = false;
this._customTouchEnabled = false;
- SDK.targetManager.observeTargets(this, SDK.Target.Capability.Browser);
+ SDK.targetManager.observeTargets(this, SDK.Target.Capability.TouchEmulation);
}
/**
@@ -42,7 +42,7 @@ Emulation.MultitargetTouchModel = class {
}
_updateAllTargets() {
- for (var target of SDK.targetManager.targets(SDK.Target.Capability.Browser))
+ for (var target of SDK.targetManager.targets(SDK.Target.Capability.TouchEmulation))
this._applyToTarget(target);
}

Powered by Google App Engine
This is Rietveld 408576698