OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/renderer_host/input/input_router_config_helper.h" | 5 #include "content/browser/renderer_host/input/input_router_config_helper.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/feature_list.h" | 8 #include "base/feature_list.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/public/common/content_features.h" | 10 #include "content/public/common/content_features.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 gesture_config->fling_max_cancel_to_down_time_in_ms()); | 73 gesture_config->fling_max_cancel_to_down_time_in_ms()); |
74 config.touchpad_tap_suppression_config.max_tap_gap_time = | 74 config.touchpad_tap_suppression_config.max_tap_gap_time = |
75 base::TimeDelta::FromMilliseconds( | 75 base::TimeDelta::FromMilliseconds( |
76 gesture_config->fling_max_tap_gap_time_in_ms()); | 76 gesture_config->fling_max_tap_gap_time_in_ms()); |
77 | 77 |
78 return config; | 78 return config; |
79 } | 79 } |
80 | 80 |
81 } // namespace | 81 } // namespace |
82 | 82 |
83 InputRouterImpl::Config GetInputRouterConfigForPlatform() { | 83 InputRouter::Config GetInputRouterConfigForPlatform() { |
84 InputRouterImpl::Config config; | 84 InputRouter::Config config; |
85 config.gesture_config = GetGestureEventQueueConfig(); | 85 config.gesture_config = GetGestureEventQueueConfig(); |
86 config.touch_config = GetTouchEventQueueConfig(); | 86 config.touch_config = GetTouchEventQueueConfig(); |
87 return config; | 87 return config; |
88 } | 88 } |
89 | 89 |
90 } // namespace content | 90 } // namespace content |
OLD | NEW |