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

Unified Diff: sky/services/viewport/input_event.mojom

Issue 969493002: Add support for scroll and fling gestures to SkyShell. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: updated Created 5 years, 10 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
« no previous file with comments | « sky/framework/sky-scrollable.sky ('k') | sky/shell/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/services/viewport/input_event.mojom
diff --git a/sky/services/viewport/input_event.mojom b/sky/services/viewport/input_event.mojom
index 21cf84c760246a70c871f3623d25a3dac85ac456..3e8461959f7a94ae963518f2a4f0367f5356e8a3 100644
--- a/sky/services/viewport/input_event.mojom
+++ b/sky/services/viewport/input_event.mojom
@@ -10,6 +10,11 @@ enum EventType {
POINTER_UP,
POINTER_MOVE,
POINTER_CANCEL,
+ GESTURE_SCROLL_BEGIN,
+ GESTURE_SCROLL_UPDATE,
+ GESTURE_SCROLL_END,
+ GESTURE_FLING_START,
+ GESTURE_FLING_CANCEL,
};
enum PointerKind {
@@ -36,8 +41,18 @@ struct PointerData {
float tilt;
};
+struct GestureData {
+ float x;
+ float y;
+ float dx;
+ float dy;
+ float velocityX;
+ float velocityY;
+};
+
struct InputEvent {
EventType type;
int64 time_stamp;
PointerData? pointer_data;
+ GestureData? gesture_data;
};
« no previous file with comments | « sky/framework/sky-scrollable.sky ('k') | sky/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698