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

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

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent 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/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 6184d72183851e2b9d0888fa0e92c8a8966393ff..bb6560c32c8983cf8aba9bd1c9e3294c4fafd55a 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -375,16 +375,16 @@ void RenderViewTest::SendWebKeyboardEvent(
const blink::WebKeyboardEvent& key_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &key_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
+ 0, &key_event, std::vector<IPC::WebInputEventPointer>(),
+ ui::LatencyInfo(), InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
void RenderViewTest::SendWebMouseEvent(
const blink::WebMouseEvent& mouse_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &mouse_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
+ 0, &mouse_event, std::vector<IPC::WebInputEventPointer>(),
+ ui::LatencyInfo(), InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
const char* const kGetCoordinatesScript =
@@ -451,12 +451,12 @@ 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(),
- InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
+ 0, &mouse_event, std::vector<IPC::WebInputEventPointer>(),
+ ui::LatencyInfo(), InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
mouse_event.type = WebInputEvent::MouseUp;
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &mouse_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
+ 0, &mouse_event, std::vector<IPC::WebInputEventPointer>(),
+ ui::LatencyInfo(), InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
@@ -477,12 +477,12 @@ 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(),
- InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
+ 0, &mouse_event, std::vector<IPC::WebInputEventPointer>(),
+ ui::LatencyInfo(), InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
mouse_event.type = WebInputEvent::MouseUp;
impl->OnMessageReceived(InputMsg_HandleInputEvent(
- 0, &mouse_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
+ 0, &mouse_event, std::vector<IPC::WebInputEventPointer>(),
+ ui::LatencyInfo(), InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
void RenderViewTest::SimulateRectTap(const gfx::Rect& rect) {
@@ -496,8 +496,8 @@ 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(),
- InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
+ 0, &gesture_event, std::vector<IPC::WebInputEventPointer>(),
+ ui::LatencyInfo(), InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
impl->FocusChangeComplete();
}

Powered by Google App Engine
This is Rietveld 408576698