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

Unified Diff: content/renderer/render_widget.cc

Issue 2621303004: Keep track of coalesced events in main thread event queue (Closed)
Patch Set: Rebase Created 3 years, 11 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
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index 2e60181441cc17e6b12ae2e13922f04d9594068a..9ceb7970c31e94dd094ee3417c2452f0205ae751 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -782,12 +782,17 @@ GURL RenderWidget::GetURLForGraphicsContext3D() {
return GURL();
}
-void RenderWidget::OnHandleInputEvent(const blink::WebInputEvent* input_event,
- const ui::LatencyInfo& latency_info,
- InputEventDispatchType dispatch_type) {
+void RenderWidget::OnHandleInputEvent(
+ const blink::WebInputEvent* input_event,
+ const std::vector<const blink::WebInputEvent*>& coalesced_events,
+ const ui::LatencyInfo& latency_info,
+ InputEventDispatchType dispatch_type) {
if (!input_event)
return;
- input_handler_->HandleInputEvent(*input_event, latency_info, dispatch_type);
+
+ input_handler_->HandleInputEvent(
+ blink::WebCoalescedInputEvent(*input_event, coalesced_events),
+ latency_info, dispatch_type);
}
void RenderWidget::OnCursorVisibilityChange(bool is_visible) {
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698