|
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 JSHTMLFormElement_h |
|
22 #define JSHTMLFormElement_h |
|
23 |
|
24 #include "JSHTMLElement.h" |
|
25 #include <runtime/JSObjectWithGlobalObject.h> |
|
26 |
|
27 namespace WebCore { |
|
28 |
|
29 class HTMLFormElement; |
|
30 |
|
31 class JSHTMLFormElement : public JSHTMLElement { |
|
32 typedef JSHTMLElement Base; |
|
33 public: |
|
34 JSHTMLFormElement(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<HTMLFormElement>); |
|
35 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*); |
|
36 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&); |
|
37 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&); |
|
38 virtual void put(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::JSValue, JSC::PutPropertySlot&); |
|
39 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
40 static const JSC::ClassInfo s_info; |
|
41 |
|
42 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
43 { |
|
44 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
45 } |
|
46 |
|
47 virtual void getOwnPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties); |
|
48 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
49 protected: |
|
50 static const unsigned StructureFlags = JSC::OverridesGetPropertyNames | JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
51 static JSC::JSValue indexGetter(JSC::ExecState*, JSC::JSValue, unsigned); |
|
52 private: |
|
53 static bool canGetItemsForName(JSC::ExecState*, HTMLFormElement*, const JSC::Identifier&); |
|
54 static JSC::JSValue nameGetter(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
55 }; |
|
56 |
|
57 |
|
58 class JSHTMLFormElementPrototype : public JSC::JSObjectWithGlobalObject { |
|
59 typedef JSC::JSObjectWithGlobalObject Base; |
|
60 public: |
|
61 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
62 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
63 static const JSC::ClassInfo s_info; |
|
64 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
65 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
66 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
67 { |
|
68 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
69 } |
|
70 JSHTMLFormElementPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
71 protected: |
|
72 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
73 }; |
|
74 |
|
75 // Functions |
|
76 |
|
77 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLFormElementPrototypeFunctionSubmit(JSC::ExecState*); |
|
78 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLFormElementPrototypeFunctionReset(JSC::ExecState*); |
|
79 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLFormElementPrototypeFunctionCheckValidity(JSC::ExecState*); |
|
80 // Attributes |
|
81 |
|
82 JSC::JSValue jsHTMLFormElementElements(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
83 JSC::JSValue jsHTMLFormElementLength(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
84 JSC::JSValue jsHTMLFormElementName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
85 void setJSHTMLFormElementName(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
86 JSC::JSValue jsHTMLFormElementNoValidate(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
87 void setJSHTMLFormElementNoValidate(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
88 JSC::JSValue jsHTMLFormElementAcceptCharset(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
89 void setJSHTMLFormElementAcceptCharset(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
90 JSC::JSValue jsHTMLFormElementAction(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
91 void setJSHTMLFormElementAction(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
92 JSC::JSValue jsHTMLFormElementEncoding(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
93 void setJSHTMLFormElementEncoding(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
94 JSC::JSValue jsHTMLFormElementEnctype(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
95 void setJSHTMLFormElementEnctype(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
96 JSC::JSValue jsHTMLFormElementMethod(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
97 void setJSHTMLFormElementMethod(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
98 JSC::JSValue jsHTMLFormElementTarget(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
99 void setJSHTMLFormElementTarget(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
100 JSC::JSValue jsHTMLFormElementConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
101 |
|
102 } // namespace WebCore |
|
103 |
|
104 #endif |