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

Unified Diff: cc/input/event_listener_properties.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: cc/input/event_listener_properties.h
diff --git a/cc/input/event_listener_properties.h b/cc/input/event_listener_properties.h
new file mode 100644
index 0000000000000000000000000000000000000000..543254e62ae7f0d3399d0af6d21c29eee6be3b14
--- /dev/null
+++ b/cc/input/event_listener_properties.h
@@ -0,0 +1,21 @@
+// Copyright 2016 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 CC_INPUT_EVENT_LISTENER_PROPERTIES_H_
+#define CC_INPUT_EVENT_LISTENER_PROPERTIES_H_
+
+namespace cc {
+
+enum class EventListenerClass { kTouch, kMouseWheel, kNumClasses };
+
+struct EventListenerProperties {
+ enum : uint32_t { kNone = 0 };
+ enum : uint32_t { kBlocking = 1 << 0 };
+ enum : uint32_t { kPassive = 1 << 1 };
+ enum : uint32_t { kMax = kPassive | kBlocking };
+};
+
+} // namespace cc
+
+#endif // CC_INPUT_EVENT_LISTENER_PROPERTIES_H_

Powered by Google App Engine
This is Rietveld 408576698