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

Unified Diff: content/renderer/input/input_event_filter.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/renderer/input/input_event_filter.cc
diff --git a/content/renderer/input/input_event_filter.cc b/content/renderer/input/input_event_filter.cc
index 56799b1128b224d40efe5c5edff70d23b09efa44..cf24f928250567a9d55f71539dc06388c8ae8517 100644
--- a/content/renderer/input/input_event_filter.cc
+++ b/content/renderer/input/input_event_filter.cc
@@ -264,7 +264,8 @@ void InputEventFilter::DidForwardToHandlerAndOverscroll(
if (!send_ack)
return;
- InputEventAck ack(type, ack_state, latency_info, std::move(overscroll_params),
+ InputEventAck ack(InputEventAckSource::COMPOSITOR_THREAD, type, ack_state,
+ latency_info, std::move(overscroll_params),
unique_touch_event_id);
SendMessage(std::unique_ptr<IPC::Message>(
new InputHostMsg_HandleInputEvent_ACK(routing_id, ack)));
@@ -302,7 +303,9 @@ void InputEventFilter::SendInputEventAck(int routing_id,
blink::WebInputEvent::Type type,
InputEventAckState ack_result,
uint32_t touch_event_id) {
- InputEventAck ack(type, ack_result, touch_event_id);
+ DCHECK(main_task_runner_->BelongsToCurrentThread());
+ InputEventAck ack(InputEventAckSource::MAIN_THREAD, type, ack_result,
+ touch_event_id);
SendMessage(std::unique_ptr<IPC::Message>(
new InputHostMsg_HandleInputEvent_ACK(routing_id, ack)));
}
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/input/render_widget_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698