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

Side by Side Diff: content/browser/renderer_host/input/input_router_config_helper.cc

Issue 458363002: Remove old Aura Gesture Detection Pipeline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address sadrul's comment, and rebase. Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_event_queue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/public/common/content_switches.h" 8 #include "content/public/common/content_switches.h"
9 #include "ui/events/gesture_detection/gesture_detector.h" 9 #include "ui/events/gesture_detection/gesture_detector.h"
10 10
11 #if defined(USE_AURA) 11 #if defined(USE_AURA)
12 #include "ui/events/gestures/gesture_configuration.h" 12 #include "ui/events/gestures/gesture_configuration.h"
13 #include "ui/events/gestures/unified_gesture_detector_enabled.h"
14 #elif defined(OS_ANDROID) 13 #elif defined(OS_ANDROID)
15 #include "ui/gfx/android/view_configuration.h" 14 #include "ui/gfx/android/view_configuration.h"
16 #include "ui/gfx/screen.h" 15 #include "ui/gfx/screen.h"
17 #endif 16 #endif
18 17
19 namespace content { 18 namespace content {
20 namespace { 19 namespace {
21 20
22 #if defined(USE_AURA) 21 #if defined(USE_AURA)
23 22
(...skipping 23 matching lines...) Expand all
47 46
48 return config; 47 return config;
49 } 48 }
50 49
51 TouchEventQueue::Config GetTouchEventQueueConfig() { 50 TouchEventQueue::Config GetTouchEventQueueConfig() {
52 TouchEventQueue::Config config; 51 TouchEventQueue::Config config;
53 52
54 config.touchmove_slop_suppression_length_dips = 53 config.touchmove_slop_suppression_length_dips =
55 ui::GestureConfiguration::max_touch_move_in_pixels_for_click(); 54 ui::GestureConfiguration::max_touch_move_in_pixels_for_click();
56 55
57 config.touchmove_slop_suppression_region_includes_boundary =
58 ui::IsUnifiedGestureDetectorEnabled();
59
60 return config; 56 return config;
61 } 57 }
62 58
63 #elif defined(OS_ANDROID) 59 #elif defined(OS_ANDROID)
64 60
65 // Default time allowance for the touch ack delay before the touch sequence is 61 // Default time allowance for the touch ack delay before the touch sequence is
66 // cancelled. 62 // cancelled.
67 const int kTouchAckTimeoutDelayMs = 200; 63 const int kTouchAckTimeoutDelayMs = 200;
68 64
69 GestureEventQueue::Config GetGestureEventQueueConfig() { 65 GestureEventQueue::Config GetGestureEventQueueConfig() {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 127
132 InputRouterImpl::Config GetInputRouterConfigForPlatform() { 128 InputRouterImpl::Config GetInputRouterConfigForPlatform() {
133 InputRouterImpl::Config config; 129 InputRouterImpl::Config config;
134 config.gesture_config = GetGestureEventQueueConfig(); 130 config.gesture_config = GetGestureEventQueueConfig();
135 config.touch_config = GetTouchEventQueueConfig(); 131 config.touch_config = GetTouchEventQueueConfig();
136 config.touch_config.touch_scrolling_mode = GetTouchScrollingMode(); 132 config.touch_config.touch_scrolling_mode = GetTouchScrollingMode();
137 return config; 133 return config;
138 } 134 }
139 135
140 } // namespace content 136 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/touch_event_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698