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

Unified Diff: content/public/test/render_view_test.cc

Issue 2621303004: Keep track of coalesced events in main thread event queue (Closed)
Patch Set: Improve MainThreadEventQueue unittests Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/render_view_test.cc
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc
index fed88d5e61dd15a3d801ba9017e0d6918ccc8614..64875bc1069b975dd09d1baca7b3396e1adebcc3 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -384,7 +384,7 @@ void RenderViewTest::SendWebKeyboardEvent(
const blink::WebKeyboardEvent& key_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &key_event, ui::LatencyInfo(),
+ 0, &key_event, std::vector<const WebInputEvent*>(), ui::LatencyInfo(),
InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
@@ -392,7 +392,7 @@ void RenderViewTest::SendWebMouseEvent(
const blink::WebMouseEvent& mouse_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &mouse_event, ui::LatencyInfo(),
+ 0, &mouse_event, std::vector<const WebInputEvent*>(), ui::LatencyInfo(),
InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
@@ -461,11 +461,11 @@ void RenderViewTest::SimulatePointClick(const gfx::Point& point) {
mouse_event.clickCount = 1;
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &mouse_event, ui::LatencyInfo(),
+ 0, &mouse_event, std::vector<const WebInputEvent*>(), ui::LatencyInfo(),
InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
mouse_event.setType(WebInputEvent::MouseUp);
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &mouse_event, ui::LatencyInfo(),
+ 0, &mouse_event, std::vector<const WebInputEvent*>(), ui::LatencyInfo(),
InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
@@ -488,11 +488,11 @@ void RenderViewTest::SimulatePointRightClick(const gfx::Point& point) {
mouse_event.clickCount = 1;
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &mouse_event, ui::LatencyInfo(),
+ 0, &mouse_event, std::vector<const WebInputEvent*>(), ui::LatencyInfo(),
InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
mouse_event.setType(WebInputEvent::MouseUp);
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &mouse_event, ui::LatencyInfo(),
+ 0, &mouse_event, std::vector<const WebInputEvent*>(), ui::LatencyInfo(),
InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
@@ -508,7 +508,7 @@ void RenderViewTest::SimulateRectTap(const gfx::Rect& rect) {
gesture_event.sourceDevice = blink::WebGestureDeviceTouchpad;
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &gesture_event, ui::LatencyInfo(),
+ 0, &gesture_event, std::vector<const WebInputEvent*>(), ui::LatencyInfo(),
InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
impl->FocusChangeComplete();
}

Powered by Google App Engine
This is Rietveld 408576698