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

Side by Side Diff: content/browser/renderer_host/input/input_router_impl.cc

Issue 1911963005: Fix reporting of TouchToFirstScroll latency metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a few nits Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/input/input_router_impl.h" 5 #include "content/browser/renderer_host/input/input_router_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 output_stream_validator_.Validate(touch_event); 287 output_stream_validator_.Validate(touch_event);
288 } 288 }
289 289
290 void InputRouterImpl::OnGestureEventAck( 290 void InputRouterImpl::OnGestureEventAck(
291 const GestureEventWithLatencyInfo& event, 291 const GestureEventWithLatencyInfo& event,
292 InputEventAckState ack_result) { 292 InputEventAckState ack_result) {
293 touch_event_queue_.OnGestureEventAck(event, ack_result); 293 touch_event_queue_.OnGestureEventAck(event, ack_result);
294 ack_handler_->OnGestureEventAck(event, ack_result); 294 ack_handler_->OnGestureEventAck(event, ack_result);
295 } 295 }
296 296
297 void InputRouterImpl::ForwardGestureEvent(const blink::WebGestureEvent& event) { 297 void InputRouterImpl::ForwardGestureEventWithLatencyInfo(
298 client_->ForwardGestureEvent(event); 298 const blink::WebGestureEvent& event,
299 const ui::LatencyInfo& latency_info) {
300 client_->ForwardGestureEventWithLatencyInfo(event, latency_info);
299 } 301 }
300 302
301 void InputRouterImpl::SendMouseWheelEventImmediately( 303 void InputRouterImpl::SendMouseWheelEventImmediately(
302 const MouseWheelEventWithLatencyInfo& wheel_event) { 304 const MouseWheelEventWithLatencyInfo& wheel_event) {
303 FilterAndSendWebInputEvent(wheel_event.event, wheel_event.latency); 305 FilterAndSendWebInputEvent(wheel_event.event, wheel_event.latency);
304 } 306 }
305 307
306 void InputRouterImpl::OnMouseWheelEventAck( 308 void InputRouterImpl::OnMouseWheelEventAck(
307 const MouseWheelEventWithLatencyInfo& event, 309 const MouseWheelEventWithLatencyInfo& event,
308 InputEventAckState ack_result) { 310 InputEventAckState ack_result) {
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 639
638 flush_requested_ = false; 640 flush_requested_ = false;
639 client_->DidFlush(); 641 client_->DidFlush();
640 } 642 }
641 643
642 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) { 644 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) {
643 frame_tree_node_id_ = frameTreeNodeId; 645 frame_tree_node_id_ = frameTreeNodeId;
644 } 646 }
645 647
646 } // namespace content 648 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698