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

Unified Diff: content/common/input/web_touch_event_traits.h

Issue 375863005: Touch emulator: allow multiple touch streams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Do not clear sequence count when reenabling Created 6 years, 5 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: content/common/input/web_touch_event_traits.h
diff --git a/content/common/input/web_touch_event_traits.h b/content/common/input/web_touch_event_traits.h
index 74e9d6eb7de3b6864f85db2d82f0acc840b406bc..a29c0709af641c21e5885b44e2b7145c772b243f 100644
--- a/content/common/input/web_touch_event_traits.h
+++ b/content/common/input/web_touch_event_traits.h
@@ -22,6 +22,10 @@ class CONTENT_EXPORT WebTouchEventTraits {
// touches to some active touches (the start of a new "touch sequence").
static bool IsTouchSequenceStart(const blink::WebTouchEvent& event);
+ // Returns whether this event represents a transition from active
+ // touches to no active touches (the end of a "touch sequence").
+ static bool IsTouchSequenceEnd(const blink::WebTouchEvent& event);
+
// Sets the type of |event| to |type|, resetting any other type-specific
// properties and updating the timestamp.
static void ResetType(blink::WebInputEvent::Type type,

Powered by Google App Engine
This is Rietveld 408576698