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

Side by Side Diff: sky/services/viewport/input_event.mojom

Issue 1176373004: Wire up Android back button in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module sky; 5 module sky;
6 6
7 enum EventType { 7 enum EventType {
8 UNKNOWN, 8 UNKNOWN,
9 POINTER_CANCEL, 9 POINTER_CANCEL,
10 POINTER_DOWN, 10 POINTER_DOWN,
11 POINTER_MOVE, 11 POINTER_MOVE,
12 POINTER_UP, 12 POINTER_UP,
13 GESTURE_FLING_CANCEL, 13 GESTURE_FLING_CANCEL,
14 GESTURE_FLING_START, 14 GESTURE_FLING_START,
15 GESTURE_LONG_PRESS, 15 GESTURE_LONG_PRESS,
16 GESTURE_SCROLL_BEGIN, 16 GESTURE_SCROLL_BEGIN,
17 GESTURE_SCROLL_END, 17 GESTURE_SCROLL_END,
18 GESTURE_SCROLL_UPDATE, 18 GESTURE_SCROLL_UPDATE,
19 GESTURE_SHOW_PRESS, 19 GESTURE_SHOW_PRESS,
20 GESTURE_TAP, 20 GESTURE_TAP,
21 GESTURE_TAP_DOWN, 21 GESTURE_TAP_DOWN,
22 BACK,
22 }; 23 };
23 24
24 enum PointerKind { 25 enum PointerKind {
25 TOUCH, 26 TOUCH,
26 }; 27 };
27 28
28 struct PointerData { 29 struct PointerData {
29 int32 pointer; 30 int32 pointer;
30 PointerKind kind; 31 PointerKind kind;
31 float x; 32 float x;
(...skipping 22 matching lines...) Expand all
54 float velocityX; 55 float velocityX;
55 float velocityY; 56 float velocityY;
56 }; 57 };
57 58
58 struct InputEvent { 59 struct InputEvent {
59 EventType type; 60 EventType type;
60 int64 time_stamp; 61 int64 time_stamp;
61 PointerData? pointer_data; 62 PointerData? pointer_data;
62 GestureData? gesture_data; 63 GestureData? gesture_data;
63 }; 64 };
OLDNEW
« no previous file with comments | « sky/examples/raw/hello_world.dart ('k') | sky/shell/android/org/domokit/sky/shell/PlatformViewAndroid.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698