OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_EVENT_LISTENER_PROPERTIES_H_ | 5 #ifndef CC_INPUT_EVENT_LISTENER_PROPERTIES_H_ |
6 #define CC_INPUT_EVENT_LISTENER_PROPERTIES_H_ | 6 #define CC_INPUT_EVENT_LISTENER_PROPERTIES_H_ |
7 | 7 |
8 namespace cc { | 8 namespace cc { |
9 | 9 |
10 enum class EventListenerClass { kTouch, kMouseWheel, kNumClasses }; | 10 enum class EventListenerClass { |
| 11 // This value includes "touchstart", "touchmove", and "pointer" events. |
| 12 kTouchStartOrMove, |
| 13 // This value includes "wheel" and "mousewheel" events. |
| 14 kMouseWheel, |
| 15 // This value includes "touchend" and "touchcancel" events. |
| 16 kTouchEndOrCancel, |
| 17 kNumClasses |
| 18 }; |
11 | 19 |
12 enum class EventListenerProperties { | 20 enum class EventListenerProperties { |
13 kNone, | 21 kNone, |
14 kPassive, | 22 kPassive, |
15 kBlocking, | 23 kBlocking, |
16 kBlockingAndPassive, | 24 kBlockingAndPassive, |
17 kMax | 25 kMax |
18 }; | 26 }; |
19 | 27 |
20 } // namespace cc | 28 } // namespace cc |
21 | 29 |
22 #endif // CC_INPUT_EVENT_LISTENER_PROPERTIES_H_ | 30 #endif // CC_INPUT_EVENT_LISTENER_PROPERTIES_H_ |
OLD | NEW |