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

Side by Side Diff: content/renderer/input/input_handler_proxy_client.h

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 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_ 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
7 7
8 namespace blink { 8 namespace blink {
9 class WebGestureCurve; 9 class WebGestureCurve;
10 struct WebActiveWheelFlingParameters; 10 struct WebActiveWheelFlingParameters;
(...skipping 16 matching lines...) Expand all
27 virtual void TransferActiveWheelFlingAnimation( 27 virtual void TransferActiveWheelFlingAnimation(
28 const blink::WebActiveWheelFlingParameters& params) = 0; 28 const blink::WebActiveWheelFlingParameters& params) = 0;
29 29
30 // Creates a new fling animation curve instance for device |device_source| 30 // Creates a new fling animation curve instance for device |device_source|
31 // with |velocity| and already scrolled |cumulative_scroll| pixels. 31 // with |velocity| and already scrolled |cumulative_scroll| pixels.
32 virtual blink::WebGestureCurve* CreateFlingAnimationCurve( 32 virtual blink::WebGestureCurve* CreateFlingAnimationCurve(
33 blink::WebGestureDevice device_source, 33 blink::WebGestureDevice device_source,
34 const blink::WebFloatPoint& velocity, 34 const blink::WebFloatPoint& velocity,
35 const blink::WebSize& cumulative_scroll) = 0; 35 const blink::WebSize& cumulative_scroll) = 0;
36 36
37 // Creates a new smooth scrolling curve instance for device |device_source|
38 // starting at (|start_x|, |start_y|), ending at (|start_x| + |dx|, |start_y|
39 // + |dy|)
40 virtual blink::WebGestureCurve* CreateSmoothScrollAnimationCurve(
41 blink::WebGestureDevice deviceSource,
42 float start_x,
43 float start_y,
44 float dx,
45 float dy,
46 long duration) = 0;
47
37 virtual void DidOverscroll(const DidOverscrollParams& params) = 0; 48 virtual void DidOverscroll(const DidOverscrollParams& params) = 0;
38 49
39 virtual void DidStopFlinging() = 0; 50 virtual void DidStopFlinging() = 0;
40 51
41 virtual void DidAnimateForInput() = 0; 52 virtual void DidAnimateForInput() = 0;
42 53
43 protected: 54 protected:
44 virtual ~InputHandlerProxyClient() {} 55 virtual ~InputHandlerProxyClient() {}
45 }; 56 };
46 57
47 } // namespace content 58 } // namespace content
48 59
49 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_ 60 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698