summaryrefslogtreecommitdiffstats
path: root/cc/input
diff options
context:
space:
mode:
authordtapuska <dtapuska@chromium.org>2016-02-11 16:15:32 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-12 00:16:30 +0000
commit364349a3c0f701a0397ef5ffaaf948ad037fb369 (patch)
treee4af8cac4eca20fdbbf4d1a303922e6eff0ca49e /cc/input
parent16febb404edc59fb8dbb13a13c68ccecfb5a0bf1 (diff)
downloadchromium_src-364349a3c0f701a0397ef5ffaaf948ad037fb369.zip
chromium_src-364349a3c0f701a0397ef5ffaaf948ad037fb369.tar.gz
chromium_src-364349a3c0f701a0397ef5ffaaf948ad037fb369.tar.bz2
Add knowledge about blocking and passive event listeners.
Originally we though we could just get away with assuming blocking represented blocking and passive. But it is the case when there are touch event listeners that aren't hit we must fire touch events to the main thread which aren't really necessarily. Change this to be an enumeration of kBlockingAndPassive. BUG=489802 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1686833002 Cr-Commit-Position: refs/heads/master@{#375054}
Diffstat (limited to 'cc/input')
-rw-r--r--cc/input/event_listener_properties.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/cc/input/event_listener_properties.h b/cc/input/event_listener_properties.h
index 2755c6e..6b9141d 100644
--- a/cc/input/event_listener_properties.h
+++ b/cc/input/event_listener_properties.h
@@ -9,7 +9,13 @@ namespace cc {
enum class EventListenerClass { kTouch, kMouseWheel, kNumClasses };
-enum class EventListenerProperties { kNone, kPassive, kBlocking, kMax };
+enum class EventListenerProperties {
+ kNone,
+ kPassive,
+ kBlocking,
+ kBlockingAndPassive,
+ kMax
+};
} // namespace cc