| 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_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
| 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 class WebInputEvent; | 25 class WebInputEvent; |
| 26 class WebMouseWheelEvent; | 26 class WebMouseWheelEvent; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 namespace scheduler { | 30 namespace scheduler { |
| 31 class RendererScheduler; | 31 class RendererScheduler; |
| 32 } | 32 } |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace ui { |
| 36 struct DidOverscrollParams; |
| 37 } |
| 38 |
| 35 namespace content { | 39 namespace content { |
| 36 | 40 |
| 37 class InputHandlerWrapper; | 41 class InputHandlerWrapper; |
| 38 class SynchronousInputHandlerProxyClient; | 42 class SynchronousInputHandlerProxyClient; |
| 39 class InputHandlerManagerClient; | 43 class InputHandlerManagerClient; |
| 40 struct DidOverscrollParams; | 44 struct DidOverscrollParams; |
| 41 | 45 |
| 42 // InputHandlerManager class manages InputHandlerProxy instances for | 46 // InputHandlerManager class manages InputHandlerProxy instances for |
| 43 // the WebViews in this renderer. | 47 // the WebViews in this renderer. |
| 44 class CONTENT_EXPORT InputHandlerManager { | 48 class CONTENT_EXPORT InputHandlerManager { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 75 // Callback only from the compositor's thread. | 79 // Callback only from the compositor's thread. |
| 76 void RemoveInputHandler(int routing_id); | 80 void RemoveInputHandler(int routing_id); |
| 77 | 81 |
| 78 // Called from the compositor's thread. | 82 // Called from the compositor's thread. |
| 79 virtual InputEventAckState HandleInputEvent( | 83 virtual InputEventAckState HandleInputEvent( |
| 80 int routing_id, | 84 int routing_id, |
| 81 const blink::WebInputEvent* input_event, | 85 const blink::WebInputEvent* input_event, |
| 82 ui::LatencyInfo* latency_info); | 86 ui::LatencyInfo* latency_info); |
| 83 | 87 |
| 84 // Called from the compositor's thread. | 88 // Called from the compositor's thread. |
| 85 void DidOverscroll(int routing_id, const DidOverscrollParams& params); | 89 void DidOverscroll(int routing_id, const ui::DidOverscrollParams& params); |
| 86 | 90 |
| 87 // Called from the compositor's thread. | 91 // Called from the compositor's thread. |
| 88 void DidStartFlinging(int routing_id); | 92 void DidStartFlinging(int routing_id); |
| 89 void DidStopFlinging(int routing_id); | 93 void DidStopFlinging(int routing_id); |
| 90 | 94 |
| 91 // Called from the compositor's thread. | 95 // Called from the compositor's thread. |
| 92 void DidAnimateForInput(); | 96 void DidAnimateForInput(); |
| 93 | 97 |
| 94 private: | 98 private: |
| 95 // Called from the compositor's thread. | 99 // Called from the compositor's thread. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 121 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 125 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 122 InputHandlerManagerClient* const client_; | 126 InputHandlerManagerClient* const client_; |
| 123 // May be null. | 127 // May be null. |
| 124 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 128 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
| 125 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 129 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
| 126 }; | 130 }; |
| 127 | 131 |
| 128 } // namespace content | 132 } // namespace content |
| 129 | 133 |
| 130 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 134 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
| OLD | NEW |