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

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

Issue 10365009: Adding Gesture Recognition to RenderWidgetHostViewWin (web client) (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 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);
};

Powered by Google App Engine
This is Rietveld 408576698