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

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: 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // TODO(sky): parts of this should move to PointerData. 107 // TODO(sky): parts of this should move to PointerData.
108 EventFlags flags; 108 int32 flags;
yzshen1 2016/01/07 19:24:52 Please add comments.
Sam McNally 2016/01/08 05:12:51 Done.
109 // Time in microseconds from when the platform was started. 109 // Time in microseconds from when the platform was started.
110 // This value accurately orders events w.r.t. to each other but 110 // This value accurately orders events w.r.t. to each other but
111 // does not position them at an absolute time. 111 // does not position them at an absolute time.
112 int64 time_stamp; 112 int64 time_stamp;
113 KeyData? key_data; 113 KeyData? key_data;
114 PointerData? pointer_data; 114 PointerData? pointer_data;
115 }; 115 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698