OLD | NEW |
---|---|
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 EF_LEFT_MOUSE_BUTTON = 1 << 4, | 85 EF_LEFT_MOUSE_BUTTON = 1 << 4, |
86 EF_MIDDLE_MOUSE_BUTTON = 1 << 5, | 86 EF_MIDDLE_MOUSE_BUTTON = 1 << 5, |
87 EF_RIGHT_MOUSE_BUTTON = 1 << 6, | 87 EF_RIGHT_MOUSE_BUTTON = 1 << 6, |
88 EF_COMMAND_DOWN = 1 << 7, // GUI Key (e.g. Command on OS X keyboards, | 88 EF_COMMAND_DOWN = 1 << 7, // GUI Key (e.g. Command on OS X keyboards, |
89 // Search on Chromebook keyboards, | 89 // Search on Chromebook keyboards, |
90 // Windows on MS-oriented keyboards) | 90 // Windows on MS-oriented keyboards) |
91 EF_EXTENDED = 1 << 8, // Windows extended key (see WM_KEYDOWN doc) | 91 EF_EXTENDED = 1 << 8, // Windows extended key (see WM_KEYDOWN doc) |
92 EF_IS_SYNTHESIZED = 1 << 9, | 92 EF_IS_SYNTHESIZED = 1 << 9, |
93 EF_ALTGR_DOWN = 1 << 10, | 93 EF_ALTGR_DOWN = 1 << 10, |
94 EF_MOD3_DOWN = 1 << 11, | 94 EF_MOD3_DOWN = 1 << 11, |
95 EF_IS_REPEAT = 1 << 12, | |
sadrul
2014/05/30 18:27:26
Move this down to KeyEventFlags?
oshima
2014/05/30 19:50:31
Done.
| |
95 }; | 96 }; |
96 | 97 |
97 // Flags specific to key events | 98 // Flags specific to key events |
98 enum KeyEventFlags { | 99 enum KeyEventFlags { |
99 EF_NUMPAD_KEY = 1 << 16, // Key originates from number pad (Xkb only) | 100 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 | 101 EF_IME_FABRICATED_KEY = 1 << 17, // Key event fabricated by the underlying |
101 // IME without a user action. | 102 // IME without a user action. |
102 // (Linux X11 only) | 103 // (Linux X11 only) |
103 }; | 104 }; |
104 | 105 |
(...skipping 23 matching lines...) Expand all Loading... | |
128 EP_PREDISPATCH, | 129 EP_PREDISPATCH, |
129 EP_PRETARGET, | 130 EP_PRETARGET, |
130 EP_TARGET, | 131 EP_TARGET, |
131 EP_POSTTARGET, | 132 EP_POSTTARGET, |
132 EP_POSTDISPATCH | 133 EP_POSTDISPATCH |
133 }; | 134 }; |
134 | 135 |
135 } // namespace ui | 136 } // namespace ui |
136 | 137 |
137 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 138 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
OLD | NEW |