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

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

Issue 2925853002: Flag mouse messages received when cursor is hidden.
Patch Set: Rebase Created 3 years, 6 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 | « no previous file | ui/events/event_utils.h » ('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 (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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 enum MouseEventFlags { 131 enum MouseEventFlags {
132 EF_IS_DOUBLE_CLICK = 1 << 15, 132 EF_IS_DOUBLE_CLICK = 1 << 15,
133 EF_IS_TRIPLE_CLICK = 1 << 16, 133 EF_IS_TRIPLE_CLICK = 1 << 16,
134 EF_IS_NON_CLIENT = 1 << 17, 134 EF_IS_NON_CLIENT = 1 << 17,
135 EF_FROM_TOUCH = 1 << 18, // Indicates this mouse event is generated 135 EF_FROM_TOUCH = 1 << 18, // Indicates this mouse event is generated
136 // from an unconsumed touch/gesture event. 136 // from an unconsumed touch/gesture event.
137 EF_TOUCH_ACCESSIBILITY = 1 << 19, // Indicates this event was generated from 137 EF_TOUCH_ACCESSIBILITY = 1 << 19, // Indicates this event was generated from
138 // touch accessibility mode. 138 // touch accessibility mode.
139 EF_DIRECT_INPUT = 1 << 20, // Mouse event coming from direct, 139 EF_DIRECT_INPUT = 1 << 20, // Mouse event coming from direct,
140 // on-screen input. 140 // on-screen input.
141 EF_CURSOR_HIDDEN = 1 << 21, // Mouse event fired when mouse cursor is
142 // not visible. Avoid visible screen
143 // changes. (Windows only.)
141 }; 144 };
142 145
143 // Result of dispatching an event. 146 // Result of dispatching an event.
144 enum EventResult { 147 enum EventResult {
145 ER_UNHANDLED = 0, // The event hasn't been handled. The event can be 148 ER_UNHANDLED = 0, // The event hasn't been handled. The event can be
146 // propagated to other handlers. 149 // propagated to other handlers.
147 ER_HANDLED = 1 << 0, // The event has already been handled, but it can 150 ER_HANDLED = 1 << 0, // The event has already been handled, but it can
148 // still be propagated to other handlers. 151 // still be propagated to other handlers.
149 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be 152 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be
150 // propagated to other handlers. 153 // propagated to other handlers.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Device type for gesture events. 203 // Device type for gesture events.
201 enum class GestureDeviceType : int { 204 enum class GestureDeviceType : int {
202 DEVICE_UNKNOWN = 0, 205 DEVICE_UNKNOWN = 0,
203 DEVICE_TOUCHPAD, 206 DEVICE_TOUCHPAD,
204 DEVICE_TOUCHSCREEN, 207 DEVICE_TOUCHSCREEN,
205 }; 208 };
206 209
207 } // namespace ui 210 } // namespace ui
208 211
209 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 212 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/events/event_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698