Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim: set ts=2 et sw=2 tw=80: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 5 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | // IWYU pragma: private, include "mozilla/KeyTextEvents.h" |
michael@0 | 7 | |
michael@0 | 8 | /** |
michael@0 | 9 | * This header file defines all DOM keys which are defined in nsIDOMKeyEvent. |
michael@0 | 10 | * You must define NS_DEFINE_VK macro before including this. |
michael@0 | 11 | * |
michael@0 | 12 | * It must have two arguments, (aDOMKeyName, aDOMKeyCode) |
michael@0 | 13 | * aDOMKeyName is a key name in DOM. |
michael@0 | 14 | * aDOMKeyCode is one of nsIDOMKeyEvent::DOM_VK_*. |
michael@0 | 15 | */ |
michael@0 | 16 | |
michael@0 | 17 | #define DEFINE_VK_INTERNAL(aKeyName) \ |
michael@0 | 18 | NS_DEFINE_VK(VK##aKeyName, nsIDOMKeyEvent::DOM_VK##aKeyName) |
michael@0 | 19 | |
michael@0 | 20 | // Some keycode may have different name in nsIDOMKeyEvent from its key name. |
michael@0 | 21 | #define DEFINE_VK_INTERNAL2(aKeyName, aKeyCodeName) \ |
michael@0 | 22 | NS_DEFINE_VK(VK##aKeyName, nsIDOMKeyEvent::DOM_VK##aKeyCodeName) |
michael@0 | 23 | |
michael@0 | 24 | DEFINE_VK_INTERNAL(_CANCEL), |
michael@0 | 25 | DEFINE_VK_INTERNAL(_HELP), |
michael@0 | 26 | DEFINE_VK_INTERNAL2(_BACK, _BACK_SPACE), |
michael@0 | 27 | DEFINE_VK_INTERNAL(_TAB), |
michael@0 | 28 | DEFINE_VK_INTERNAL(_CLEAR), |
michael@0 | 29 | DEFINE_VK_INTERNAL(_RETURN), |
michael@0 | 30 | DEFINE_VK_INTERNAL(_SHIFT), |
michael@0 | 31 | DEFINE_VK_INTERNAL(_CONTROL), |
michael@0 | 32 | DEFINE_VK_INTERNAL(_ALT), |
michael@0 | 33 | DEFINE_VK_INTERNAL(_PAUSE), |
michael@0 | 34 | DEFINE_VK_INTERNAL(_CAPS_LOCK), |
michael@0 | 35 | DEFINE_VK_INTERNAL(_KANA), |
michael@0 | 36 | DEFINE_VK_INTERNAL(_HANGUL), |
michael@0 | 37 | DEFINE_VK_INTERNAL(_EISU), |
michael@0 | 38 | DEFINE_VK_INTERNAL(_JUNJA), |
michael@0 | 39 | DEFINE_VK_INTERNAL(_FINAL), |
michael@0 | 40 | DEFINE_VK_INTERNAL(_HANJA), |
michael@0 | 41 | DEFINE_VK_INTERNAL(_KANJI), |
michael@0 | 42 | DEFINE_VK_INTERNAL(_ESCAPE), |
michael@0 | 43 | DEFINE_VK_INTERNAL(_CONVERT), |
michael@0 | 44 | DEFINE_VK_INTERNAL(_NONCONVERT), |
michael@0 | 45 | DEFINE_VK_INTERNAL(_ACCEPT), |
michael@0 | 46 | DEFINE_VK_INTERNAL(_MODECHANGE), |
michael@0 | 47 | DEFINE_VK_INTERNAL(_SPACE), |
michael@0 | 48 | DEFINE_VK_INTERNAL(_PAGE_UP), |
michael@0 | 49 | DEFINE_VK_INTERNAL(_PAGE_DOWN), |
michael@0 | 50 | DEFINE_VK_INTERNAL(_END), |
michael@0 | 51 | DEFINE_VK_INTERNAL(_HOME), |
michael@0 | 52 | DEFINE_VK_INTERNAL(_LEFT), |
michael@0 | 53 | DEFINE_VK_INTERNAL(_UP), |
michael@0 | 54 | DEFINE_VK_INTERNAL(_RIGHT), |
michael@0 | 55 | DEFINE_VK_INTERNAL(_DOWN), |
michael@0 | 56 | DEFINE_VK_INTERNAL(_SELECT), |
michael@0 | 57 | DEFINE_VK_INTERNAL(_PRINT), |
michael@0 | 58 | DEFINE_VK_INTERNAL(_EXECUTE), |
michael@0 | 59 | DEFINE_VK_INTERNAL(_PRINTSCREEN), |
michael@0 | 60 | DEFINE_VK_INTERNAL(_INSERT), |
michael@0 | 61 | DEFINE_VK_INTERNAL(_DELETE), |
michael@0 | 62 | |
michael@0 | 63 | DEFINE_VK_INTERNAL(_0), |
michael@0 | 64 | DEFINE_VK_INTERNAL(_1), |
michael@0 | 65 | DEFINE_VK_INTERNAL(_2), |
michael@0 | 66 | DEFINE_VK_INTERNAL(_3), |
michael@0 | 67 | DEFINE_VK_INTERNAL(_4), |
michael@0 | 68 | DEFINE_VK_INTERNAL(_5), |
michael@0 | 69 | DEFINE_VK_INTERNAL(_6), |
michael@0 | 70 | DEFINE_VK_INTERNAL(_7), |
michael@0 | 71 | DEFINE_VK_INTERNAL(_8), |
michael@0 | 72 | DEFINE_VK_INTERNAL(_9), |
michael@0 | 73 | |
michael@0 | 74 | DEFINE_VK_INTERNAL(_COLON), |
michael@0 | 75 | DEFINE_VK_INTERNAL(_SEMICOLON), |
michael@0 | 76 | DEFINE_VK_INTERNAL(_LESS_THAN), |
michael@0 | 77 | DEFINE_VK_INTERNAL(_EQUALS), |
michael@0 | 78 | DEFINE_VK_INTERNAL(_GREATER_THAN), |
michael@0 | 79 | DEFINE_VK_INTERNAL(_QUESTION_MARK), |
michael@0 | 80 | DEFINE_VK_INTERNAL(_AT), |
michael@0 | 81 | |
michael@0 | 82 | DEFINE_VK_INTERNAL(_A), |
michael@0 | 83 | DEFINE_VK_INTERNAL(_B), |
michael@0 | 84 | DEFINE_VK_INTERNAL(_C), |
michael@0 | 85 | DEFINE_VK_INTERNAL(_D), |
michael@0 | 86 | DEFINE_VK_INTERNAL(_E), |
michael@0 | 87 | DEFINE_VK_INTERNAL(_F), |
michael@0 | 88 | DEFINE_VK_INTERNAL(_G), |
michael@0 | 89 | DEFINE_VK_INTERNAL(_H), |
michael@0 | 90 | DEFINE_VK_INTERNAL(_I), |
michael@0 | 91 | DEFINE_VK_INTERNAL(_J), |
michael@0 | 92 | DEFINE_VK_INTERNAL(_K), |
michael@0 | 93 | DEFINE_VK_INTERNAL(_L), |
michael@0 | 94 | DEFINE_VK_INTERNAL(_M), |
michael@0 | 95 | DEFINE_VK_INTERNAL(_N), |
michael@0 | 96 | DEFINE_VK_INTERNAL(_O), |
michael@0 | 97 | DEFINE_VK_INTERNAL(_P), |
michael@0 | 98 | DEFINE_VK_INTERNAL(_Q), |
michael@0 | 99 | DEFINE_VK_INTERNAL(_R), |
michael@0 | 100 | DEFINE_VK_INTERNAL(_S), |
michael@0 | 101 | DEFINE_VK_INTERNAL(_T), |
michael@0 | 102 | DEFINE_VK_INTERNAL(_U), |
michael@0 | 103 | DEFINE_VK_INTERNAL(_V), |
michael@0 | 104 | DEFINE_VK_INTERNAL(_W), |
michael@0 | 105 | DEFINE_VK_INTERNAL(_X), |
michael@0 | 106 | DEFINE_VK_INTERNAL(_Y), |
michael@0 | 107 | DEFINE_VK_INTERNAL(_Z), |
michael@0 | 108 | |
michael@0 | 109 | DEFINE_VK_INTERNAL(_WIN), |
michael@0 | 110 | DEFINE_VK_INTERNAL(_CONTEXT_MENU), |
michael@0 | 111 | DEFINE_VK_INTERNAL(_SLEEP), |
michael@0 | 112 | |
michael@0 | 113 | DEFINE_VK_INTERNAL(_NUMPAD0), |
michael@0 | 114 | DEFINE_VK_INTERNAL(_NUMPAD1), |
michael@0 | 115 | DEFINE_VK_INTERNAL(_NUMPAD2), |
michael@0 | 116 | DEFINE_VK_INTERNAL(_NUMPAD3), |
michael@0 | 117 | DEFINE_VK_INTERNAL(_NUMPAD4), |
michael@0 | 118 | DEFINE_VK_INTERNAL(_NUMPAD5), |
michael@0 | 119 | DEFINE_VK_INTERNAL(_NUMPAD6), |
michael@0 | 120 | DEFINE_VK_INTERNAL(_NUMPAD7), |
michael@0 | 121 | DEFINE_VK_INTERNAL(_NUMPAD8), |
michael@0 | 122 | DEFINE_VK_INTERNAL(_NUMPAD9), |
michael@0 | 123 | DEFINE_VK_INTERNAL(_MULTIPLY), |
michael@0 | 124 | DEFINE_VK_INTERNAL(_ADD), |
michael@0 | 125 | DEFINE_VK_INTERNAL(_SEPARATOR), |
michael@0 | 126 | DEFINE_VK_INTERNAL(_SUBTRACT), |
michael@0 | 127 | DEFINE_VK_INTERNAL(_DECIMAL), |
michael@0 | 128 | DEFINE_VK_INTERNAL(_DIVIDE), |
michael@0 | 129 | |
michael@0 | 130 | DEFINE_VK_INTERNAL(_F1), |
michael@0 | 131 | DEFINE_VK_INTERNAL(_F2), |
michael@0 | 132 | DEFINE_VK_INTERNAL(_F3), |
michael@0 | 133 | DEFINE_VK_INTERNAL(_F4), |
michael@0 | 134 | DEFINE_VK_INTERNAL(_F5), |
michael@0 | 135 | DEFINE_VK_INTERNAL(_F6), |
michael@0 | 136 | DEFINE_VK_INTERNAL(_F7), |
michael@0 | 137 | DEFINE_VK_INTERNAL(_F8), |
michael@0 | 138 | DEFINE_VK_INTERNAL(_F9), |
michael@0 | 139 | DEFINE_VK_INTERNAL(_F10), |
michael@0 | 140 | DEFINE_VK_INTERNAL(_F11), |
michael@0 | 141 | DEFINE_VK_INTERNAL(_F12), |
michael@0 | 142 | DEFINE_VK_INTERNAL(_F13), |
michael@0 | 143 | DEFINE_VK_INTERNAL(_F14), |
michael@0 | 144 | DEFINE_VK_INTERNAL(_F15), |
michael@0 | 145 | DEFINE_VK_INTERNAL(_F16), |
michael@0 | 146 | DEFINE_VK_INTERNAL(_F17), |
michael@0 | 147 | DEFINE_VK_INTERNAL(_F18), |
michael@0 | 148 | DEFINE_VK_INTERNAL(_F19), |
michael@0 | 149 | DEFINE_VK_INTERNAL(_F20), |
michael@0 | 150 | DEFINE_VK_INTERNAL(_F21), |
michael@0 | 151 | DEFINE_VK_INTERNAL(_F22), |
michael@0 | 152 | DEFINE_VK_INTERNAL(_F23), |
michael@0 | 153 | DEFINE_VK_INTERNAL(_F24), |
michael@0 | 154 | |
michael@0 | 155 | DEFINE_VK_INTERNAL(_NUM_LOCK), |
michael@0 | 156 | DEFINE_VK_INTERNAL(_SCROLL_LOCK), |
michael@0 | 157 | |
michael@0 | 158 | DEFINE_VK_INTERNAL(_WIN_OEM_FJ_JISHO), |
michael@0 | 159 | DEFINE_VK_INTERNAL(_WIN_OEM_FJ_MASSHOU), |
michael@0 | 160 | DEFINE_VK_INTERNAL(_WIN_OEM_FJ_TOUROKU), |
michael@0 | 161 | DEFINE_VK_INTERNAL(_WIN_OEM_FJ_LOYA), |
michael@0 | 162 | DEFINE_VK_INTERNAL(_WIN_OEM_FJ_ROYA), |
michael@0 | 163 | |
michael@0 | 164 | DEFINE_VK_INTERNAL(_CIRCUMFLEX), |
michael@0 | 165 | DEFINE_VK_INTERNAL(_EXCLAMATION), |
michael@0 | 166 | DEFINE_VK_INTERNAL(_DOUBLE_QUOTE), |
michael@0 | 167 | DEFINE_VK_INTERNAL(_HASH), |
michael@0 | 168 | DEFINE_VK_INTERNAL(_DOLLAR), |
michael@0 | 169 | DEFINE_VK_INTERNAL(_PERCENT), |
michael@0 | 170 | DEFINE_VK_INTERNAL(_AMPERSAND), |
michael@0 | 171 | DEFINE_VK_INTERNAL(_UNDERSCORE), |
michael@0 | 172 | DEFINE_VK_INTERNAL(_OPEN_PAREN), |
michael@0 | 173 | DEFINE_VK_INTERNAL(_CLOSE_PAREN), |
michael@0 | 174 | DEFINE_VK_INTERNAL(_ASTERISK), |
michael@0 | 175 | DEFINE_VK_INTERNAL(_PLUS), |
michael@0 | 176 | DEFINE_VK_INTERNAL(_PIPE), |
michael@0 | 177 | DEFINE_VK_INTERNAL(_HYPHEN_MINUS), |
michael@0 | 178 | |
michael@0 | 179 | DEFINE_VK_INTERNAL(_OPEN_CURLY_BRACKET), |
michael@0 | 180 | DEFINE_VK_INTERNAL(_CLOSE_CURLY_BRACKET), |
michael@0 | 181 | |
michael@0 | 182 | DEFINE_VK_INTERNAL(_TILDE), |
michael@0 | 183 | |
michael@0 | 184 | DEFINE_VK_INTERNAL(_VOLUME_MUTE), |
michael@0 | 185 | DEFINE_VK_INTERNAL(_VOLUME_DOWN), |
michael@0 | 186 | DEFINE_VK_INTERNAL(_VOLUME_UP), |
michael@0 | 187 | |
michael@0 | 188 | DEFINE_VK_INTERNAL(_COMMA), |
michael@0 | 189 | DEFINE_VK_INTERNAL(_PERIOD), |
michael@0 | 190 | DEFINE_VK_INTERNAL(_SLASH), |
michael@0 | 191 | DEFINE_VK_INTERNAL(_BACK_QUOTE), |
michael@0 | 192 | DEFINE_VK_INTERNAL(_OPEN_BRACKET), |
michael@0 | 193 | DEFINE_VK_INTERNAL(_BACK_SLASH), |
michael@0 | 194 | DEFINE_VK_INTERNAL(_CLOSE_BRACKET), |
michael@0 | 195 | DEFINE_VK_INTERNAL(_QUOTE), |
michael@0 | 196 | |
michael@0 | 197 | DEFINE_VK_INTERNAL(_META), |
michael@0 | 198 | DEFINE_VK_INTERNAL(_ALTGR), |
michael@0 | 199 | |
michael@0 | 200 | DEFINE_VK_INTERNAL(_WIN_ICO_HELP), |
michael@0 | 201 | DEFINE_VK_INTERNAL(_WIN_ICO_00), |
michael@0 | 202 | DEFINE_VK_INTERNAL(_WIN_ICO_CLEAR), |
michael@0 | 203 | DEFINE_VK_INTERNAL(_WIN_OEM_RESET), |
michael@0 | 204 | DEFINE_VK_INTERNAL(_WIN_OEM_JUMP), |
michael@0 | 205 | DEFINE_VK_INTERNAL(_WIN_OEM_PA1), |
michael@0 | 206 | DEFINE_VK_INTERNAL(_WIN_OEM_PA2), |
michael@0 | 207 | DEFINE_VK_INTERNAL(_WIN_OEM_PA3), |
michael@0 | 208 | DEFINE_VK_INTERNAL(_WIN_OEM_WSCTRL), |
michael@0 | 209 | DEFINE_VK_INTERNAL(_WIN_OEM_CUSEL), |
michael@0 | 210 | DEFINE_VK_INTERNAL(_WIN_OEM_ATTN), |
michael@0 | 211 | DEFINE_VK_INTERNAL(_WIN_OEM_FINISH), |
michael@0 | 212 | DEFINE_VK_INTERNAL(_WIN_OEM_COPY), |
michael@0 | 213 | DEFINE_VK_INTERNAL(_WIN_OEM_AUTO), |
michael@0 | 214 | DEFINE_VK_INTERNAL(_WIN_OEM_ENLW), |
michael@0 | 215 | DEFINE_VK_INTERNAL(_WIN_OEM_BACKTAB), |
michael@0 | 216 | |
michael@0 | 217 | DEFINE_VK_INTERNAL(_ATTN), |
michael@0 | 218 | DEFINE_VK_INTERNAL(_CRSEL), |
michael@0 | 219 | DEFINE_VK_INTERNAL(_EXSEL), |
michael@0 | 220 | DEFINE_VK_INTERNAL(_EREOF), |
michael@0 | 221 | DEFINE_VK_INTERNAL(_PLAY), |
michael@0 | 222 | DEFINE_VK_INTERNAL(_ZOOM), |
michael@0 | 223 | DEFINE_VK_INTERNAL(_PA1), |
michael@0 | 224 | DEFINE_VK_INTERNAL(_WIN_OEM_CLEAR) |
michael@0 | 225 | |
michael@0 | 226 | #undef DEFINE_VK_INTERNAL |
michael@0 | 227 | #undef DEFINE_VK_INTERNAL2 |