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

Unified Diff: mojo/services/input_events/public/interfaces/input_events.mojom

Issue 788953007: Populate details of Mojo gesture events (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: mojo/services/input_events/public/interfaces/input_events.mojom
diff --git a/mojo/services/input_events/public/interfaces/input_events.mojom b/mojo/services/input_events/public/interfaces/input_events.mojom
index 4e7dbb5d8487a47c47ee313aa0beb86f5708ce10..1cab57905ad4d7e5068391c1d40a762b4123e6d7 100644
--- a/mojo/services/input_events/public/interfaces/input_events.mojom
+++ b/mojo/services/input_events/public/interfaces/input_events.mojom
@@ -56,6 +56,31 @@ struct TouchData {
int32 pointer_id;
};
+struct GestureData {
+ // A bounding box for all the input events that contributed to this gesture.
+ RectF? bounding_box;
+
+ // GESTURE_SCROLL_UPDATE
+ float scroll_x;
+ float scroll_y;
+
+ // SCROLL_FLING_START
+ float velocity_x;
+ float velocity_y;
+
+ // GESTURE_PINCH_UPDATE
+ float scale;
+
+ // GESTURE_SWIPE
+ bool swipe_left;
+ bool swipe_right;
+ bool swipe_up;
+ bool swipe_down;
+
+ // GESTURE_TAP and GESTURE_TAP_UNCONFIRMED and GESTURE_DOUBLE_TAP
+ int32 tap_count;
+};
+
struct MouseWheelData {
int32 x_offset;
int32 y_offset;
@@ -68,5 +93,6 @@ struct Event {
LocationData? location_data;
KeyData? key_data;
TouchData? touch_data;
+ GestureData? gesture_data;
MouseWheelData? wheel_data;
};
« no previous file with comments | « mojo/converters/input_events/input_events_type_converters.cc ('k') | sky/viewer/converters/input_event_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698