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

Unified Diff: ui/views/events/event.h

Issue 10134045: Getting RenderWidgetHostViewWin ready for a GestureRecognizer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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: 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);
};

Powered by Google App Engine
This is Rietveld 408576698