| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 blink::WebInputEventResult, |
| 79 InputEventAckState); | 79 InputEventAckState); |
| 80 void ProcessRafAlignedInputOnMainThread(int routing_id); | 80 void ProcessRafAlignedInputOnMainThread(int routing_id, |
| 81 double frame_time_sec); |
| 81 | 82 |
| 82 // Callback only from the compositor's thread. | 83 // Callback only from the compositor's thread. |
| 83 void RemoveInputHandler(int routing_id); | 84 void RemoveInputHandler(int routing_id); |
| 84 | 85 |
| 85 using InputEventAckStateCallback = | 86 using InputEventAckStateCallback = |
| 86 base::Callback<void(InputEventAckState, | 87 base::Callback<void(InputEventAckState, |
| 87 ui::WebScopedInputEvent, | 88 ui::WebScopedInputEvent, |
| 88 const ui::LatencyInfo&, | 89 const ui::LatencyInfo&, |
| 89 std::unique_ptr<ui::DidOverscrollParams>)>; | 90 std::unique_ptr<ui::DidOverscrollParams>)>; |
| 90 // Called from the compositor's thread. | 91 // Called from the compositor's thread. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // May be null. | 151 // May be null. |
| 151 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 152 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
| 152 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 153 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
| 153 | 154 |
| 154 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; | 155 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 } // namespace content | 158 } // namespace content |
| 158 | 159 |
| 159 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 160 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
| OLD | NEW |