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 "base/feature_list.h" | 9 #include "base/feature_list.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "base/single_thread_task_runner.h" |
11 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
12 #include "content/common/input/input_event_ack_state.h" | 13 #include "content/common/input/input_event_ack_state.h" |
13 #include "content/common/input/input_event_dispatch_type.h" | 14 #include "content/common/input/input_event_dispatch_type.h" |
14 #include "content/public/common/content_features.h" | 15 #include "content/public/common/content_features.h" |
15 #include "content/renderer/input/main_thread_event_queue_task_list.h" | 16 #include "content/renderer/input/main_thread_event_queue_task_list.h" |
16 #include "content/renderer/input/scoped_web_input_event_with_latency_info.h" | 17 #include "content/renderer/input/scoped_web_input_event_with_latency_info.h" |
17 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 18 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
18 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" | 19 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" |
19 #include "ui/events/blink/web_input_event_traits.h" | 20 #include "ui/events/blink/web_input_event_traits.h" |
20 #include "ui/latency/latency_info.h" | 21 #include "ui/latency/latency_info.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 blink::scheduler::RendererScheduler* renderer_scheduler_; | 157 blink::scheduler::RendererScheduler* renderer_scheduler_; |
157 base::OneShotTimer raf_fallback_timer_; | 158 base::OneShotTimer raf_fallback_timer_; |
158 bool use_raf_fallback_timer_; | 159 bool use_raf_fallback_timer_; |
159 | 160 |
160 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue); | 161 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue); |
161 }; | 162 }; |
162 | 163 |
163 } // namespace content | 164 } // namespace content |
164 | 165 |
165 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ | 166 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ |
OLD | NEW |