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

Unified Diff: public/web/WebInputEvent.h

Issue 702883004: Expose whether a touch event may cause scrolling if uncanceled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comment 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/WebInputEvent.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 9f4722a2053b6261cdfb42e59823436c0ac1dd5e..9767f31a9be6c015377bbc8c810a03045e2843d5 100644
--- a/public/web/WebInputEvent.h
+++ b/public/web/WebInputEvent.h
@@ -166,14 +166,6 @@ public:
// Left/right modifiers for keyboard events.
IsLeft = 1 << 11,
IsRight = 1 << 12,
-
- // Last input event to be sent for the current vsync interval. If this
- // flag is set, the sender guarantees that no more input events will be
- // delivered until the next vsync and the receiver can schedule
- // rendering accordingly. If it isn't set, the receiver should not make
- // any assumptions about the delivery times of future input events
- // w.r.t. vsync.
- IsLastInputEventForCurrentVSync = 1 << 13,
};
static const int InputModifiers = ShiftKey | ControlKey | AltKey | MetaKey;
@@ -496,10 +488,17 @@ public:
// See comment at the top for why an int is used here instead of a bool.
int cancelable;
+ // Whether the event may cause scrolling if not canceled. This will be true
+ // for touchmove events after the platform slop region has been exceeded
+ // and touchend events that induce a fling.
+ // See comment at the top for why an int is used here instead of a bool.
+ int mayCauseScrollingIfUncanceled;
Rick Byers 2014/11/10 18:56:04 Nit: if it really "will be true for ..." then why
+
WebTouchEvent()
: WebInputEvent(sizeof(WebTouchEvent))
, touchesLength(0)
, cancelable(true)
+ , mayCauseScrollingIfUncanceled(false)
{
}
};
« no previous file with comments | « Source/web/WebInputEvent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698