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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Called from the compositor's thread. | 78 // Called from the compositor's thread. |
79 virtual InputEventAckState HandleInputEvent( | 79 virtual InputEventAckState HandleInputEvent( |
80 int routing_id, | 80 int routing_id, |
81 const blink::WebInputEvent* input_event, | 81 const blink::WebInputEvent* input_event, |
82 ui::LatencyInfo* latency_info); | 82 ui::LatencyInfo* latency_info); |
83 | 83 |
84 // Called from the compositor's thread. | 84 // Called from the compositor's thread. |
85 void DidOverscroll(int routing_id, const DidOverscrollParams& params); | 85 void DidOverscroll(int routing_id, const DidOverscrollParams& params); |
86 | 86 |
87 // Called from the compositor's thread. | 87 // Called from the compositor's thread. |
| 88 void DidStartFlinging(int routing_id); |
88 void DidStopFlinging(int routing_id); | 89 void DidStopFlinging(int routing_id); |
89 | 90 |
90 // Called from the compositor's thread. | 91 // Called from the compositor's thread. |
91 void DidAnimateForInput(); | 92 void DidAnimateForInput(); |
92 | 93 |
93 private: | 94 private: |
94 // Called from the compositor's thread. | 95 // Called from the compositor's thread. |
95 void AddInputHandlerOnCompositorThread( | 96 void AddInputHandlerOnCompositorThread( |
96 int routing_id, | 97 int routing_id, |
97 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, | 98 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, |
(...skipping 23 matching lines...) Expand all Loading... |
121 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 122 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
122 InputHandlerManagerClient* const client_; | 123 InputHandlerManagerClient* const client_; |
123 // May be null. | 124 // May be null. |
124 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 125 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
125 scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 126 scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
126 }; | 127 }; |
127 | 128 |
128 } // namespace content | 129 } // namespace content |
129 | 130 |
130 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 131 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
OLD | NEW |