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

Unified Diff: content/renderer/input/main_thread_event_queue_unittest.cc

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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/input/main_thread_event_queue_unittest.cc
diff --git a/content/renderer/input/main_thread_event_queue_unittest.cc b/content/renderer/input/main_thread_event_queue_unittest.cc
index 1f8c2a833b04d13910c33d3ec05ad675dc747aba..e6dd0191303deacc1b6b86cddb873caf16d04be0 100644
--- a/content/renderer/input/main_thread_event_queue_unittest.cc
+++ b/content/renderer/input/main_thread_event_queue_unittest.cc
@@ -69,10 +69,12 @@ class MainThreadEventQueueTest : public testing::TestWithParam<unsigned>,
&renderer_scheduler_);
}
- void HandleEventOnMainThread(int routing_id,
- const blink::WebInputEvent* event,
- const ui::LatencyInfo& latency,
- InputEventDispatchType type) override {
+ void HandleEventOnMainThread(
+ int routing_id,
+ const blink::WebInputEvent* event,
+ const std::vector<const blink::WebInputEvent*>& coalescedEvents,
+ const ui::LatencyInfo& latency,
+ InputEventDispatchType type) override {
EXPECT_EQ(kTestRoutingID, routing_id);
handled_events_.push_back(ui::WebInputEventTraits::Clone(*event));
queue_->EventHandled(event->type, INPUT_EVENT_ACK_STATE_NOT_CONSUMED);

Powered by Google App Engine
This is Rietveld 408576698