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

Side by Side Diff: mojo/services/input_events/public/interfaces/input_events.mojom

Issue 1029753002: Plumbs through android supplying multipe touch points (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: no pointer 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 mojo; 5 module mojo;
6 6
7 import "geometry/public/interfaces/geometry.mojom"; 7 import "geometry/public/interfaces/geometry.mojom";
8 import "input_events/public/interfaces/input_event_constants.mojom"; 8 import "input_events/public/interfaces/input_event_constants.mojom";
9 import "input_events/public/interfaces/input_key_codes.mojom"; 9 import "input_events/public/interfaces/input_key_codes.mojom";
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 }; 48 };
49 49
50 struct PointerData { 50 struct PointerData {
51 int32 pointer_id; 51 int32 pointer_id;
52 PointerKind kind; 52 PointerKind kind;
53 float x; 53 float x;
54 float y; 54 float y;
55 float pressure; 55 float pressure;
56 float radius_major; 56 float radius_major;
57 float radius_minor; 57 float radius_minor;
58 float orientation;
58 // Used for devices that support wheels. Ranges from -1 to 1. 59 // Used for devices that support wheels. Ranges from -1 to 1.
59 float horizontal_wheel; 60 float horizontal_wheel;
60 float vertical_wheel; 61 float vertical_wheel;
61 }; 62 };
62 63
63 struct Event { 64 struct Event {
64 // TODO(sky): rename to type. 65 // TODO(sky): rename to type.
65 EventType action; 66 EventType action;
66 // TODO(sky): parts of this should move to PointerData. 67 // TODO(sky): parts of this should move to PointerData.
67 EventFlags flags; 68 EventFlags flags;
68 int64 time_stamp; 69 int64 time_stamp;
69 KeyData? key_data; 70 KeyData? key_data;
70 PointerData? pointer_data; 71 PointerData? pointer_data;
71 }; 72 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698