OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 TOUCH_SCROLLING_MODE_DEFAULT = TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE | 55 TOUCH_SCROLLING_MODE_DEFAULT = TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE |
56 }; | 56 }; |
57 | 57 |
58 struct CONTENT_EXPORT Config { | 58 struct CONTENT_EXPORT Config { |
59 Config(); | 59 Config(); |
60 | 60 |
61 // Determines the bounds of the (square) touchmove slop suppression region. | 61 // Determines the bounds of the (square) touchmove slop suppression region. |
62 // Defaults to 0 (disabled). | 62 // Defaults to 0 (disabled). |
63 double touchmove_slop_suppression_length_dips; | 63 double touchmove_slop_suppression_length_dips; |
64 | 64 |
| 65 // Whether the touchmove slop suppression region is boundary inclusive. |
| 66 // Defaults to true. |
| 67 // TODO(jdduke): Remove when unified GR enabled, crbug.com/332418. |
| 68 bool touchmove_slop_suppression_region_includes_boundary; |
| 69 |
65 // Determines the type of touch scrolling. | 70 // Determines the type of touch scrolling. |
66 // Defaults to TouchEventQueue:::TOUCH_SCROLLING_MODE_DEFAULT. | 71 // Defaults to TouchEventQueue:::TOUCH_SCROLLING_MODE_DEFAULT. |
67 TouchEventQueue::TouchScrollingMode touch_scrolling_mode; | 72 TouchEventQueue::TouchScrollingMode touch_scrolling_mode; |
68 | 73 |
69 // Controls whether touch ack timeouts will trigger touch cancellation. | 74 // Controls whether touch ack timeouts will trigger touch cancellation. |
70 // Defaults to 200ms. | 75 // Defaults to 200ms. |
71 base::TimeDelta touch_ack_timeout_delay; | 76 base::TimeDelta touch_ack_timeout_delay; |
72 | 77 |
73 // Whether the platform supports touch ack timeout behavior. | 78 // Whether the platform supports touch ack timeout behavior. |
74 // Defaults to false (disabled). | 79 // Defaults to false (disabled). |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // setting for experimentation, but we may evolve it into an app-controlled | 244 // setting for experimentation, but we may evolve it into an app-controlled |
240 // mode. | 245 // mode. |
241 const TouchScrollingMode touch_scrolling_mode_; | 246 const TouchScrollingMode touch_scrolling_mode_; |
242 | 247 |
243 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); | 248 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); |
244 }; | 249 }; |
245 | 250 |
246 } // namespace content | 251 } // namespace content |
247 | 252 |
248 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ | 253 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ |
OLD | NEW |