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

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

Issue 1085233004: Moves services implementations out of third_party/mojo_services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unnecessary changes 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
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 "ui/mojo/events/input_event_constants.mojom";
8 import "input_events/public/interfaces/input_event_constants.mojom"; 8 import "ui/mojo/events/input_key_codes.mojom";
9 import "input_events/public/interfaces/input_key_codes.mojom"; 9 import "ui/mojo/geometry/geometry.mojom";
10 10
11 struct KeyData { 11 struct KeyData {
12 // 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,
13 // 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
14 // code, nor the X11 keycodes. (This value is consistent across platforms 14 // code, nor the X11 keycodes. (This value is consistent across platforms
15 // 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
16 // 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
17 // dependent preprocessor yet.) 17 // dependent preprocessor yet.)
18 // 18 //
19 // 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 73 // Time the event was delivered. The time is in milliseconds and corresponds
74 // to the uptime of the machine. 74 // to the uptime of the machine.
75 int64 time_stamp; 75 int64 time_stamp;
76 KeyData? key_data; 76 KeyData? key_data;
77 PointerData? pointer_data; 77 PointerData? pointer_data;
78 }; 78 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698