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

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

Issue 932283002: Port touch-demo.sky to Dart and make it work in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
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_DOWN,
10 POINTER_UP,
11 POINTER_MOVE,
12 POINTER_CANCEL,
13 };
14
15 enum PointerKind {
16 TOUCH,
17 };
18
19 struct PointerData {
20 int32 pointer;
21 PointerKind kind;
22 float x;
23 float y;
24 int32 buttons;
25 float pressure;
26 float pressure_min;
27 float pressure_max;
28 float distance;
29 float distance_min;
30 float distance_max;
31 float radius_major;
32 float radius_minor;
33 float radius_min;
34 float radius_max;
35 float orientation;
36 float tilt;
37 };
38
39 struct InputEvent {
40 EventType type;
41 int64 time_stamp;
42 PointerData? pointer_data;
43 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698