2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
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.
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.
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.
21 #ifndef JSHTMLElement_h
22 #define JSHTMLElement_h
24 #include "HTMLElement.h"
25 #include "JSDOMBinding.h"
26 #include "JSElement.h"
27 #include <runtime/JSObject.h>
31 class JSHTMLElement : public JSElement {
33 typedef JSElement Base;
34 static JSHTMLElement* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLElement> impl)
36 JSHTMLElement* ptr = new (JSC::allocateCell<JSHTMLElement>(globalObject->globalData().heap)) JSHTMLElement(structure, globalObject, impl);
37 ptr->finishCreation(globalObject->globalData());
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;
47 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
49 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
52 virtual JSC::ScopeChainNode* pushEventHandlerScope(JSC::ExecState*, JSC::ScopeChainNode*) const;
54 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);
57 JSC::JSValue itemValue(JSC::ExecState*) const;
58 void setItemValue(JSC::ExecState*, JSC::JSValue);
59 HTMLElement* impl() const
61 return static_cast<HTMLElement*>(Base::impl());
64 JSHTMLElement(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<HTMLElement>);
65 void finishCreation(JSC::JSGlobalData&);
66 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
69 HTMLElement* toHTMLElement(JSC::JSValue);
71 class JSHTMLElementPrototype : public JSC::JSNonFinalObject {
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)
77 JSHTMLElementPrototype* ptr = new (JSC::allocateCell<JSHTMLElementPrototype>(globalData.heap)) JSHTMLElementPrototype(globalData, globalObject, structure);
78 ptr->finishCreation(globalData);
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)
87 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
91 JSHTMLElementPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
93 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
96 class JSHTMLElementConstructor : public DOMConstructorObject {
98 JSHTMLElementConstructor(JSC::Structure*, JSDOMGlobalObject*);
99 void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
102 typedef DOMConstructorObject Base;
103 static JSHTMLElementConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
105 JSHTMLElementConstructor* ptr = new (JSC::allocateCell<JSHTMLElementConstructor>(*exec->heap())) JSHTMLElementConstructor(structure, globalObject);
106 ptr->finishCreation(exec, globalObject);
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)
115 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
118 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags;
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*);
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&);
174 } // namespace WebCore