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

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: Renamed enum value as per wez@ request 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 2706d71ecf717abeee87ab4b024f5252826bb8b7..c622ee8a2cba8c002bf9215fc8ccbfdd9c29681d 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -441,14 +441,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 =
@@ -515,10 +517,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));
}
@@ -539,10 +543,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) {
@@ -556,7 +562,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