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 "content/renderer/input/input_handler_manager.h" | 9 #include "content/renderer/input/input_handler_manager.h" |
10 #include "content/renderer/input/input_handler_proxy.h" | 10 #include "content/renderer/input/input_handler_proxy.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 // InputHandlerProxyClient implementation. | 28 // InputHandlerProxyClient implementation. |
29 void WillShutdown() override; | 29 void WillShutdown() override; |
30 void TransferActiveWheelFlingAnimation( | 30 void TransferActiveWheelFlingAnimation( |
31 const blink::WebActiveWheelFlingParameters& params) override; | 31 const blink::WebActiveWheelFlingParameters& params) override; |
32 blink::WebGestureCurve* CreateFlingAnimationCurve( | 32 blink::WebGestureCurve* CreateFlingAnimationCurve( |
33 blink::WebGestureDevice deviceSource, | 33 blink::WebGestureDevice deviceSource, |
34 const blink::WebFloatPoint& velocity, | 34 const blink::WebFloatPoint& velocity, |
35 const blink::WebSize& cumulativeScroll) override; | 35 const blink::WebSize& cumulativeScroll) override; |
36 void DidOverscroll(const DidOverscrollParams& params) override; | 36 void DidOverscroll(const DidOverscrollParams& params) override; |
37 void DidStopFlinging() override; | 37 void DidStopFlinging() override; |
38 void DidReceiveInputEvent(blink::WebInputEvent::Type type) override; | 38 void DidReceiveInputEvent( |
| 39 const blink::WebInputEvent& web_input_event) override; |
39 void DidAnimateForInput() override; | 40 void DidAnimateForInput() override; |
40 | 41 |
41 private: | 42 private: |
42 InputHandlerManager* input_handler_manager_; | 43 InputHandlerManager* input_handler_manager_; |
43 int routing_id_; | 44 int routing_id_; |
44 InputHandlerProxy input_handler_proxy_; | 45 InputHandlerProxy input_handler_proxy_; |
45 scoped_refptr<base::MessageLoopProxy> main_loop_; | 46 scoped_refptr<base::MessageLoopProxy> main_loop_; |
46 | 47 |
47 // Can only be accessed on the main thread. | 48 // Can only be accessed on the main thread. |
48 base::WeakPtr<RenderViewImpl> render_view_impl_; | 49 base::WeakPtr<RenderViewImpl> render_view_impl_; |
49 | 50 |
50 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); | 51 DISALLOW_COPY_AND_ASSIGN(InputHandlerWrapper); |
51 }; | 52 }; |
52 | 53 |
53 } // namespace content | 54 } // namespace content |
54 | 55 |
55 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ | 56 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_WRAPPER_H_ |
OLD | NEW |