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

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

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Created 4 years, 1 month 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
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"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 }; 52 };
53 53
54 class CONTENT_EXPORT MainThreadEventQueueClient { 54 class CONTENT_EXPORT MainThreadEventQueueClient {
55 public: 55 public:
56 // Handle an |event| that was previously queued (possibly 56 // Handle an |event| that was previously queued (possibly
57 // coalesced with another event) to the |routing_id|'s 57 // coalesced with another event) to the |routing_id|'s
58 // channel. Implementors must implement this callback. 58 // channel. Implementors must implement this callback.
59 virtual void HandleEventOnMainThread( 59 virtual void HandleEventOnMainThread(
60 int routing_id, 60 int routing_id,
61 const blink::WebInputEvent* event, 61 const blink::WebInputEvent* event,
62 const std::vector<const blink::WebInputEvent*>& coalescedEvents,
62 const ui::LatencyInfo& latency, 63 const ui::LatencyInfo& latency,
63 InputEventDispatchType dispatch_type) = 0; 64 InputEventDispatchType dispatch_type) = 0;
64 65
65 virtual void SendInputEventAck(int routing_id, 66 virtual void SendInputEventAck(int routing_id,
66 blink::WebInputEvent::Type type, 67 blink::WebInputEvent::Type type,
67 InputEventAckState ack_result, 68 InputEventAckState ack_result,
68 uint32_t touch_event_id) = 0; 69 uint32_t touch_event_id) = 0;
69 virtual void NeedsMainFrame(int routing_id) = 0; 70 virtual void NeedsMainFrame(int routing_id) = 0;
70 }; 71 };
71 72
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 171
171 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 172 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
172 blink::scheduler::RendererScheduler* renderer_scheduler_; 173 blink::scheduler::RendererScheduler* renderer_scheduler_;
173 174
174 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue); 175 DISALLOW_COPY_AND_ASSIGN(MainThreadEventQueue);
175 }; 176 };
176 177
177 } // namespace content 178 } // namespace content
178 179
179 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_ 180 #endif // CONTENT_RENDERER_INPUT_MAIN_THREAD_EVENT_QUEUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698