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

Unified Diff: content/browser/renderer_host/input/gesture_event_packet.h

Issue 140253005: Add touch scrolling modes experimental flags (DEPRECATED) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct semantics to deal with ending events Created 6 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: content/browser/renderer_host/input/gesture_event_packet.h
diff --git a/content/browser/renderer_host/input/gesture_event_packet.h b/content/browser/renderer_host/input/gesture_event_packet.h
index 1227417ee86302c6fc6daee6ef39fb76adccd45c..7eab968d4da8aac554805ac0647261cfbb21267a 100644
--- a/content/browser/renderer_host/input/gesture_event_packet.h
+++ b/content/browser/renderer_host/input/gesture_event_packet.h
@@ -35,6 +35,11 @@ class CONTENT_EXPORT GestureEventPacket {
size_t gesture_count() const { return gesture_count_; }
GestureSource gesture_source() const { return gesture_source_; }
+ // Returns true if this packet only contains gestures which are logically
+ // local to the event that generated them. Dropping such a packet won't
+ // affect the semantics of subsequent packets.
+ bool is_independent() const { return is_independent_; }
+
private:
explicit GestureEventPacket(GestureSource source);
@@ -42,6 +47,7 @@ private:
blink::WebGestureEvent gestures_[kMaxGesturesPerTouch];
size_t gesture_count_;
GestureSource gesture_source_;
+ bool is_independent_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698