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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 DidStopFlinging(int routing_id); | 88 void DidStopFlinging(int routing_id); |
89 | 89 |
90 // Called from the compositor's thread. | 90 // Called from the compositor's thread. |
91 void DidAnimateForInput(); | 91 void DidAnimateForInput(); |
92 | 92 |
| 93 void DidStartFlinging(bool is_on_impl); |
| 94 |
93 private: | 95 private: |
94 // Called from the compositor's thread. | 96 // Called from the compositor's thread. |
95 void AddInputHandlerOnCompositorThread( | 97 void AddInputHandlerOnCompositorThread( |
96 int routing_id, | 98 int routing_id, |
97 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, | 99 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, |
98 const base::WeakPtr<cc::InputHandler>& input_handler, | 100 const base::WeakPtr<cc::InputHandler>& input_handler, |
99 const base::WeakPtr<RenderViewImpl>& render_view_impl, | 101 const base::WeakPtr<RenderViewImpl>& render_view_impl, |
100 bool enable_smooth_scrolling, | 102 bool enable_smooth_scrolling, |
101 bool enable_wheel_gestures); | 103 bool enable_wheel_gestures); |
102 | 104 |
(...skipping 18 matching lines...) Expand all Loading... |
121 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 123 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
122 InputHandlerManagerClient* const client_; | 124 InputHandlerManagerClient* const client_; |
123 // May be null. | 125 // May be null. |
124 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 126 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
125 scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 127 scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
126 }; | 128 }; |
127 | 129 |
128 } // namespace content | 130 } // namespace content |
129 | 131 |
130 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 132 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
OLD | NEW |