| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 EF_ALTGR_DOWN = 1 << 10, | 92 EF_ALTGR_DOWN = 1 << 10, |
| 93 EF_MOD3_DOWN = 1 << 11, | 93 EF_MOD3_DOWN = 1 << 11, |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 // Flags specific to key events | 96 // Flags specific to key events |
| 97 enum KeyEventFlags { | 97 enum KeyEventFlags { |
| 98 EF_NUMPAD_KEY = 1 << 16, // Key originates from number pad (Xkb only) | 98 EF_NUMPAD_KEY = 1 << 16, // Key originates from number pad (Xkb only) |
| 99 EF_IME_FABRICATED_KEY = 1 << 17, // Key event fabricated by the underlying | 99 EF_IME_FABRICATED_KEY = 1 << 17, // Key event fabricated by the underlying |
| 100 // IME without a user action. | 100 // IME without a user action. |
| 101 // (Linux X11 only) | 101 // (Linux X11 only) |
| 102 EF_FUNCTION_KEY = 1 << 18, // Key originates from function key row |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 // Flags specific to mouse events | 105 // Flags specific to mouse events |
| 105 enum MouseEventFlags { | 106 enum MouseEventFlags { |
| 106 EF_IS_DOUBLE_CLICK = 1 << 16, | 107 EF_IS_DOUBLE_CLICK = 1 << 16, |
| 107 EF_IS_TRIPLE_CLICK = 1 << 17, | 108 EF_IS_TRIPLE_CLICK = 1 << 17, |
| 108 EF_IS_NON_CLIENT = 1 << 18, | 109 EF_IS_NON_CLIENT = 1 << 18, |
| 109 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated | 110 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated |
| 110 // from an unconsumed touch/gesture event. | 111 // from an unconsumed touch/gesture event. |
| 111 }; | 112 }; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 125 EP_PREDISPATCH, | 126 EP_PREDISPATCH, |
| 126 EP_PRETARGET, | 127 EP_PRETARGET, |
| 127 EP_TARGET, | 128 EP_TARGET, |
| 128 EP_POSTTARGET, | 129 EP_POSTTARGET, |
| 129 EP_POSTDISPATCH | 130 EP_POSTDISPATCH |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace ui | 133 } // namespace ui |
| 133 | 134 |
| 134 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 135 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
| OLD | NEW |