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 JSSVGTransform_h
22 #define JSSVGTransform_h
26 #include "JSDOMBinding.h"
27 #include "SVGAnimatedPropertyTearOff.h"
28 #include "SVGElement.h"
29 #include "SVGTransform.h"
30 #include <runtime/JSGlobalObject.h>
31 #include <runtime/JSObject.h>
32 #include <runtime/ObjectPrototype.h>
36 class JSSVGTransform : public JSDOMWrapper {
38 typedef JSDOMWrapper Base;
39 static JSSVGTransform* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGPropertyTearOff<SVGTransform> > impl)
41 JSSVGTransform* ptr = new (JSC::allocateCell<JSSVGTransform>(globalObject->globalData().heap)) JSSVGTransform(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 const JSC::ClassInfo s_info;
51 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
53 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
56 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
57 SVGPropertyTearOff<SVGTransform> * impl() const { return m_impl; }
58 void releaseImpl() { m_impl->deref(); m_impl = 0; }
61 SVGPropertyTearOff<SVGTransform> * m_impl;
63 JSSVGTransform(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGPropertyTearOff<SVGTransform> >);
64 void finishCreation(JSC::JSGlobalData&);
65 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
68 class JSSVGTransformOwner : public JSC::WeakHandleOwner {
69 virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
70 virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
73 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, SVGPropertyTearOff<SVGTransform> *)
75 DEFINE_STATIC_LOCAL(JSSVGTransformOwner, jsSVGTransformOwner, ());
76 return &jsSVGTransformOwner;
79 inline void* wrapperContext(DOMWrapperWorld* world, SVGPropertyTearOff<SVGTransform> *)
84 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, SVGPropertyTearOff<SVGTransform> *);
85 SVGPropertyTearOff<SVGTransform> * toSVGTransform(JSC::JSValue);
87 class JSSVGTransformPrototype : public JSC::JSNonFinalObject {
89 typedef JSC::JSNonFinalObject Base;
90 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
91 static JSSVGTransformPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
93 JSSVGTransformPrototype* ptr = new (JSC::allocateCell<JSSVGTransformPrototype>(globalData.heap)) JSSVGTransformPrototype(globalData, globalObject, structure);
94 ptr->finishCreation(globalData);
98 static const JSC::ClassInfo s_info;
99 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
100 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
101 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
103 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
107 JSSVGTransformPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
109 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
112 class JSSVGTransformConstructor : public DOMConstructorObject {
114 JSSVGTransformConstructor(JSC::Structure*, JSDOMGlobalObject*);
115 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
118 typedef DOMConstructorObject Base;
119 static JSSVGTransformConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
121 JSSVGTransformConstructor* ptr = new (JSC::allocateCell<JSSVGTransformConstructor>(*exec->heap())) JSSVGTransformConstructor(structure, globalObject);
122 ptr->finishCreation(exec, globalObject);
126 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
127 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
128 static const JSC::ClassInfo s_info;
129 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
131 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
134 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
139 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformPrototypeFunctionSetMatrix(JSC::ExecState*);
140 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformPrototypeFunctionSetTranslate(JSC::ExecState*);
141 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformPrototypeFunctionSetScale(JSC::ExecState*);
142 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformPrototypeFunctionSetRotate(JSC::ExecState*);
143 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformPrototypeFunctionSetSkewX(JSC::ExecState*);
144 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformPrototypeFunctionSetSkewY(JSC::ExecState*);
147 JSC::JSValue jsSVGTransformType(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
148 JSC::JSValue jsSVGTransformMatrix(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
149 JSC::JSValue jsSVGTransformAngle(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
150 JSC::JSValue jsSVGTransformConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
153 JSC::JSValue jsSVGTransformSVG_TRANSFORM_UNKNOWN(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
154 JSC::JSValue jsSVGTransformSVG_TRANSFORM_MATRIX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
155 JSC::JSValue jsSVGTransformSVG_TRANSFORM_TRANSLATE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
156 JSC::JSValue jsSVGTransformSVG_TRANSFORM_SCALE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
157 JSC::JSValue jsSVGTransformSVG_TRANSFORM_ROTATE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
158 JSC::JSValue jsSVGTransformSVG_TRANSFORM_SKEWX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
159 JSC::JSValue jsSVGTransformSVG_TRANSFORM_SKEWY(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
161 } // namespace WebCore
163 #endif // ENABLE(SVG)