| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // Suppression of TouchMove's within a slop region when a sequence has not yet | 206 // Suppression of TouchMove's within a slop region when a sequence has not yet |
| 207 // been preventDefaulted. | 207 // been preventDefaulted. |
| 208 scoped_ptr<TouchMoveSlopSuppressor> touchmove_slop_suppressor_; | 208 scoped_ptr<TouchMoveSlopSuppressor> touchmove_slop_suppressor_; |
| 209 | 209 |
| 210 // Whether touch events should remain buffered and dispatched asynchronously | 210 // Whether touch events should remain buffered and dispatched asynchronously |
| 211 // while a scroll sequence is active. In this mode, touchmove's are throttled | 211 // while a scroll sequence is active. In this mode, touchmove's are throttled |
| 212 // and ack'ed immediately, but remain buffered in |pending_async_touch_move_| | 212 // and ack'ed immediately, but remain buffered in |pending_async_touch_move_| |
| 213 // until a sufficient time period has elapsed since the last sent touch event. | 213 // until a sufficient time period has elapsed since the last sent touch event. |
| 214 // For details see the design doc at http://goo.gl/lVyJAa. | 214 // For details see the design doc at http://goo.gl/lVyJAa. |
| 215 bool send_touch_events_async_; | 215 bool send_touch_events_async_; |
| 216 bool needs_async_touch_move_for_outer_slop_region_; |
| 216 scoped_ptr<TouchEventWithLatencyInfo> pending_async_touch_move_; | 217 scoped_ptr<TouchEventWithLatencyInfo> pending_async_touch_move_; |
| 217 double last_sent_touch_timestamp_sec_; | 218 double last_sent_touch_timestamp_sec_; |
| 218 bool needs_async_touch_move_for_outer_slop_region_; | |
| 219 | 219 |
| 220 // How touch events are handled during scrolling. For now this is a global | 220 // How touch events are handled during scrolling. For now this is a global |
| 221 // setting for experimentation, but we may evolve it into an app-controlled | 221 // setting for experimentation, but we may evolve it into an app-controlled |
| 222 // mode. | 222 // mode. |
| 223 const TouchScrollingMode touch_scrolling_mode_; | 223 const TouchScrollingMode touch_scrolling_mode_; |
| 224 | 224 |
| 225 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); | 225 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); |
| 226 }; | 226 }; |
| 227 | 227 |
| 228 } // namespace content | 228 } // namespace content |
| 229 | 229 |
| 230 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ | 230 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ |
| OLD | NEW |