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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

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: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 463b5d1e0432dda6abf647fba21089dde042d18f..2a03eb14d7a9df773dae404987ae60ea37a5b6fc 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -495,8 +495,8 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
prefs.autoplay_experiment_mode = base::FieldTrialList::FindFullName(
"MediaElementGestureOverrideExperiment");
- prefs.touch_enabled = ui::AreTouchEventsEnabled();
- prefs.device_supports_touch = prefs.touch_enabled &&
+ prefs.touch_api_enabled = ui::IsTouchAPIEnabled();
+ prefs.device_supports_touch = prefs.touch_api_enabled &&
mustaq 2016/11/03 18:10:49 I think the removing touch_api_enabled condition h
ui::GetTouchScreensAvailability() ==
ui::TouchScreensAvailability::ENABLED;
std::tie(prefs.available_pointer_types, prefs.available_hover_types) =

Powered by Google App Engine
This is Rietveld 408576698