tizen beta release
[profile/ivi/webkit-efl.git] / DerivedSources / WebCore / JSHTMLElement.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 JSHTMLElement_h
22 #define JSHTMLElement_h
23
24 #include "HTMLElement.h"
25 #include "JSDOMBinding.h"
26 #include "JSElement.h"
27 #include <runtime/JSObject.h>
28
29 namespace WebCore {
30
31 class JSHTMLElement : public JSElement {
32 public:
33     typedef JSElement Base;
34     static JSHTMLElement* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLElement> impl)
35     {
36         JSHTMLElement* ptr = new (JSC::allocateCell<JSHTMLElement>(globalObject->globalData().heap)) JSHTMLElement(structure, globalObject, impl);
37         ptr->finishCreation(globalObject->globalData());
38         return ptr;
39     }
40
41     static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
42     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
43     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
44     static void put(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&);
45     static const JSC::ClassInfo s_info;
46
47     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
48     {
49         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
50     }
51
52     virtual JSC::ScopeChainNode* pushEventHandlerScope(JSC::ExecState*, JSC::ScopeChainNode*) const;
53
54     static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
55
56     // Custom attributes
57     JSC::JSValue itemValue(JSC::ExecState*) const;
58     void setItemValue(JSC::ExecState*, JSC::JSValue);
59     HTMLElement* impl() const
60     {
61         return static_cast<HTMLElement*>(Base::impl());
62     }
63 protected:
64     JSHTMLElement(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<HTMLElement>);
65     void finishCreation(JSC::JSGlobalData&);
66     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
67 };
68
69 HTMLElement* toHTMLElement(JSC::JSValue);
70
71 class JSHTMLElementPrototype : public JSC::JSNonFinalObject {
72 public:
73     typedef JSC::JSNonFinalObject Base;
74     static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
75     static JSHTMLElementPrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
76     {
77         JSHTMLElementPrototype* ptr = new (JSC::allocateCell<JSHTMLElementPrototype>(globalData.heap)) JSHTMLElementPrototype(globalData, globalObject, structure);
78         ptr->finishCreation(globalData);
79         return ptr;
80     }
81
82     static const JSC::ClassInfo s_info;
83     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
84     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
85     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
86     {
87         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
88     }
89
90 private:
91     JSHTMLElementPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
92 protected:
93     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
94 };
95
96 class JSHTMLElementConstructor : public DOMConstructorObject {
97 private:
98     JSHTMLElementConstructor(JSC::Structure*, JSDOMGlobalObject*);
99     void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
100
101 public:
102     typedef DOMConstructorObject Base;
103     static JSHTMLElementConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
104     {
105         JSHTMLElementConstructor* ptr = new (JSC::allocateCell<JSHTMLElementConstructor>(*exec->heap())) JSHTMLElementConstructor(structure, globalObject);
106         ptr->finishCreation(exec, globalObject);
107         return ptr;
108     }
109
110     static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
111     static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
112     static const JSC::ClassInfo s_info;
113     static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
114     {
115         return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
116     }
117 protected:
118     static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
119 };
120
121 // Functions
122
123 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLElementPrototypeFunctionInsertAdjacentElement(JSC::ExecState*);
124 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLElementPrototypeFunctionInsertAdjacentHTML(JSC::ExecState*);
125 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLElementPrototypeFunctionInsertAdjacentText(JSC::ExecState*);
126 // Attributes
127
128 JSC::JSValue jsHTMLElementId(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
129 void setJSHTMLElementId(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
130 JSC::JSValue jsHTMLElementTitle(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
131 void setJSHTMLElementTitle(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
132 JSC::JSValue jsHTMLElementLang(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
133 void setJSHTMLElementLang(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
134 JSC::JSValue jsHTMLElementDir(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
135 void setJSHTMLElementDir(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
136 JSC::JSValue jsHTMLElementClassName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
137 void setJSHTMLElementClassName(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
138 JSC::JSValue jsHTMLElementClassList(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
139 JSC::JSValue jsHTMLElementTabIndex(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
140 void setJSHTMLElementTabIndex(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
141 JSC::JSValue jsHTMLElementDraggable(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
142 void setJSHTMLElementDraggable(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
143 JSC::JSValue jsHTMLElementWebkitdropzone(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
144 void setJSHTMLElementWebkitdropzone(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
145 JSC::JSValue jsHTMLElementHidden(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
146 void setJSHTMLElementHidden(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
147 JSC::JSValue jsHTMLElementAccessKey(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
148 void setJSHTMLElementAccessKey(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
149 JSC::JSValue jsHTMLElementInnerHTML(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
150 void setJSHTMLElementInnerHTML(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
151 JSC::JSValue jsHTMLElementInnerText(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
152 void setJSHTMLElementInnerText(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
153 JSC::JSValue jsHTMLElementOuterHTML(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
154 void setJSHTMLElementOuterHTML(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
155 JSC::JSValue jsHTMLElementOuterText(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
156 void setJSHTMLElementOuterText(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
157 JSC::JSValue jsHTMLElementChildren(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
158 JSC::JSValue jsHTMLElementContentEditable(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
159 void setJSHTMLElementContentEditable(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
160 JSC::JSValue jsHTMLElementIsContentEditable(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
161 JSC::JSValue jsHTMLElementSpellcheck(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
162 void setJSHTMLElementSpellcheck(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
163 JSC::JSValue jsHTMLElementItemScope(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
164 void setJSHTMLElementItemScope(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
165 JSC::JSValue jsHTMLElementItemType(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
166 JSC::JSValue jsHTMLElementItemId(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
167 void setJSHTMLElementItemId(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
168 JSC::JSValue jsHTMLElementItemRef(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
169 JSC::JSValue jsHTMLElementItemProp(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
170 JSC::JSValue jsHTMLElementItemValue(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
171 void setJSHTMLElementItemValue(JSC::ExecState*, JSC::JSObject*, JSC::JSValue);
172 JSC::JSValue jsHTMLElementConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
173
174 } // namespace WebCore
175
176 #endif