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