OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ | 5 #ifndef CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ |
6 #define CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ | 6 #define CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/common/input/event_with_latency_info.h" | 10 #include "content/common/input/event_with_latency_info.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 friend class MainThreadEventQueueTest; | 128 friend class MainThreadEventQueueTest; |
129 int routing_id_; | 129 int routing_id_; |
130 MainThreadEventQueueClient* client_; | 130 MainThreadEventQueueClient* client_; |
131 WebInputEventQueue<EventWithDispatchType> events_; | 131 WebInputEventQueue<EventWithDispatchType> events_; |
132 std::unique_ptr<EventWithDispatchType> in_flight_event_; | 132 std::unique_ptr<EventWithDispatchType> in_flight_event_; |
133 bool is_flinging_; | 133 bool is_flinging_; |
134 | 134 |
135 base::Lock event_queue_lock_; | 135 base::Lock event_queue_lock_; |
136 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 136 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 137 // True if waiting on first touch move after a touch start. |
| 138 bool waiting_for_first_touch_move_; |
137 | 139 |
138 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue); | 140 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue); |
139 }; | 141 }; |
140 | 142 |
141 } // namespace content | 143 } // namespace content |
142 | 144 |
143 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ | 145 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ |
OLD | NEW |