| 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/input_event_ack_state.h" | 11 #include "content/common/input/input_event_ack_state.h" |
| 12 #include "content/common/input/input_event_dispatch_type.h" | 12 #include "content/common/input/input_event_dispatch_type.h" |
| 13 #include "content/public/common/content_features.h" | 13 #include "content/public/common/content_features.h" |
| 14 #include "content/renderer/input/main_thread_event_queue_task_list.h" | 14 #include "content/renderer/input/main_thread_event_queue_task_list.h" |
| 15 #include "content/renderer/input/scoped_web_input_event_with_latency_info.h" | 15 #include "content/renderer/input/scoped_web_input_event_with_latency_info.h" |
| 16 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 16 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 17 #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" |
| 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/latency/latency_info.h" |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 class CONTENT_EXPORT MainThreadEventQueueClient { | 23 class CONTENT_EXPORT MainThreadEventQueueClient { |
| 24 public: | 24 public: |
| 25 // Handle an |event| that was previously queued (possibly | 25 // Handle an |event| that was previously queued (possibly |
| 26 // coalesced with another event) to the |routing_id|'s | 26 // coalesced with another event) to the |routing_id|'s |
| 27 // channel. Implementors must implement this callback. | 27 // channel. Implementors must implement this callback. |
| 28 virtual void HandleEventOnMainThread( | 28 virtual void HandleEventOnMainThread( |
| 29 int routing_id, | 29 int routing_id, |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 147 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 148 blink::scheduler::RendererScheduler* renderer_scheduler_; | 148 blink::scheduler::RendererScheduler* renderer_scheduler_; |
| 149 | 149 |
| 150 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue); | 150 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 } // namespace content | 153 } // namespace content |
| 154 | 154 |
| 155 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ | 155 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ |
| OLD | NEW |