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 WebEventListenerProperties_h | 5 #ifndef WebEventListenerProperties_h |
6 #define WebEventListenerProperties_h | 6 #define WebEventListenerProperties_h |
7 | 7 |
8 #include "WebCommon.h" | 8 #include "WebCommon.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 enum class WebEventListenerClass { | 12 enum class WebEventListenerClass { |
13 Touch, // This value includes "pointer" events. | 13 TouchStartOrMove, // This value includes "touchstart", "touchmove" and "poin
ter" events. |
14 MouseWheel // This value includes "wheel" and "mousewheel" events. | 14 MouseWheel, // This value includes "wheel" and "mousewheel" events. |
| 15 TouchEndOrCancel, // This value includes "touchend", "touchcancel" events. |
15 }; | 16 }; |
16 | 17 |
17 // Indicates the variety of event listener types for a given WebEventListenerCla
ss. | 18 // Indicates the variety of event listener types for a given WebEventListenerCla
ss. |
18 enum class WebEventListenerProperties { | 19 enum class WebEventListenerProperties { |
19 Nothing, // This should be "None"; but None #defined in X11's X.h | 20 Nothing, // This should be "None"; but None #defined in X11's X.h |
20 Passive, // This indicates solely passive listeners. | 21 Passive, // This indicates solely passive listeners. |
21 Blocking, // This indicates solely blocking listeners. | 22 Blocking, // This indicates solely blocking listeners. |
22 BlockingAndPassive, // This indicates >= 1 blocking listener and >= 1 passiv
e listeners. | 23 BlockingAndPassive, // This indicates >= 1 blocking listener and >= 1 passiv
e listeners. |
23 }; | 24 }; |
24 | 25 |
25 } // namespace blink | 26 } // namespace blink |
26 | 27 |
27 #endif | 28 #endif |
OLD | NEW |