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 CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ | 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ |
6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ | 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 void WillShutdown() override; | 42 void WillShutdown() override; |
43 void TransferActiveWheelFlingAnimation( | 43 void TransferActiveWheelFlingAnimation( |
44 const blink::WebActiveWheelFlingParameters& params) override; | 44 const blink::WebActiveWheelFlingParameters& params) override; |
45 void DispatchNonBlockingEventToMainThread( | 45 void DispatchNonBlockingEventToMainThread( |
46 ui::WebScopedInputEvent event, | 46 ui::WebScopedInputEvent event, |
47 const ui::LatencyInfo& latency_info) override; | 47 const ui::LatencyInfo& latency_info) override; |
48 std::unique_ptr<blink::WebGestureCurve> CreateFlingAnimationCurve( | 48 std::unique_ptr<blink::WebGestureCurve> CreateFlingAnimationCurve( |
49 blink::WebGestureDevice deviceSource, | 49 blink::WebGestureDevice deviceSource, |
50 const blink::WebFloatPoint& velocity, | 50 const blink::WebFloatPoint& velocity, |
51 const blink::WebSize& cumulativeScroll) override; | 51 const blink::WebSize& cumulativeScroll) override; |
52 void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll, | 52 void DidOverscroll( |
53 const gfx::Vector2dF& latest_overscroll_delta, | 53 const gfx::Vector2dF& accumulated_overscroll, |
54 const gfx::Vector2dF& current_fling_velocity, | 54 const gfx::Vector2dF& latest_overscroll_delta, |
55 const gfx::PointF& causal_event_viewport_point) override; | 55 const gfx::Vector2dF& current_fling_velocity, |
| 56 const gfx::PointF& causal_event_viewport_point, |
| 57 const cc::ScrollBoundaryBehavior& scroll_boundary_behavior) override; |
56 void DidStopFlinging() override; | 58 void DidStopFlinging() override; |
57 void DidAnimateForInput() override; | 59 void DidAnimateForInput() override; |
58 void GenerateScrollBeginAndSendToMainThread( | 60 void GenerateScrollBeginAndSendToMainThread( |
59 const blink::WebGestureEvent& update_event) override; | 61 const blink::WebGestureEvent& update_event) override; |
60 void SetWhiteListedTouchAction(cc::TouchAction touch_action) override; | 62 void SetWhiteListedTouchAction(cc::TouchAction touch_action) override; |
61 | 63 |
62 private: | 64 private: |
63 InputHandlerManager* input_handler_manager_; | 65 InputHandlerManager* input_handler_manager_; |
64 int routing_id_; | 66 int routing_id_; |
65 ui::InputHandlerProxy input_handler_proxy_; | 67 ui::InputHandlerProxy input_handler_proxy_; |
66 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 68 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
67 | 69 |
68 // Can only be accessed on the main thread. | 70 // Can only be accessed on the main thread. |
69 base::WeakPtr<RenderWidget> render_widget_; | 71 base::WeakPtr<RenderWidget> render_widget_; |
70 | 72 |
71 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); | 73 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); |
72 }; | 74 }; |
73 | 75 |
74 } // namespace content | 76 } // namespace content |
75 | 77 |
76 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ | 78 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ |
OLD | NEW |