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 JSSVGPreserveAspectRatio_h
22 #define JSSVGPreserveAspectRatio_h
26 #include "JSDOMBinding.h"
27 #include "SVGAnimatedPropertyTearOff.h"
28 #include "SVGElement.h"
29 #include "SVGPreserveAspectRatio.h"
30 #include <runtime/JSGlobalObject.h>
31 #include <runtime/JSObject.h>
32 #include <runtime/ObjectPrototype.h>
36 class JSSVGPreserveAspectRatio : public JSDOMWrapper {
38 typedef JSDOMWrapper Base;
39 static JSSVGPreserveAspectRatio* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGPropertyTearOff<SVGPreserveAspectRatio> > impl)
41 JSSVGPreserveAspectRatio* ptr = new (JSC::allocateCell<JSSVGPreserveAspectRatio>(globalObject->globalData().heap)) JSSVGPreserveAspectRatio(structure, globalObject, impl);
42 ptr->finishCreation(globalObject->globalData());
46 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
47 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
48 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
49 static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
50 static const JSC::ClassInfo s_info;
52 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
54 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
57 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
58 SVGPropertyTearOff<SVGPreserveAspectRatio> * impl() const { return m_impl; }
59 void releaseImpl() { m_impl->deref(); m_impl = 0; }
62 SVGPropertyTearOff<SVGPreserveAspectRatio> * m_impl;
64 JSSVGPreserveAspectRatio(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGPropertyTearOff<SVGPreserveAspectRatio> >);
65 void finishCreation(JSC::JSGlobalData&);
66 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
69 class JSSVGPreserveAspectRatioOwner : public JSC::WeakHandleOwner {
70 virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
71 virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
74 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, SVGPropertyTearOff<SVGPreserveAspectRatio> *)
76 DEFINE_STATIC_LOCAL(JSSVGPreserveAspectRatioOwner, jsSVGPreserveAspectRatioOwner, ());
77 return &jsSVGPreserveAspectRatioOwner;
80 inline void* wrapperContext(DOMWrapperWorld* world, SVGPropertyTearOff<SVGPreserveAspectRatio> *)
85 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, SVGPropertyTearOff<SVGPreserveAspectRatio> *);
86 SVGPropertyTearOff<SVGPreserveAspectRatio> * toSVGPreserveAspectRatio(JSC::JSValue);
88 class JSSVGPreserveAspectRatioPrototype : public JSC::JSNonFinalObject {
90 typedef JSC::JSNonFinalObject Base;
91 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
92 static JSSVGPreserveAspectRatioPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
94 JSSVGPreserveAspectRatioPrototype* ptr = new (JSC::allocateCell<JSSVGPreserveAspectRatioPrototype>(globalData.heap)) JSSVGPreserveAspectRatioPrototype(globalData, globalObject, structure);
95 ptr->finishCreation(globalData);
99 static const JSC::ClassInfo s_info;
100 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
101 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
102 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
104 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
108 JSSVGPreserveAspectRatioPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
110 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
113 class JSSVGPreserveAspectRatioConstructor : public DOMConstructorObject {
115 JSSVGPreserveAspectRatioConstructor(JSC::Structure*, JSDOMGlobalObject*);
116 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
119 typedef DOMConstructorObject Base;
120 static JSSVGPreserveAspectRatioConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
122 JSSVGPreserveAspectRatioConstructor* ptr = new (JSC::allocateCell<JSSVGPreserveAspectRatioConstructor>(*exec->heap())) JSSVGPreserveAspectRatioConstructor(structure, globalObject);
123 ptr->finishCreation(exec, globalObject);
127 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
128 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
129 static const JSC::ClassInfo s_info;
130 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
132 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
135 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
140 JSC::JSValue jsSVGPreserveAspectRatioAlign(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
141 void setJSSVGPreserveAspectRatioAlign(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
142 JSC::JSValue jsSVGPreserveAspectRatioMeetOrSlice(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
143 void setJSSVGPreserveAspectRatioMeetOrSlice(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
144 JSC::JSValue jsSVGPreserveAspectRatioConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
147 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_UNKNOWN(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
148 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_NONE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
149 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_XMINYMIN(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
150 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_XMIDYMIN(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
151 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_XMAXYMIN(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
152 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_XMINYMID(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
153 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_XMIDYMID(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
154 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_XMAXYMID(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
155 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_XMINYMAX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
156 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_XMIDYMAX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
157 JSC::JSValue jsSVGPreserveAspectRatioSVG_PRESERVEASPECTRATIO_XMAXYMAX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
158 JSC::JSValue jsSVGPreserveAspectRatioSVG_MEETORSLICE_UNKNOWN(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
159 JSC::JSValue jsSVGPreserveAspectRatioSVG_MEETORSLICE_MEET(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
160 JSC::JSValue jsSVGPreserveAspectRatioSVG_MEETORSLICE_SLICE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
162 } // namespace WebCore
164 #endif // ENABLE(SVG)