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

Unified Diff: public/web/WebInputEvent.h

Issue 703983002: Add preventPropagation bit to GestureScrollUpdate event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 1 month 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
« no previous file with comments | « Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebInputEvent.h
diff --git a/public/web/WebInputEvent.h b/public/web/WebInputEvent.h
index ab7e4aba73b7186d8a9a70ec2efc8ebdd5da7618..c90ca057052aadb5f94a6a3221249a050fa5641b 100644
--- a/public/web/WebInputEvent.h
+++ b/public/web/WebInputEvent.h
@@ -449,6 +449,8 @@ public:
float velocityX;
float velocityY;
+ // TODO: Use a bitfield instead of two ints for these flags
+
// Whether any previous GestureScrollUpdate in the current scroll
// sequence was suppressed (e.g., the causal touchmove was
// preventDefault'ed). This bit is particularly useful for
@@ -456,6 +458,9 @@ public:
// the entirety of the generative motion.
// See comment at the top for why an int is used here instead of a bool.
int previousUpdateInSequencePrevented;
+ // See comment at the top of the file for why an int is used here
+ // instead of a bool.
+ int preventPropagation;
} scrollUpdate;
struct {
« no previous file with comments | « Source/web/tests/WebInputEventConversionTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698