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 28 matching lines...) Expand all Loading... |
39 void NeedsMainFrame(); | 39 void NeedsMainFrame(); |
40 | 40 |
41 // InputHandlerProxyClient implementation. | 41 // InputHandlerProxyClient implementation. |
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 blink::WebGestureCurve* CreateFlingAnimationCurve( | 45 blink::WebGestureCurve* CreateFlingAnimationCurve( |
46 blink::WebGestureDevice deviceSource, | 46 blink::WebGestureDevice deviceSource, |
47 const blink::WebFloatPoint& velocity, | 47 const blink::WebFloatPoint& velocity, |
48 const blink::WebSize& cumulativeScroll) override; | 48 const blink::WebSize& cumulativeScroll) override; |
49 void DidOverscroll( | 49 void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll, |
50 const gfx::Vector2dF& accumulated_overscroll, | 50 const gfx::Vector2dF& latest_overscroll_delta, |
51 const gfx::Vector2dF& latest_overscroll_delta, | 51 const gfx::Vector2dF& current_fling_velocity, |
52 const gfx::Vector2dF& current_fling_velocity, | 52 const gfx::PointF& causal_event_viewport_point) override; |
53 const gfx::PointF& causal_event_viewport_point) override; | |
54 void DidStartFlinging() override; | 53 void DidStartFlinging() override; |
55 void DidStopFlinging() override; | 54 void DidStopFlinging() override; |
56 void DidAnimateForInput() override; | 55 void DidAnimateForInput() override; |
57 | 56 |
58 private: | 57 private: |
59 InputHandlerManager* input_handler_manager_; | 58 InputHandlerManager* input_handler_manager_; |
60 int routing_id_; | 59 int routing_id_; |
61 ui::InputHandlerProxy input_handler_proxy_; | 60 ui::InputHandlerProxy input_handler_proxy_; |
62 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 61 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
63 | 62 |
64 // Can only be accessed on the main thread. | 63 // Can only be accessed on the main thread. |
65 base::WeakPtr<RenderViewImpl> render_view_impl_; | 64 base::WeakPtr<RenderViewImpl> render_view_impl_; |
66 | 65 |
67 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); | 66 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); |
68 }; | 67 }; |
69 | 68 |
70 } // namespace content | 69 } // namespace content |
71 | 70 |
72 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ | 71 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ |
OLD | NEW |