| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, |
| 53 const cc::ScrollBoundaryBehavior& scroll_boundary_behavior) = 0; |
| 53 | 54 |
| 54 virtual void DidStopFlinging() = 0; | 55 virtual void DidStopFlinging() = 0; |
| 55 | 56 |
| 56 virtual void DidAnimateForInput() = 0; | 57 virtual void DidAnimateForInput() = 0; |
| 57 | 58 |
| 58 // Used to send a GSB to the main thread when the wheel scroll latching is | 59 // Used to send a GSB to the main thread when the wheel scroll latching is |
| 59 // enabled and the scrolling should switch to the main thread. | 60 // enabled and the scrolling should switch to the main thread. |
| 60 virtual void GenerateScrollBeginAndSendToMainThread( | 61 virtual void GenerateScrollBeginAndSendToMainThread( |
| 61 const blink::WebGestureEvent& update_event) = 0; | 62 const blink::WebGestureEvent& update_event) = 0; |
| 62 | 63 |
| 63 virtual void SetWhiteListedTouchAction(cc::TouchAction touch_action) = 0; | 64 virtual void SetWhiteListedTouchAction(cc::TouchAction touch_action) = 0; |
| 64 | 65 |
| 65 protected: | 66 protected: |
| 66 virtual ~InputHandlerProxyClient() {} | 67 virtual ~InputHandlerProxyClient() {} |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace ui | 70 } // namespace ui |
| 70 | 71 |
| 71 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_ | 72 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_CLIENT_H_ |
| OLD | NEW |