OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 CC_INPUT_INPUT_HANDLER_H_ | 5 #ifndef CC_INPUT_INPUT_HANDLER_H_ |
6 #define CC_INPUT_INPUT_HANDLER_H_ | 6 #define CC_INPUT_INPUT_HANDLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 : thread(SCROLL_ON_IMPL_THREAD), | 92 : thread(SCROLL_ON_IMPL_THREAD), |
93 main_thread_scrolling_reasons( | 93 main_thread_scrolling_reasons( |
94 MainThreadScrollingReason::kNotScrollingOnMain) {} | 94 MainThreadScrollingReason::kNotScrollingOnMain) {} |
95 ScrollStatus(ScrollThread thread, uint32_t main_thread_scrolling_reasons) | 95 ScrollStatus(ScrollThread thread, uint32_t main_thread_scrolling_reasons) |
96 : thread(thread), | 96 : thread(thread), |
97 main_thread_scrolling_reasons(main_thread_scrolling_reasons) {} | 97 main_thread_scrolling_reasons(main_thread_scrolling_reasons) {} |
98 ScrollThread thread; | 98 ScrollThread thread; |
99 uint32_t main_thread_scrolling_reasons; | 99 uint32_t main_thread_scrolling_reasons; |
100 }; | 100 }; |
101 | 101 |
| 102 // TODO(ymalik): Remove ANIMATED_WHEEL once it is no longer special cased. |
| 103 // see crbug.com/575019. |
102 enum ScrollInputType { | 104 enum ScrollInputType { |
103 TOUCHSCREEN, | 105 TOUCHSCREEN, |
104 WHEEL, | 106 WHEEL, |
105 ANIMATED_WHEEL, | 107 ANIMATED_WHEEL, |
106 NON_BUBBLING_GESTURE | 108 NON_BUBBLING_GESTURE |
107 }; | 109 }; |
108 | 110 |
109 // Binds a client to this handler to receive notifications. Only one client | 111 // Binds a client to this handler to receive notifications. Only one client |
110 // can be bound to an InputHandler. The client must live at least until the | 112 // can be bound to an InputHandler. The client must live at least until the |
111 // handler calls WillShutdown() on the client. | 113 // handler calls WillShutdown() on the client. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 InputHandler() {} | 205 InputHandler() {} |
204 virtual ~InputHandler() {} | 206 virtual ~InputHandler() {} |
205 | 207 |
206 private: | 208 private: |
207 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 209 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
208 }; | 210 }; |
209 | 211 |
210 } // namespace cc | 212 } // namespace cc |
211 | 213 |
212 #endif // CC_INPUT_INPUT_HANDLER_H_ | 214 #endif // CC_INPUT_INPUT_HANDLER_H_ |
OLD | NEW |