| 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 <unordered_map> | 8 #include <unordered_map> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.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 DidOverscroll(int routing_id, const ui::DidOverscrollParams& params); | 98 void DidOverscroll(int routing_id, const ui::DidOverscrollParams& params); |
| 99 | 99 |
| 100 // Called from the compositor's thread. | 100 // Called from the compositor's thread. |
| 101 void DidStopFlinging(int routing_id); | 101 void DidStopFlinging(int routing_id); |
| 102 | 102 |
| 103 // Called from the compositor's thread. | 103 // Called from the compositor's thread. |
| 104 void DidAnimateForInput(); | 104 void DidAnimateForInput(); |
| 105 | 105 |
| 106 // Called from the compositor's thread. | 106 // Called from the compositor's thread. |
| 107 virtual void NeedsMainFrame(int routing_id); | 107 void NeedsMainFrame(int routing_id); |
| 108 | 108 |
| 109 // Called from the compositor's thread. | 109 // Called from the compositor's thread. |
| 110 void DispatchNonBlockingEventToMainThread( | 110 void DispatchNonBlockingEventToMainThread( |
| 111 int routing_id, | 111 int routing_id, |
| 112 ui::WebScopedInputEvent event, | 112 ui::WebScopedInputEvent event, |
| 113 const ui::LatencyInfo& latency_info); | 113 const ui::LatencyInfo& latency_info); |
| 114 | 114 |
| 115 private: | 115 private: |
| 116 // Called from the compositor's thread. | 116 // Called from the compositor's thread. |
| 117 void AddInputHandlerOnCompositorThread( | 117 void AddInputHandlerOnCompositorThread( |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // May be null. | 151 // May be null. |
| 152 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 152 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
| 153 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 153 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
| 154 | 154 |
| 155 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; | 155 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace content | 158 } // namespace content |
| 159 | 159 |
| 160 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 160 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
| OLD | NEW |