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

Unified Diff: content/browser/renderer_host/render_widget_host_view_mac_unittest.mm

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/render_widget_host_view_mac_unittest.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
index 80030a7fbbdc52ae5589a50662e422e73e1df134..020abdbbacd40fd5434068bccfddfb9ac7f6dbc0 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac_unittest.mm
@@ -977,7 +977,8 @@ TEST_F(RenderWidgetHostViewMacTest, ScrollWheelEndEventDelivery) {
process_host->sink().ClearMessages();
// Send an ACK for the first wheel event, so that the queue will be flushed.
- InputEventAck ack(blink::WebInputEvent::MouseWheel,
+ InputEventAck ack(InputEventAckSource::COMPOSITOR_THREAD,
+ blink::WebInputEvent::MouseWheel,
INPUT_EVENT_ACK_STATE_CONSUMED);
std::unique_ptr<IPC::Message> response(
new InputHostMsg_HandleInputEvent_ACK(0, ack));
@@ -1022,7 +1023,8 @@ TEST_F(RenderWidgetHostViewMacTest,
process_host->sink().ClearMessages();
// Indicate that the wheel event was unhandled.
- InputEventAck unhandled_ack(blink::WebInputEvent::MouseWheel,
+ InputEventAck unhandled_ack(InputEventAckSource::COMPOSITOR_THREAD,
+ blink::WebInputEvent::MouseWheel,
INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
std::unique_ptr<IPC::Message> response1(
new InputHostMsg_HandleInputEvent_ACK(0, unhandled_ack));
@@ -1030,7 +1032,8 @@ TEST_F(RenderWidgetHostViewMacTest,
ASSERT_EQ(2U, process_host->sink().message_count());
process_host->sink().ClearMessages();
- InputEventAck unhandled_scroll_ack(blink::WebInputEvent::GestureScrollUpdate,
+ InputEventAck unhandled_scroll_ack(InputEventAckSource::COMPOSITOR_THREAD,
+ blink::WebInputEvent::GestureScrollUpdate,
INPUT_EVENT_ACK_STATE_NOT_CONSUMED);
std::unique_ptr<IPC::Message> scroll_response1(
new InputHostMsg_HandleInputEvent_ACK(0, unhandled_scroll_ack));
@@ -1191,7 +1194,8 @@ TEST_F(RenderWidgetHostViewMacPinchTest, PinchThresholding) {
process_host_->sink().ClearMessages();
// We'll use this IPC message to ack events.
- InputEventAck ack(blink::WebInputEvent::GesturePinchUpdate,
+ InputEventAck ack(InputEventAckSource::COMPOSITOR_THREAD,
+ blink::WebInputEvent::GesturePinchUpdate,
INPUT_EVENT_ACK_STATE_CONSUMED);
std::unique_ptr<IPC::Message> response(
new InputHostMsg_HandleInputEvent_ACK(0, ack));

Powered by Google App Engine
This is Rietveld 408576698