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.
25 #include "JSDOMBinding.h"
27 #include <runtime/JSObject.h>
31 class JSEntity : public JSNode {
34 static JSEntity* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<Entity> impl)
36 JSEntity* ptr = new (JSC::allocateCell<JSEntity>(globalObject->globalData().heap)) JSEntity(structure, globalObject, impl);
37 ptr->finishCreation(globalObject->globalData());
41 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
42 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
43 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
44 static const JSC::ClassInfo s_info;
46 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
48 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
51 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
53 JSEntity(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<Entity>);
54 void finishCreation(JSC::JSGlobalData&);
55 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
59 class JSEntityPrototype : public JSC::JSNonFinalObject {
61 typedef JSC::JSNonFinalObject Base;
62 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
63 static JSEntityPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
65 JSEntityPrototype* ptr = new (JSC::allocateCell<JSEntityPrototype>(globalData.heap)) JSEntityPrototype(globalData, globalObject, structure);
66 ptr->finishCreation(globalData);
70 static const JSC::ClassInfo s_info;
71 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
73 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
77 JSEntityPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
79 static const unsigned StructureFlags = Base::StructureFlags;
82 class JSEntityConstructor : public DOMConstructorObject {
84 JSEntityConstructor(JSC::Structure*, JSDOMGlobalObject*);
85 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
88 typedef DOMConstructorObject Base;
89 static JSEntityConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
91 JSEntityConstructor* ptr = new (JSC::allocateCell<JSEntityConstructor>(*exec->heap())) JSEntityConstructor(structure, globalObject);
92 ptr->finishCreation(exec, globalObject);
96 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
97 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
98 static const JSC::ClassInfo s_info;
99 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
101 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
104 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
109 JSC::JSValue jsEntityPublicId(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
110 JSC::JSValue jsEntitySystemId(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
111 JSC::JSValue jsEntityNotationName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
112 JSC::JSValue jsEntityConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
114 } // namespace WebCore