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

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: 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::ForwardGestureEvent(const blink::WebGestureEvent& event,
tdresser 2016/04/22 17:55:59 If we're renaming the client method, should we ren
dtapuska 2016/04/22 18:14:59 Done.
298 client_->ForwardGestureEvent(event); 298 const ui::LatencyInfo& latency_info) {
299 client_->ForwardGestureEventWithLatencyInfo(event, latency_info);
299 } 300 }
300 301
301 void InputRouterImpl::SendMouseWheelEventImmediately( 302 void InputRouterImpl::SendMouseWheelEventImmediately(
302 const MouseWheelEventWithLatencyInfo& wheel_event) { 303 const MouseWheelEventWithLatencyInfo& wheel_event) {
303 FilterAndSendWebInputEvent(wheel_event.event, wheel_event.latency); 304 FilterAndSendWebInputEvent(wheel_event.event, wheel_event.latency);
304 } 305 }
305 306
306 void InputRouterImpl::OnMouseWheelEventAck( 307 void InputRouterImpl::OnMouseWheelEventAck(
307 const MouseWheelEventWithLatencyInfo& event, 308 const MouseWheelEventWithLatencyInfo& event,
308 InputEventAckState ack_result) { 309 InputEventAckState ack_result) {
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 638
638 flush_requested_ = false; 639 flush_requested_ = false;
639 client_->DidFlush(); 640 client_->DidFlush();
640 } 641 }
641 642
642 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) { 643 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) {
643 frame_tree_node_id_ = frameTreeNodeId; 644 frame_tree_node_id_ = frameTreeNodeId;
644 } 645 }
645 646
646 } // namespace content 647 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698