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

Unified Diff: content/renderer/mus/render_widget_mus_connection.cc

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: 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/mus/render_widget_mus_connection.cc
diff --git a/content/renderer/mus/render_widget_mus_connection.cc b/content/renderer/mus/render_widget_mus_connection.cc
index 80464706d3b82ad7093297a084daaef91f33f56f..65cd66c44663c2c48ad0ff53ceb735db233b0931 100644
--- a/content/renderer/mus/render_widget_mus_connection.cc
+++ b/content/renderer/mus/render_widget_mus_connection.cc
@@ -157,6 +157,7 @@ void RenderWidgetMusConnection::OnConnectionLost() {
void RenderWidgetMusConnection::OnWindowInputEvent(
ui::ScopedWebInputEvent input_event,
+ const std::vector<const blink::WebInputEvent*>& coalescedEvents,
const base::Callback<void(ui::mojom::EventResult)>& ack) {
DCHECK(thread_checker_.CalledOnValidThread());
// If we don't yet have a RenderWidgetInputHandler then we don't yet have
@@ -172,7 +173,7 @@ void RenderWidgetMusConnection::OnWindowInputEvent(
pending_ack_ = ack;
// TODO(fsamuel, sadrul): Track real latency info.
ui::LatencyInfo latency_info;
- input_handler_->HandleInputEvent(*input_event, latency_info,
+ input_handler_->HandleInputEvent(*input_event, coalescedEvents, latency_info,
DISPATCH_TYPE_BLOCKING);
}

Powered by Google App Engine
This is Rietveld 408576698