| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 void RegisterRoutingID(int routing_id); | 68 void RegisterRoutingID(int routing_id); |
| 69 void UnregisterRoutingID(int routing_id); | 69 void UnregisterRoutingID(int routing_id); |
| 70 | 70 |
| 71 void ObserveGestureEventAndResultOnMainThread( | 71 void ObserveGestureEventAndResultOnMainThread( |
| 72 int routing_id, | 72 int routing_id, |
| 73 const blink::WebGestureEvent& gesture_event, | 73 const blink::WebGestureEvent& gesture_event, |
| 74 const cc::InputHandlerScrollResult& scroll_result); | 74 const cc::InputHandlerScrollResult& scroll_result); |
| 75 | 75 |
| 76 void NotifyInputEventHandledOnMainThread(int routing_id, | 76 void NotifyInputEventHandledOnMainThread(int routing_id, |
| 77 blink::WebInputEvent::Type, | 77 blink::WebInputEvent::Type, |
| 78 blink::WebInputEventResult, |
| 78 InputEventAckState); | 79 InputEventAckState); |
| 79 void ProcessRafAlignedInputOnMainThread(int routing_id); | 80 void ProcessRafAlignedInputOnMainThread(int routing_id); |
| 80 | 81 |
| 81 // Callback only from the compositor's thread. | 82 // Callback only from the compositor's thread. |
| 82 void RemoveInputHandler(int routing_id); | 83 void RemoveInputHandler(int routing_id); |
| 83 | 84 |
| 84 using InputEventAckStateCallback = | 85 using InputEventAckStateCallback = |
| 85 base::Callback<void(InputEventAckState, | 86 base::Callback<void(InputEventAckState, |
| 86 blink::WebScopedInputEvent, | 87 blink::WebScopedInputEvent, |
| 87 const ui::LatencyInfo&, | 88 const ui::LatencyInfo&, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // May be null. | 150 // May be null. |
| 150 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 151 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
| 151 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 152 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
| 152 | 153 |
| 153 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; | 154 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 } // namespace content | 157 } // namespace content |
| 157 | 158 |
| 158 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 159 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
| OLD | NEW |