1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/events/nsIDOMKeyEvent.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMKeyEvent_h__
6 : #define __gen_nsIDOMKeyEvent_h__
7 :
8 :
9 : #ifndef __gen_nsIDOMUIEvent_h__
10 : #include "nsIDOMUIEvent.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 :
18 : /* starting interface: nsIDOMKeyEvent */
19 : #define NS_IDOMKEYEVENT_IID_STR "def974c3-b491-481b-bc67-29174af4b26a"
20 :
21 : #define NS_IDOMKEYEVENT_IID \
22 : {0xdef974c3, 0xb491, 0x481b, \
23 : { 0xbc, 0x67, 0x29, 0x17, 0x4a, 0xf4, 0xb2, 0x6a }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMKeyEvent : public nsIDOMUIEvent {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMKEYEVENT_IID)
29 :
30 : enum {
31 : DOM_VK_CANCEL = 3U,
32 : DOM_VK_HELP = 6U,
33 : DOM_VK_BACK_SPACE = 8U,
34 : DOM_VK_TAB = 9U,
35 : DOM_VK_CLEAR = 12U,
36 : DOM_VK_RETURN = 13U,
37 : DOM_VK_ENTER = 14U,
38 : DOM_VK_SHIFT = 16U,
39 : DOM_VK_CONTROL = 17U,
40 : DOM_VK_ALT = 18U,
41 : DOM_VK_PAUSE = 19U,
42 : DOM_VK_CAPS_LOCK = 20U,
43 : DOM_VK_KANA = 21U,
44 : DOM_VK_HANGUL = 21U,
45 : DOM_VK_JUNJA = 23U,
46 : DOM_VK_FINAL = 24U,
47 : DOM_VK_HANJA = 25U,
48 : DOM_VK_KANJI = 25U,
49 : DOM_VK_ESCAPE = 27U,
50 : DOM_VK_CONVERT = 28U,
51 : DOM_VK_NONCONVERT = 29U,
52 : DOM_VK_ACCEPT = 30U,
53 : DOM_VK_MODECHANGE = 31U,
54 : DOM_VK_SPACE = 32U,
55 : DOM_VK_PAGE_UP = 33U,
56 : DOM_VK_PAGE_DOWN = 34U,
57 : DOM_VK_END = 35U,
58 : DOM_VK_HOME = 36U,
59 : DOM_VK_LEFT = 37U,
60 : DOM_VK_UP = 38U,
61 : DOM_VK_RIGHT = 39U,
62 : DOM_VK_DOWN = 40U,
63 : DOM_VK_SELECT = 41U,
64 : DOM_VK_PRINT = 42U,
65 : DOM_VK_EXECUTE = 43U,
66 : DOM_VK_PRINTSCREEN = 44U,
67 : DOM_VK_INSERT = 45U,
68 : DOM_VK_DELETE = 46U,
69 : DOM_VK_0 = 48U,
70 : DOM_VK_1 = 49U,
71 : DOM_VK_2 = 50U,
72 : DOM_VK_3 = 51U,
73 : DOM_VK_4 = 52U,
74 : DOM_VK_5 = 53U,
75 : DOM_VK_6 = 54U,
76 : DOM_VK_7 = 55U,
77 : DOM_VK_8 = 56U,
78 : DOM_VK_9 = 57U,
79 : DOM_VK_SEMICOLON = 59U,
80 : DOM_VK_EQUALS = 61U,
81 : DOM_VK_A = 65U,
82 : DOM_VK_B = 66U,
83 : DOM_VK_C = 67U,
84 : DOM_VK_D = 68U,
85 : DOM_VK_E = 69U,
86 : DOM_VK_F = 70U,
87 : DOM_VK_G = 71U,
88 : DOM_VK_H = 72U,
89 : DOM_VK_I = 73U,
90 : DOM_VK_J = 74U,
91 : DOM_VK_K = 75U,
92 : DOM_VK_L = 76U,
93 : DOM_VK_M = 77U,
94 : DOM_VK_N = 78U,
95 : DOM_VK_O = 79U,
96 : DOM_VK_P = 80U,
97 : DOM_VK_Q = 81U,
98 : DOM_VK_R = 82U,
99 : DOM_VK_S = 83U,
100 : DOM_VK_T = 84U,
101 : DOM_VK_U = 85U,
102 : DOM_VK_V = 86U,
103 : DOM_VK_W = 87U,
104 : DOM_VK_X = 88U,
105 : DOM_VK_Y = 89U,
106 : DOM_VK_Z = 90U,
107 : DOM_VK_CONTEXT_MENU = 93U,
108 : DOM_VK_SLEEP = 95U,
109 : DOM_VK_NUMPAD0 = 96U,
110 : DOM_VK_NUMPAD1 = 97U,
111 : DOM_VK_NUMPAD2 = 98U,
112 : DOM_VK_NUMPAD3 = 99U,
113 : DOM_VK_NUMPAD4 = 100U,
114 : DOM_VK_NUMPAD5 = 101U,
115 : DOM_VK_NUMPAD6 = 102U,
116 : DOM_VK_NUMPAD7 = 103U,
117 : DOM_VK_NUMPAD8 = 104U,
118 : DOM_VK_NUMPAD9 = 105U,
119 : DOM_VK_MULTIPLY = 106U,
120 : DOM_VK_ADD = 107U,
121 : DOM_VK_SEPARATOR = 108U,
122 : DOM_VK_SUBTRACT = 109U,
123 : DOM_VK_DECIMAL = 110U,
124 : DOM_VK_DIVIDE = 111U,
125 : DOM_VK_F1 = 112U,
126 : DOM_VK_F2 = 113U,
127 : DOM_VK_F3 = 114U,
128 : DOM_VK_F4 = 115U,
129 : DOM_VK_F5 = 116U,
130 : DOM_VK_F6 = 117U,
131 : DOM_VK_F7 = 118U,
132 : DOM_VK_F8 = 119U,
133 : DOM_VK_F9 = 120U,
134 : DOM_VK_F10 = 121U,
135 : DOM_VK_F11 = 122U,
136 : DOM_VK_F12 = 123U,
137 : DOM_VK_F13 = 124U,
138 : DOM_VK_F14 = 125U,
139 : DOM_VK_F15 = 126U,
140 : DOM_VK_F16 = 127U,
141 : DOM_VK_F17 = 128U,
142 : DOM_VK_F18 = 129U,
143 : DOM_VK_F19 = 130U,
144 : DOM_VK_F20 = 131U,
145 : DOM_VK_F21 = 132U,
146 : DOM_VK_F22 = 133U,
147 : DOM_VK_F23 = 134U,
148 : DOM_VK_F24 = 135U,
149 : DOM_VK_NUM_LOCK = 144U,
150 : DOM_VK_SCROLL_LOCK = 145U,
151 : DOM_VK_COMMA = 188U,
152 : DOM_VK_PERIOD = 190U,
153 : DOM_VK_SLASH = 191U,
154 : DOM_VK_BACK_QUOTE = 192U,
155 : DOM_VK_OPEN_BRACKET = 219U,
156 : DOM_VK_BACK_SLASH = 220U,
157 : DOM_VK_CLOSE_BRACKET = 221U,
158 : DOM_VK_QUOTE = 222U,
159 : DOM_VK_META = 224U
160 : };
161 :
162 : /* readonly attribute unsigned long charCode; */
163 : NS_SCRIPTABLE NS_IMETHOD GetCharCode(PRUint32 *aCharCode) = 0;
164 :
165 : /* readonly attribute unsigned long keyCode; */
166 : NS_SCRIPTABLE NS_IMETHOD GetKeyCode(PRUint32 *aKeyCode) = 0;
167 :
168 : /* readonly attribute boolean altKey; */
169 : NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) = 0;
170 :
171 : /* readonly attribute boolean ctrlKey; */
172 : NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) = 0;
173 :
174 : /* readonly attribute boolean shiftKey; */
175 : NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) = 0;
176 :
177 : /* readonly attribute boolean metaKey; */
178 : NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) = 0;
179 :
180 : /* void initKeyEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMWindow viewArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned long keyCodeArg, in unsigned long charCodeArg); */
181 : NS_SCRIPTABLE NS_IMETHOD InitKeyEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint32 keyCodeArg, PRUint32 charCodeArg) = 0;
182 :
183 : };
184 :
185 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMKeyEvent, NS_IDOMKEYEVENT_IID)
186 :
187 : /* Use this macro when declaring classes that implement this interface. */
188 : #define NS_DECL_NSIDOMKEYEVENT \
189 : NS_SCRIPTABLE NS_IMETHOD GetCharCode(PRUint32 *aCharCode); \
190 : NS_SCRIPTABLE NS_IMETHOD GetKeyCode(PRUint32 *aKeyCode); \
191 : NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey); \
192 : NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey); \
193 : NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey); \
194 : NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey); \
195 : NS_SCRIPTABLE NS_IMETHOD InitKeyEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint32 keyCodeArg, PRUint32 charCodeArg);
196 :
197 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
198 : #define NS_FORWARD_NSIDOMKEYEVENT(_to) \
199 : NS_SCRIPTABLE NS_IMETHOD GetCharCode(PRUint32 *aCharCode) { return _to GetCharCode(aCharCode); } \
200 : NS_SCRIPTABLE NS_IMETHOD GetKeyCode(PRUint32 *aKeyCode) { return _to GetKeyCode(aKeyCode); } \
201 : NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) { return _to GetAltKey(aAltKey); } \
202 : NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) { return _to GetCtrlKey(aCtrlKey); } \
203 : NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) { return _to GetShiftKey(aShiftKey); } \
204 : NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) { return _to GetMetaKey(aMetaKey); } \
205 : NS_SCRIPTABLE NS_IMETHOD InitKeyEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint32 keyCodeArg, PRUint32 charCodeArg) { return _to InitKeyEvent(typeArg, canBubbleArg, cancelableArg, viewArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, keyCodeArg, charCodeArg); }
206 :
207 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
208 : #define NS_FORWARD_SAFE_NSIDOMKEYEVENT(_to) \
209 : NS_SCRIPTABLE NS_IMETHOD GetCharCode(PRUint32 *aCharCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharCode(aCharCode); } \
210 : NS_SCRIPTABLE NS_IMETHOD GetKeyCode(PRUint32 *aKeyCode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyCode(aKeyCode); } \
211 : NS_SCRIPTABLE NS_IMETHOD GetAltKey(bool *aAltKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAltKey(aAltKey); } \
212 : NS_SCRIPTABLE NS_IMETHOD GetCtrlKey(bool *aCtrlKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCtrlKey(aCtrlKey); } \
213 : NS_SCRIPTABLE NS_IMETHOD GetShiftKey(bool *aShiftKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShiftKey(aShiftKey); } \
214 : NS_SCRIPTABLE NS_IMETHOD GetMetaKey(bool *aMetaKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMetaKey(aMetaKey); } \
215 : NS_SCRIPTABLE NS_IMETHOD InitKeyEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint32 keyCodeArg, PRUint32 charCodeArg) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitKeyEvent(typeArg, canBubbleArg, cancelableArg, viewArg, ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, keyCodeArg, charCodeArg); }
216 :
217 : #if 0
218 : /* Use the code below as a template for the implementation class for this interface. */
219 :
220 : /* Header file */
221 : class nsDOMKeyEvent : public nsIDOMKeyEvent
222 : {
223 : public:
224 : NS_DECL_ISUPPORTS
225 : NS_DECL_NSIDOMKEYEVENT
226 :
227 : nsDOMKeyEvent();
228 :
229 : private:
230 : ~nsDOMKeyEvent();
231 :
232 : protected:
233 : /* additional members */
234 : };
235 :
236 : /* Implementation file */
237 : NS_IMPL_ISUPPORTS1(nsDOMKeyEvent, nsIDOMKeyEvent)
238 :
239 : nsDOMKeyEvent::nsDOMKeyEvent()
240 : {
241 : /* member initializers and constructor code */
242 : }
243 :
244 : nsDOMKeyEvent::~nsDOMKeyEvent()
245 : {
246 : /* destructor code */
247 : }
248 :
249 : /* readonly attribute unsigned long charCode; */
250 : NS_IMETHODIMP nsDOMKeyEvent::GetCharCode(PRUint32 *aCharCode)
251 : {
252 : return NS_ERROR_NOT_IMPLEMENTED;
253 : }
254 :
255 : /* readonly attribute unsigned long keyCode; */
256 : NS_IMETHODIMP nsDOMKeyEvent::GetKeyCode(PRUint32 *aKeyCode)
257 : {
258 : return NS_ERROR_NOT_IMPLEMENTED;
259 : }
260 :
261 : /* readonly attribute boolean altKey; */
262 : NS_IMETHODIMP nsDOMKeyEvent::GetAltKey(bool *aAltKey)
263 : {
264 : return NS_ERROR_NOT_IMPLEMENTED;
265 : }
266 :
267 : /* readonly attribute boolean ctrlKey; */
268 : NS_IMETHODIMP nsDOMKeyEvent::GetCtrlKey(bool *aCtrlKey)
269 : {
270 : return NS_ERROR_NOT_IMPLEMENTED;
271 : }
272 :
273 : /* readonly attribute boolean shiftKey; */
274 : NS_IMETHODIMP nsDOMKeyEvent::GetShiftKey(bool *aShiftKey)
275 : {
276 : return NS_ERROR_NOT_IMPLEMENTED;
277 : }
278 :
279 : /* readonly attribute boolean metaKey; */
280 : NS_IMETHODIMP nsDOMKeyEvent::GetMetaKey(bool *aMetaKey)
281 : {
282 : return NS_ERROR_NOT_IMPLEMENTED;
283 : }
284 :
285 : /* void initKeyEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIDOMWindow viewArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned long keyCodeArg, in unsigned long charCodeArg); */
286 : NS_IMETHODIMP nsDOMKeyEvent::InitKeyEvent(const nsAString & typeArg, bool canBubbleArg, bool cancelableArg, nsIDOMWindow *viewArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint32 keyCodeArg, PRUint32 charCodeArg)
287 : {
288 : return NS_ERROR_NOT_IMPLEMENTED;
289 : }
290 :
291 : /* End of implementation class template. */
292 : #endif
293 :
294 :
295 : #endif /* __gen_nsIDOMKeyEvent_h__ */
|