| 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/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "content/renderer/input/input_handler_manager.h" | 10 #include "content/renderer/input/input_handler_manager.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 InputHandlerProxy* input_handler_proxy() { return &input_handler_proxy_; } | 28 InputHandlerProxy* input_handler_proxy() { return &input_handler_proxy_; } |
| 29 | 29 |
| 30 // InputHandlerProxyClient implementation. | 30 // InputHandlerProxyClient implementation. |
| 31 void WillShutdown() override; | 31 void WillShutdown() override; |
| 32 void TransferActiveWheelFlingAnimation( | 32 void TransferActiveWheelFlingAnimation( |
| 33 const blink::WebActiveWheelFlingParameters& params) override; | 33 const blink::WebActiveWheelFlingParameters& params) override; |
| 34 blink::WebGestureCurve* CreateFlingAnimationCurve( | 34 blink::WebGestureCurve* CreateFlingAnimationCurve( |
| 35 blink::WebGestureDevice deviceSource, | 35 blink::WebGestureDevice deviceSource, |
| 36 const blink::WebFloatPoint& velocity, | 36 const blink::WebFloatPoint& velocity, |
| 37 const blink::WebSize& cumulativeScroll) override; | 37 const blink::WebSize& cumulativeScroll) override; |
| 38 blink::WebGestureCurve* CreateSmoothScrollAnimationCurve( |
| 39 blink::WebGestureDevice deviceSource, |
| 40 float start_x, |
| 41 float start_y, |
| 42 float dx, |
| 43 float dy, |
| 44 long duration) override; |
| 38 void DidOverscroll(const DidOverscrollParams& params) override; | 45 void DidOverscroll(const DidOverscrollParams& params) override; |
| 39 void DidStopFlinging() override; | 46 void DidStopFlinging() override; |
| 40 void DidAnimateForInput() override; | 47 void DidAnimateForInput() override; |
| 41 | 48 |
| 42 private: | 49 private: |
| 43 InputHandlerManager* input_handler_manager_; | 50 InputHandlerManager* input_handler_manager_; |
| 44 int routing_id_; | 51 int routing_id_; |
| 45 InputHandlerProxy input_handler_proxy_; | 52 InputHandlerProxy input_handler_proxy_; |
| 46 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 53 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 47 | 54 |
| 48 // Can only be accessed on the main thread. | 55 // Can only be accessed on the main thread. |
| 49 base::WeakPtr<RenderViewImpl> render_view_impl_; | 56 base::WeakPtr<RenderViewImpl> render_view_impl_; |
| 50 | 57 |
| 51 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); | 58 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); |
| 52 }; | 59 }; |
| 53 | 60 |
| 54 } // namespace content | 61 } // namespace content |
| 55 | 62 |
| 56 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ | 63 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ |
| OLD | NEW |