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

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

Issue 2265393002: Refactor compositor event handling path to be callback-based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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/public/common/content_switches.h" 9 #include "content/public/common/content_switches.h"
10 #include "content/renderer/input/input_event_filter.h" 10 #include "content/renderer/input/input_event_filter.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const blink::WebSize& cumulative_scroll) { 50 const blink::WebSize& cumulative_scroll) {
51 DidStartFlinging(); 51 DidStartFlinging();
52 return blink::Platform::current()->createFlingAnimationCurve( 52 return blink::Platform::current()->createFlingAnimationCurve(
53 deviceSource, velocity, cumulative_scroll); 53 deviceSource, velocity, cumulative_scroll);
54 } 54 }
55 55
56 void InputHandlerWrapper::DidOverscroll( 56 void InputHandlerWrapper::DidOverscroll(
57 const gfx::Vector2dF& accumulated_overscroll, 57 const gfx::Vector2dF& accumulated_overscroll,
58 const gfx::Vector2dF& latest_overscroll_delta, 58 const gfx::Vector2dF& latest_overscroll_delta,
59 const gfx::Vector2dF& current_fling_velocity, 59 const gfx::Vector2dF& current_fling_velocity,
60 const gfx::PointF& causal_event_viewport_point) { 60 const gfx::PointF& causal_event_viewport_point,
61 bool bundle_ack_with_triggering_event) {
61 ui::DidOverscrollParams params; 62 ui::DidOverscrollParams params;
62 params.accumulated_overscroll = accumulated_overscroll; 63 params.accumulated_overscroll = accumulated_overscroll;
63 params.latest_overscroll_delta = latest_overscroll_delta; 64 params.latest_overscroll_delta = latest_overscroll_delta;
64 params.current_fling_velocity = current_fling_velocity; 65 params.current_fling_velocity = current_fling_velocity;
65 params.causal_event_viewport_point = causal_event_viewport_point; 66 params.causal_event_viewport_point = causal_event_viewport_point;
66 input_handler_manager_->DidOverscroll(routing_id_, params); 67 input_handler_manager_->DidOverscroll(routing_id_, params,
68 bundle_ack_with_triggering_event);
67 } 69 }
68 70
69 void InputHandlerWrapper::DidStartFlinging() { 71 void InputHandlerWrapper::DidStartFlinging() {
70 input_handler_manager_->DidStartFlinging(routing_id_); 72 input_handler_manager_->DidStartFlinging(routing_id_);
71 } 73 }
72 74
73 void InputHandlerWrapper::DidStopFlinging() { 75 void InputHandlerWrapper::DidStopFlinging() {
74 input_handler_manager_->DidStopFlinging(routing_id_); 76 input_handler_manager_->DidStopFlinging(routing_id_);
75 } 77 }
76 78
77 void InputHandlerWrapper::DidAnimateForInput() { 79 void InputHandlerWrapper::DidAnimateForInput() {
78 input_handler_manager_->DidAnimateForInput(); 80 input_handler_manager_->DidAnimateForInput();
79 } 81 }
80 82
81 } // namespace content 83 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698