2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
22 #include "JSXMLHttpRequestProgressEvent.h"
24 #include "XMLHttpRequestProgressEvent.h"
25 #include <wtf/GetPtr.h>
31 ASSERT_CLASS_FITS_IN_CELL(JSXMLHttpRequestProgressEvent);
35 #define THUNK_GENERATOR(generator) , generator
37 #define THUNK_GENERATOR(generator)
40 #define INTRINSIC(intrinsic) , intrinsic
42 #define INTRINSIC(intrinsic)
45 static const HashTableValue JSXMLHttpRequestProgressEventTableValues[] =
47 { "position", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsXMLHttpRequestProgressEventPosition), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
48 { "totalSize", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsXMLHttpRequestProgressEventTotalSize), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
49 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsXMLHttpRequestProgressEventConstructor), (intptr_t)0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) },
50 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
53 #undef THUNK_GENERATOR
54 static const HashTable JSXMLHttpRequestProgressEventTable = { 9, 7, JSXMLHttpRequestProgressEventTableValues, 0 };
55 /* Hash table for constructor */
57 #define THUNK_GENERATOR(generator) , generator
59 #define THUNK_GENERATOR(generator)
62 #define INTRINSIC(intrinsic) , intrinsic
64 #define INTRINSIC(intrinsic)
67 static const HashTableValue JSXMLHttpRequestProgressEventConstructorTableValues[] =
69 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
72 #undef THUNK_GENERATOR
73 static const HashTable JSXMLHttpRequestProgressEventConstructorTable = { 1, 0, JSXMLHttpRequestProgressEventConstructorTableValues, 0 };
74 const ClassInfo JSXMLHttpRequestProgressEventConstructor::s_info = { "XMLHttpRequestProgressEventConstructor", &DOMConstructorObject::s_info, &JSXMLHttpRequestProgressEventConstructorTable, 0, CREATE_METHOD_TABLE(JSXMLHttpRequestProgressEventConstructor) };
76 JSXMLHttpRequestProgressEventConstructor::JSXMLHttpRequestProgressEventConstructor(Structure* structure, JSDOMGlobalObject* globalObject)
77 : DOMConstructorObject(structure, globalObject)
81 void JSXMLHttpRequestProgressEventConstructor::finishCreation(ExecState* exec, JSDOMGlobalObject* globalObject)
83 Base::finishCreation(exec->globalData());
84 ASSERT(inherits(&s_info));
85 putDirect(exec->globalData(), exec->propertyNames().prototype, JSXMLHttpRequestProgressEventPrototype::self(exec, globalObject), DontDelete | ReadOnly);
88 bool JSXMLHttpRequestProgressEventConstructor::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
90 return getStaticValueSlot<JSXMLHttpRequestProgressEventConstructor, JSDOMWrapper>(exec, &JSXMLHttpRequestProgressEventConstructorTable, static_cast<JSXMLHttpRequestProgressEventConstructor*>(cell), propertyName, slot);
93 bool JSXMLHttpRequestProgressEventConstructor::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
95 return getStaticValueDescriptor<JSXMLHttpRequestProgressEventConstructor, JSDOMWrapper>(exec, &JSXMLHttpRequestProgressEventConstructorTable, static_cast<JSXMLHttpRequestProgressEventConstructor*>(object), propertyName, descriptor);
98 /* Hash table for prototype */
100 #define THUNK_GENERATOR(generator) , generator
102 #define THUNK_GENERATOR(generator)
105 #define INTRINSIC(intrinsic) , intrinsic
107 #define INTRINSIC(intrinsic)
110 static const HashTableValue JSXMLHttpRequestProgressEventPrototypeTableValues[] =
112 { 0, 0, 0, 0 THUNK_GENERATOR(0) INTRINSIC(DFG::NoIntrinsic) }
115 #undef THUNK_GENERATOR
116 static const HashTable JSXMLHttpRequestProgressEventPrototypeTable = { 1, 0, JSXMLHttpRequestProgressEventPrototypeTableValues, 0 };
117 static const HashTable* getJSXMLHttpRequestProgressEventPrototypeTable(ExecState* exec)
119 return getHashTableForGlobalData(exec->globalData(), &JSXMLHttpRequestProgressEventPrototypeTable);
122 const ClassInfo JSXMLHttpRequestProgressEventPrototype::s_info = { "XMLHttpRequestProgressEventPrototype", &JSC::JSNonFinalObject::s_info, 0, getJSXMLHttpRequestProgressEventPrototypeTable, CREATE_METHOD_TABLE(JSXMLHttpRequestProgressEventPrototype) };
124 JSObject* JSXMLHttpRequestProgressEventPrototype::self(ExecState* exec, JSGlobalObject* globalObject)
126 return getDOMPrototype<JSXMLHttpRequestProgressEvent>(exec, globalObject);
129 static const HashTable* getJSXMLHttpRequestProgressEventTable(ExecState* exec)
131 return getHashTableForGlobalData(exec->globalData(), &JSXMLHttpRequestProgressEventTable);
134 const ClassInfo JSXMLHttpRequestProgressEvent::s_info = { "XMLHttpRequestProgressEvent", &JSProgressEvent::s_info, 0, getJSXMLHttpRequestProgressEventTable , CREATE_METHOD_TABLE(JSXMLHttpRequestProgressEvent) };
136 JSXMLHttpRequestProgressEvent::JSXMLHttpRequestProgressEvent(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<XMLHttpRequestProgressEvent> impl)
137 : JSProgressEvent(structure, globalObject, impl)
141 void JSXMLHttpRequestProgressEvent::finishCreation(JSGlobalData& globalData)
143 Base::finishCreation(globalData);
144 ASSERT(inherits(&s_info));
147 JSObject* JSXMLHttpRequestProgressEvent::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
149 return JSXMLHttpRequestProgressEventPrototype::create(exec->globalData(), globalObject, JSXMLHttpRequestProgressEventPrototype::createStructure(exec->globalData(), globalObject, JSProgressEventPrototype::self(exec, globalObject)));
152 bool JSXMLHttpRequestProgressEvent::getOwnPropertySlot(JSCell* cell, ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
154 JSXMLHttpRequestProgressEvent* thisObject = jsCast<JSXMLHttpRequestProgressEvent*>(cell);
155 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
156 return getStaticValueSlot<JSXMLHttpRequestProgressEvent, Base>(exec, getJSXMLHttpRequestProgressEventTable(exec), thisObject, propertyName, slot);
159 bool JSXMLHttpRequestProgressEvent::getOwnPropertyDescriptor(JSObject* object, ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)
161 JSXMLHttpRequestProgressEvent* thisObject = jsCast<JSXMLHttpRequestProgressEvent*>(object);
162 ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
163 return getStaticValueDescriptor<JSXMLHttpRequestProgressEvent, Base>(exec, getJSXMLHttpRequestProgressEventTable(exec), thisObject, propertyName, descriptor);
166 JSValue jsXMLHttpRequestProgressEventPosition(ExecState* exec, JSValue slotBase, const Identifier&)
168 JSXMLHttpRequestProgressEvent* castedThis = static_cast<JSXMLHttpRequestProgressEvent*>(asObject(slotBase));
170 XMLHttpRequestProgressEvent* imp = static_cast<XMLHttpRequestProgressEvent*>(castedThis->impl());
171 JSValue result = jsNumber(imp->position());
176 JSValue jsXMLHttpRequestProgressEventTotalSize(ExecState* exec, JSValue slotBase, const Identifier&)
178 JSXMLHttpRequestProgressEvent* castedThis = static_cast<JSXMLHttpRequestProgressEvent*>(asObject(slotBase));
180 XMLHttpRequestProgressEvent* imp = static_cast<XMLHttpRequestProgressEvent*>(castedThis->impl());
181 JSValue result = jsNumber(imp->totalSize());
186 JSValue jsXMLHttpRequestProgressEventConstructor(ExecState* exec, JSValue slotBase, const Identifier&)
188 JSXMLHttpRequestProgressEvent* domObject = static_cast<JSXMLHttpRequestProgressEvent*>(asObject(slotBase));
189 return JSXMLHttpRequestProgressEvent::getConstructor(exec, domObject->globalObject());
192 JSValue JSXMLHttpRequestProgressEvent::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
194 return getDOMConstructor<JSXMLHttpRequestProgressEventConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));