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

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

Issue 2765773002: Adds KeyEvent::properties (Closed)
Patch Set: 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
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 import "ui/events/mojo/latency_info.mojom";
10 10
(...skipping 27 matching lines...) Expand all
38 // in the medium to long term. 38 // in the medium to long term.
39 int32 native_key_code; 39 int32 native_key_code;
40 40
41 // The text generated by this keystroke. Corresponds to 41 // The text generated by this keystroke. Corresponds to
42 // blink::WebKeyboardEvent::text. 42 // blink::WebKeyboardEvent::text.
43 uint16 text; 43 uint16 text;
44 44
45 // Like |text|, but unmodified by concurrently held modifier keys (except 45 // Like |text|, but unmodified by concurrently held modifier keys (except
46 // shift). Corresponds to blink::WebKeyboardEvent::unmodifiedText. 46 // shift). Corresponds to blink::WebKeyboardEvent::unmodifiedText.
47 uint16 unmodified_text; 47 uint16 unmodified_text;
48
49 // Mirrors KeyEvent::properties_.
50 map<string, array<uint8>>? properties;
48 }; 51 };
49 52
50 struct LocationData { 53 struct LocationData {
51 // |x| and |y| are in the coordinate system of the View. 54 // |x| and |y| are in the coordinate system of the View.
52 // Typically, this will be an integer-valued translation w.r.t. 55 // Typically, this will be an integer-valued translation w.r.t.
53 // the screen and in this case, |x| and |y| are in units of physical 56 // the screen and in this case, |x| and |y| are in units of physical
54 // pixels. However, some View embedders may apply arbitrary transformations 57 // pixels. However, some View embedders may apply arbitrary transformations
55 // of a view w.r.t. the screen. 58 // of a view w.r.t. the screen.
56 float x; 59 float x;
57 float y; 60 float y;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // TODO(sky): parts of this should move to PointerData. 116 // TODO(sky): parts of this should move to PointerData.
114 int32 flags; 117 int32 flags;
115 // Time in microseconds from when the platform was started. 118 // Time in microseconds from when the platform was started.
116 // This value accurately orders events w.r.t. to each other but 119 // This value accurately orders events w.r.t. to each other but
117 // does not position them at an absolute time. 120 // does not position them at an absolute time.
118 int64 time_stamp; 121 int64 time_stamp;
119 LatencyInfo latency; 122 LatencyInfo latency;
120 KeyData? key_data; 123 KeyData? key_data;
121 PointerData? pointer_data; 124 PointerData? pointer_data;
122 }; 125 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698