| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // Send touchmove events throughout a scroll, but throttle sending and | 52 // Send touchmove events throughout a scroll, but throttle sending and |
| 53 // ignore the ACK as long as scrolling remains possible. Unconsumed scroll | 53 // ignore the ACK as long as scrolling remains possible. Unconsumed scroll |
| 54 // events return touchmove events to being dispatched synchronously. | 54 // events return touchmove events to being dispatched synchronously. |
| 55 TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE, | 55 TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE, |
| 56 TOUCH_SCROLLING_MODE_DEFAULT = TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE | 56 TOUCH_SCROLLING_MODE_DEFAULT = TOUCH_SCROLLING_MODE_ASYNC_TOUCHMOVE |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 struct CONTENT_EXPORT Config { | 59 struct CONTENT_EXPORT Config { |
| 60 Config(); | 60 Config(); |
| 61 | 61 |
| 62 // Determines the bounds of the (square) touchmove slop suppression region. | |
| 63 // Defaults to 0 (disabled). | |
| 64 double touchmove_slop_suppression_length_dips; | |
| 65 | |
| 66 // Determines the type of touch scrolling. | 62 // Determines the type of touch scrolling. |
| 67 // Defaults to TouchEventQueue:::TOUCH_SCROLLING_MODE_DEFAULT. | 63 // Defaults to TouchEventQueue:::TOUCH_SCROLLING_MODE_DEFAULT. |
| 68 TouchEventQueue::TouchScrollingMode touch_scrolling_mode; | 64 TouchEventQueue::TouchScrollingMode touch_scrolling_mode; |
| 69 | 65 |
| 70 // Controls whether touch ack timeouts will trigger touch cancellation. | 66 // Controls whether touch ack timeouts will trigger touch cancellation. |
| 71 // Defaults to 200ms. | 67 // Defaults to 200ms. |
| 72 base::TimeDelta touch_ack_timeout_delay; | 68 base::TimeDelta touch_ack_timeout_delay; |
| 73 | 69 |
| 74 // Whether the platform supports touch ack timeout behavior. | 70 // Whether the platform supports touch ack timeout behavior. |
| 75 // Defaults to false (disabled). | 71 // Defaults to false (disabled). |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 // setting for experimentation, but we may evolve it into an app-controlled | 236 // setting for experimentation, but we may evolve it into an app-controlled |
| 241 // mode. | 237 // mode. |
| 242 const TouchScrollingMode touch_scrolling_mode_; | 238 const TouchScrollingMode touch_scrolling_mode_; |
| 243 | 239 |
| 244 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); | 240 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); |
| 245 }; | 241 }; |
| 246 | 242 |
| 247 } // namespace content | 243 } // namespace content |
| 248 | 244 |
| 249 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ | 245 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ |
| OLD | NEW |