|
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 JSHTMLDocument_h |
|
22 #define JSHTMLDocument_h |
|
23 |
|
24 #include "JSDocument.h" |
|
25 #include <runtime/JSObjectWithGlobalObject.h> |
|
26 |
|
27 namespace WebCore { |
|
28 |
|
29 class HTMLDocument; |
|
30 |
|
31 class JSHTMLDocument : public JSDocument { |
|
32 typedef JSDocument Base; |
|
33 public: |
|
34 JSHTMLDocument(NonNullPassRefPtr<JSC::Structure>, JSDOMGlobalObject*, PassRefPtr<HTMLDocument>); |
|
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 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*); |
|
48 |
|
49 // Custom attributes |
|
50 JSC::JSValue all(JSC::ExecState*) const; |
|
51 void setAll(JSC::ExecState*, JSC::JSValue); |
|
52 |
|
53 // Custom functions |
|
54 JSC::JSValue open(JSC::ExecState*); |
|
55 JSC::JSValue write(JSC::ExecState*); |
|
56 JSC::JSValue writeln(JSC::ExecState*); |
|
57 protected: |
|
58 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
59 private: |
|
60 static bool canGetItemsForName(JSC::ExecState*, HTMLDocument*, const JSC::Identifier&); |
|
61 static JSC::JSValue nameGetter(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
62 }; |
|
63 |
|
64 |
|
65 class JSHTMLDocumentPrototype : public JSC::JSObjectWithGlobalObject { |
|
66 typedef JSC::JSObjectWithGlobalObject Base; |
|
67 public: |
|
68 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*); |
|
69 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
70 static const JSC::ClassInfo s_info; |
|
71 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
72 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
73 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
74 { |
|
75 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
76 } |
|
77 JSHTMLDocumentPrototype(JSC::JSGlobalObject* globalObject, NonNullPassRefPtr<JSC::Structure> structure) : JSC::JSObjectWithGlobalObject(globalObject, structure) { } |
|
78 protected: |
|
79 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags; |
|
80 }; |
|
81 |
|
82 // Functions |
|
83 |
|
84 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLDocumentPrototypeFunctionOpen(JSC::ExecState*); |
|
85 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLDocumentPrototypeFunctionClose(JSC::ExecState*); |
|
86 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLDocumentPrototypeFunctionWrite(JSC::ExecState*); |
|
87 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLDocumentPrototypeFunctionWriteln(JSC::ExecState*); |
|
88 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLDocumentPrototypeFunctionClear(JSC::ExecState*); |
|
89 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLDocumentPrototypeFunctionCaptureEvents(JSC::ExecState*); |
|
90 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLDocumentPrototypeFunctionReleaseEvents(JSC::ExecState*); |
|
91 JSC::EncodedJSValue JSC_HOST_CALL jsHTMLDocumentPrototypeFunctionHasFocus(JSC::ExecState*); |
|
92 // Attributes |
|
93 |
|
94 JSC::JSValue jsHTMLDocumentEmbeds(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
95 JSC::JSValue jsHTMLDocumentPlugins(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
96 JSC::JSValue jsHTMLDocumentScripts(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
97 JSC::JSValue jsHTMLDocumentAll(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
98 void setJSHTMLDocumentAll(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
99 JSC::JSValue jsHTMLDocumentWidth(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
100 JSC::JSValue jsHTMLDocumentHeight(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
101 JSC::JSValue jsHTMLDocumentDir(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
102 void setJSHTMLDocumentDir(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
103 JSC::JSValue jsHTMLDocumentDesignMode(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
104 void setJSHTMLDocumentDesignMode(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
105 JSC::JSValue jsHTMLDocumentCompatMode(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
106 JSC::JSValue jsHTMLDocumentActiveElement(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
107 JSC::JSValue jsHTMLDocumentBgColor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
108 void setJSHTMLDocumentBgColor(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
109 JSC::JSValue jsHTMLDocumentFgColor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
110 void setJSHTMLDocumentFgColor(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
111 JSC::JSValue jsHTMLDocumentAlinkColor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
112 void setJSHTMLDocumentAlinkColor(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
113 JSC::JSValue jsHTMLDocumentLinkColor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
114 void setJSHTMLDocumentLinkColor(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
115 JSC::JSValue jsHTMLDocumentVlinkColor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
116 void setJSHTMLDocumentVlinkColor(JSC::ExecState*, JSC::JSObject*, JSC::JSValue); |
|
117 JSC::JSValue jsHTMLDocumentConstructor(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&); |
|
118 |
|
119 } // namespace WebCore |
|
120 |
|
121 #endif |