| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 // Callback only from the compositor's thread. | 80 // Callback only from the compositor's thread. |
| 81 void RemoveInputHandler(int routing_id); | 81 void RemoveInputHandler(int routing_id); |
| 82 | 82 |
| 83 using InputEventAckStateCallback = | 83 using InputEventAckStateCallback = |
| 84 base::Callback<void(InputEventAckState, | 84 base::Callback<void(InputEventAckState, |
| 85 ui::ScopedWebInputEvent, | 85 ui::ScopedWebInputEvent, |
| 86 const ui::LatencyInfo&, | 86 const ui::LatencyInfo&, |
| 87 std::unique_ptr<ui::DidOverscrollParams>)>; | 87 std::unique_ptr<ui::DidOverscrollParams>)>; |
| 88 // Called from the compositor's thread. | 88 // Called from the compositor's thread. |
| 89 virtual void HandleInputEvent(int routing_id, | 89 virtual void HandleInputEvent( |
| 90 ui::ScopedWebInputEvent input_event, | 90 int routing_id, |
| 91 const ui::LatencyInfo& latency_info, | 91 ui::ScopedWebInputEvent input_event, |
| 92 const InputEventAckStateCallback& callback); | 92 const std::vector<const blink::WebInputEvent*>& coalescedEvents, |
| 93 const ui::LatencyInfo& latency_info, |
| 94 const InputEventAckStateCallback& callback); |
| 93 | 95 |
| 94 // Called from the compositor's thread. | 96 // Called from the compositor's thread. |
| 95 void DidOverscroll(int routing_id, const ui::DidOverscrollParams& params); | 97 void DidOverscroll(int routing_id, const ui::DidOverscrollParams& params); |
| 96 | 98 |
| 97 // Called from the compositor's thread. | 99 // Called from the compositor's thread. |
| 98 void DidStartFlinging(int routing_id); | 100 void DidStartFlinging(int routing_id); |
| 99 void DidStopFlinging(int routing_id); | 101 void DidStopFlinging(int routing_id); |
| 100 | 102 |
| 101 // Called from the compositor's thread. | 103 // Called from the compositor's thread. |
| 102 void DidAnimateForInput(); | 104 void DidAnimateForInput(); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // May be null. | 151 // May be null. |
| 150 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 152 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
| 151 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 153 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
| 152 | 154 |
| 153 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; | 155 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; |
| 154 }; | 156 }; |
| 155 | 157 |
| 156 } // namespace content | 158 } // namespace content |
| 157 | 159 |
| 158 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 160 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
| OLD | NEW |