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.
21 #ifndef JSSVGElementInstanceList_h
22 #define JSSVGElementInstanceList_h
26 #include "JSDOMBinding.h"
27 #include "SVGElement.h"
28 #include "SVGElementInstanceList.h"
29 #include <runtime/JSGlobalObject.h>
30 #include <runtime/JSObject.h>
31 #include <runtime/ObjectPrototype.h>
35 class JSSVGElementInstanceList : public JSDOMWrapper {
37 typedef JSDOMWrapper Base;
38 static JSSVGElementInstanceList* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElementInstanceList> impl)
40 JSSVGElementInstanceList* ptr = new (JSC::allocateCell<JSSVGElementInstanceList>(globalObject->globalData().heap)) JSSVGElementInstanceList(structure, globalObject, impl);
41 ptr->finishCreation(globalObject->globalData());
45 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
46 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
47 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
48 static const JSC::ClassInfo s_info;
50 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
52 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
55 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
56 SVGElementInstanceList* impl() const { return m_impl; }
57 void releaseImpl() { m_impl->deref(); m_impl = 0; }
60 SVGElementInstanceList* m_impl;
62 JSSVGElementInstanceList(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGElementInstanceList>);
63 void finishCreation(JSC::JSGlobalData&);
64 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
67 class JSSVGElementInstanceListOwner : public JSC::WeakHandleOwner {
68 virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
69 virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
72 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, SVGElementInstanceList*)
74 DEFINE_STATIC_LOCAL(JSSVGElementInstanceListOwner, jsSVGElementInstanceListOwner, ());
75 return &jsSVGElementInstanceListOwner;
78 inline void* wrapperContext(DOMWrapperWorld* world, SVGElementInstanceList*)
83 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, SVGElementInstanceList*);
84 SVGElementInstanceList* toSVGElementInstanceList(JSC::JSValue);
86 class JSSVGElementInstanceListPrototype : public JSC::JSNonFinalObject {
88 typedef JSC::JSNonFinalObject Base;
89 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
90 static JSSVGElementInstanceListPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
92 JSSVGElementInstanceListPrototype* ptr = new (JSC::allocateCell<JSSVGElementInstanceListPrototype>(globalData.heap)) JSSVGElementInstanceListPrototype(globalData, globalObject, structure);
93 ptr->finishCreation(globalData);
97 static const JSC::ClassInfo s_info;
98 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
99 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
100 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
102 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
106 JSSVGElementInstanceListPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
108 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
111 class JSSVGElementInstanceListConstructor : public DOMConstructorObject {
113 JSSVGElementInstanceListConstructor(JSC::Structure*, JSDOMGlobalObject*);
114 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
117 typedef DOMConstructorObject Base;
118 static JSSVGElementInstanceListConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
120 JSSVGElementInstanceListConstructor* ptr = new (JSC::allocateCell<JSSVGElementInstanceListConstructor>(*exec->heap())) JSSVGElementInstanceListConstructor(structure, globalObject);
121 ptr->finishCreation(exec, globalObject);
125 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
126 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
127 static const JSC::ClassInfo s_info;
128 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
130 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
133 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
138 JSC::EncodedJSValue JSC_HOST_CALL jsSVGElementInstanceListPrototypeFunctionItem(JSC::ExecState*);
141 JSC::JSValue jsSVGElementInstanceListLength(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
142 JSC::JSValue jsSVGElementInstanceListConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
144 } // namespace WebCore
146 #endif // ENABLE(SVG)