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

Unified Diff: content/browser/renderer_host/input/input_router_config_helper.cc

Issue 679633005: Expose native, desktop and mobile gesture detection defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize Created 6 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
Index: content/browser/renderer_host/input/input_router_config_helper.cc
diff --git a/content/browser/renderer_host/input/input_router_config_helper.cc b/content/browser/renderer_host/input/input_router_config_helper.cc
index d78b6cb2a90732dabbc36036c0756c8e9b851438..81f47ee8191a2f2f56a77af9f9d372788e4f9d39 100644
--- a/content/browser/renderer_host/input/input_router_config_helper.cc
+++ b/content/browser/renderer_host/input/input_router_config_helper.cc
@@ -50,13 +50,7 @@ GestureEventQueue::Config GetGestureEventQueueConfig() {
}
TouchEventQueue::Config GetTouchEventQueueConfig() {
- TouchEventQueue::Config config;
-
- config.touchmove_slop_suppression_length_dips =
- ui::GestureConfiguration::GetInstance()
- ->max_touch_move_in_pixels_for_click();
-
- return config;
+ return TouchEventQueue::Config();
}
#elif defined(OS_ANDROID)
@@ -86,13 +80,6 @@ TouchEventQueue::Config GetTouchEventQueueConfig() {
base::TimeDelta::FromMilliseconds(kTouchAckTimeoutDelayMs);
config.touch_ack_timeout_supported = true;
- const double touch_slop_length_pixels =
- static_cast<double>(gfx::ViewConfiguration::GetTouchSlopInPixels());
- const double device_scale_factor =
- gfx::Screen::GetNativeScreen()->GetPrimaryDisplay().device_scale_factor();
- config.touchmove_slop_suppression_length_dips =
- touch_slop_length_pixels / device_scale_factor;
-
return config;
}

Powered by Google App Engine
This is Rietveld 408576698