Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_ | 5 #ifndef UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_ |
| 6 #define UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_ | 6 #define UI_EVENTS_BLINK_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 14 matching lines...) Expand all Loading... | |
| 25 virtual void TransferActiveWheelFlingAnimation( | 25 virtual void TransferActiveWheelFlingAnimation( |
| 26 const blink::WebActiveWheelFlingParameters& params) = 0; | 26 const blink::WebActiveWheelFlingParameters& params) = 0; |
| 27 | 27 |
| 28 // Creates a new fling animation curve instance for device |device_source| | 28 // Creates a new fling animation curve instance for device |device_source| |
| 29 // with |velocity| and already scrolled |cumulative_scroll| pixels. | 29 // with |velocity| and already scrolled |cumulative_scroll| pixels. |
| 30 virtual blink::WebGestureCurve* CreateFlingAnimationCurve( | 30 virtual blink::WebGestureCurve* CreateFlingAnimationCurve( |
| 31 blink::WebGestureDevice device_source, | 31 blink::WebGestureDevice device_source, |
| 32 const blink::WebFloatPoint& velocity, | 32 const blink::WebFloatPoint& velocity, |
| 33 const blink::WebSize& cumulative_scroll) = 0; | 33 const blink::WebSize& cumulative_scroll) = 0; |
| 34 | 34 |
| 35 // Overscroll triggered by |HandleInputEvent/WithLatencyInfo| will response to | |
|
tdresser
2016/09/01 16:58:45
This sentence doesn't quite make sense.
"|HandleI
chongz
2016/09/01 20:13:13
Done.
| |
| 36 // passed-in callback. (e.g. Usually | |
| 37 // |InputHandlerManager::DidHandleInputEventAndOverscroll|) | |
| 38 // Otherwise |DidOverscroll| will be fired. | |
| 35 virtual void DidOverscroll( | 39 virtual void DidOverscroll( |
| 36 const gfx::Vector2dF& accumulated_overscroll, | 40 const gfx::Vector2dF& accumulated_overscroll, |
| 37 const gfx::Vector2dF& latest_overscroll_delta, | 41 const gfx::Vector2dF& latest_overscroll_delta, |
| 38 const gfx::Vector2dF& current_fling_velocity, | 42 const gfx::Vector2dF& current_fling_velocity, |
| 39 const gfx::PointF& causal_event_viewport_point) = 0; | 43 const gfx::PointF& causal_event_viewport_point) = 0; |
| 40 | 44 |
| 41 virtual void DidStartFlinging() = 0; | 45 virtual void DidStartFlinging() = 0; |
| 42 | 46 |
| 43 virtual void DidStopFlinging() = 0; | 47 virtual void DidStopFlinging() = 0; |
| 44 | 48 |
| 45 virtual void DidAnimateForInput() = 0; | 49 virtual void DidAnimateForInput() = 0; |
| 46 | 50 |
| 47 protected: | 51 protected: |
| 48 virtual ~InputHandlerProxyClient() {} | 52 virtual ~InputHandlerProxyClient() {} |
| 49 }; | 53 }; |
| 50 | 54 |
| 51 } // namespace ui | 55 } // namespace ui |
| 52 | 56 |
| 53 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_ | 57 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_ |
| OLD | NEW |