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

Side by Side Diff: content/renderer/input/input_handler_wrapper.cc

Issue 1923973002: Add UMA metric for tracking listeners for blocking touch while fling is happening (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change comments in histogram 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 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/renderer/input/input_handler_wrapper.h" 5 #include "content/renderer/input/input_handler_wrapper.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "content/common/input/did_overscroll_params.h" 9 #include "content/common/input/did_overscroll_params.h"
10 #include "content/public/common/content_switches.h" 10 #include "content/public/common/content_switches.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 void InputHandlerWrapper::WillShutdown() { 46 void InputHandlerWrapper::WillShutdown() {
47 input_handler_manager_->RemoveInputHandler(routing_id_); 47 input_handler_manager_->RemoveInputHandler(routing_id_);
48 } 48 }
49 49
50 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve( 50 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve(
51 blink::WebGestureDevice deviceSource, 51 blink::WebGestureDevice deviceSource,
52 const blink::WebFloatPoint& velocity, 52 const blink::WebFloatPoint& velocity,
53 const blink::WebSize& cumulative_scroll) { 53 const blink::WebSize& cumulative_scroll) {
54 DidStartFlinging();
54 return blink::Platform::current()->createFlingAnimationCurve( 55 return blink::Platform::current()->createFlingAnimationCurve(
55 deviceSource, velocity, cumulative_scroll); 56 deviceSource, velocity, cumulative_scroll);
56 } 57 }
57 58
58 void InputHandlerWrapper::DidOverscroll( 59 void InputHandlerWrapper::DidOverscroll(
59 const gfx::Vector2dF& accumulated_overscroll, 60 const gfx::Vector2dF& accumulated_overscroll,
60 const gfx::Vector2dF& latest_overscroll_delta, 61 const gfx::Vector2dF& latest_overscroll_delta,
61 const gfx::Vector2dF& current_fling_velocity, 62 const gfx::Vector2dF& current_fling_velocity,
62 const gfx::PointF& causal_event_viewport_point) { 63 const gfx::PointF& causal_event_viewport_point) {
63 DidOverscrollParams params; 64 DidOverscrollParams params;
64 params.accumulated_overscroll = accumulated_overscroll; 65 params.accumulated_overscroll = accumulated_overscroll;
65 params.latest_overscroll_delta = latest_overscroll_delta; 66 params.latest_overscroll_delta = latest_overscroll_delta;
66 params.current_fling_velocity = current_fling_velocity; 67 params.current_fling_velocity = current_fling_velocity;
67 params.causal_event_viewport_point = causal_event_viewport_point; 68 params.causal_event_viewport_point = causal_event_viewport_point;
68 input_handler_manager_->DidOverscroll(routing_id_, params); 69 input_handler_manager_->DidOverscroll(routing_id_, params);
69 } 70 }
70 71
72 void InputHandlerWrapper::DidStartFlinging() {
73 input_handler_manager_->DidStartFlinging(routing_id_);
74 }
75
71 void InputHandlerWrapper::DidStopFlinging() { 76 void InputHandlerWrapper::DidStopFlinging() {
72 input_handler_manager_->DidStopFlinging(routing_id_); 77 input_handler_manager_->DidStopFlinging(routing_id_);
73 } 78 }
74 79
75 void InputHandlerWrapper::DidAnimateForInput() { 80 void InputHandlerWrapper::DidAnimateForInput() {
76 input_handler_manager_->DidAnimateForInput(); 81 input_handler_manager_->DidAnimateForInput();
77 } 82 }
78 83
79 } // namespace content 84 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_wrapper.h ('k') | content/renderer/input/main_thread_event_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698