| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 bool send_touch_events_async_; | 238 bool send_touch_events_async_; |
| 239 bool needs_async_touchmove_for_outer_slop_region_; | 239 bool needs_async_touchmove_for_outer_slop_region_; |
| 240 scoped_ptr<TouchEventWithLatencyInfo> pending_async_touchmove_; | 240 scoped_ptr<TouchEventWithLatencyInfo> pending_async_touchmove_; |
| 241 double last_sent_touch_timestamp_sec_; | 241 double last_sent_touch_timestamp_sec_; |
| 242 | 242 |
| 243 // How touch events are handled during scrolling. For now this is a global | 243 // How touch events are handled during scrolling. For now this is a global |
| 244 // 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 |
| 245 // mode. | 245 // mode. |
| 246 const TouchScrollingMode touch_scrolling_mode_; | 246 const TouchScrollingMode touch_scrolling_mode_; |
| 247 | 247 |
| 248 // Whether or not a GestureScrollUpdate has been observed this touch | |
| 249 // sequence. When the first scroll update of the touch sequence is observed, | |
| 250 // we begin absorbing touch moves. | |
| 251 bool seen_scroll_update_this_sequence_; | |
| 252 | |
| 253 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); | 248 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); |
| 254 }; | 249 }; |
| 255 | 250 |
| 256 } // namespace content | 251 } // namespace content |
| 257 | 252 |
| 258 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ | 253 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ |
| OLD | NEW |