Index: third_party/WebKit/public/platform/WebEventListenerProperties.h |
diff --git a/third_party/WebKit/public/platform/WebEventListenerProperties.h b/third_party/WebKit/public/platform/WebEventListenerProperties.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4765351801c130c7b0162cd25ffe4debb78e2b10 |
--- /dev/null |
+++ b/third_party/WebKit/public/platform/WebEventListenerProperties.h |
@@ -0,0 +1,29 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
aelias_OOO_until_Jul13
2016/02/02 22:18:50
nit: Copyright 2016
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WebEventListenerProperties_h |
+#define WebEventListenerProperties_h |
+ |
+#include "WebCommon.h" |
+ |
+namespace blink { |
+ |
+enum class WebEventListenerClass { |
+ Touch, |
+ MouseWheel |
+}; |
+ |
+enum class WebEventListenerProperties { |
+ Nothing = 0x0, // This should be "None"; but None #defined in X11's X.h |
+ Blocking = 0x1, |
+ Passive = 0x2, |
+}; |
+inline WebEventListenerProperties operator| (WebEventListenerProperties a, WebEventListenerProperties b) { return static_cast<WebEventListenerProperties>(static_cast<int32_t>(a) | static_cast<int32_t>(b)); } |
+inline WebEventListenerProperties& operator|= (WebEventListenerProperties& a, WebEventListenerProperties b) { return a = a | b; } |
+inline WebEventListenerProperties operator&(WebEventListenerProperties a, WebEventListenerProperties b) { return static_cast<WebEventListenerProperties>(static_cast<int32_t>(a) & static_cast<int32_t>(b)); } |
+inline WebEventListenerProperties& operator&= (WebEventListenerProperties& a, WebEventListenerProperties b) { return a = a & b; } |
+ |
+} // namespace blink |
+ |
+#endif |