Chromium Code Reviews| 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. |
| +// 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 { |
|
Rick Byers
2016/02/02 21:44:46
mention here that "touch" includes pointer event l
dtapuska
2016/02/03 16:30:58
Done.
|
| + Touch, |
| + MouseWheel |
| +}; |
| + |
| +enum class WebEventListenerProperties { |
|
Rick Byers
2016/02/02 21:44:46
Please add a brief comment (in particular I find t
dtapuska
2016/02/03 16:30:58
Done.
|
| + Nothing = 0x0, // This should be "None"; but None #defined in X11's X.h |
| + Blocking = 0x1, |
| + Passive = 0x2, |
|
Rick Byers
2016/02/02 21:44:46
Do you really need to differentiate the 'Blocking|
dtapuska
2016/02/03 16:30:58
Done.
|
| +}; |
| +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 |