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

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

Issue 1042363003: Makes touch event have a time from android (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | services/native_viewport/platform_viewport_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Used for devices that support wheels. Ranges from -1 to 1. 63 // Used for devices that support wheels. Ranges from -1 to 1.
64 float horizontal_wheel; 64 float horizontal_wheel;
65 float vertical_wheel; 65 float vertical_wheel;
66 }; 66 };
67 67
68 struct Event { 68 struct Event {
69 // TODO(sky): rename to type. 69 // TODO(sky): rename to type.
70 EventType action; 70 EventType action;
71 // TODO(sky): parts of this should move to PointerData. 71 // TODO(sky): parts of this should move to PointerData.
72 EventFlags flags; 72 EventFlags flags;
73 // Time the event was delivered. The time is in milliseconds and corresponds
74 // to the uptime of the machine.
73 int64 time_stamp; 75 int64 time_stamp;
74 KeyData? key_data; 76 KeyData? key_data;
75 PointerData? pointer_data; 77 PointerData? pointer_data;
76 }; 78 };
OLDNEW
« no previous file with comments | « no previous file | services/native_viewport/platform_viewport_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698