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

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

Issue 394553002: Add EF_FINAL_MODIFIERS to suppress remapping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 }; 95 };
96 96
97 // Flags specific to key events 97 // Flags specific to key events
98 enum KeyEventFlags { 98 enum KeyEventFlags {
99 EF_NUMPAD_KEY = 1 << 16, // Key originates from number pad (Xkb only) 99 EF_NUMPAD_KEY = 1 << 16, // Key originates from number pad (Xkb only)
100 EF_IME_FABRICATED_KEY = 1 << 17, // Key event fabricated by the underlying 100 EF_IME_FABRICATED_KEY = 1 << 17, // Key event fabricated by the underlying
101 // IME without a user action. 101 // IME without a user action.
102 // (Linux X11 only) 102 // (Linux X11 only)
103 EF_IS_REPEAT = 1 << 18, 103 EF_IS_REPEAT = 1 << 18,
104 EF_FUNCTION_KEY = 1 << 19, // Key originates from function key row 104 EF_FUNCTION_KEY = 1 << 19, // Key originates from function key row
105 EF_FINAL_MODIFIERS = 1 << 20, // Do not rewrite the modifier flags;
106 // the event was created with the desired
107 // final values.
105 }; 108 };
106 109
107 // Flags specific to mouse events 110 // Flags specific to mouse events
108 enum MouseEventFlags { 111 enum MouseEventFlags {
109 EF_IS_DOUBLE_CLICK = 1 << 16, 112 EF_IS_DOUBLE_CLICK = 1 << 16,
110 EF_IS_TRIPLE_CLICK = 1 << 17, 113 EF_IS_TRIPLE_CLICK = 1 << 17,
111 EF_IS_NON_CLIENT = 1 << 18, 114 EF_IS_NON_CLIENT = 1 << 18,
112 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated 115 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated
113 // from an unconsumed touch/gesture event. 116 // from an unconsumed touch/gesture event.
114 EF_TOUCH_ACCESSIBILITY = 1 << 20, // Indicates this event was generated from 117 EF_TOUCH_ACCESSIBILITY = 1 << 20, // Indicates this event was generated from
(...skipping 20 matching lines...) Expand all
135 }; 138 };
136 139
137 // Device ID for Touch and Key Events. 140 // Device ID for Touch and Key Events.
138 enum EventDeviceId { 141 enum EventDeviceId {
139 ED_UNKNOWN_DEVICE = -1 142 ED_UNKNOWN_DEVICE = -1
140 }; 143 };
141 144
142 } // namespace ui 145 } // namespace ui
143 146
144 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ 147 #endif // UI_EVENTS_EVENT_CONSTANTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698