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

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

Issue 630003003: Change GestureConfiguration types to be consistent with each other and with the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really fix compile 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
« no previous file with comments | « chrome/common/pref_names.cc ('k') | content/browser/renderer_host/input/touch_event_queue_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18c5560a5391f2cca0063ca61c22a937cf8088ff..1956fe65107ba5ff43a8323a03391566bd632753 100644
--- a/content/browser/renderer_host/input/input_router_config_helper.cc
+++ b/content/browser/renderer_host/input/input_router_config_helper.cc
@@ -32,8 +32,8 @@ GestureEventQueue::Config GetGestureEventQueueConfig() {
ui::GestureConfiguration::fling_max_cancel_to_down_time_in_ms());
config.touchscreen_tap_suppression_config.max_tap_gap_time =
- base::TimeDelta::FromMilliseconds(static_cast<int>(
- ui::GestureConfiguration::semi_long_press_time_in_seconds() * 1000));
+ base::TimeDelta::FromMilliseconds(
+ ui::GestureConfiguration::semi_long_press_time_in_ms());
config.touchpad_tap_suppression_config.enabled = true;
config.touchpad_tap_suppression_config.max_cancel_to_down_time =
@@ -41,8 +41,8 @@ GestureEventQueue::Config GetGestureEventQueueConfig() {
ui::GestureConfiguration::fling_max_cancel_to_down_time_in_ms());
config.touchpad_tap_suppression_config.max_tap_gap_time =
- base::TimeDelta::FromMilliseconds(static_cast<int>(
- ui::GestureConfiguration::fling_max_tap_gap_time_in_ms() * 1000));
+ base::TimeDelta::FromMilliseconds(
+ ui::GestureConfiguration::fling_max_tap_gap_time_in_ms());
return config;
}
« no previous file with comments | « chrome/common/pref_names.cc ('k') | content/browser/renderer_host/input/touch_event_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698