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

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

Issue 1019023003: Improve Material ink effects (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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,
(...skipping 28 matching lines...) Expand all
39 float distance_max; 39 float distance_max;
40 float radius_major; 40 float radius_major;
41 float radius_minor; 41 float radius_minor;
42 float radius_min; 42 float radius_min;
43 float radius_max; 43 float radius_max;
44 float orientation; 44 float orientation;
45 float tilt; 45 float tilt;
46 }; 46 };
47 47
48 struct GestureData { 48 struct GestureData {
49 int32 primary_pointer;
49 float x; 50 float x;
50 float y; 51 float y;
51 float dx; 52 float dx;
52 float dy; 53 float dy;
53 float velocityX; 54 float velocityX;
54 float velocityY; 55 float velocityY;
55 }; 56 };
56 57
57 struct InputEvent { 58 struct InputEvent {
58 EventType type; 59 EventType type;
59 int64 time_stamp; 60 int64 time_stamp;
60 PointerData? pointer_data; 61 PointerData? pointer_data;
61 GestureData? gesture_data; 62 GestureData? gesture_data;
62 }; 63 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698