| 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 #include "ui/events/blink/web_input_event_traits.h" | 8 #include "ui/events/blink/web_input_event_traits.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // Dispatch a non blocking event to the main thread. This is used when a | 30 // Dispatch a non blocking event to the main thread. This is used when a |
| 31 // gesture fling from a touchpad is processed and the target only has | 31 // gesture fling from a touchpad is processed and the target only has |
| 32 // passive event listeners. If the target has blocking event listeners | 32 // passive event listeners. If the target has blocking event listeners |
| 33 // |TransferActiveWheelFlingAnimation| will be used instead. | 33 // |TransferActiveWheelFlingAnimation| will be used instead. |
| 34 virtual void DispatchNonBlockingEventToMainThread( | 34 virtual void DispatchNonBlockingEventToMainThread( |
| 35 WebScopedInputEvent event, | 35 WebScopedInputEvent event, |
| 36 const ui::LatencyInfo& latency_info) = 0; | 36 const ui::LatencyInfo& latency_info) = 0; |
| 37 | 37 |
| 38 // Creates a new fling animation curve instance for device |device_source| | 38 // Creates a new fling animation curve instance for device |device_source| |
| 39 // with |velocity| and already scrolled |cumulative_scroll| pixels. | 39 // with |velocity| and already scrolled |cumulative_scroll| pixels. |
| 40 virtual std::unique_ptr<blink::WebGestureCurve> CreateFlingAnimationCurve( | 40 virtual blink::WebGestureCurve* CreateFlingAnimationCurve( |
| 41 blink::WebGestureDevice device_source, | 41 blink::WebGestureDevice device_source, |
| 42 const blink::WebFloatPoint& velocity, | 42 const blink::WebFloatPoint& velocity, |
| 43 const blink::WebSize& cumulative_scroll) = 0; | 43 const blink::WebSize& cumulative_scroll) = 0; |
| 44 | 44 |
| 45 // |HandleInputEvent/WithLatencyInfo| will respond to overscroll by calling | 45 // |HandleInputEvent/WithLatencyInfo| will respond to overscroll by calling |
| 46 // the passed in callback. | 46 // the passed in callback. |
| 47 // Otherwise |DidOverscroll| will be fired. | 47 // Otherwise |DidOverscroll| will be fired. |
| 48 virtual void DidOverscroll( | 48 virtual void DidOverscroll( |
| 49 const gfx::Vector2dF& accumulated_overscroll, | 49 const gfx::Vector2dF& accumulated_overscroll, |
| 50 const gfx::Vector2dF& latest_overscroll_delta, | 50 const gfx::Vector2dF& latest_overscroll_delta, |
| 51 const gfx::Vector2dF& current_fling_velocity, | 51 const gfx::Vector2dF& current_fling_velocity, |
| 52 const gfx::PointF& causal_event_viewport_point) = 0; | 52 const gfx::PointF& causal_event_viewport_point) = 0; |
| 53 | 53 |
| 54 virtual void DidStopFlinging() = 0; | 54 virtual void DidStopFlinging() = 0; |
| 55 | 55 |
| 56 virtual void DidAnimateForInput() = 0; | 56 virtual void DidAnimateForInput() = 0; |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 virtual ~InputHandlerProxyClient() {} | 59 virtual ~InputHandlerProxyClient() {} |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace ui | 62 } // namespace ui |
| 63 | 63 |
| 64 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_ | 64 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_ |
| OLD | NEW |