| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 enum ScrollInputType { | 102 enum ScrollInputType { |
| 103 // TODO(dtapuska): crbug.com/593017; Remove GESTURE and just use | 103 TOUCHSCREEN, |
| 104 // TOUCHSCREEN. | |
| 105 GESTURE, | |
| 106 TOUCHSCREEN = GESTURE, | |
| 107 WHEEL, | 104 WHEEL, |
| 108 ANIMATED_WHEEL, | 105 ANIMATED_WHEEL, |
| 109 NON_BUBBLING_GESTURE | 106 NON_BUBBLING_GESTURE |
| 110 }; | 107 }; |
| 111 | 108 |
| 112 // Binds a client to this handler to receive notifications. Only one client | 109 // Binds a client to this handler to receive notifications. Only one client |
| 113 // can be bound to an InputHandler. The client must live at least until the | 110 // can be bound to an InputHandler. The client must live at least until the |
| 114 // handler calls WillShutdown() on the client. | 111 // handler calls WillShutdown() on the client. |
| 115 virtual void BindToClient(InputHandlerClient* client) = 0; | 112 virtual void BindToClient(InputHandlerClient* client) = 0; |
| 116 | 113 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 InputHandler() {} | 203 InputHandler() {} |
| 207 virtual ~InputHandler() {} | 204 virtual ~InputHandler() {} |
| 208 | 205 |
| 209 private: | 206 private: |
| 210 DISALLOW_COPY_AND_ASSIGN(InputHandler); | 207 DISALLOW_COPY_AND_ASSIGN(InputHandler); |
| 211 }; | 208 }; |
| 212 | 209 |
| 213 } // namespace cc | 210 } // namespace cc |
| 214 | 211 |
| 215 #endif // CC_INPUT_INPUT_HANDLER_H_ | 212 #endif // CC_INPUT_INPUT_HANDLER_H_ |
| OLD | NEW |