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

Side by Side Diff: components/mus/public/interfaces/input_events.mojom

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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 mus.mojom; 5 module mus.mojom;
6 6
7 import "components/mus/public/interfaces/input_event_constants.mojom"; 7 import "components/mus/public/interfaces/input_event_constants.mojom";
8 import "components/mus/public/interfaces/input_key_codes.mojom"; 8 import "components/mus/public/interfaces/input_key_codes.mojom";
9 9
10 struct KeyData { 10 struct KeyData {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // pressure is not available, it will be set to 0.5 if the button is down. 97 // pressure is not available, it will be set to 0.5 if the button is down.
98 float pressure; 98 float pressure;
99 // |tilt_y| and |tilt_z| are in degrees. 99 // |tilt_y| and |tilt_z| are in degrees.
100 float tilt_y; 100 float tilt_y;
101 float tilt_z; 101 float tilt_z;
102 }; 102 };
103 103
104 struct Event { 104 struct Event {
105 // TODO(sky): rename to type. 105 // TODO(sky): rename to type.
106 EventType action; 106 EventType action;
107 // A bitfield of kEventFlag* and kMouseEventFlag* values in
108 // input_event_constants.mojom.
109 //
107 // TODO(sky): parts of this should move to PointerData. 110 // TODO(sky): parts of this should move to PointerData.
108 EventFlags flags; 111 int32 flags;
109 // Time in microseconds from when the platform was started. 112 // Time in microseconds from when the platform was started.
110 // This value accurately orders events w.r.t. to each other but 113 // This value accurately orders events w.r.t. to each other but
111 // does not position them at an absolute time. 114 // does not position them at an absolute time.
112 int64 time_stamp; 115 int64 time_stamp;
113 KeyData? key_data; 116 KeyData? key_data;
114 PointerData? pointer_data; 117 PointerData? pointer_data;
115 }; 118 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/input_event_matcher.mojom ('k') | components/mus/public/interfaces/input_key_codes.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698