Index: ui/events/gesture_event_details.h |
diff --git a/ui/events/gesture_event_details.h b/ui/events/gesture_event_details.h |
index 2b066d56188c5a7ae999492165d8e74b81b8734f..fbae8191b52b0bc3665a472ad50ff800911473ae 100644 |
--- a/ui/events/gesture_event_details.h |
+++ b/ui/events/gesture_event_details.h |
@@ -45,6 +45,13 @@ struct EVENTS_BASE_EXPORT GestureEventDetails { |
device_type_ = device_type; |
} |
+ EventPointerType primary_pointer_type() const { |
+ return primary_pointer_type_; |
+ } |
+ void set_primary_pointer_type(EventPointerType primary_pointer_type) { |
+ primary_pointer_type_ = primary_pointer_type; |
+ } |
+ |
int touch_points() const { return touch_points_; } |
void set_touch_points(int touch_points) { |
DCHECK_GT(touch_points, 0); |
@@ -225,6 +232,9 @@ struct EVENTS_BASE_EXPORT GestureEventDetails { |
GestureDeviceType device_type_; |
+ // The pointer type for the first touch point in the gesture. |
+ EventPointerType primary_pointer_type_; |
+ |
int touch_points_; // Number of active touch points in the gesture. |
// Bounding box is an axis-aligned rectangle that contains all the |