summaryrefslogtreecommitdiffstats
path: root/content/renderer/gpu/input_handler_proxy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/gpu/input_handler_proxy.cc')
-rw-r--r--content/renderer/gpu/input_handler_proxy.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/content/renderer/gpu/input_handler_proxy.cc b/content/renderer/gpu/input_handler_proxy.cc
index a24cfbe..74cc6d1 100644
--- a/content/renderer/gpu/input_handler_proxy.cc
+++ b/content/renderer/gpu/input_handler_proxy.cc
@@ -322,18 +322,19 @@ void InputHandlerProxy::MainThreadHasStoppedFlinging() {
fling_may_be_active_on_main_thread_ = false;
}
-void InputHandlerProxy::DidOverscroll(gfx::Vector2dF accumulated_overscroll,
- gfx::Vector2dF current_fling_velocity) {
+void InputHandlerProxy::DidOverscroll(const cc::DidOverscrollParams& params) {
DCHECK(client_);
if (fling_curve_) {
static const int kFlingOverscrollThreshold = 1;
fling_overscrolled_horizontally_ |=
- std::abs(accumulated_overscroll.x()) >= kFlingOverscrollThreshold;
+ std::abs(params.accumulated_overscroll.x()) >=
+ kFlingOverscrollThreshold;
fling_overscrolled_vertically_ |=
- std::abs(accumulated_overscroll.y()) >= kFlingOverscrollThreshold;
+ std::abs(params.accumulated_overscroll.y()) >=
+ kFlingOverscrollThreshold;
}
- client_->DidOverscroll(accumulated_overscroll, current_fling_velocity);
+ client_->DidOverscroll(params);
}
bool InputHandlerProxy::CancelCurrentFling() {