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

Side by Side Diff: ui/events/mojo/event.mojom

Issue 2728883002: Adding LatencyInfo to mojom::Event. (Closed)
Patch Set: Adding handling for invalid event types. Created 3 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
« no previous file with comments | « no previous file | ui/events/mojo/event.typemap » ('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 ui.mojom; 5 module ui.mojom;
6 6
7 import "ui/events/mojo/event_constants.mojom"; 7 import "ui/events/mojo/event_constants.mojom";
8 import "ui/events/mojo/keyboard_codes.mojom"; 8 import "ui/events/mojo/keyboard_codes.mojom";
9 import "ui/events/mojo/latency_info.mojom";
9 10
10 struct KeyData { 11 struct KeyData {
11 // The chromium event key code; these values are from the ui/ KeyCode enum, 12 // The chromium event key code; these values are from the ui/ KeyCode enum,
12 // which has the fun property of being neither consistently the Windows key 13 // which has the fun property of being neither consistently the Windows key
13 // code, nor the X11 keycodes. (This value is consistent across platforms 14 // code, nor the X11 keycodes. (This value is consistent across platforms
14 // for basic ASCII characters; it will differ for modifiers. We don't define 15 // for basic ASCII characters; it will differ for modifiers. We don't define
15 // this as a mojo enum because mojom doesn't appear to have a platform 16 // this as a mojo enum because mojom doesn't appear to have a platform
16 // dependent preprocessor yet.) 17 // dependent preprocessor yet.)
17 // 18 //
18 // TODO(erg): Remove this, and declare Win32 keycodes correct by fiat. We can 19 // TODO(erg): Remove this, and declare Win32 keycodes correct by fiat. We can
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 EventType action; 109 EventType action;
109 // A bitfield of kEventFlag* and kMouseEventFlag* values in 110 // A bitfield of kEventFlag* and kMouseEventFlag* values in
110 // input_event_constants.mojom. 111 // input_event_constants.mojom.
111 // 112 //
112 // TODO(sky): parts of this should move to PointerData. 113 // TODO(sky): parts of this should move to PointerData.
113 int32 flags; 114 int32 flags;
114 // Time in microseconds from when the platform was started. 115 // Time in microseconds from when the platform was started.
115 // This value accurately orders events w.r.t. to each other but 116 // This value accurately orders events w.r.t. to each other but
116 // does not position them at an absolute time. 117 // does not position them at an absolute time.
117 int64 time_stamp; 118 int64 time_stamp;
119 LatencyInfo latency;
118 KeyData? key_data; 120 KeyData? key_data;
119 PointerData? pointer_data; 121 PointerData? pointer_data;
120 }; 122 };
OLDNEW
« no previous file with comments | « no previous file | ui/events/mojo/event.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698