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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 26764002: Chromium side of maxTouchPoints implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | ui/base/touch/touch_device.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 7d0e6c7deb7c979c39ec12c6dcb253603b3f75e3..27af16015b871f4a78e10940129586444e0cdd16 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -601,6 +601,10 @@ WebPreferences WebContentsImpl::GetWebkitPrefs(RenderViewHost* rvh,
prefs.device_supports_mouse = false;
#endif
+ prefs.pointer_events_max_touch_points_enabled = prefs.touch_enabled &&
Rick Byers 2013/10/10 22:42:40 I don't think you want to look at touch_enabled he
Rick Byers 2013/10/10 22:42:40 Does this override the status=experimental propert
+ ui::CanDetectMaxTouchPoints();
+ prefs.pointer_events_max_touch_points = ui::MaxTouchPoints();
+
prefs.touch_adjustment_enabled =
!command_line.HasSwitch(switches::kDisableTouchAdjustment);
prefs.compositor_touch_hit_testing =
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | ui/base/touch/touch_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698