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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 1993383002: Adding Event.Latency.Browser.WheelUI, Passing latency_info to ProcessMouse/MouseWheelEvent functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index c33e325cef30eaab1a331b7c0dcf7f6d7f8f6166..489d682042adc56fbf664eec7553ebc8210dedfd 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1900,7 +1900,7 @@ void RenderWidgetHostViewAura::OnMouseEvent(ui::MouseEvent* event) {
host_->delegate()->GetInputEventRouter()->RouteMouseWheelEvent(
this, &mouse_wheel_event);
} else {
- ProcessMouseWheelEvent(mouse_wheel_event);
+ ProcessMouseWheelEvent(mouse_wheel_event, *event->latency());
}
}
} else {
@@ -1919,7 +1919,7 @@ void RenderWidgetHostViewAura::OnMouseEvent(ui::MouseEvent* event) {
host_->delegate()->GetInputEventRouter()->RouteMouseEvent(this,
&mouse_event);
} else {
- ProcessMouseEvent(mouse_event);
+ ProcessMouseEvent(mouse_event, *event->latency());
}
// Ensure that we get keyboard focus on mouse down as a plugin window may
@@ -1968,13 +1968,15 @@ uint32_t RenderWidgetHostViewAura::SurfaceIdNamespaceAtPoint(
}
void RenderWidgetHostViewAura::ProcessMouseEvent(
- const blink::WebMouseEvent& event) {
- host_->ForwardMouseEvent(event);
+ const blink::WebMouseEvent& event,
+ const ui::LatencyInfo& latency) {
+ host_->ForwardMouseEventWithLatencyInfo(event, latency);
}
void RenderWidgetHostViewAura::ProcessMouseWheelEvent(
- const blink::WebMouseWheelEvent& event) {
- host_->ForwardWheelEvent(event);
+ const blink::WebMouseWheelEvent& event,
+ const ui::LatencyInfo& latency) {
+ host_->ForwardWheelEventWithLatencyInfo(event, latency);
}
void RenderWidgetHostViewAura::ProcessTouchEvent(
@@ -2018,7 +2020,8 @@ void RenderWidgetHostViewAura::OnScrollEvent(ui::ScrollEvent* event) {
host_->ForwardGestureEvent(gesture_event);
blink::WebMouseWheelEvent mouse_wheel_event =
MakeWebMouseWheelEvent(*event);
- host_->ForwardWheelEvent(mouse_wheel_event);
+ host_->ForwardWheelEventWithLatencyInfo(mouse_wheel_event,
+ *event->latency());
RecordAction(base::UserMetricsAction("TrackpadScroll"));
} else if (event->type() == ui::ET_SCROLL_FLING_START ||
event->type() == ui::ET_SCROLL_FLING_CANCEL) {

Powered by Google App Engine
This is Rietveld 408576698