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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/common/input/event_with_latency_info.h" | 11 #include "content/common/input/event_with_latency_info.h" |
12 #include "content/common/input/input_event_ack_state.h" | 12 #include "content/common/input/input_event_ack_state.h" |
13 #include "content/common/input/input_event_dispatch_type.h" | 13 #include "content/common/input/input_event_dispatch_type.h" |
14 #include "content/common/input/web_input_event_queue.h" | 14 #include "content/common/input/web_input_event_queue.h" |
15 #include "content/public/common/content_features.h" | 15 #include "content/public/common/content_features.h" |
| 16 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
16 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" | 17 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" |
17 #include "third_party/WebKit/public/web/WebInputEvent.h" | |
18 #include "ui/events/blink/web_input_event_traits.h" | 18 #include "ui/events/blink/web_input_event_traits.h" |
19 #include "ui/events/latency_info.h" | 19 #include "ui/events/latency_info.h" |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 class EventWithDispatchType : public ScopedWebInputEventWithLatencyInfo { | 23 class EventWithDispatchType : public ScopedWebInputEventWithLatencyInfo { |
24 public: | 24 public: |
25 EventWithDispatchType(ui::ScopedWebInputEvent event, | 25 EventWithDispatchType(ui::ScopedWebInputEvent event, |
26 const ui::LatencyInfo& latency, | 26 const ui::LatencyInfo& latency, |
27 InputEventDispatchType dispatch_type); | 27 InputEventDispatchType dispatch_type); |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 168 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
169 blink::scheduler::RendererScheduler* renderer_scheduler_; | 169 blink::scheduler::RendererScheduler* renderer_scheduler_; |
170 | 170 |
171 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue); | 171 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue); |
172 }; | 172 }; |
173 | 173 |
174 } // namespace content | 174 } // namespace content |
175 | 175 |
176 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ | 176 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ |
OLD | NEW |