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

Unified Diff: third_party/WebKit/Source/web/DevToolsEmulator.cpp

Issue 2467913002: Touch event flag should control only DOM event firing. (Closed)
Patch Set: Change the string in "about://flags" Created 4 years, 1 month 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/web/DevToolsEmulator.cpp
diff --git a/third_party/WebKit/Source/web/DevToolsEmulator.cpp b/third_party/WebKit/Source/web/DevToolsEmulator.cpp
index 65527e56ad5d310e46ec8ec76ea516648561ba8c..129daedb4c33561e5cdc14beb313bc5f8bcc65d5 100644
--- a/third_party/WebKit/Source/web/DevToolsEmulator.cpp
+++ b/third_party/WebKit/Source/web/DevToolsEmulator.cpp
@@ -446,7 +446,7 @@ void DevToolsEmulator::setTouchEventEmulationEnabled(bool enabled) {
if (m_touchEventEmulationEnabled == enabled)
return;
if (!m_touchEventEmulationEnabled) {
- m_originalTouchEnabled = RuntimeEnabledFeatures::touchEnabled();
+ m_originalTouchEnabled = RuntimeEnabledFeatures::touchAPIEnabled();
m_originalDeviceSupportsMouse =
m_webViewImpl->page()->settings().deviceSupportsMouse();
m_originalDeviceSupportsTouch =
@@ -454,8 +454,8 @@ void DevToolsEmulator::setTouchEventEmulationEnabled(bool enabled) {
m_originalMaxTouchPoints =
m_webViewImpl->page()->settings().maxTouchPoints();
}
- RuntimeEnabledFeatures::setTouchEnabled(enabled ? true
- : m_originalTouchEnabled);
+ /*RuntimeEnabledFeatures::setTouchEnabled(enabled ? true
+ : m_originalTouchEnabled);*/
if (!m_originalDeviceSupportsTouch) {
m_webViewImpl->page()->settings().setDeviceSupportsMouse(
enabled ? false : m_originalDeviceSupportsMouse);

Powered by Google App Engine
This is Rietveld 408576698