Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1416)

Unified Diff: third_party/WebKit/public/platform/WebEventListenerProperties.h

Issue 1577263004: Communicate whether passive event listeners exist to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners
Patch Set: Rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698