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

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

Issue 718153002: Indicate whether a touch event will cause scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/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..3fa3e58fe00db81acef92723cdcb165a633e4760 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;
}
@@ -103,10 +90,7 @@ GestureEventQueue::Config GetGestureEventQueueConfig() {
}
TouchEventQueue::Config GetTouchEventQueueConfig() {
- TouchEventQueue::Config config;
- config.touchmove_slop_suppression_length_dips =
- ui::GestureDetector::Config().touch_slop;
- return config;
+ return TouchEventQueue::Config();
}
#endif

Powered by Google App Engine
This is Rietveld 408576698