OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
aelias_OOO_until_Jul13
2016/02/02 22:18:50
nit: Copyright 2016
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WebEventListenerProperties_h | |
6 #define WebEventListenerProperties_h | |
7 | |
8 #include "WebCommon.h" | |
9 | |
10 namespace blink { | |
11 | |
12 enum class WebEventListenerClass { | |
13 Touch, | |
14 MouseWheel | |
15 }; | |
16 | |
17 enum class WebEventListenerProperties { | |
18 Nothing = 0x0, // This should be "None"; but None #defined in X11's X.h | |
19 Blocking = 0x1, | |
20 Passive = 0x2, | |
21 }; | |
22 inline WebEventListenerProperties operator| (WebEventListenerProperties a, WebEv entListenerProperties b) { return static_cast<WebEventListenerProperties>(static _cast<int32_t>(a) | static_cast<int32_t>(b)); } | |
23 inline WebEventListenerProperties& operator|= (WebEventListenerProperties& a, We bEventListenerProperties b) { return a = a | b; } | |
24 inline WebEventListenerProperties operator&(WebEventListenerProperties a, WebEve ntListenerProperties b) { return static_cast<WebEventListenerProperties>(static_ cast<int32_t>(a) & static_cast<int32_t>(b)); } | |
25 inline WebEventListenerProperties& operator&= (WebEventListenerProperties& a, We bEventListenerProperties b) { return a = a & b; } | |
26 | |
27 } // namespace blink | |
28 | |
29 #endif | |
OLD | NEW |