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

Side by Side Diff: ui/events/event_constants.h

Issue 2248933002: Support pen in TouchEventConverterEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_EVENTS_EVENT_CONSTANTS_H_ 5 #ifndef UI_EVENTS_EVENT_CONSTANTS_H_
6 #define UI_EVENTS_EVENT_CONSTANTS_H_ 6 #define UI_EVENTS_EVENT_CONSTANTS_H_
7 7
8 namespace ui { 8 namespace ui {
9 9
10 // Event types. (prefixed because of a conflict with windows headers) 10 // Event types. (prefixed because of a conflict with windows headers)
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // IME without a user action. 117 // IME without a user action.
118 // (Linux X11 only) 118 // (Linux X11 only)
119 EF_IS_REPEAT = 1 << 16, 119 EF_IS_REPEAT = 1 << 16,
120 EF_FINAL = 1 << 17, // Do not remap; the event was created with 120 EF_FINAL = 1 << 17, // Do not remap; the event was created with
121 // the desired final values. 121 // the desired final values.
122 EF_IS_EXTENDED_KEY = 1 << 18, // Windows extended key (see WM_KEYDOWN doc) 122 EF_IS_EXTENDED_KEY = 1 << 18, // Windows extended key (see WM_KEYDOWN doc)
123 }; 123 };
124 124
125 // Flags specific to mouse events 125 // Flags specific to mouse events
126 enum MouseEventFlags { 126 enum MouseEventFlags {
127 EF_IS_DOUBLE_CLICK = 1 << 15, 127 EF_IS_DOUBLE_CLICK = 1 << 15,
128 EF_IS_TRIPLE_CLICK = 1 << 16, 128 EF_IS_TRIPLE_CLICK = 1 << 16,
129 EF_IS_NON_CLIENT = 1 << 17, 129 EF_IS_NON_CLIENT = 1 << 17,
130 EF_FROM_TOUCH = 1 << 18, // Indicates this mouse event is generated 130 EF_FROM_TOUCH = 1 << 18, // Indicates this mouse event is generated
131 // from an unconsumed touch/gesture event. 131 // from an unconsumed touch/gesture event.
132 EF_TOUCH_ACCESSIBILITY = 1 << 19, // Indicates this event was generated from 132 EF_TOUCH_ACCESSIBILITY = 1 << 19, // Indicates this event was generated from
133 // touch accessibility mode. 133 // touch accessibility mode.
134 EF_DIRECT_INPUT = 1 << 20, // Mouse event coming from direct,
135 // on-screen input.
134 }; 136 };
135 137
136 // Result of dispatching an event. 138 // Result of dispatching an event.
137 enum EventResult { 139 enum EventResult {
138 ER_UNHANDLED = 0, // The event hasn't been handled. The event can be 140 ER_UNHANDLED = 0, // The event hasn't been handled. The event can be
139 // propagated to other handlers. 141 // propagated to other handlers.
140 ER_HANDLED = 1 << 0, // The event has already been handled, but it can 142 ER_HANDLED = 1 << 0, // The event has already been handled, but it can
141 // still be propagated to other handlers. 143 // still be propagated to other handlers.
142 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be 144 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be
143 // propagated to other handlers. 145 // propagated to other handlers.
(...skipping 29 matching lines...) Expand all
173 // Device type for gesture events. 175 // Device type for gesture events.
174 enum class GestureDeviceType : int { 176 enum class GestureDeviceType : int {
175 DEVICE_UNKNOWN = 0, 177 DEVICE_UNKNOWN = 0,
176 DEVICE_TOUCHPAD, 178 DEVICE_TOUCHPAD,
177 DEVICE_TOUCHSCREEN, 179 DEVICE_TOUCHSCREEN,
178 }; 180 };
179 181
180 } // namespace ui 182 } // namespace ui
181 183
182 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 184 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698