Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / ui / events / gesture_event_details.h
index 32db808..58d28fa 100644 (file)
@@ -26,6 +26,12 @@ struct EVENTS_BASE_EXPORT GestureEventDetails {
     touch_points_ = touch_points;
   }
 
+  int oldest_touch_id() const { return oldest_touch_id_; }
+  void set_oldest_touch_id(int oldest_touch_id) {
+    DCHECK_GE(oldest_touch_id, 0);
+    oldest_touch_id_ = oldest_touch_id;
+  }
+
   // TODO(tdresser): Return RectF. See crbug.com/337824.
   const gfx::Rect bounding_box() const {
     return ToEnclosingRect(bounding_box_);
@@ -164,6 +170,9 @@ struct EVENTS_BASE_EXPORT GestureEventDetails {
   // Bounding box is an axis-aligned rectangle that contains all the
   // enclosing rectangles of the touch-points in the gesture.
   gfx::RectF bounding_box_;
+
+  // The touch id of the oldest touch contributing to the gesture.
+  int oldest_touch_id_;
 };
 
 }  // namespace ui