Chromium Code Reviews| 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..5ee71a65bde5b8984d71e92bfaac6b8dc4ede822 100644 |
| --- a/content/browser/frame_host/cross_process_frame_connector.cc |
| +++ b/content/browser/frame_host/cross_process_frame_connector.cc |
| @@ -172,7 +172,10 @@ 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); |
| + ui::LatencyInfo latency_info; |
| + // Don't know if I add ui_latency component to the latency_info or not. |
| + //I can change function signiture and pass latency to it. |
|
tdresser
2016/05/20 17:24:53
Add a TODO and link to the bug you filed.
Same th
sahel
2016/05/20 18:38:20
Done.
|
| + parent_view->ProcessMouseWheelEvent(resent_wheel_event, latency_info); |
| } else { |
| NOTIMPLEMENTED(); |
| } |
| @@ -217,13 +220,20 @@ void CrossProcessFrameConnector::OnForwardInputEvent( |
| } |
| if (blink::WebInputEvent::isMouseEventType(event->type)) { |
| - view_->ProcessMouseEvent(*static_cast<const blink::WebMouseEvent*>(event)); |
| + ui::LatencyInfo latency_info; |
| + //Don't know if I should add ui_latency componenet or not. |
| + //I can change function signiture and pass latency to it. |
| + view_->ProcessMouseEvent(*static_cast<const blink::WebMouseEvent*>(event), |
| + latency_info); |
| return; |
| } |
| if (event->type == blink::WebInputEvent::MouseWheel) { |
| + ui::LatencyInfo latency_info; |
| + //Don't know if I should add ui_latency componenet or not. |
| + //I can change function signiture and pass latency to it. |
| view_->ProcessMouseWheelEvent( |
| - *static_cast<const blink::WebMouseWheelEvent*>(event)); |
| + *static_cast<const blink::WebMouseWheelEvent*>(event), latency_info); |
| return; |
| } |
| } |