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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 base::Callback<void(InputEventAckState, | 87 base::Callback<void(InputEventAckState, |
88 ui::WebScopedInputEvent, | 88 ui::WebScopedInputEvent, |
89 const ui::LatencyInfo&, | 89 const ui::LatencyInfo&, |
90 std::unique_ptr<ui::DidOverscrollParams>)>; | 90 std::unique_ptr<ui::DidOverscrollParams>)>; |
91 // Called from the compositor's thread. | 91 // Called from the compositor's thread. |
92 virtual void HandleInputEvent(int routing_id, | 92 virtual void HandleInputEvent(int routing_id, |
93 ui::WebScopedInputEvent input_event, | 93 ui::WebScopedInputEvent input_event, |
94 const ui::LatencyInfo& latency_info, | 94 const ui::LatencyInfo& latency_info, |
95 const InputEventAckStateCallback& callback); | 95 const InputEventAckStateCallback& callback); |
96 | 96 |
| 97 virtual void QueueClosureForMainThreadEventQueue( |
| 98 int routing_id, |
| 99 const base::Closure& closure); |
97 // Called from the compositor's thread. | 100 // Called from the compositor's thread. |
98 void DidOverscroll(int routing_id, const ui::DidOverscrollParams& params); | 101 void DidOverscroll(int routing_id, const ui::DidOverscrollParams& params); |
99 | 102 |
100 // Called from the compositor's thread. | 103 // Called from the compositor's thread. |
101 void DidStopFlinging(int routing_id); | 104 void DidStopFlinging(int routing_id); |
102 | 105 |
103 // Called from the compositor's thread. | 106 // Called from the compositor's thread. |
104 void DidAnimateForInput(); | 107 void DidAnimateForInput(); |
105 | 108 |
106 // Called from the compositor's thread. | 109 // Called from the compositor's thread. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // May be null. | 154 // May be null. |
152 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 155 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
153 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 156 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
154 | 157 |
155 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; | 158 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; |
156 }; | 159 }; |
157 | 160 |
158 } // namespace content | 161 } // namespace content |
159 | 162 |
160 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 163 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
OLD | NEW |