tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSSVGElement.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 JSSVGElement_h
22 #define JSSVGElement_h
23
24 #if ENABLE(SVG)
25
26 #include "JSDOMBinding.h"
27 #include "JSElement.h"
28 #include "SVGElement.h"
29 #include <runtime/JSObject.h>
30
31 namespace WebCore {
32
33 class JSSVGElement : public JSElement {
34 public:
35     typedef JSElement Base;
36     static JSSVGElement* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<SVGElement> impl)
37     {
38         JSSVGElement* ptr = new (JSC::allocateCell<JSSVGElement>(globalObject->globalData().heap)) JSSVGElement(structure, globalObject, impl);
39         ptr->finishCreation(globalObject->globalData());
40         return ptr;
41     }
42
43     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
44     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
45     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
46     static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
47     static const JSC::ClassInfo s_info;
48
49     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
50     {
51         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
52     }
53
54     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
55     SVGElement* impl() const
56     {
57         return static_cast<SVGElement*>(Base::impl());
58     }
59 protected:
60     JSSVGElement(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGElement>);
61     void finishCreation(JSC::JSGlobalData&);
62     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
63 };
64
65 SVGElement* toSVGElement(JSC::JSValue);
66
67 class JSSVGElementPrototype : public JSC::JSNonFinalObject {
68 public:
69     typedef JSC::JSNonFinalObject Base;
70     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
71     static JSSVGElementPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
72     {
73         JSSVGElementPrototype* ptr = new (JSC::allocateCell<JSSVGElementPrototype>(globalData.heap)) JSSVGElementPrototype(globalData, globalObject, structure);
74         ptr->finishCreation(globalData);
75         return ptr;
76     }
77
78     static const JSC::ClassInfo s_info;
79     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
80     {
81         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
82     }
83
84 private:
85     JSSVGElementPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
86 protected:
87     static const unsigned StructureFlags = Base::StructureFlags;
88 };
89
90 class JSSVGElementConstructor : public DOMConstructorObject {
91 private:
92     JSSVGElementConstructor(JSC::Structure*, JSDOMGlobalObject*);
93     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
94
95 public:
96     typedef DOMConstructorObject Base;
97     static JSSVGElementConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
98     {
99         JSSVGElementConstructor* ptr = new (JSC::allocateCell<JSSVGElementConstructor>(*exec->heap())) JSSVGElementConstructor(structure, globalObject);
100         ptr->finishCreation(exec, globalObject);
101         return ptr;
102     }
103
104     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
105     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
106     static const JSC::ClassInfo s_info;
107     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
108     {
109         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
110     }
111 protected:
112     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
113 };
114
115 // Attributes
116
117 JSC::JSValue jsSVGElementId(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
118 void setJSSVGElementId(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
119 JSC::JSValue jsSVGElementXmlbase(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
120 void setJSSVGElementXmlbase(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
121 JSC::JSValue jsSVGElementOwnerSVGElement(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
122 JSC::JSValue jsSVGElementViewportElement(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
123 JSC::JSValue jsSVGElementConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
124
125 } // namespace WebCore
126
127 #endif // ENABLE(SVG)
128
129 #endif