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

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

Issue 156783006: Consuming a touch move prevents only the next scroll update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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..4d5f89ab6473058c387d27d8c507fc48708f1f5d 100644
--- a/content/browser/renderer_host/input/gesture_event_packet.h
+++ b/content/browser/renderer_host/input/gesture_event_packet.h
@@ -15,10 +15,12 @@ namespace content {
class CONTENT_EXPORT GestureEventPacket {
public:
enum GestureSource {
- INVALID = -1, // Used only for a default-constructed packet..
- TOUCH_BEGIN, // The start of a new gesture sequence.
- TOUCH, // Continuation of an existing gesture sequence.
- TOUCH_TIMEOUT, // Timeout from an existing gesture sequence.
+ INVALID = -1, // Used only for a default-constructed packet.
+ TOUCH_SEQUENCE_BEGIN, // The start of a new gesture sequence.
+ TOUCH_BEGIN, // A non-primary pointer was put down. TODO - reword these.
+ TOUCH_MOVE, // A touch point moved.
+ TOUCH_END, // A touch point lifted.
jdduke (slow) 2014/02/11 16:02:25 Now that we're adding a few types, do you think it
tdresser 2014/02/11 21:04:32 Done.
+ TOUCH_TIMEOUT, // Timeout from an existing gesture sequence.
};
GestureEventPacket();
@@ -42,6 +44,7 @@ private:
blink::WebGestureEvent gestures_[kMaxGesturesPerTouch];
size_t gesture_count_;
GestureSource gesture_source_;
+ bool is_independent_;
jdduke (slow) 2014/02/11 16:02:25 Do we still need this flag?
tdresser 2014/02/11 21:04:33 Nope, removed.
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698