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

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

Issue 1222663003: Rename ViewportObserver to SkyEngine (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: now with moar files Created 5 years, 5 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
« no previous file with comments | « sky/services/viewport/BUILD.gn ('k') | sky/services/viewport/viewport_observer.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 module sky;
6
7 enum EventType {
8 UNKNOWN,
9 POINTER_CANCEL,
10 POINTER_DOWN,
11 POINTER_MOVE,
12 POINTER_UP,
13 GESTURE_FLING_CANCEL,
14 GESTURE_FLING_START,
15 GESTURE_LONG_PRESS,
16 GESTURE_SCROLL_BEGIN,
17 GESTURE_SCROLL_END,
18 GESTURE_SCROLL_UPDATE,
19 GESTURE_SHOW_PRESS,
20 GESTURE_TAP,
21 GESTURE_TAP_DOWN,
22 BACK,
23 };
24
25 enum PointerKind {
26 TOUCH,
27 };
28
29 struct PointerData {
30 int32 pointer;
31 PointerKind kind;
32 float x;
33 float y;
34 int32 buttons;
35 float pressure;
36 float pressure_min;
37 float pressure_max;
38 float distance;
39 float distance_min;
40 float distance_max;
41 float radius_major;
42 float radius_minor;
43 float radius_min;
44 float radius_max;
45 float orientation;
46 float tilt;
47 };
48
49 struct GestureData {
50 int32 primary_pointer;
51 float x;
52 float y;
53 float dx;
54 float dy;
55 float velocityX;
56 float velocityY;
57 };
58
59 struct InputEvent {
60 EventType type;
61 int64 time_stamp;
62 PointerData? pointer_data;
63 GestureData? gesture_data;
64 };
OLDNEW
« no previous file with comments | « sky/services/viewport/BUILD.gn ('k') | sky/services/viewport/viewport_observer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698