Index: ui/views/events/event.h |
diff --git a/ui/views/events/event.h b/ui/views/events/event.h |
index 46a9e2be41988b1134aa4a6e1bb85ae7aebee0f0..059fdf39ef8b9d2e00d356345fc75ec1155d5d54 100644 |
--- a/ui/views/events/event.h |
+++ b/ui/views/events/event.h |
@@ -406,6 +406,15 @@ class VIEWS_EXPORT ScrollEvent : public MouseEvent { |
class VIEWS_EXPORT GestureEvent : public LocatedEvent, |
public ui::GestureEvent { |
public: |
+ GestureEvent(ui::EventType type, |
+ int x, |
+ int y, |
+ int flags, |
+ const base::Time& time_stamp, |
+ float delta_x, |
+ float delta_y, |
+ unsigned int touch_ids_bitfield); |
+ |
explicit GestureEvent(const NativeEvent& native_event); |
// Create a new GestureEvent which is identical to the provided model. |
@@ -432,6 +441,12 @@ class VIEWS_EXPORT GestureEvent : public LocatedEvent, |
float delta_x_; |
float delta_y_; |
+ // The set of indices of ones in the binary representation of |
+ // |touch_ids_bitfield_| is the set of touch_ids associate with this gesture. |
+ // This value is stored as a bitfield because the number of touch ids varies, |
+ // but we currently don't need more than 32 touches at a time. |
+ const unsigned int touch_ids_bitfield_; |
+ |
DISALLOW_COPY_AND_ASSIGN(GestureEvent); |
}; |