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

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

Issue 1251323002: Plumb smooth scrolling in Chromium compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/location.h" 7 #include "base/location.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 29 matching lines...) Expand all
40 } 40 }
41 41
42 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve( 42 blink::WebGestureCurve* InputHandlerWrapper::CreateFlingAnimationCurve(
43 blink::WebGestureDevice deviceSource, 43 blink::WebGestureDevice deviceSource,
44 const blink::WebFloatPoint& velocity, 44 const blink::WebFloatPoint& velocity,
45 const blink::WebSize& cumulative_scroll) { 45 const blink::WebSize& cumulative_scroll) {
46 return blink::Platform::current()->createFlingAnimationCurve( 46 return blink::Platform::current()->createFlingAnimationCurve(
47 deviceSource, velocity, cumulative_scroll); 47 deviceSource, velocity, cumulative_scroll);
48 } 48 }
49 49
50 blink::WebGestureCurve* InputHandlerWrapper::CreateSmoothScrollAnimationCurve(
51 blink::WebGestureDevice deviceSource,
52 float start_x,
53 float start_y,
54 float dx,
55 float dy,
56 long duration) {
57 return blink::Platform::current()->createSmoothScrollAnimationCurve(
58 deviceSource, start_x, start_y, dx, dy, duration);
59 }
60
50 void InputHandlerWrapper::DidOverscroll(const DidOverscrollParams& params) { 61 void InputHandlerWrapper::DidOverscroll(const DidOverscrollParams& params) {
51 input_handler_manager_->DidOverscroll(routing_id_, params); 62 input_handler_manager_->DidOverscroll(routing_id_, params);
52 } 63 }
53 64
54 void InputHandlerWrapper::DidStopFlinging() { 65 void InputHandlerWrapper::DidStopFlinging() {
55 input_handler_manager_->DidStopFlinging(routing_id_); 66 input_handler_manager_->DidStopFlinging(routing_id_);
56 } 67 }
57 68
58 void InputHandlerWrapper::DidAnimateForInput() { 69 void InputHandlerWrapper::DidAnimateForInput() {
59 input_handler_manager_->DidAnimateForInput(); 70 input_handler_manager_->DidAnimateForInput();
60 } 71 }
61 72
62 } // namespace content 73 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698