| 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..031852cea9dfe6bb360de72ab178ece749257d27
|
| --- /dev/null
|
| +++ b/third_party/WebKit/public/platform/WebEventListenerProperties.h
|
| @@ -0,0 +1,24 @@
|
| +// 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 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
|
|
|