| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // Called from the compositor's thread. | 97 // Called from the compositor's thread. |
| 98 void DidStartFlinging(int routing_id); | 98 void DidStartFlinging(int routing_id); |
| 99 void DidStopFlinging(int routing_id); | 99 void DidStopFlinging(int routing_id); |
| 100 | 100 |
| 101 // Called from the compositor's thread. | 101 // Called from the compositor's thread. |
| 102 void DidAnimateForInput(); | 102 void DidAnimateForInput(); |
| 103 | 103 |
| 104 // Called from the compositor's thread. | 104 // Called from the compositor's thread. |
| 105 void NeedsMainFrame(int routing_id); | 105 void NeedsMainFrame(int routing_id); |
| 106 | 106 |
| 107 // Called from the compositor's thread. |
| 108 void DispatchNonBlockingEventToMainThread(int routing_id, |
| 109 ui::ScopedWebInputEvent event); |
| 110 |
| 107 private: | 111 private: |
| 108 // Called from the compositor's thread. | 112 // Called from the compositor's thread. |
| 109 void AddInputHandlerOnCompositorThread( | 113 void AddInputHandlerOnCompositorThread( |
| 110 int routing_id, | 114 int routing_id, |
| 111 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, | 115 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, |
| 112 const base::WeakPtr<cc::InputHandler>& input_handler, | 116 const base::WeakPtr<cc::InputHandler>& input_handler, |
| 113 const base::WeakPtr<RenderViewImpl>& render_view_impl, | 117 const base::WeakPtr<RenderViewImpl>& render_view_impl, |
| 114 bool enable_smooth_scrolling); | 118 bool enable_smooth_scrolling); |
| 115 | 119 |
| 116 void RegisterRoutingIDOnCompositorThread(int routing_id); | 120 void RegisterRoutingIDOnCompositorThread(int routing_id); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 143 // May be null. | 147 // May be null. |
| 144 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 148 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
| 145 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 149 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
| 146 | 150 |
| 147 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; | 151 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; |
| 148 }; | 152 }; |
| 149 | 153 |
| 150 } // namespace content | 154 } // namespace content |
| 151 | 155 |
| 152 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 156 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
| OLD | NEW |