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

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

Issue 1631963002: Plumb firing passive event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners_2a
Patch Set: Fix windows build Created 4 years, 10 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 d5d5fa580c386303e1c1b1dba476117966cb93f8..a2f3b4b4448bce8b56af6034bfd36ec7271ba83e 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -444,14 +444,16 @@ void RenderViewTest::SendWebKeyboardEvent(
const blink::WebKeyboardEvent& key_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &key_event, ui::LatencyInfo()));
+ InputMsg_HandleInputEvent(0, &key_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_NORMAL));
}
void RenderViewTest::SendWebMouseEvent(
const blink::WebMouseEvent& mouse_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo()));
+ InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_NORMAL));
}
const char* const kGetCoordinatesScript =
@@ -518,10 +520,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()));
+ InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_NORMAL));
mouse_event.type = WebInputEvent::MouseUp;
impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo()));
+ InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_NORMAL));
}
@@ -542,10 +546,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()));
+ InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_NORMAL));
mouse_event.type = WebInputEvent::MouseUp;
impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo()));
+ InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_NORMAL));
}
void RenderViewTest::SimulateRectTap(const gfx::Rect& rect) {
@@ -559,7 +565,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()));
+ InputMsg_HandleInputEvent(0, &gesture_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_NORMAL));
impl->FocusChangeComplete();
}

Powered by Google App Engine
This is Rietveld 408576698