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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // Suppression of TouchMove's within a slop region when a sequence has not yet | 221 // Suppression of TouchMove's within a slop region when a sequence has not yet |
222 // been preventDefaulted. | 222 // been preventDefaulted. |
223 scoped_ptr<TouchMoveSlopSuppressor> touchmove_slop_suppressor_; | 223 scoped_ptr<TouchMoveSlopSuppressor> touchmove_slop_suppressor_; |
224 | 224 |
225 // Whether touch events should remain buffered and dispatched asynchronously | 225 // Whether touch events should remain buffered and dispatched asynchronously |
226 // while a scroll sequence is active. In this mode, touchmove's are throttled | 226 // while a scroll sequence is active. In this mode, touchmove's are throttled |
227 // and ack'ed immediately, but remain buffered in |pending_async_touchmove_| | 227 // and ack'ed immediately, but remain buffered in |pending_async_touchmove_| |
228 // until a sufficient time period has elapsed since the last sent touch event. | 228 // until a sufficient time period has elapsed since the last sent touch event. |
229 // For details see the design doc at http://goo.gl/lVyJAa. | 229 // For details see the design doc at http://goo.gl/lVyJAa. |
230 bool send_touch_events_async_; | 230 bool send_touch_events_async_; |
231 bool needs_async_touchmove_for_outer_slop_region_; | |
232 scoped_ptr<TouchEventWithLatencyInfo> pending_async_touchmove_; | 231 scoped_ptr<TouchEventWithLatencyInfo> pending_async_touchmove_; |
233 double last_sent_touch_timestamp_sec_; | 232 double last_sent_touch_timestamp_sec_; |
234 | 233 |
235 // How touch events are handled during scrolling. For now this is a global | 234 // How touch events are handled during scrolling. For now this is a global |
236 // setting for experimentation, but we may evolve it into an app-controlled | 235 // setting for experimentation, but we may evolve it into an app-controlled |
237 // mode. | 236 // mode. |
238 const TouchScrollingMode touch_scrolling_mode_; | 237 const TouchScrollingMode touch_scrolling_mode_; |
239 | 238 |
240 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); | 239 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); |
241 }; | 240 }; |
242 | 241 |
243 } // namespace content | 242 } // namespace content |
244 | 243 |
245 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ | 244 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ |
OLD | NEW |