Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: gecko-sdk/include/nsIDOMHTMLDocument.h

Issue 20346: Version 1.8 of gecko-sdk. Downloaded from here:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gecko-sdk/include/nsIDOMHTMLDivElement.h ('k') | gecko-sdk/include/nsIDOMHTMLElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0 -Release/WINNT_5.2_Depend/mozilla/dom/public/idl/html/nsIDOMHTMLDocument.idl
3 */
4
5 #ifndef __gen_nsIDOMHTMLDocument_h__
6 #define __gen_nsIDOMHTMLDocument_h__
7
8
9 #ifndef __gen_nsIDOMDocument_h__
10 #include "nsIDOMDocument.h"
11 #endif
12
13 /* For IDL files that don't want to include root IDL files. */
14 #ifndef NS_NO_VTABLE
15 #define NS_NO_VTABLE
16 #endif
17
18 /* starting interface: nsIDOMHTMLDocument */
19 #define NS_IDOMHTMLDOCUMENT_IID_STR "a6cf9084-15b3-11d2-932e-00805f8add32"
20
21 #define NS_IDOMHTMLDOCUMENT_IID \
22 {0xa6cf9084, 0x15b3, 0x11d2, \
23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
24
25 /**
26 * The nsIDOMHTMLDocument interface is the interface to a [X]HTML
27 * document object.
28 *
29 * For more information on this interface please see
30 * http://www.w3.org/TR/DOM-Level-2-HTML/
31 *
32 * @status FROZEN
33 */
34 class NS_NO_VTABLE nsIDOMHTMLDocument : public nsIDOMDocument {
35 public:
36
37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLDOCUMENT_IID)
38
39 /* attribute DOMString title; */
40 NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
41 NS_IMETHOD SetTitle(const nsAString & aTitle) = 0;
42
43 /* readonly attribute DOMString referrer; */
44 NS_IMETHOD GetReferrer(nsAString & aReferrer) = 0;
45
46 /* [noscript] readonly attribute DOMString domain; */
47 NS_IMETHOD GetDomain(nsAString & aDomain) = 0;
48
49 /* readonly attribute DOMString URL; */
50 NS_IMETHOD GetURL(nsAString & aURL) = 0;
51
52 /* attribute nsIDOMHTMLElement body; */
53 NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody) = 0;
54 NS_IMETHOD SetBody(nsIDOMHTMLElement * aBody) = 0;
55
56 /* readonly attribute nsIDOMHTMLCollection images; */
57 NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages) = 0;
58
59 /* readonly attribute nsIDOMHTMLCollection applets; */
60 NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets) = 0;
61
62 /* readonly attribute nsIDOMHTMLCollection links; */
63 NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks) = 0;
64
65 /* readonly attribute nsIDOMHTMLCollection forms; */
66 NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms) = 0;
67
68 /* readonly attribute nsIDOMHTMLCollection anchors; */
69 NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors) = 0;
70
71 /* attribute DOMString cookie; */
72 NS_IMETHOD GetCookie(nsAString & aCookie) = 0;
73 NS_IMETHOD SetCookie(const nsAString & aCookie) = 0;
74
75 /* [noscript] void open (); */
76 NS_IMETHOD Open(void) = 0;
77
78 /* void close (); */
79 NS_IMETHOD Close(void) = 0;
80
81 /* [noscript] void write (in DOMString text); */
82 NS_IMETHOD Write(const nsAString & text) = 0;
83
84 /* [noscript] void writeln (in DOMString text); */
85 NS_IMETHOD Writeln(const nsAString & text) = 0;
86
87 /* nsIDOMNodeList getElementsByName (in DOMString elementName); */
88 NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList **_ retval) = 0;
89
90 };
91
92 /* Use this macro when declaring classes that implement this interface. */
93 #define NS_DECL_NSIDOMHTMLDOCUMENT \
94 NS_IMETHOD GetTitle(nsAString & aTitle); \
95 NS_IMETHOD SetTitle(const nsAString & aTitle); \
96 NS_IMETHOD GetReferrer(nsAString & aReferrer); \
97 NS_IMETHOD GetDomain(nsAString & aDomain); \
98 NS_IMETHOD GetURL(nsAString & aURL); \
99 NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody); \
100 NS_IMETHOD SetBody(nsIDOMHTMLElement * aBody); \
101 NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages); \
102 NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets); \
103 NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks); \
104 NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms); \
105 NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors); \
106 NS_IMETHOD GetCookie(nsAString & aCookie); \
107 NS_IMETHOD SetCookie(const nsAString & aCookie); \
108 NS_IMETHOD Open(void); \
109 NS_IMETHOD Close(void); \
110 NS_IMETHOD Write(const nsAString & text); \
111 NS_IMETHOD Writeln(const nsAString & text); \
112 NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList **_ retval);
113
114 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
115 #define NS_FORWARD_NSIDOMHTMLDOCUMENT(_to) \
116 NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
117 NS_IMETHOD SetTitle(const nsAString & aTitle) { return _to SetTitle(aTitle); } \
118 NS_IMETHOD GetReferrer(nsAString & aReferrer) { return _to GetReferrer(aReferr er); } \
119 NS_IMETHOD GetDomain(nsAString & aDomain) { return _to GetDomain(aDomain); } \
120 NS_IMETHOD GetURL(nsAString & aURL) { return _to GetURL(aURL); } \
121 NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody) { return _to GetBody(aBody); } \
122 NS_IMETHOD SetBody(nsIDOMHTMLElement * aBody) { return _to SetBody(aBody); } \
123 NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages) { return _to GetImages(a Images); } \
124 NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets) { return _to GetApplet s(aApplets); } \
125 NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks) { return _to GetLinks(aLin ks); } \
126 NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms) { return _to GetForms(aFor ms); } \
127 NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors) { return _to GetAnchor s(aAnchors); } \
128 NS_IMETHOD GetCookie(nsAString & aCookie) { return _to GetCookie(aCookie); } \
129 NS_IMETHOD SetCookie(const nsAString & aCookie) { return _to SetCookie(aCookie ); } \
130 NS_IMETHOD Open(void) { return _to Open(); } \
131 NS_IMETHOD Close(void) { return _to Close(); } \
132 NS_IMETHOD Write(const nsAString & text) { return _to Write(text); } \
133 NS_IMETHOD Writeln(const nsAString & text) { return _to Writeln(text); } \
134 NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList **_ retval) { return _to GetElementsByName(elementName, _retval); }
135
136 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
137 #define NS_FORWARD_SAFE_NSIDOMHTMLDOCUMENT(_to) \
138 NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
139 NS_IMETHOD SetTitle(const nsAString & aTitle) { return !_to ? NS_ERROR_NULL_PO INTER : _to->SetTitle(aTitle); } \
140 NS_IMETHOD GetReferrer(nsAString & aReferrer) { return !_to ? NS_ERROR_NULL_PO INTER : _to->GetReferrer(aReferrer); } \
141 NS_IMETHOD GetDomain(nsAString & aDomain) { return !_to ? NS_ERROR_NULL_POINTE R : _to->GetDomain(aDomain); } \
142 NS_IMETHOD GetURL(nsAString & aURL) { return !_to ? NS_ERROR_NULL_POINTER : _t o->GetURL(aURL); } \
143 NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody) { return !_to ? NS_ERROR_NULL_P OINTER : _to->GetBody(aBody); } \
144 NS_IMETHOD SetBody(nsIDOMHTMLElement * aBody) { return !_to ? NS_ERROR_NULL_PO INTER : _to->SetBody(aBody); } \
145 NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages) { return !_to ? NS_ERROR _NULL_POINTER : _to->GetImages(aImages); } \
146 NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets) { return !_to ? NS_ERR OR_NULL_POINTER : _to->GetApplets(aApplets); } \
147 NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks) { return !_to ? NS_ERROR_N ULL_POINTER : _to->GetLinks(aLinks); } \
148 NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms) { return !_to ? NS_ERROR_N ULL_POINTER : _to->GetForms(aForms); } \
149 NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors) { return !_to ? NS_ERR OR_NULL_POINTER : _to->GetAnchors(aAnchors); } \
150 NS_IMETHOD GetCookie(nsAString & aCookie) { return !_to ? NS_ERROR_NULL_POINTE R : _to->GetCookie(aCookie); } \
151 NS_IMETHOD SetCookie(const nsAString & aCookie) { return !_to ? NS_ERROR_NULL_ POINTER : _to->SetCookie(aCookie); } \
152 NS_IMETHOD Open(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(); } \
153 NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
154 NS_IMETHOD Write(const nsAString & text) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(text); } \
155 NS_IMETHOD Writeln(const nsAString & text) { return !_to ? NS_ERROR_NULL_POINT ER : _to->Writeln(text); } \
156 NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList **_ retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementsByName(elementNa me, _retval); }
157
158 #if 0
159 /* Use the code below as a template for the implementation class for this interf ace. */
160
161 /* Header file */
162 class nsDOMHTMLDocument : public nsIDOMHTMLDocument
163 {
164 public:
165 NS_DECL_ISUPPORTS
166 NS_DECL_NSIDOMHTMLDOCUMENT
167
168 nsDOMHTMLDocument();
169
170 private:
171 ~nsDOMHTMLDocument();
172
173 protected:
174 /* additional members */
175 };
176
177 /* Implementation file */
178 NS_IMPL_ISUPPORTS1(nsDOMHTMLDocument, nsIDOMHTMLDocument)
179
180 nsDOMHTMLDocument::nsDOMHTMLDocument()
181 {
182 /* member initializers and constructor code */
183 }
184
185 nsDOMHTMLDocument::~nsDOMHTMLDocument()
186 {
187 /* destructor code */
188 }
189
190 /* attribute DOMString title; */
191 NS_IMETHODIMP nsDOMHTMLDocument::GetTitle(nsAString & aTitle)
192 {
193 return NS_ERROR_NOT_IMPLEMENTED;
194 }
195 NS_IMETHODIMP nsDOMHTMLDocument::SetTitle(const nsAString & aTitle)
196 {
197 return NS_ERROR_NOT_IMPLEMENTED;
198 }
199
200 /* readonly attribute DOMString referrer; */
201 NS_IMETHODIMP nsDOMHTMLDocument::GetReferrer(nsAString & aReferrer)
202 {
203 return NS_ERROR_NOT_IMPLEMENTED;
204 }
205
206 /* [noscript] readonly attribute DOMString domain; */
207 NS_IMETHODIMP nsDOMHTMLDocument::GetDomain(nsAString & aDomain)
208 {
209 return NS_ERROR_NOT_IMPLEMENTED;
210 }
211
212 /* readonly attribute DOMString URL; */
213 NS_IMETHODIMP nsDOMHTMLDocument::GetURL(nsAString & aURL)
214 {
215 return NS_ERROR_NOT_IMPLEMENTED;
216 }
217
218 /* attribute nsIDOMHTMLElement body; */
219 NS_IMETHODIMP nsDOMHTMLDocument::GetBody(nsIDOMHTMLElement * *aBody)
220 {
221 return NS_ERROR_NOT_IMPLEMENTED;
222 }
223 NS_IMETHODIMP nsDOMHTMLDocument::SetBody(nsIDOMHTMLElement * aBody)
224 {
225 return NS_ERROR_NOT_IMPLEMENTED;
226 }
227
228 /* readonly attribute nsIDOMHTMLCollection images; */
229 NS_IMETHODIMP nsDOMHTMLDocument::GetImages(nsIDOMHTMLCollection * *aImages)
230 {
231 return NS_ERROR_NOT_IMPLEMENTED;
232 }
233
234 /* readonly attribute nsIDOMHTMLCollection applets; */
235 NS_IMETHODIMP nsDOMHTMLDocument::GetApplets(nsIDOMHTMLCollection * *aApplets)
236 {
237 return NS_ERROR_NOT_IMPLEMENTED;
238 }
239
240 /* readonly attribute nsIDOMHTMLCollection links; */
241 NS_IMETHODIMP nsDOMHTMLDocument::GetLinks(nsIDOMHTMLCollection * *aLinks)
242 {
243 return NS_ERROR_NOT_IMPLEMENTED;
244 }
245
246 /* readonly attribute nsIDOMHTMLCollection forms; */
247 NS_IMETHODIMP nsDOMHTMLDocument::GetForms(nsIDOMHTMLCollection * *aForms)
248 {
249 return NS_ERROR_NOT_IMPLEMENTED;
250 }
251
252 /* readonly attribute nsIDOMHTMLCollection anchors; */
253 NS_IMETHODIMP nsDOMHTMLDocument::GetAnchors(nsIDOMHTMLCollection * *aAnchors)
254 {
255 return NS_ERROR_NOT_IMPLEMENTED;
256 }
257
258 /* attribute DOMString cookie; */
259 NS_IMETHODIMP nsDOMHTMLDocument::GetCookie(nsAString & aCookie)
260 {
261 return NS_ERROR_NOT_IMPLEMENTED;
262 }
263 NS_IMETHODIMP nsDOMHTMLDocument::SetCookie(const nsAString & aCookie)
264 {
265 return NS_ERROR_NOT_IMPLEMENTED;
266 }
267
268 /* [noscript] void open (); */
269 NS_IMETHODIMP nsDOMHTMLDocument::Open()
270 {
271 return NS_ERROR_NOT_IMPLEMENTED;
272 }
273
274 /* void close (); */
275 NS_IMETHODIMP nsDOMHTMLDocument::Close()
276 {
277 return NS_ERROR_NOT_IMPLEMENTED;
278 }
279
280 /* [noscript] void write (in DOMString text); */
281 NS_IMETHODIMP nsDOMHTMLDocument::Write(const nsAString & text)
282 {
283 return NS_ERROR_NOT_IMPLEMENTED;
284 }
285
286 /* [noscript] void writeln (in DOMString text); */
287 NS_IMETHODIMP nsDOMHTMLDocument::Writeln(const nsAString & text)
288 {
289 return NS_ERROR_NOT_IMPLEMENTED;
290 }
291
292 /* nsIDOMNodeList getElementsByName (in DOMString elementName); */
293 NS_IMETHODIMP nsDOMHTMLDocument::GetElementsByName(const nsAString & elementName , nsIDOMNodeList **_retval)
294 {
295 return NS_ERROR_NOT_IMPLEMENTED;
296 }
297
298 /* End of implementation class template. */
299 #endif
300
301
302 #endif /* __gen_nsIDOMHTMLDocument_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDOMHTMLDivElement.h ('k') | gecko-sdk/include/nsIDOMHTMLElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698