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

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

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices Created 5 years, 2 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 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo; 6 module mojo;
7 7
8 import "geometry/public/interfaces/geometry.mojom"; 8 import "geometry/interfaces/geometry.mojom";
9 import "input_events/public/interfaces/input_event_constants.mojom"; 9 import "input_events/interfaces/input_event_constants.mojom";
10 import "input_events/public/interfaces/input_key_codes.mojom"; 10 import "input_events/interfaces/input_key_codes.mojom";
11 11
12 struct KeyData { 12 struct KeyData {
13 // The chromium event key code; these values are from the ui/ KeyCode enum, 13 // The chromium event key code; these values are from the ui/ KeyCode enum,
14 // which has the fun property of being neither consistently the Windows key 14 // which has the fun property of being neither consistently the Windows key
15 // code, nor the X11 keycodes. (This value is consistent across platforms 15 // code, nor the X11 keycodes. (This value is consistent across platforms
16 // for basic ASCII characters; it will differ for modifiers. We don't define 16 // for basic ASCII characters; it will differ for modifiers. We don't define
17 // this as a mojo enum because mojom doesn't appear to have a platform 17 // this as a mojo enum because mojom doesn't appear to have a platform
18 // dependent preprocessor yet.) 18 // dependent preprocessor yet.)
19 // 19 //
20 // TODO(erg): Remove this, and declare Win32 keycodes correct by fiat. We can 20 // TODO(erg): Remove this, and declare Win32 keycodes correct by fiat. We can
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // TODO(sky): rename to type. 70 // TODO(sky): rename to type.
71 EventType action; 71 EventType action;
72 // TODO(sky): parts of this should move to PointerData. 72 // TODO(sky): parts of this should move to PointerData.
73 EventFlags flags; 73 EventFlags flags;
74 // Time the event was delivered. The time is in milliseconds and corresponds 74 // Time the event was delivered. The time is in milliseconds and corresponds
75 // to the uptime of the machine. 75 // to the uptime of the machine.
76 int64 time_stamp; 76 int64 time_stamp;
77 KeyData? key_data; 77 KeyData? key_data;
78 PointerData? pointer_data; 78 PointerData? pointer_data;
79 }; 79 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698