Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: content/renderer/input/main_thread_event_queue.h

Issue 2783973002: Moving LatencyInfo into a separate component. (Closed)
Patch Set: Rebase again Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/input/render_widget_input_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/input/render_widget_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698