|
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 JSHTMLImageElement_h |
|
22 #define JSHTMLImageElement_h |
|
23 |
|
24 #include "HTMLImageElement.h" |
|
25 #include "JSHTMLElement.h" |
|
26 #include <runtime/JSObjectWithGlobalObject.h> |
|
27 |
|
28 namespace WebCore { |
|
29 |
|
30 class HTMLImageElement; |
|
31 |
|
32 class JSHTMLImageElement : public JSHTMLElement { |
|
33 typedef JSHTMLElement Base; |
|
34 public: |
|
35 JSHTMLImageElement(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<HTMLImageElement>); |
|
36 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
37 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); |
|
38 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); |
|
39 virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&); |
|
40 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
41 static const JSC::ClassInfo s_info; |
|
42 |
|
43 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
44 { |
|
45 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
46 } |
|
47 |
|
48 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
49 HTMLImageElement* impl() const |
|
50 { |
|
51 return static_cast<HTMLImageElement*>(Base::impl()); |
|
52 } |
|
53 protected: |
|
54 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
55 }; |
|
56 |
|
57 HTMLImageElement* toHTMLImageElement(JSC::JSValue); |
|
58 |
|
59 class JSHTMLImageElementPrototype : public JSC::JSObjectWithGlobalObject { |
|
60 typedef JSC::JSObjectWithGlobalObject Base; |
|
61 public: |
|
62 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
63 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
64 static const JSC::ClassInfo s_info; |
|
65 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
66 { |
|
67 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
68 } |
|
69 JSHTMLImageElementPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
70 protected: |
|
71 static const unsigned StructureFlags = Base::StructureFlags; |
|
72 }; |
|
73 |
|
74 // Attributes |
|
75 |
|
76 JSC::JSValue jsHTMLImageElementName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
77 void setJSHTMLImageElementName(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
78 JSC::JSValue jsHTMLImageElementAlign(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
79 void setJSHTMLImageElementAlign(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
80 JSC::JSValue jsHTMLImageElementAlt(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
81 void setJSHTMLImageElementAlt(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
82 JSC::JSValue jsHTMLImageElementBorder(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
83 void setJSHTMLImageElementBorder(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
84 JSC::JSValue jsHTMLImageElementHeight(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
85 void setJSHTMLImageElementHeight(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
86 JSC::JSValue jsHTMLImageElementHspace(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
87 void setJSHTMLImageElementHspace(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
88 JSC::JSValue jsHTMLImageElementIsMap(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
89 void setJSHTMLImageElementIsMap(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
90 JSC::JSValue jsHTMLImageElementLongDesc(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
91 void setJSHTMLImageElementLongDesc(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
92 JSC::JSValue jsHTMLImageElementSrc(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
93 void setJSHTMLImageElementSrc(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
94 JSC::JSValue jsHTMLImageElementUseMap(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
95 void setJSHTMLImageElementUseMap(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
96 JSC::JSValue jsHTMLImageElementVspace(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
97 void setJSHTMLImageElementVspace(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
98 JSC::JSValue jsHTMLImageElementWidth(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
99 void setJSHTMLImageElementWidth(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
100 JSC::JSValue jsHTMLImageElementComplete(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
101 JSC::JSValue jsHTMLImageElementLowsrc(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
102 void setJSHTMLImageElementLowsrc(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
103 JSC::JSValue jsHTMLImageElementNaturalHeight(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
104 JSC::JSValue jsHTMLImageElementNaturalWidth(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
105 JSC::JSValue jsHTMLImageElementX(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
106 JSC::JSValue jsHTMLImageElementY(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
107 JSC::JSValue jsHTMLImageElementConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
108 |
|
109 } // namespace WebCore |
|
110 |
|
111 #endif |