tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSSVGTransformList.h
1 /*
2     This file is part of the WebKit open source project.
3     This file has been generated by generate-bindings.pl. DO NOT MODIFY!
4
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.
9
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.
14
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.
19 */
20
21 #ifndef JSSVGTransformList_h
22 #define JSSVGTransformList_h
23
24 #if ENABLE(SVG)
25
26 #include "JSDOMBinding.h"
27 #include "SVGAnimatedListPropertyTearOff.h"
28 #include "SVGElement.h"
29 #include "SVGTransformListPropertyTearOff.h"
30 #include <runtime/JSGlobalObject.h>
31 #include <runtime/JSObject.h>
32 #include <runtime/ObjectPrototype.h>
33
34 namespace WebCore {
35
36 class JSSVGTransformList : public JSDOMWrapper {
37 public:
38     typedef JSDOMWrapper Base;
39     static JSSVGTransformList* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGTransformListPropertyTearOff > impl)
40     {
41         JSSVGTransformList* ptr = new (JSC::allocateCell<JSSVGTransformList>(globalObject->globalData().heap)) JSSVGTransformList(structure, globalObject, impl);
42         ptr->finishCreation(globalObject->globalData());
43         return ptr;
44     }
45
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;
50
51     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
52     {
53         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
54     }
55
56     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
57     SVGTransformListPropertyTearOff * impl() const { return m_impl; }
58     void releaseImpl() { m_impl->deref(); m_impl = 0; }
59
60 private:
61     SVGTransformListPropertyTearOff * m_impl;
62 protected:
63     JSSVGTransformList(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGTransformListPropertyTearOff >);
64     void finishCreation(JSC::JSGlobalData&);
65     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
66 };
67
68 class JSSVGTransformListOwner : 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);
71 };
72
73 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, SVGTransformListPropertyTearOff *)
74 {
75     DEFINE_STATIC_LOCAL(JSSVGTransformListOwner, jsSVGTransformListOwner, ());
76     return &jsSVGTransformListOwner;
77 }
78
79 inline void* wrapperContext(DOMWrapperWorld* world, SVGTransformListPropertyTearOff *)
80 {
81     return world;
82 }
83
84 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, SVGTransformListPropertyTearOff *);
85 SVGTransformListPropertyTearOff * toSVGTransformList(JSC::JSValue);
86
87 class JSSVGTransformListPrototype : public JSC::JSNonFinalObject {
88 public:
89     typedef JSC::JSNonFinalObject Base;
90     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
91     static JSSVGTransformListPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
92     {
93         JSSVGTransformListPrototype* ptr = new (JSC::allocateCell<JSSVGTransformListPrototype>(globalData.heap)) JSSVGTransformListPrototype(globalData, globalObject, structure);
94         ptr->finishCreation(globalData);
95         return ptr;
96     }
97
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)
102     {
103         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
104     }
105
106 private:
107     JSSVGTransformListPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
108 protected:
109     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
110 };
111
112 class JSSVGTransformListConstructor : public DOMConstructorObject {
113 private:
114     JSSVGTransformListConstructor(JSC::Structure*, JSDOMGlobalObject*);
115     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
116
117 public:
118     typedef DOMConstructorObject Base;
119     static JSSVGTransformListConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
120     {
121         JSSVGTransformListConstructor* ptr = new (JSC::allocateCell<JSSVGTransformListConstructor>(*exec->heap())) JSSVGTransformListConstructor(structure, globalObject);
122         ptr->finishCreation(exec, globalObject);
123         return ptr;
124     }
125
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)
130     {
131         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
132     }
133 protected:
134     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
135 };
136
137 // Functions
138
139 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformListPrototypeFunctionClear(JSC::ExecState*);
140 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformListPrototypeFunctionInitialize(JSC::ExecState*);
141 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformListPrototypeFunctionGetItem(JSC::ExecState*);
142 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformListPrototypeFunctionInsertItemBefore(JSC::ExecState*);
143 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformListPrototypeFunctionReplaceItem(JSC::ExecState*);
144 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformListPrototypeFunctionRemoveItem(JSC::ExecState*);
145 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformListPrototypeFunctionAppendItem(JSC::ExecState*);
146 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformListPrototypeFunctionCreateSVGTransformFromMatrix(JSC::ExecState*);
147 JSC::EncodedJSValue JSC_HOST_CALL jsSVGTransformListPrototypeFunctionConsolidate(JSC::ExecState*);
148 // Attributes
149
150 JSC::JSValue jsSVGTransformListNumberOfItems(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
151 JSC::JSValue jsSVGTransformListConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
152
153 } // namespace WebCore
154
155 #endif // ENABLE(SVG)
156
157 #endif