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

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

Issue 136173004: Early terminate flings when scrolling impossible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
« no previous file with comments | « content/renderer/input/input_handler_wrapper.h ('k') | content/test/web_gesture_curve_mock.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "content/renderer/input/input_event_filter.h" 8 #include "content/renderer/input/input_event_filter.h"
9 #include "content/renderer/input/input_handler_manager.h" 9 #include "content/renderer/input/input_handler_manager.h"
10 #include "third_party/WebKit/public/platform/Platform.h" 10 #include "third_party/WebKit/public/platform/Platform.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve( 46 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve(
47 int deviceSource, 47 int deviceSource,
48 const blink::WebFloatPoint& velocity, 48 const blink::WebFloatPoint& velocity,
49 const blink::WebSize& cumulative_scroll) { 49 const blink::WebSize& cumulative_scroll) {
50 return blink::Platform::current()->createFlingAnimationCurve( 50 return blink::Platform::current()->createFlingAnimationCurve(
51 deviceSource, velocity, cumulative_scroll); 51 deviceSource, velocity, cumulative_scroll);
52 } 52 }
53 53
54 void InputHandlerWrapper::DidOverscroll(const cc::DidOverscrollParams& params) { 54 void InputHandlerWrapper::DidOverscroll(const DidOverscrollParams& params) {
55 input_handler_manager_->DidOverscroll(routing_id_, params); 55 input_handler_manager_->DidOverscroll(routing_id_, params);
56 } 56 }
57 57
58 void InputHandlerWrapper::DidStopFlinging() { 58 void InputHandlerWrapper::DidStopFlinging() {
59 input_handler_manager_->DidStopFlinging(routing_id_); 59 input_handler_manager_->DidStopFlinging(routing_id_);
60 } 60 }
61 61
62 } // namespace content 62 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_wrapper.h ('k') | content/test/web_gesture_curve_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698