Chromium Code Reviews| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 EF_CONTROL_DOWN = 1 << 2, | 83 EF_CONTROL_DOWN = 1 << 2, |
| 84 EF_ALT_DOWN = 1 << 3, | 84 EF_ALT_DOWN = 1 << 3, |
| 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, // Only useful on OSX | 88 EF_COMMAND_DOWN = 1 << 7, // Only useful on OSX |
| 89 EF_EXTENDED = 1 << 8, // Windows extended key (see WM_KEYDOWN doc) | 89 EF_EXTENDED = 1 << 8, // Windows extended key (see WM_KEYDOWN doc) |
| 90 EF_IS_SYNTHESIZED = 1 << 9, | 90 EF_IS_SYNTHESIZED = 1 << 9, |
| 91 EF_ALTGR_DOWN = 1 << 10, | 91 EF_ALTGR_DOWN = 1 << 10, |
| 92 EF_MOD3_DOWN = 1 << 11, | 92 EF_MOD3_DOWN = 1 << 11, |
| 93 EF_NUMPAD = 1 << 12, // Key originates from number pad (Xkb only) | |
|
sadrul
2014/04/14 21:51:32
Maybe this should be separate KeyEventFlags (like
kpschoedel
2014/04/15 14:08:30
OK. Is the intent that KeyEventFlags overlap Mouse
| |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 // Flags specific to mouse events | 96 // Flags specific to mouse events |
| 96 enum MouseEventFlags { | 97 enum MouseEventFlags { |
| 97 EF_IS_DOUBLE_CLICK = 1 << 16, | 98 EF_IS_DOUBLE_CLICK = 1 << 16, |
| 98 EF_IS_TRIPLE_CLICK = 1 << 17, | 99 EF_IS_TRIPLE_CLICK = 1 << 17, |
| 99 EF_IS_NON_CLIENT = 1 << 18, | 100 EF_IS_NON_CLIENT = 1 << 18, |
| 100 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated | 101 EF_FROM_TOUCH = 1 << 19, // Indicates this mouse event is generated |
| 101 // from an unconsumed touch/gesture event. | 102 // from an unconsumed touch/gesture event. |
| 102 }; | 103 }; |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 116 EP_PREDISPATCH, | 117 EP_PREDISPATCH, |
| 117 EP_PRETARGET, | 118 EP_PRETARGET, |
| 118 EP_TARGET, | 119 EP_TARGET, |
| 119 EP_POSTTARGET, | 120 EP_POSTTARGET, |
| 120 EP_POSTDISPATCH | 121 EP_POSTDISPATCH |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace ui | 124 } // namespace ui |
| 124 | 125 |
| 125 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 126 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
| OLD | NEW |