/work/obj-fuzz/dist/include/mozilla/dom/KeyEventBinding.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS AUTOGENERATED FROM KeyEvent.webidl BY Codegen.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_dom_KeyEventBinding_h |
4 | | #define mozilla_dom_KeyEventBinding_h |
5 | | |
6 | | #include "GeckoProfiler.h" |
7 | | #include "js/RootingAPI.h" |
8 | | #include "jspubtd.h" |
9 | | #include "mozilla/ErrorResult.h" |
10 | | #include "mozilla/dom/BindingDeclarations.h" |
11 | | #include "mozilla/dom/Nullable.h" |
12 | | #include "mozilla/dom/PrototypeList.h" |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | class KeyEvent; |
18 | | struct KeyEventAtoms; |
19 | | struct NativePropertyHooks; |
20 | | class ProtoAndIfaceCache; |
21 | | |
22 | | } // namespace dom |
23 | | } // namespace mozilla |
24 | | |
25 | | namespace mozilla { |
26 | | namespace dom { |
27 | | |
28 | | namespace KeyEvent_Binding { |
29 | | |
30 | | typedef mozilla::dom::KeyEvent NativeType; |
31 | | |
32 | | static const uint32_t DOM_VK_CANCEL = 3; |
33 | | static const uint32_t DOM_VK_HELP = 6; |
34 | | static const uint32_t DOM_VK_BACK_SPACE = 8; |
35 | | static const uint32_t DOM_VK_TAB = 9; |
36 | | static const uint32_t DOM_VK_CLEAR = 12; |
37 | | static const uint32_t DOM_VK_RETURN = 13; |
38 | | static const uint32_t DOM_VK_SHIFT = 16; |
39 | | static const uint32_t DOM_VK_CONTROL = 17; |
40 | | static const uint32_t DOM_VK_ALT = 18; |
41 | | static const uint32_t DOM_VK_PAUSE = 19; |
42 | | static const uint32_t DOM_VK_CAPS_LOCK = 20; |
43 | | static const uint32_t DOM_VK_KANA = 21; |
44 | | static const uint32_t DOM_VK_HANGUL = 21; |
45 | | static const uint32_t DOM_VK_EISU = 22; |
46 | | static const uint32_t DOM_VK_JUNJA = 23; |
47 | | static const uint32_t DOM_VK_FINAL = 24; |
48 | | static const uint32_t DOM_VK_HANJA = 25; |
49 | | static const uint32_t DOM_VK_KANJI = 25; |
50 | | static const uint32_t DOM_VK_ESCAPE = 27; |
51 | | static const uint32_t DOM_VK_CONVERT = 28; |
52 | | static const uint32_t DOM_VK_NONCONVERT = 29; |
53 | | static const uint32_t DOM_VK_ACCEPT = 30; |
54 | | static const uint32_t DOM_VK_MODECHANGE = 31; |
55 | | static const uint32_t DOM_VK_SPACE = 32; |
56 | | static const uint32_t DOM_VK_PAGE_UP = 33; |
57 | | static const uint32_t DOM_VK_PAGE_DOWN = 34; |
58 | | static const uint32_t DOM_VK_END = 35; |
59 | | static const uint32_t DOM_VK_HOME = 36; |
60 | | static const uint32_t DOM_VK_LEFT = 37; |
61 | | static const uint32_t DOM_VK_UP = 38; |
62 | | static const uint32_t DOM_VK_RIGHT = 39; |
63 | | static const uint32_t DOM_VK_DOWN = 40; |
64 | | static const uint32_t DOM_VK_SELECT = 41; |
65 | | static const uint32_t DOM_VK_PRINT = 42; |
66 | | static const uint32_t DOM_VK_EXECUTE = 43; |
67 | | static const uint32_t DOM_VK_PRINTSCREEN = 44; |
68 | | static const uint32_t DOM_VK_INSERT = 45; |
69 | | static const uint32_t DOM_VK_DELETE = 46; |
70 | | static const uint32_t DOM_VK_0 = 48; |
71 | | static const uint32_t DOM_VK_1 = 49; |
72 | | static const uint32_t DOM_VK_2 = 50; |
73 | | static const uint32_t DOM_VK_3 = 51; |
74 | | static const uint32_t DOM_VK_4 = 52; |
75 | | static const uint32_t DOM_VK_5 = 53; |
76 | | static const uint32_t DOM_VK_6 = 54; |
77 | | static const uint32_t DOM_VK_7 = 55; |
78 | | static const uint32_t DOM_VK_8 = 56; |
79 | | static const uint32_t DOM_VK_9 = 57; |
80 | | static const uint32_t DOM_VK_COLON = 58; |
81 | | static const uint32_t DOM_VK_SEMICOLON = 59; |
82 | | static const uint32_t DOM_VK_LESS_THAN = 60; |
83 | | static const uint32_t DOM_VK_EQUALS = 61; |
84 | | static const uint32_t DOM_VK_GREATER_THAN = 62; |
85 | | static const uint32_t DOM_VK_QUESTION_MARK = 63; |
86 | | static const uint32_t DOM_VK_AT = 64; |
87 | | static const uint32_t DOM_VK_A = 65; |
88 | | static const uint32_t DOM_VK_B = 66; |
89 | | static const uint32_t DOM_VK_C = 67; |
90 | | static const uint32_t DOM_VK_D = 68; |
91 | | static const uint32_t DOM_VK_E = 69; |
92 | | static const uint32_t DOM_VK_F = 70; |
93 | | static const uint32_t DOM_VK_G = 71; |
94 | | static const uint32_t DOM_VK_H = 72; |
95 | | static const uint32_t DOM_VK_I = 73; |
96 | | static const uint32_t DOM_VK_J = 74; |
97 | | static const uint32_t DOM_VK_K = 75; |
98 | | static const uint32_t DOM_VK_L = 76; |
99 | | static const uint32_t DOM_VK_M = 77; |
100 | | static const uint32_t DOM_VK_N = 78; |
101 | | static const uint32_t DOM_VK_O = 79; |
102 | | static const uint32_t DOM_VK_P = 80; |
103 | | static const uint32_t DOM_VK_Q = 81; |
104 | | static const uint32_t DOM_VK_R = 82; |
105 | | static const uint32_t DOM_VK_S = 83; |
106 | | static const uint32_t DOM_VK_T = 84; |
107 | | static const uint32_t DOM_VK_U = 85; |
108 | | static const uint32_t DOM_VK_V = 86; |
109 | | static const uint32_t DOM_VK_W = 87; |
110 | | static const uint32_t DOM_VK_X = 88; |
111 | | static const uint32_t DOM_VK_Y = 89; |
112 | | static const uint32_t DOM_VK_Z = 90; |
113 | | static const uint32_t DOM_VK_WIN = 91; |
114 | | static const uint32_t DOM_VK_CONTEXT_MENU = 93; |
115 | | static const uint32_t DOM_VK_SLEEP = 95; |
116 | | static const uint32_t DOM_VK_NUMPAD0 = 96; |
117 | | static const uint32_t DOM_VK_NUMPAD1 = 97; |
118 | | static const uint32_t DOM_VK_NUMPAD2 = 98; |
119 | | static const uint32_t DOM_VK_NUMPAD3 = 99; |
120 | | static const uint32_t DOM_VK_NUMPAD4 = 100; |
121 | | static const uint32_t DOM_VK_NUMPAD5 = 101; |
122 | | static const uint32_t DOM_VK_NUMPAD6 = 102; |
123 | | static const uint32_t DOM_VK_NUMPAD7 = 103; |
124 | | static const uint32_t DOM_VK_NUMPAD8 = 104; |
125 | | static const uint32_t DOM_VK_NUMPAD9 = 105; |
126 | | static const uint32_t DOM_VK_MULTIPLY = 106; |
127 | | static const uint32_t DOM_VK_ADD = 107; |
128 | | static const uint32_t DOM_VK_SEPARATOR = 108; |
129 | | static const uint32_t DOM_VK_SUBTRACT = 109; |
130 | | static const uint32_t DOM_VK_DECIMAL = 110; |
131 | | static const uint32_t DOM_VK_DIVIDE = 111; |
132 | | static const uint32_t DOM_VK_F1 = 112; |
133 | | static const uint32_t DOM_VK_F2 = 113; |
134 | | static const uint32_t DOM_VK_F3 = 114; |
135 | | static const uint32_t DOM_VK_F4 = 115; |
136 | | static const uint32_t DOM_VK_F5 = 116; |
137 | | static const uint32_t DOM_VK_F6 = 117; |
138 | | static const uint32_t DOM_VK_F7 = 118; |
139 | | static const uint32_t DOM_VK_F8 = 119; |
140 | | static const uint32_t DOM_VK_F9 = 120; |
141 | | static const uint32_t DOM_VK_F10 = 121; |
142 | | static const uint32_t DOM_VK_F11 = 122; |
143 | | static const uint32_t DOM_VK_F12 = 123; |
144 | | static const uint32_t DOM_VK_F13 = 124; |
145 | | static const uint32_t DOM_VK_F14 = 125; |
146 | | static const uint32_t DOM_VK_F15 = 126; |
147 | | static const uint32_t DOM_VK_F16 = 127; |
148 | | static const uint32_t DOM_VK_F17 = 128; |
149 | | static const uint32_t DOM_VK_F18 = 129; |
150 | | static const uint32_t DOM_VK_F19 = 130; |
151 | | static const uint32_t DOM_VK_F20 = 131; |
152 | | static const uint32_t DOM_VK_F21 = 132; |
153 | | static const uint32_t DOM_VK_F22 = 133; |
154 | | static const uint32_t DOM_VK_F23 = 134; |
155 | | static const uint32_t DOM_VK_F24 = 135; |
156 | | static const uint32_t DOM_VK_NUM_LOCK = 144; |
157 | | static const uint32_t DOM_VK_SCROLL_LOCK = 145; |
158 | | static const uint32_t DOM_VK_WIN_OEM_FJ_JISHO = 146; |
159 | | static const uint32_t DOM_VK_WIN_OEM_FJ_MASSHOU = 147; |
160 | | static const uint32_t DOM_VK_WIN_OEM_FJ_TOUROKU = 148; |
161 | | static const uint32_t DOM_VK_WIN_OEM_FJ_LOYA = 149; |
162 | | static const uint32_t DOM_VK_WIN_OEM_FJ_ROYA = 150; |
163 | | static const uint32_t DOM_VK_CIRCUMFLEX = 160; |
164 | | static const uint32_t DOM_VK_EXCLAMATION = 161; |
165 | | static const uint32_t DOM_VK_DOUBLE_QUOTE = 162; |
166 | | static const uint32_t DOM_VK_HASH = 163; |
167 | | static const uint32_t DOM_VK_DOLLAR = 164; |
168 | | static const uint32_t DOM_VK_PERCENT = 165; |
169 | | static const uint32_t DOM_VK_AMPERSAND = 166; |
170 | | static const uint32_t DOM_VK_UNDERSCORE = 167; |
171 | | static const uint32_t DOM_VK_OPEN_PAREN = 168; |
172 | | static const uint32_t DOM_VK_CLOSE_PAREN = 169; |
173 | | static const uint32_t DOM_VK_ASTERISK = 170; |
174 | | static const uint32_t DOM_VK_PLUS = 171; |
175 | | static const uint32_t DOM_VK_PIPE = 172; |
176 | | static const uint32_t DOM_VK_HYPHEN_MINUS = 173; |
177 | | static const uint32_t DOM_VK_OPEN_CURLY_BRACKET = 174; |
178 | | static const uint32_t DOM_VK_CLOSE_CURLY_BRACKET = 175; |
179 | | static const uint32_t DOM_VK_TILDE = 176; |
180 | | static const uint32_t DOM_VK_VOLUME_MUTE = 181; |
181 | | static const uint32_t DOM_VK_VOLUME_DOWN = 182; |
182 | | static const uint32_t DOM_VK_VOLUME_UP = 183; |
183 | | static const uint32_t DOM_VK_COMMA = 188; |
184 | | static const uint32_t DOM_VK_PERIOD = 190; |
185 | | static const uint32_t DOM_VK_SLASH = 191; |
186 | | static const uint32_t DOM_VK_BACK_QUOTE = 192; |
187 | | static const uint32_t DOM_VK_OPEN_BRACKET = 219; |
188 | | static const uint32_t DOM_VK_BACK_SLASH = 220; |
189 | | static const uint32_t DOM_VK_CLOSE_BRACKET = 221; |
190 | | static const uint32_t DOM_VK_QUOTE = 222; |
191 | | static const uint32_t DOM_VK_META = 224; |
192 | | static const uint32_t DOM_VK_ALTGR = 225; |
193 | | static const uint32_t DOM_VK_WIN_ICO_HELP = 227; |
194 | | static const uint32_t DOM_VK_WIN_ICO_00 = 228; |
195 | | static const uint32_t DOM_VK_PROCESSKEY = 229; |
196 | | static const uint32_t DOM_VK_WIN_ICO_CLEAR = 230; |
197 | | static const uint32_t DOM_VK_WIN_OEM_RESET = 233; |
198 | | static const uint32_t DOM_VK_WIN_OEM_JUMP = 234; |
199 | | static const uint32_t DOM_VK_WIN_OEM_PA1 = 235; |
200 | | static const uint32_t DOM_VK_WIN_OEM_PA2 = 236; |
201 | | static const uint32_t DOM_VK_WIN_OEM_PA3 = 237; |
202 | | static const uint32_t DOM_VK_WIN_OEM_WSCTRL = 238; |
203 | | static const uint32_t DOM_VK_WIN_OEM_CUSEL = 239; |
204 | | static const uint32_t DOM_VK_WIN_OEM_ATTN = 240; |
205 | | static const uint32_t DOM_VK_WIN_OEM_FINISH = 241; |
206 | | static const uint32_t DOM_VK_WIN_OEM_COPY = 242; |
207 | | static const uint32_t DOM_VK_WIN_OEM_AUTO = 243; |
208 | | static const uint32_t DOM_VK_WIN_OEM_ENLW = 244; |
209 | | static const uint32_t DOM_VK_WIN_OEM_BACKTAB = 245; |
210 | | static const uint32_t DOM_VK_ATTN = 246; |
211 | | static const uint32_t DOM_VK_CRSEL = 247; |
212 | | static const uint32_t DOM_VK_EXSEL = 248; |
213 | | static const uint32_t DOM_VK_EREOF = 249; |
214 | | static const uint32_t DOM_VK_PLAY = 250; |
215 | | static const uint32_t DOM_VK_ZOOM = 251; |
216 | | static const uint32_t DOM_VK_PA1 = 253; |
217 | | static const uint32_t DOM_VK_WIN_OEM_CLEAR = 254; |
218 | | // We declare this as an array so that retrieving a pointer to this |
219 | | // binding's property hooks only requires compile/link-time resolvable |
220 | | // address arithmetic. Declaring it as a pointer instead would require |
221 | | // doing a run-time load to fetch a pointer to this binding's property |
222 | | // hooks. And then structures which embedded a pointer to this structure |
223 | | // would require a run-time load for proper initialization, which would |
224 | | // then induce static constructors. Lots of static constructors. |
225 | | extern const NativePropertyHooks sNativePropertyHooks[]; |
226 | | |
227 | | void |
228 | | CreateInterfaceObjects(JSContext* aCx, JS::Handle<JSObject*> aGlobal, ProtoAndIfaceCache& aProtoAndIfaceCache, bool aDefineOnGlobal); |
229 | | |
230 | | inline JS::Handle<JSObject*> GetConstructorObjectHandle(JSContext* aCx, bool aDefineOnGlobal = true) |
231 | 0 | { |
232 | 0 | /* Get the interface object for this class. This will create the object as |
233 | 0 | needed. */ |
234 | 0 |
|
235 | 0 | return GetPerInterfaceObjectHandle(aCx, constructors::id::KeyEvent, |
236 | 0 | &CreateInterfaceObjects, |
237 | 0 | aDefineOnGlobal); |
238 | 0 | } |
239 | | |
240 | | JSObject* |
241 | | GetConstructorObject(JSContext* aCx); |
242 | | |
243 | | } // namespace KeyEvent_Binding |
244 | | |
245 | | |
246 | | |
247 | | } // namespace dom |
248 | | } // namespace mozilla |
249 | | |
250 | | #endif // mozilla_dom_KeyEventBinding_h |