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

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

Issue 2270143002: ui/events: Add changed_button_flags_ in ui::PointerEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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
« no previous file with comments | « ui/events/mojo/OWNERS ('k') | ui/events/mojo/event_struct_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 struct KeyData { 10 struct KeyData {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 float y; 56 float y;
57 // |screen_x| and |screen_y| are in screen coordinates in units of 57 // |screen_x| and |screen_y| are in screen coordinates in units of
58 // physical pixels. 58 // physical pixels.
59 float screen_x; 59 float screen_x;
60 float screen_y; 60 float screen_y;
61 }; 61 };
62 62
63 // TODO(rjkroege,sadrul): Add gesture representation. 63 // TODO(rjkroege,sadrul): Add gesture representation.
64 struct PointerData { 64 struct PointerData {
65 int32 pointer_id; 65 int32 pointer_id;
66 int32 changed_button_flags;
66 PointerKind kind; 67 PointerKind kind;
67 LocationData location; 68 LocationData location;
68 // Some devices (e.g. pen, finger) can extend across multiple pixels 69 // Some devices (e.g. pen, finger) can extend across multiple pixels
69 // at once. |brush_data| provides additional data for this case and 70 // at once. |brush_data| provides additional data for this case and
70 // is available when |kind| is PEN or TOUCH. 71 // is available when |kind| is PEN or TOUCH.
71 BrushData? brush_data; 72 BrushData? brush_data;
72 // Only set for |WHEEL| events. 73 // Only set for |WHEEL| events.
73 WheelData? wheel_data; 74 WheelData? wheel_data;
74 }; 75 };
75 76
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // 111 //
111 // TODO(sky): parts of this should move to PointerData. 112 // TODO(sky): parts of this should move to PointerData.
112 int32 flags; 113 int32 flags;
113 // Time in microseconds from when the platform was started. 114 // Time in microseconds from when the platform was started.
114 // This value accurately orders events w.r.t. to each other but 115 // This value accurately orders events w.r.t. to each other but
115 // does not position them at an absolute time. 116 // does not position them at an absolute time.
116 int64 time_stamp; 117 int64 time_stamp;
117 KeyData? key_data; 118 KeyData? key_data;
118 PointerData? pointer_data; 119 PointerData? pointer_data;
119 }; 120 };
OLDNEW
« no previous file with comments | « ui/events/mojo/OWNERS ('k') | ui/events/mojo/event_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698