00001
00002
00003 using namespace KJS;
00004
00005 namespace KJS {
00006
00007 static const char ScreenTableStrings[] = {
00008 "\0"
00009 "availHeight\0"
00010 "availWidth\0"
00011 "colorDepth\0"
00012 "pixelDepth\0"
00013 "availLeft\0"
00014 "availTop\0"
00015 "height\0"
00016 "width\0"
00017 };
00018
00019
00020 static const struct HashEntry ScreenTableEntries[] = {
00021 { 0, 0, 0, 0, -1 },
00022 { 24, Screen::ColorDepth, DontEnum|ReadOnly, 0, 9 },
00023 { 0, 0, 0, 0, -1 },
00024 { 65, Screen::Height, DontEnum|ReadOnly, 0, 7 },
00025 { 35, Screen::PixelDepth, DontEnum|ReadOnly, 0, -1 },
00026 { 72, Screen::Width, DontEnum|ReadOnly, 0, -1 },
00027 { 56, Screen::AvailTop, DontEnum|ReadOnly, 0, 8 },
00028 { 46, Screen::AvailLeft, DontEnum|ReadOnly, 0, -1 },
00029 { 1, Screen::AvailHeight, DontEnum|ReadOnly, 0, -1 },
00030 { 13, Screen::AvailWidth, DontEnum|ReadOnly, 0, -1 }
00031 };
00032
00033 const struct HashTable ScreenTable = { 2, 10, ScreenTableEntries, 7, ScreenTableStrings};
00034
00035 }
00036
00037 using namespace KJS;
00038
00039 namespace KJS {
00040
00041 static const char WindowTableStrings[] = {
00042 "\0"
00043 "removeEventListener\0"
00044 "offscreenBuffering\0"
00045 "clientInformation\0"
00046 "addEventListener\0"
00047 "getComputedStyle\0"
00048 "EventException\0"
00049 "XMLHttpRequest\0"
00050 "KeyboardEvent\0"
00051 "MutationEvent\0"
00052 "XMLSerializer\0"
00053 "captureEvents\0"
00054 "clearInterval\0"
00055 "defaultStatus\0"
00056 "defaultstatus\0"
00057 "releaseEvents\0"
00058 "DOMException\0"
00059 "clearTimeout\0"
00060 "frameElement\0"
00061 "innerHeight\0"
00062 "onmousedown\0"
00063 "onmousemove\0"
00064 "onmouseover\0"
00065 "outerHeight\0"
00066 "pageXOffset\0"
00067 "pageYOffset\0"
00068 "personalbar\0"
00069 "setInterval\0"
00070 "NodeFilter\0"
00071 "innerWidth\0"
00072 "ondblclick\0"
00073 "ondragdrop\0"
00074 "onkeypress\0"
00075 "onmouseout\0"
00076 "outerWidth\0"
00077 "scrollbars\0"
00078 "setTimeout\0"
00079 "DOMParser\0"
00080 "konqueror\0"
00081 "navigator\0"
00082 "onkeydown\0"
00083 "onmouseup\0"
00084 "document\0"
00085 "external\0"
00086 "location\0"
00087 "navigate\0"
00088 "onchange\0"
00089 "onresize\0"
00090 "onselect\0"
00091 "onsubmit\0"
00092 "onunload\0"
00093 "resizeBy\0"
00094 "resizeTo\0"
00095 "scrollBy\0"
00096 "scrollTo\0"
00097 "CSSRule\0"
00098 "confirm\0"
00099 "history\0"
00100 "onabort\0"
00101 "onclick\0"
00102 "onerror\0"
00103 "onfocus\0"
00104 "onkeyup\0"
00105 "onreset\0"
00106 "screenX\0"
00107 "screenY\0"
00108 "scrollX\0"
00109 "scrollY\0"
00110 "sidebar\0"
00111 "Option\0"
00112 "closed\0"
00113 "crypto\0"
00114 "frames\0"
00115 "length\0"
00116 "moveBy\0"
00117 "moveTo\0"
00118 "onblur\0"
00119 "onload\0"
00120 "onmove\0"
00121 "opener\0"
00122 "parent\0"
00123 "prompt\0"
00124 "screen\0"
00125 "scroll\0"
00126 "window\0"
00127 "Image\0"
00128 "Range\0"
00129 "alert\0"
00130 "close\0"
00131 "event\0"
00132 "print\0"
00133 "Node\0"
00134 "atob\0"
00135 "btoa\0"
00136 "name\0"
00137 "open\0"
00138 "self\0"
00139 "top\0"
00140 };
00141
00142
00143 static const struct HashEntry WindowTableEntries[] = {
00144 { 889, Window::Close, DontDelete|Function, 0, -1 },
00145 { 0, 0, 0, 0, -1 },
00146 { 883, Window::Alert, DontDelete|Function, 1, -1 },
00147 { 321, Window::OuterHeight, DontDelete|ReadOnly, 0, 94 },
00148 { 414, Window::Ondragdrop, DontDelete, 0, -1 },
00149 { 0, 0, 0, 0, -1 },
00150 { 21, Window::OffscreenBuffering, DontDelete|ReadOnly, 0, -1 },
00151 { 469, Window::SetTimeout, DontDelete|Function, 2, -1 },
00152 { 0, 0, 0, 0, -1 },
00153 { 0, 0, 0, 0, -1 },
00154 { 697, Window::Focus, DontDelete|Function, 0, 123 },
00155 { 766, Window::Closed, DontDelete|ReadOnly, 0, 96 },
00156 { 895, Window::Event, DontDelete|ReadOnly, 0, 105 },
00157 { 0, 0, 0, 0, -1 },
00158 { 815, Window::Onload, DontDelete, 0, -1 },
00159 { 780, Window::Frames, DontDelete|ReadOnly, 0, -1 },
00160 { 719, Window::ScreenX, DontDelete|ReadOnly, 0, 103 },
00161 { 40, Window::ClientInformation, DontDelete|ReadOnly, 0, 95 },
00162 { 751, Window::SideBar, DontDelete|ReadOnly, 0, 124 },
00163 { 787, Window::Length, DontDelete|ReadOnly, 0, 93 },
00164 { 357, Window::Personalbar, DontDelete|ReadOnly, 0, -1 },
00165 { 178, Window::ClearInterval, DontDelete|Function, 1, -1 },
00166 { 0, 0, 0, 0, -1 },
00167 { 901, Window::Print, DontDelete|Function, 0, -1 },
00168 { 520, Window::Onmouseup, DontDelete, 0, -1 },
00169 { 381, Window::NodeFilter, DontDelete, 0, -1 },
00170 { 829, Window::Opener, DontDelete|ReadOnly, 0, -1 },
00171 { 836, Window::Parent, DontDelete|ReadOnly, 0, 110 },
00172 { 136, Window::MutationEventCtor, DontDelete, 0, -1 },
00173 { 0, 0, 0, 0, -1 },
00174 { 0, 0, 0, 0, -1 },
00175 { 735, Window::ScrollX, DontDelete|ReadOnly, 0, 107 },
00176 { 857, Window::Scroll, DontDelete|Function, 2, 98 },
00177 { 92, Window::EventExceptionCtor, DontDelete, 0, -1 },
00178 { 566, Window::Onchange, DontDelete, 0, 121 },
00179 { 808, Window::Onblur, DontDelete, 0, -1 },
00180 { 0, 0, 0, 0, -1 },
00181 { 822, Window::Onmove, DontDelete, 0, -1 },
00182 { 655, Window::Confirm, DontDelete|Function, 1, 125 },
00183 { 425, Window::Onkeypress, DontDelete, 0, -1 },
00184 { 0, 0, 0, 0, -1 },
00185 { 629, Window::ScrollBy, DontDelete|Function, 2, 101 },
00186 { 0, 0, 0, 0, -1 },
00187 { 0, 0, 0, 0, -1 },
00188 { 611, Window::ResizeBy, DontDelete|Function, 2, 129 },
00189 { 671, Window::Onabort, DontDelete, 0, 128 },
00190 { 557, Window::Navigate, DontDelete|Function, 1, -1 },
00191 { 58, Window::AddEventListener, DontDelete|Function, 3, -1 },
00192 { 333, Window::PageXOffset, DontDelete|ReadOnly, 0, 108 },
00193 { 345, Window::PageYOffset, DontDelete|ReadOnly, 0, 97 },
00194 { 773, Window::Crypto, DontDelete|ReadOnly, 0, 90 },
00195 { 843, Window::Prompt, DontDelete|Function, 2, -1 },
00196 { 620, Window::ResizeTo, DontDelete|Function, 2, -1 },
00197 { 213, Window::Status, DontDelete, 0, 112 },
00198 { 0, 0, 0, 0, -1 },
00199 { 0, 0, 0, 0, -1 },
00200 { 548, Window::_Location, DontDelete, 0, 114 },
00201 { 285, Window::Onmousedown, DontDelete, 0, -1 },
00202 { 0, 0, 0, 0, -1 },
00203 { 0, 0, 0, 0, -1 },
00204 { 584, Window::Onselect, DontDelete, 0, -1 },
00205 { 922, Window::Name, DontDelete, 0, 116 },
00206 { 530, Window::Document, DontDelete|ReadOnly, 0, -1 },
00207 { 687, Window::Onerror, DontDelete, 0, 120 },
00208 { 0, 0, 0, 0, -1 },
00209 { 0, 0, 0, 0, -1 },
00210 { 912, Window::AToB, DontDelete|Function, 1, 89 },
00211 { 703, Window::Onkeyup, DontDelete, 0, 127 },
00212 { 0, 0, 0, 0, -1 },
00213 { 144, Window::EventCtor, DontDelete, 0, -1 },
00214 { 932, Window::Self, DontDelete|ReadOnly, 0, -1 },
00215 { 0, 0, 0, 0, -1 },
00216 { 937, Window::Top, DontDelete|ReadOnly, 0, -1 },
00217 { 273, Window::InnerHeight, DontDelete|ReadOnly, 0, 92 },
00218 { 663, Window::_History, DontDelete|ReadOnly, 0, -1 },
00219 { 0, 0, 0, 0, -1 },
00220 { 0, 0, 0, 0, -1 },
00221 { 0, 0, 0, 0, -1 },
00222 { 927, Window::Open, DontDelete|Function, 3, 118 },
00223 { 0, 0, 0, 0, -1 },
00224 { 260, Window::FrameElement, DontDelete|ReadOnly, 0, 109 },
00225 { 500, Window::_Navigator, DontDelete|ReadOnly, 0, 104 },
00226 { 206, Window::DefaultStatus, DontDelete, 0, -1 },
00227 { 0, 0, 0, 0, -1 },
00228 { 0, 0, 0, 0, -1 },
00229 { 122, Window::KeyboardEventCtor, DontDelete, 0, -1 },
00230 { 0, 0, 0, 0, -1 },
00231 { 0, 0, 0, 0, -1 },
00232 { 0, 0, 0, 0, -1 },
00233 { 917, Window::BToA, DontDelete|Function, 1, 91 },
00234 { 192, Window::DefaultStatus, DontDelete, 0, 106 },
00235 { 539, Window::_External, DontDelete|ReadOnly, 0, 111 },
00236 { 392, Window::InnerWidth, DontDelete|ReadOnly, 0, -1 },
00237 { 490, Window::_Konqueror, DontDelete|ReadOnly, 0, -1 },
00238 { 447, Window::OuterWidth, DontDelete|ReadOnly, 0, 99 },
00239 { 727, Window::ScreenY, DontDelete|ReadOnly, 0, 102 },
00240 { 458, Window::Scrollbars, DontDelete|ReadOnly, 0, 100 },
00241 { 638, Window::ScrollTo, DontDelete|Function, 2, -1 },
00242 { 743, Window::ScrollY, DontDelete|ReadOnly, 0, -1 },
00243 { 794, Window::MoveBy, DontDelete|Function, 2, -1 },
00244 { 801, Window::MoveTo, DontDelete|Function, 2, 113 },
00245 { 864, Window::_Window, DontDelete|ReadOnly, 0, -1 },
00246 { 850, Window::_Screen, DontDelete|ReadOnly, 0, -1 },
00247 { 247, Window::ClearTimeout, DontDelete|Function, 1, -1 },
00248 { 810, Window::Blur, DontDelete|Function, 0, -1 },
00249 { 369, Window::SetInterval, DontDelete|Function, 2, -1 },
00250 { 164, Window::CaptureEvents, DontDelete|Function, 0, 115 },
00251 { 220, Window::ReleaseEvents, DontDelete|Function, 0, -1 },
00252 { 1, Window::RemoveEventListener, DontDelete|Function, 3, 122 },
00253 { 75, Window::GetComputedStyle, DontDelete|Function, 2, 119 },
00254 { 679, Window::Onclick, DontDelete, 0, -1 },
00255 { 403, Window::Ondblclick, DontDelete, 0, -1 },
00256 { 695, Window::Onfocus, DontDelete, 0, -1 },
00257 { 510, Window::Onkeydown, DontDelete, 0, -1 },
00258 { 297, Window::Onmousemove, DontDelete, 0, 117 },
00259 { 436, Window::Onmouseout, DontDelete, 0, -1 },
00260 { 309, Window::Onmouseover, DontDelete, 0, -1 },
00261 { 711, Window::Onreset, DontDelete, 0, -1 },
00262 { 575, Window::Onresize, DontDelete, 0, -1 },
00263 { 593, Window::Onsubmit, DontDelete, 0, -1 },
00264 { 602, Window::Onunload, DontDelete, 0, -1 },
00265 { 907, Window::Node, DontDelete, 0, -1 },
00266 { 877, Window::Range, DontDelete, 0, -1 },
00267 { 234, Window::DOMException, DontDelete, 0, 126 },
00268 { 647, Window::CSSRule, DontDelete, 0, -1 },
00269 { 871, Window::Image, DontDelete|ReadOnly, 0, -1 },
00270 { 759, Window::Option, DontDelete|ReadOnly, 0, -1 },
00271 { 107, Window::XMLHttpRequest, DontDelete|ReadOnly, 0, -1 },
00272 { 150, Window::XMLSerializer, DontDelete|ReadOnly, 0, -1 },
00273 { 480, Window::DOMParser, DontDelete|ReadOnly, 0, -1 }
00274 };
00275
00276 const struct HashTable WindowTable = { 2, 130, WindowTableEntries, 89, WindowTableStrings};
00277
00278 }
00279
00280 using namespace KJS;
00281
00282 namespace KJS {
00283
00284 static const char LocationTableStrings[] = {
00285 "\0"
00286 "hostname\0"
00287 "pathname\0"
00288 "protocol\0"
00289 "toString\0"
00290 "replace\0"
00291 "[[==]]\0"
00292 "assign\0"
00293 "reload\0"
00294 "search\0"
00295 "hash\0"
00296 "host\0"
00297 "href\0"
00298 "port\0"
00299 };
00300
00301
00302 static const struct HashEntry LocationTableEntries[] = {
00303 { 28, Location::ToString, DontDelete|Function, 0, -1 },
00304 { 0, 0, 0, 0, -1 },
00305 { 73, Location::Hash, DontDelete, 0, 11 },
00306 { 83, Location::Href, DontDelete, 0, 13 },
00307 { 59, Location::Reload, DontDelete|Function, 0, -1 },
00308 { 1, Location::Hostname, DontDelete, 0, -1 },
00309 { 78, Location::Host, DontDelete, 0, 14 },
00310 { 52, Location::Assign, DontDelete|Function, 1, -1 },
00311 { 0, 0, 0, 0, -1 },
00312 { 0, 0, 0, 0, -1 },
00313 { 10, Location::Pathname, DontDelete, 0, -1 },
00314 { 88, Location::Port, DontDelete, 0, 12 },
00315 { 19, Location::Protocol, DontDelete, 0, -1 },
00316 { 66, Location::Search, DontDelete, 0, -1 },
00317 { 45, Location::EqualEqual, DontDelete|ReadOnly, 0, 15 },
00318 { 37, Location::Replace, DontDelete|Function, 1, -1 }
00319 };
00320
00321 const struct HashTable LocationTable = { 2, 16, LocationTableEntries, 11, LocationTableStrings};
00322
00323 }
00324
00325 using namespace KJS;
00326
00327 namespace KJS {
00328
00329 static const char ExternalTableStrings[] = {
00330 "\0"
00331 "addFavorite\0"
00332 };
00333
00334
00335 static const struct HashEntry ExternalTableEntries[] = {
00336 { 0, 0, 0, 0, -1 },
00337 { 1, External::AddFavorite, DontDelete|Function, 1, -1 },
00338 { 0, 0, 0, 0, -1 },
00339 { 0, 0, 0, 0, -1 }
00340 };
00341
00342 const struct HashTable ExternalTable = { 2, 4, ExternalTableEntries, 4, ExternalTableStrings};
00343
00344 }
00345
00346 using namespace KJS;
00347
00348 namespace KJS {
00349
00350 static const char HistoryTableStrings[] = {
00351 "\0"
00352 "forward\0"
00353 "length\0"
00354 "back\0"
00355 "go\0"
00356 };
00357
00358
00359 static const struct HashEntry HistoryTableEntries[] = {
00360 { 0, 0, 0, 0, -1 },
00361 { 16, History::Back, DontDelete|Function, 0, 4 },
00362 { 9, History::Length, DontDelete|ReadOnly, 0, 5 },
00363 { 0, 0, 0, 0, -1 },
00364 { 1, History::Forward, DontDelete|Function, 0, -1 },
00365 { 21, History::Go, DontDelete|Function, 1, -1 }
00366 };
00367
00368 const struct HashTable HistoryTable = { 2, 6, HistoryTableEntries, 4, HistoryTableStrings};
00369
00370 }