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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
235 // uncancelable touchmoves which are still waiting for their acks back from | 235 // uncancelable touchmoves which are still waiting for their acks back from |
236 // render. We do not put them back to the front the touch_event_queue any | 236 // render. We do not put them back to the front the touch_event_queue any |
237 // more. | 237 // more. |
238 std::deque<uint32_t> ack_pending_async_touchmove_ids_; | 238 std::deque<uint32_t> ack_pending_async_touchmove_ids_; |
239 | 239 |
240 double last_sent_touch_timestamp_sec_; | 240 double last_sent_touch_timestamp_sec_; |
241 | 241 |
242 // Event is saved to compare pointer positions for new touchmove events. | 242 // Event is saved to compare pointer positions for new touchmove events. |
243 std::unique_ptr<blink::WebTouchEvent> last_sent_touchevent_; | 243 std::unique_ptr<blink::WebTouchEvent> last_sent_touchevent_; |
244 | 244 |
245 // True if a GestureFlingStart happens and false after a GestureFlingCancel. | |
tdresser
2016/04/28 19:02:41
Have you confirmed that a GFC gets sent at the cor
lanwei
2016/04/28 20:25:18
Yes, I tested for both the main and compositor thr
| |
246 bool fling_in_progress_; | |
247 | |
245 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); | 248 DISALLOW_COPY_AND_ASSIGN(TouchEventQueue); |
246 }; | 249 }; |
247 | 250 |
248 } // namespace content | 251 } // namespace content |
249 | 252 |
250 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ | 253 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_EVENT_QUEUE_H_ |
OLD | NEW |