00001
00002
00003 using namespace KJS;
00004
00005 namespace KJS {
00006
00007 static const char EventConstructorTableStrings[] = {
00008 "\0"
00009 "CAPTURING_PHASE\0"
00010 "BUBBLING_PHASE\0"
00011 "AT_TARGET\0"
00012 "MOUSEDOWN\0"
00013 "MOUSEDRAG\0"
00014 "MOUSEMOVE\0"
00015 "MOUSEOVER\0"
00016 "DBLCLICK\0"
00017 "DRAGDROP\0"
00018 "KEYPRESS\0"
00019 "MOUSEOUT\0"
00020 "KEYDOWN\0"
00021 "MOUSEUP\0"
00022 "CHANGE\0"
00023 "SELECT\0"
00024 "FOCUS\0"
00025 "KEYUP\0"
00026 "BLUR\0"
00027 };
00028
00029
00030 static const struct HashEntry EventConstructorTableEntries[] = {
00031 { 1, DOM::Event::CAPTURING_PHASE, DontDelete|ReadOnly, 0, 3 },
00032 { 17, DOM::Event::BUBBLING_PHASE, DontDelete|ReadOnly, 0, 6 },
00033 { 109, 8, DontDelete|ReadOnly, 0, 7 },
00034 { 32, DOM::Event::AT_TARGET, DontDelete|ReadOnly, 0, 4 },
00035 { 42, 1, DontDelete|ReadOnly, 0, 5 },
00036 { 126, 2, DontDelete|ReadOnly, 0, 13 },
00037 { 72, 4, DontDelete|ReadOnly, 0, 8 },
00038 { 62, 16, DontDelete|ReadOnly, 0, 11 },
00039 { 52, 32, DontDelete|ReadOnly, 0, 9 },
00040 { 85, 64, DontDelete|ReadOnly, 0, 10 },
00041 { 82, 128, DontDelete|ReadOnly, 0, 14 },
00042 { 118, 256, DontDelete|ReadOnly, 0, 12 },
00043 { 154, 512, DontDelete|ReadOnly, 0, 18 },
00044 { 100, 1024, DontDelete|ReadOnly, 0, 15 },
00045 { 91, 2048, DontDelete|ReadOnly, 0, 17 },
00046 { 148, 4096, DontDelete|ReadOnly, 0, 16 },
00047 { 160, 8192, DontDelete|ReadOnly, 0, -1 },
00048 { 141, 16384, DontDelete|ReadOnly, 0, -1 },
00049 { 134, 32768, DontDelete|ReadOnly, 0, -1 }
00050 };
00051
00052 const struct HashTable EventConstructorTable = { 2, 19, EventConstructorTableEntries, 3, EventConstructorTableStrings};
00053
00054 }
00055
00056 using namespace KJS;
00057
00058 namespace KJS {
00059
00060 static const char DOMEventTableStrings[] = {
00061 "\0"
00062 "currentTarget\0"
00063 "cancelBubble\0"
00064 "returnValue\0"
00065 "cancelable\0"
00066 "eventPhase\0"
00067 "srcElement\0"
00068 "timeStamp\0"
00069 "bubbles\0"
00070 "target\0"
00071 "type\0"
00072 };
00073
00074
00075 static const struct HashEntry DOMEventTableEntries[] = {
00076 { 1, DOMEvent::CurrentTarget, DontDelete|ReadOnly, 0, 7 },
00077 { 0, 0, 0, 0, -1 },
00078 { 98, DOMEvent::Type, DontDelete|ReadOnly, 0, -1 },
00079 { 91, DOMEvent::Target, DontDelete|ReadOnly, 0, 9 },
00080 { 0, 0, 0, 0, -1 },
00081 { 28, DOMEvent::ReturnValue, DontDelete, 0, 11 },
00082 { 62, DOMEvent::SrcElement, DontDelete|ReadOnly, 0, -1 },
00083 { 51, DOMEvent::EventPhase, DontDelete|ReadOnly, 0, 8 },
00084 { 83, DOMEvent::Bubbles, DontDelete|ReadOnly, 0, -1 },
00085 { 40, DOMEvent::Cancelable, DontDelete|ReadOnly, 0, 10 },
00086 { 73, DOMEvent::TimeStamp, DontDelete|ReadOnly, 0, -1 },
00087 { 15, DOMEvent::CancelBubble, DontDelete, 0, -1 }
00088 };
00089
00090 const struct HashTable DOMEventTable = { 2, 12, DOMEventTableEntries, 7, DOMEventTableStrings};
00091
00092 }
00093
00094 using namespace KJS;
00095
00096 namespace KJS {
00097
00098 static const char DOMEventProtoTableStrings[] = {
00099 "\0"
00100 "stopPropagation\0"
00101 "preventDefault\0"
00102 "initEvent\0"
00103 };
00104
00105
00106 static const struct HashEntry DOMEventProtoTableEntries[] = {
00107 { 0, 0, 0, 0, -1 },
00108 { 0, 0, 0, 0, -1 },
00109 { 1, DOMEvent::StopPropagation, DontDelete|Function, 0, 3 },
00110 { 17, DOMEvent::PreventDefault, DontDelete|Function, 0, 4 },
00111 { 32, DOMEvent::InitEvent, DontDelete|Function, 3, -1 }
00112 };
00113
00114 const struct HashTable DOMEventProtoTable = { 2, 5, DOMEventProtoTableEntries, 3, DOMEventProtoTableStrings};
00115
00116 }
00117
00118 using namespace KJS;
00119
00120 namespace KJS {
00121
00122 static const char EventExceptionConstructorTableStrings[] = {
00123 "\0"
00124 "UNSPECIFIED_EVENT_TYPE_ERR\0"
00125 };
00126
00127
00128 static const struct HashEntry EventExceptionConstructorTableEntries[] = {
00129 { 1, DOM::EventException::UNSPECIFIED_EVENT_TYPE_ERR, DontDelete|ReadOnly, 0, -1 }
00130 };
00131
00132 const struct HashTable EventExceptionConstructorTable = { 2, 1, EventExceptionConstructorTableEntries, 1, EventExceptionConstructorTableStrings};
00133
00134 }
00135
00136 using namespace KJS;
00137
00138 namespace KJS {
00139
00140 static const char DOMUIEventTableStrings[] = {
00141 "\0"
00142 "charCode\0"
00143 "keyCode\0"
00144 "detail\0"
00145 "layerX\0"
00146 "layerY\0"
00147 "pageX\0"
00148 "pageY\0"
00149 "which\0"
00150 "view\0"
00151 };
00152
00153
00154 static const struct HashEntry DOMUIEventTableEntries[] = {
00155 { 32, DOMUIEvent::LayerY, DontDelete|ReadOnly, 0, -1 },
00156 { 10, DOMUIEvent::KeyCode, DontDelete|ReadOnly, 0, -1 },
00157 { 57, DOMUIEvent::View, DontDelete|ReadOnly, 0, 7 },
00158 { 0, 0, 0, 0, -1 },
00159 { 18, DOMUIEvent::Detail, DontDelete|ReadOnly, 0, 8 },
00160 { 45, DOMUIEvent::PageY, DontDelete|ReadOnly, 0, -1 },
00161 { 25, DOMUIEvent::LayerX, DontDelete|ReadOnly, 0, 9 },
00162 { 1, DOMUIEvent::CharCode, DontDelete|ReadOnly, 0, -1 },
00163 { 39, DOMUIEvent::PageX, DontDelete|ReadOnly, 0, -1 },
00164 { 51, DOMUIEvent::Which, DontDelete|ReadOnly, 0, -1 }
00165 };
00166
00167 const struct HashTable DOMUIEventTable = { 2, 10, DOMUIEventTableEntries, 7, DOMUIEventTableStrings};
00168
00169 }
00170
00171 using namespace KJS;
00172
00173 namespace KJS {
00174
00175 static const char DOMUIEventProtoTableStrings[] = {
00176 "\0"
00177 "initUIEvent\0"
00178 };
00179
00180
00181 static const struct HashEntry DOMUIEventProtoTableEntries[] = {
00182 { 1, DOMUIEvent::InitUIEvent, DontDelete|Function, 5, -1 }
00183 };
00184
00185 const struct HashTable DOMUIEventProtoTable = { 2, 1, DOMUIEventProtoTableEntries, 1, DOMUIEventProtoTableStrings};
00186
00187 }
00188
00189 using namespace KJS;
00190
00191 namespace KJS {
00192
00193 static const char DOMMouseEventTableStrings[] = {
00194 "\0"
00195 "relatedTarget\0"
00196 "fromElement\0"
00197 "toElement\0"
00198 "shiftKey\0"
00199 "clientX\0"
00200 "clientY\0"
00201 "ctrlKey\0"
00202 "metaKey\0"
00203 "offsetX\0"
00204 "offsetY\0"
00205 "screenX\0"
00206 "screenY\0"
00207 "altKey\0"
00208 "button\0"
00209 "x\0"
00210 };
00211
00212
00213 static const struct HashEntry DOMMouseEventTableEntries[] = {
00214 { 94, DOMMouseEvent::ScreenX, DontDelete|ReadOnly, 0, 3 },
00215 { 102, DOMMouseEvent::ScreenY, DontDelete|ReadOnly, 0, 2 },
00216 { 46, DOMMouseEvent::ClientX, DontDelete|ReadOnly, 0, 5 },
00217 { 124, DOMMouseEvent::X, DontDelete|ReadOnly, 0, 4 },
00218 { 54, DOMMouseEvent::ClientY, DontDelete|ReadOnly, 0, 7 },
00219 { 115, DOMMouseEvent::Y, DontDelete|ReadOnly, 0, 6 },
00220 { 78, DOMMouseEvent::OffsetX, DontDelete|ReadOnly, 0, 9 },
00221 { 86, DOMMouseEvent::OffsetY, DontDelete|ReadOnly, 0, 8 },
00222 { 62, DOMMouseEvent::CtrlKey, DontDelete|ReadOnly, 0, 10 },
00223 { 37, DOMMouseEvent::ShiftKey, DontDelete|ReadOnly, 0, 15 },
00224 { 110, DOMMouseEvent::AltKey, DontDelete|ReadOnly, 0, 11 },
00225 { 70, DOMMouseEvent::MetaKey, DontDelete|ReadOnly, 0, 12 },
00226 { 117, DOMMouseEvent::Button, DontDelete|ReadOnly, 0, 13 },
00227 { 1, DOMMouseEvent::RelatedTarget, DontDelete|ReadOnly, 0, 14 },
00228 { 15, DOMMouseEvent::FromElement, DontDelete|ReadOnly, 0, -1 },
00229 { 27, DOMMouseEvent::ToElement, DontDelete|ReadOnly, 0, -1 }
00230 };
00231
00232 const struct HashTable DOMMouseEventTable = { 2, 16, DOMMouseEventTableEntries, 2, DOMMouseEventTableStrings};
00233
00234 }
00235
00236 using namespace KJS;
00237
00238 namespace KJS {
00239
00240 static const char DOMMouseEventProtoTableStrings[] = {
00241 "\0"
00242 "initMouseEvent\0"
00243 };
00244
00245
00246 static const struct HashEntry DOMMouseEventProtoTableEntries[] = {
00247 { 1, DOMMouseEvent::InitMouseEvent, DontDelete|Function, 15, -1 }
00248 };
00249
00250 const struct HashTable DOMMouseEventProtoTable = { 2, 1, DOMMouseEventProtoTableEntries, 1, DOMMouseEventProtoTableStrings};
00251
00252 }
00253
00254 using namespace KJS;
00255
00256 namespace KJS {
00257
00258 static const char DOMKeyEventBaseTableStrings[] = {
00259 "\0"
00260 "virtKeyVal\0"
00261 "shiftKey\0"
00262 "ctrlKey\0"
00263 "altKey\0"
00264 "keyVal\0"
00265 };
00266
00267
00268 static const struct HashEntry DOMKeyEventBaseTableEntries[] = {
00269 { 36, DOMKeyEventBase::Key, DontDelete|ReadOnly, 0, -1 },
00270 { 1, DOMKeyEventBase::VirtKey, DontDelete|ReadOnly, 0, -1 },
00271 { 0, 0, 0, 0, -1 },
00272 { 29, DOMKeyEventBase::AltKey, DontDelete|ReadOnly, 0, 6 },
00273 { 21, DOMKeyEventBase::CtrlKey, DontDelete|ReadOnly, 0, 5 },
00274 { 12, DOMKeyEventBase::ShiftKey, DontDelete|ReadOnly, 0, -1 },
00275 { 29, DOMKeyEventBase::AltKey, DontDelete|ReadOnly, 0, -1 }
00276 };
00277
00278 const struct HashTable DOMKeyEventBaseTable = { 2, 7, DOMKeyEventBaseTableEntries, 5, DOMKeyEventBaseTableStrings};
00279
00280 }
00281
00282 using namespace KJS;
00283
00284 namespace KJS {
00285
00286 static const char DOMTextEventTableStrings[] = {
00287 "\0"
00288 "data\0"
00289 };
00290
00291
00292 static const struct HashEntry DOMTextEventTableEntries[] = {
00293 { 1, DOMTextEvent::Data, DontDelete|ReadOnly, 0, -1 }
00294 };
00295
00296 const struct HashTable DOMTextEventTable = { 2, 1, DOMTextEventTableEntries, 1, DOMTextEventTableStrings};
00297
00298 }
00299
00300 using namespace KJS;
00301
00302 namespace KJS {
00303
00304 static const char DOMTextEventProtoTableStrings[] = {
00305 "\0"
00306 "initTextEvent\0"
00307 };
00308
00309
00310 static const struct HashEntry DOMTextEventProtoTableEntries[] = {
00311 { 1, DOMTextEvent::InitTextEvent, DontDelete|Function, 5, -1 }
00312 };
00313
00314 const struct HashTable DOMTextEventProtoTable = { 2, 1, DOMTextEventProtoTableEntries, 1, DOMTextEventProtoTableStrings};
00315
00316 }
00317
00318 using namespace KJS;
00319
00320 namespace KJS {
00321
00322 static const char DOMKeyboardEventTableStrings[] = {
00323 "\0"
00324 "keyIdentifier\0"
00325 "keyLocation\0"
00326 };
00327
00328
00329 static const struct HashEntry DOMKeyboardEventTableEntries[] = {
00330 { 1, DOMKeyboardEvent::KeyIdentifier, DontDelete|ReadOnly, 0, 2 },
00331 { 0, 0, 0, 0, -1 },
00332 { 15, DOMKeyboardEvent::KeyLocation, DontDelete|ReadOnly, 0, -1 }
00333 };
00334
00335 const struct HashTable DOMKeyboardEventTable = { 2, 3, DOMKeyboardEventTableEntries, 2, DOMKeyboardEventTableStrings};
00336
00337 }
00338
00339 using namespace KJS;
00340
00341 namespace KJS {
00342
00343 static const char DOMKeyboardEventProtoTableStrings[] = {
00344 "\0"
00345 "initKeyboardEvent\0"
00346 "getModifierState\0"
00347 };
00348
00349
00350 static const struct HashEntry DOMKeyboardEventProtoTableEntries[] = {
00351 { 19, DOMKeyboardEvent::GetModifierState, DontDelete|Function, 1, -1 },
00352 { 1, DOMKeyboardEvent::InitKeyboardEvent, DontDelete|Function, 7, -1 }
00353 };
00354
00355 const struct HashTable DOMKeyboardEventProtoTable = { 2, 2, DOMKeyboardEventProtoTableEntries, 2, DOMKeyboardEventProtoTableStrings};
00356
00357 }
00358
00359 using namespace KJS;
00360
00361 namespace KJS {
00362
00363 static const char KeyboardEventConstructorTableStrings[] = {
00364 "\0"
00365 "DOM_KEY_LOCATION_STANDARD\0"
00366 "DOM_KEY_LOCATION_NUMPAD\0"
00367 "DOM_KEY_LOCATION_RIGHT\0"
00368 "DOM_KEY_LOCATION_LEFT\0"
00369 };
00370
00371
00372 static const struct HashEntry KeyboardEventConstructorTableEntries[] = {
00373 { 1, DOM::KeyboardEventImpl::DOM_KEY_LOCATION_STANDARD, DontDelete|ReadOnly, 0, 4 },
00374 { 51, DOM::KeyboardEventImpl::DOM_KEY_LOCATION_RIGHT, DontDelete|ReadOnly, 0, -1 },
00375 { 74, DOM::KeyboardEventImpl::DOM_KEY_LOCATION_LEFT, DontDelete|ReadOnly, 0, -1 },
00376 { 0, 0, 0, 0, -1 },
00377 { 27, DOM::KeyboardEventImpl::DOM_KEY_LOCATION_NUMPAD, DontDelete|ReadOnly, 0, -1 }
00378 };
00379
00380 const struct HashTable KeyboardEventConstructorTable = { 2, 5, KeyboardEventConstructorTableEntries, 4, KeyboardEventConstructorTableStrings};
00381
00382 }
00383
00384 using namespace KJS;
00385
00386 namespace KJS {
00387
00388 static const char MutationEventConstructorTableStrings[] = {
00389 "\0"
00390 "MODIFICATION\0"
00391 "ADDITION\0"
00392 "REMOVAL\0"
00393 };
00394
00395
00396 static const struct HashEntry MutationEventConstructorTableEntries[] = {
00397 { 14, DOM::MutationEvent::ADDITION, DontDelete|ReadOnly, 0, 3 },
00398 { 1, DOM::MutationEvent::MODIFICATION, DontDelete|ReadOnly, 0, -1 },
00399 { 0, 0, 0, 0, -1 },
00400 { 23, DOM::MutationEvent::REMOVAL, DontDelete|ReadOnly, 0, -1 }
00401 };
00402
00403 const struct HashTable MutationEventConstructorTable = { 2, 4, MutationEventConstructorTableEntries, 3, MutationEventConstructorTableStrings};
00404
00405 }
00406
00407 using namespace KJS;
00408
00409 namespace KJS {
00410
00411 static const char DOMMutationEventTableStrings[] = {
00412 "\0"
00413 "relatedNode\0"
00414 "attrChange\0"
00415 "prevValue\0"
00416 "attrName\0"
00417 "newValue\0"
00418 };
00419
00420
00421 static const struct HashEntry DOMMutationEventTableEntries[] = {
00422 { 13, DOMMutationEvent::AttrChange, DontDelete|ReadOnly, 0, -1 },
00423 { 0, 0, 0, 0, -1 },
00424 { 1, DOMMutationEvent::RelatedNode, DontDelete|ReadOnly, 0, -1 },
00425 { 34, DOMMutationEvent::AttrName, DontDelete|ReadOnly, 0, -1 },
00426 { 24, DOMMutationEvent::PrevValue, DontDelete|ReadOnly, 0, 5 },
00427 { 43, DOMMutationEvent::NewValue, DontDelete|ReadOnly, 0, -1 }
00428 };
00429
00430 const struct HashTable DOMMutationEventTable = { 2, 6, DOMMutationEventTableEntries, 5, DOMMutationEventTableStrings};
00431
00432 }
00433
00434 using namespace KJS;
00435
00436 namespace KJS {
00437
00438 static const char DOMMutationEventProtoTableStrings[] = {
00439 "\0"
00440 "initMutationEvent\0"
00441 };
00442
00443
00444 static const struct HashEntry DOMMutationEventProtoTableEntries[] = {
00445 { 1, DOMMutationEvent::InitMutationEvent, DontDelete|Function, 8, -1 }
00446 };
00447
00448 const struct HashTable DOMMutationEventProtoTable = { 2, 1, DOMMutationEventProtoTableEntries, 1, DOMMutationEventProtoTableStrings};
00449
00450 }