tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSSVGAnimatedAngle.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 JSSVGAnimatedAngle_h
22 #define JSSVGAnimatedAngle_h
23
24 #if ENABLE(SVG)
25
26 #include "JSDOMBinding.h"
27 #include "SVGAnimatedAngle.h"
28 #include "SVGElement.h"
29 #include <runtime/JSGlobalObject.h>
30 #include <runtime/JSObject.h>
31 #include <runtime/ObjectPrototype.h>
32
33 namespace WebCore {
34
35 class JSSVGAnimatedAngle : public JSDOMWrapper {
36 public:
37     typedef JSDOMWrapper Base;
38     static JSSVGAnimatedAngle* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGAnimatedAngle> impl)
39     {
40         JSSVGAnimatedAngle* ptr = new (JSC::allocateCell<JSSVGAnimatedAngle>(globalObject->globalData().heap)) JSSVGAnimatedAngle(structure, globalObject, impl);
41         ptr->finishCreation(globalObject->globalData());
42         return ptr;
43     }
44
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;
49
50     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
51     {
52         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
53     }
54
55     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
56     SVGAnimatedAngle* impl() const { return m_impl; }
57     void releaseImpl() { m_impl->deref(); m_impl = 0; }
58
59 private:
60     SVGAnimatedAngle* m_impl;
61 protected:
62     JSSVGAnimatedAngle(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGAnimatedAngle>);
63     void finishCreation(JSC::JSGlobalData&);
64     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
65 };
66
67 class JSSVGAnimatedAngleOwner : 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);
70 };
71
72 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, SVGAnimatedAngle*)
73 {
74     DEFINE_STATIC_LOCAL(JSSVGAnimatedAngleOwner, jsSVGAnimatedAngleOwner, ());
75     return &jsSVGAnimatedAngleOwner;
76 }
77
78 inline void* wrapperContext(DOMWrapperWorld* world, SVGAnimatedAngle*)
79 {
80     return world;
81 }
82
83 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, SVGAnimatedAngle*);
84 SVGAnimatedAngle* toSVGAnimatedAngle(JSC::JSValue);
85
86 class JSSVGAnimatedAnglePrototype : public JSC::JSNonFinalObject {
87 public:
88     typedef JSC::JSNonFinalObject Base;
89     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
90     static JSSVGAnimatedAnglePrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
91     {
92         JSSVGAnimatedAnglePrototype* ptr = new (JSC::allocateCell<JSSVGAnimatedAnglePrototype>(globalData.heap)) JSSVGAnimatedAnglePrototype(globalData, globalObject, structure);
93         ptr->finishCreation(globalData);
94         return ptr;
95     }
96
97     static const JSC::ClassInfo s_info;
98     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
99     {
100         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
101     }
102
103 private:
104     JSSVGAnimatedAnglePrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
105 protected:
106     static const unsigned StructureFlags = Base::StructureFlags;
107 };
108
109 class JSSVGAnimatedAngleConstructor : public DOMConstructorObject {
110 private:
111     JSSVGAnimatedAngleConstructor(JSC::Structure*, JSDOMGlobalObject*);
112     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
113
114 public:
115     typedef DOMConstructorObject Base;
116     static JSSVGAnimatedAngleConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
117     {
118         JSSVGAnimatedAngleConstructor* ptr = new (JSC::allocateCell<JSSVGAnimatedAngleConstructor>(*exec->heap())) JSSVGAnimatedAngleConstructor(structure, globalObject);
119         ptr->finishCreation(exec, globalObject);
120         return ptr;
121     }
122
123     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
124     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
125     static const JSC::ClassInfo s_info;
126     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
127     {
128         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
129     }
130 protected:
131     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
132 };
133
134 // Attributes
135
136 JSC::JSValue jsSVGAnimatedAngleBaseVal(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
137 JSC::JSValue jsSVGAnimatedAngleAnimVal(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
138 JSC::JSValue jsSVGAnimatedAngleConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
139
140 } // namespace WebCore
141
142 #endif // ENABLE(SVG)
143
144 #endif