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

Unified Diff: content/browser/renderer_host/input/input_router_impl_unittest.cc

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 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/browser/renderer_host/input/input_router_impl_unittest.cc
diff --git a/content/browser/renderer_host/input/input_router_impl_unittest.cc b/content/browser/renderer_host/input/input_router_impl_unittest.cc
index 4b0b2bc7205a5d659b41e26a018121df3a59a58d..564cdcff31fd8ded701249574a8f977f780261b1 100644
--- a/content/browser/renderer_host/input/input_router_impl_unittest.cc
+++ b/content/browser/renderer_host/input/input_router_impl_unittest.cc
@@ -286,7 +286,7 @@ class InputRouterImplTest : public testing::Test {
void SendInputEventACK(blink::WebInputEvent::Type type,
InputEventAckState ack_result) {
DCHECK(!WebInputEvent::isTouchEventType(type));
- InputEventAck ack(type, ack_result);
+ InputEventAck ack(InputEventAckSource::COMPOSITOR_THREAD, type, ack_result);
input_router_->OnMessageReceived(InputHostMsg_HandleInputEvent_ACK(0, ack));
}
@@ -294,7 +294,8 @@ class InputRouterImplTest : public testing::Test {
InputEventAckState ack_result,
uint32_t touch_event_id) {
DCHECK(WebInputEvent::isTouchEventType(type));
- InputEventAck ack(type, ack_result, touch_event_id);
+ InputEventAck ack(InputEventAckSource::COMPOSITOR_THREAD, type, ack_result,
+ touch_event_id);
input_router_->OnMessageReceived(InputHostMsg_HandleInputEvent_ACK(0, ack));
}
@@ -1815,7 +1816,8 @@ TEST_F(InputRouterImplTest, OverscrollDispatch) {
wheel_overscroll.current_fling_velocity = gfx::Vector2dF(1, 0);
SimulateWheelEvent(0, 0, 3, 0, 0, false);
- InputEventAck ack(WebInputEvent::MouseWheel,
+ InputEventAck ack(InputEventAckSource::COMPOSITOR_THREAD,
+ WebInputEvent::MouseWheel,
INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
ack.overscroll.reset(new DidOverscrollParams(wheel_overscroll));
input_router_->OnMessageReceived(InputHostMsg_HandleInputEvent_ACK(0, ack));

Powered by Google App Engine
This is Rietveld 408576698