Chromium Code Reviews| Index: ui/views/events/event.h |
| diff --git a/ui/views/events/event.h b/ui/views/events/event.h |
| index 7574771071cc6ca148eea72e68dd2779aeb61922..3c7396b41c4f2d9a97765d334a5c739ca98305af 100644 |
| --- a/ui/views/events/event.h |
| +++ b/ui/views/events/event.h |
| @@ -415,6 +415,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, |
| + 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. |
| @@ -441,6 +450,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. |
|
sky
2012/05/03 22:39:19
Place |s variable names in comments, eg |touch_ids
|
| + // 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); |
| }; |