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

Unified Diff: content/browser/frame_host/cross_process_frame_connector.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/frame_host/cross_process_frame_connector.cc
diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc
index 6002fcaa6b18e3707e4430c4cdf62f085f4adbc6..6b3b208d68caa88a01aa6d25573ca398609ce76c 100644
--- a/content/browser/frame_host/cross_process_frame_connector.cc
+++ b/content/browser/frame_host/cross_process_frame_connector.cc
@@ -172,7 +172,9 @@ void CrossProcessFrameConnector::BubbleScrollEvent(
memcpy(&resent_wheel_event, &event, sizeof(resent_wheel_event));
resent_wheel_event.x += offset_from_parent.x();
resent_wheel_event.y += offset_from_parent.y();
- parent_view->ProcessMouseWheelEvent(resent_wheel_event);
+ // TODO: https://bugs.chromium.org/p/chromium/issues/detail?id=613628
tdresser 2016/05/20 18:45:53 And reformat TODOs here.
sahel 2016/05/20 19:03:28 Done.
+ ui::LatencyInfo latency_info;
+ parent_view->ProcessMouseWheelEvent(resent_wheel_event, latency_info);
} else {
NOTIMPLEMENTED();
}
@@ -217,13 +219,18 @@ void CrossProcessFrameConnector::OnForwardInputEvent(
}
if (blink::WebInputEvent::isMouseEventType(event->type)) {
- view_->ProcessMouseEvent(*static_cast<const blink::WebMouseEvent*>(event));
+ // TODO: https://bugs.chromium.org/p/chromium/issues/detail?id=613628
+ ui::LatencyInfo latency_info;
+ view_->ProcessMouseEvent(*static_cast<const blink::WebMouseEvent*>(event),
+ latency_info);
return;
}
if (event->type == blink::WebInputEvent::MouseWheel) {
+ // TODO: https://bugs.chromium.org/p/chromium/issues/detail?id=613628
+ ui::LatencyInfo latency_info;
view_->ProcessMouseWheelEvent(
- *static_cast<const blink::WebMouseWheelEvent*>(event));
+ *static_cast<const blink::WebMouseWheelEvent*>(event), latency_info);
return;
}
}

Powered by Google App Engine
This is Rietveld 408576698