tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSSVGAnimatedEnumeration.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 JSSVGAnimatedEnumeration_h
22 #define JSSVGAnimatedEnumeration_h
23
24 #if ENABLE(SVG)
25
26 #include "JSDOMBinding.h"
27 #include "SVGAnimatedEnumeration.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 JSSVGAnimatedEnumeration : public JSDOMWrapper {
36 public:
37     typedef JSDOMWrapper Base;
38     static JSSVGAnimatedEnumeration* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGAnimatedEnumeration> impl)
39     {
40         JSSVGAnimatedEnumeration* ptr = new (JSC::allocateCell<JSSVGAnimatedEnumeration>(globalObject->globalData().heap)) JSSVGAnimatedEnumeration(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 void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
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     SVGAnimatedEnumeration* impl() const { return m_impl; }
58     void releaseImpl() { m_impl->deref(); m_impl = 0; }
59
60 private:
61     SVGAnimatedEnumeration* m_impl;
62 protected:
63     JSSVGAnimatedEnumeration(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGAnimatedEnumeration>);
64     void finishCreation(JSC::JSGlobalData&);
65     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
66 };
67
68 class JSSVGAnimatedEnumerationOwner : 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*, SVGAnimatedEnumeration*)
74 {
75     DEFINE_STATIC_LOCAL(JSSVGAnimatedEnumerationOwner, jsSVGAnimatedEnumerationOwner, ());
76     return &jsSVGAnimatedEnumerationOwner;
77 }
78
79 inline void* wrapperContext(DOMWrapperWorld* world, SVGAnimatedEnumeration*)
80 {
81     return world;
82 }
83
84 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, SVGAnimatedEnumeration*);
85 SVGAnimatedEnumeration* toSVGAnimatedEnumeration(JSC::JSValue);
86
87 class JSSVGAnimatedEnumerationPrototype : public JSC::JSNonFinalObject {
88 public:
89     typedef JSC::JSNonFinalObject Base;
90     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
91     static JSSVGAnimatedEnumerationPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
92     {
93         JSSVGAnimatedEnumerationPrototype* ptr = new (JSC::allocateCell<JSSVGAnimatedEnumerationPrototype>(globalData.heap)) JSSVGAnimatedEnumerationPrototype(globalData, globalObject, structure);
94         ptr->finishCreation(globalData);
95         return ptr;
96     }
97
98     static const JSC::ClassInfo s_info;
99     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
100     {
101         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
102     }
103
104 private:
105     JSSVGAnimatedEnumerationPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
106 protected:
107     static const unsigned StructureFlags = Base::StructureFlags;
108 };
109
110 class JSSVGAnimatedEnumerationConstructor : public DOMConstructorObject {
111 private:
112     JSSVGAnimatedEnumerationConstructor(JSC::Structure*, JSDOMGlobalObject*);
113     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
114
115 public:
116     typedef DOMConstructorObject Base;
117     static JSSVGAnimatedEnumerationConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
118     {
119         JSSVGAnimatedEnumerationConstructor* ptr = new (JSC::allocateCell<JSSVGAnimatedEnumerationConstructor>(*exec->heap())) JSSVGAnimatedEnumerationConstructor(structure, globalObject);
120         ptr->finishCreation(exec, globalObject);
121         return ptr;
122     }
123
124     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
125     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
126     static const JSC::ClassInfo s_info;
127     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
128     {
129         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
130     }
131 protected:
132     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
133 };
134
135 // Attributes
136
137 JSC::JSValue jsSVGAnimatedEnumerationBaseVal(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
138 void setJSSVGAnimatedEnumerationBaseVal(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
139 JSC::JSValue jsSVGAnimatedEnumerationAnimVal(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
140 JSC::JSValue jsSVGAnimatedEnumerationConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
141
142 } // namespace WebCore
143
144 #endif // ENABLE(SVG)
145
146 #endif