| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(int routing_id, |
| 90 ui::ScopedWebInputEvent input_event, | 90 ui::ScopedWebInputEvent input_event, |
| 91 const ui::LatencyInfo& latency_info, | 91 const ui::LatencyInfo& latency_info, |
| 92 const InputEventAckStateCallback& callback); | 92 const InputEventAckStateCallback& callback); |
| 93 | 93 |
| 94 // Called from the compositor's thread. | 94 // Called from the compositor's thread. |
| 95 void DidOverscroll(int routing_id, const ui::DidOverscrollParams& params); | 95 void DidOverscroll(int routing_id, const ui::DidOverscrollParams& params); |
| 96 | 96 |
| 97 // Called from the compositor's thread. | 97 // Called from the compositor's thread. |
| 98 void DidStartFlinging(int routing_id); | |
| 99 void DidStopFlinging(int routing_id); | 98 void DidStopFlinging(int routing_id); |
| 100 | 99 |
| 101 // Called from the compositor's thread. | 100 // Called from the compositor's thread. |
| 102 void DidAnimateForInput(); | 101 void DidAnimateForInput(); |
| 103 | 102 |
| 104 // Called from the compositor's thread. | 103 // Called from the compositor's thread. |
| 105 void NeedsMainFrame(int routing_id); | 104 void NeedsMainFrame(int routing_id); |
| 106 | 105 |
| 107 // Called from the compositor's thread. | 106 // Called from the compositor's thread. |
| 108 void DispatchNonBlockingEventToMainThread( | 107 void DispatchNonBlockingEventToMainThread( |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // May be null. | 148 // May be null. |
| 150 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 149 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
| 151 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 150 blink::scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
| 152 | 151 |
| 153 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; | 152 base::WeakPtrFactory<InputHandlerManager> weak_ptr_factory_; |
| 154 }; | 153 }; |
| 155 | 154 |
| 156 } // namespace content | 155 } // namespace content |
| 157 | 156 |
| 158 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 157 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
| OLD | NEW |