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

Side by Side Diff: gecko-sdk/include/nsIDOMDocument.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/nsIDOMDOMImplementation.h ('k') | gecko-sdk/include/nsIDOMDocumentEvent.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/core/nsIDOMDocument.idl
3 */
4
5 #ifndef __gen_nsIDOMDocument_h__
6 #define __gen_nsIDOMDocument_h__
7
8
9 #ifndef __gen_nsIDOMNode_h__
10 #include "nsIDOMNode.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: nsIDOMDocument */
19 #define NS_IDOMDOCUMENT_IID_STR "a6cf9075-15b3-11d2-932e-00805f8add32"
20
21 #define NS_IDOMDOCUMENT_IID \
22 {0xa6cf9075, 0x15b3, 0x11d2, \
23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
24
25 class NS_NO_VTABLE nsIDOMDocument : public nsIDOMNode {
26 public:
27
28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENT_IID)
29
30 /**
31 * The nsIDOMDocument interface represents the entire HTML or XML document.
32 * Conceptually, it is the root of the document tree, and provides the
33 * primary access to the document's data.
34 * Since elements, text nodes, comments, processing instructions, etc.
35 * cannot exist outside the context of a Document, the nsIDOMDocument
36 * interface also contains the factory methods needed to create these
37 * objects.
38 *
39 * For more information on this interface please see
40 * http://www.w3.org/TR/DOM-Level-2-Core/
41 *
42 * @status FROZEN
43 */
44 /* readonly attribute nsIDOMDocumentType doctype; */
45 NS_IMETHOD GetDoctype(nsIDOMDocumentType * *aDoctype) = 0;
46
47 /* readonly attribute nsIDOMDOMImplementation implementation; */
48 NS_IMETHOD GetImplementation(nsIDOMDOMImplementation * *aImplementation) = 0;
49
50 /* readonly attribute nsIDOMElement documentElement; */
51 NS_IMETHOD GetDocumentElement(nsIDOMElement * *aDocumentElement) = 0;
52
53 /* nsIDOMElement createElement (in DOMString tagName) raises (DOMException); */
54 NS_IMETHOD CreateElement(const nsAString & tagName, nsIDOMElement **_retval) = 0;
55
56 /* nsIDOMDocumentFragment createDocumentFragment (); */
57 NS_IMETHOD CreateDocumentFragment(nsIDOMDocumentFragment **_retval) = 0;
58
59 /* nsIDOMText createTextNode (in DOMString data); */
60 NS_IMETHOD CreateTextNode(const nsAString & data, nsIDOMText **_retval) = 0;
61
62 /* nsIDOMComment createComment (in DOMString data); */
63 NS_IMETHOD CreateComment(const nsAString & data, nsIDOMComment **_retval) = 0;
64
65 /* nsIDOMCDATASection createCDATASection (in DOMString data) raises (DOMExcep tion); */
66 NS_IMETHOD CreateCDATASection(const nsAString & data, nsIDOMCDATASection **_re tval) = 0;
67
68 /* nsIDOMProcessingInstruction createProcessingInstruction (in DOMString targe t, in DOMString data) raises (DOMException); */
69 NS_IMETHOD CreateProcessingInstruction(const nsAString & target, const nsAStri ng & data, nsIDOMProcessingInstruction **_retval) = 0;
70
71 /* nsIDOMAttr createAttribute (in DOMString name) raises (DOMException); */
72 NS_IMETHOD CreateAttribute(const nsAString & name, nsIDOMAttr **_retval) = 0;
73
74 /* nsIDOMEntityReference createEntityReference (in DOMString name) raises (DO MException); */
75 NS_IMETHOD CreateEntityReference(const nsAString & name, nsIDOMEntityReference **_retval) = 0;
76
77 /* nsIDOMNodeList getElementsByTagName (in DOMString tagname); */
78 NS_IMETHOD GetElementsByTagName(const nsAString & tagname, nsIDOMNodeList **_r etval) = 0;
79
80 /* nsIDOMNode importNode (in nsIDOMNode importedNode, in boolean deep) raises (DOMException); */
81 NS_IMETHOD ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_ret val) = 0;
82
83 /* nsIDOMElement createElementNS (in DOMString namespaceURI, in DOMString qual ifiedName) raises (DOMException); */
84 NS_IMETHOD CreateElementNS(const nsAString & namespaceURI, const nsAString & q ualifiedName, nsIDOMElement **_retval) = 0;
85
86 /* nsIDOMAttr createAttributeNS (in DOMString namespaceURI, in DOMString quali fiedName) raises (DOMException); */
87 NS_IMETHOD CreateAttributeNS(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMAttr **_retval) = 0;
88
89 /* nsIDOMNodeList getElementsByTagNameNS (in DOMString namespaceURI, in DOMStr ing localName); */
90 NS_IMETHOD GetElementsByTagNameNS(const nsAString & namespaceURI, const nsAStr ing & localName, nsIDOMNodeList **_retval) = 0;
91
92 /* nsIDOMElement getElementById (in DOMString elementId); */
93 NS_IMETHOD GetElementById(const nsAString & elementId, nsIDOMElement **_retval ) = 0;
94
95 };
96
97 /* Use this macro when declaring classes that implement this interface. */
98 #define NS_DECL_NSIDOMDOCUMENT \
99 NS_IMETHOD GetDoctype(nsIDOMDocumentType * *aDoctype); \
100 NS_IMETHOD GetImplementation(nsIDOMDOMImplementation * *aImplementation); \
101 NS_IMETHOD GetDocumentElement(nsIDOMElement * *aDocumentElement); \
102 NS_IMETHOD CreateElement(const nsAString & tagName, nsIDOMElement **_retval); \
103 NS_IMETHOD CreateDocumentFragment(nsIDOMDocumentFragment **_retval); \
104 NS_IMETHOD CreateTextNode(const nsAString & data, nsIDOMText **_retval); \
105 NS_IMETHOD CreateComment(const nsAString & data, nsIDOMComment **_retval); \
106 NS_IMETHOD CreateCDATASection(const nsAString & data, nsIDOMCDATASection **_re tval); \
107 NS_IMETHOD CreateProcessingInstruction(const nsAString & target, const nsAStri ng & data, nsIDOMProcessingInstruction **_retval); \
108 NS_IMETHOD CreateAttribute(const nsAString & name, nsIDOMAttr **_retval); \
109 NS_IMETHOD CreateEntityReference(const nsAString & name, nsIDOMEntityReference **_retval); \
110 NS_IMETHOD GetElementsByTagName(const nsAString & tagname, nsIDOMNodeList **_r etval); \
111 NS_IMETHOD ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_ret val); \
112 NS_IMETHOD CreateElementNS(const nsAString & namespaceURI, const nsAString & q ualifiedName, nsIDOMElement **_retval); \
113 NS_IMETHOD CreateAttributeNS(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMAttr **_retval); \
114 NS_IMETHOD GetElementsByTagNameNS(const nsAString & namespaceURI, const nsAStr ing & localName, nsIDOMNodeList **_retval); \
115 NS_IMETHOD GetElementById(const nsAString & elementId, nsIDOMElement **_retval );
116
117 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object. */
118 #define NS_FORWARD_NSIDOMDOCUMENT(_to) \
119 NS_IMETHOD GetDoctype(nsIDOMDocumentType * *aDoctype) { return _to GetDoctype( aDoctype); } \
120 NS_IMETHOD GetImplementation(nsIDOMDOMImplementation * *aImplementation) { ret urn _to GetImplementation(aImplementation); } \
121 NS_IMETHOD GetDocumentElement(nsIDOMElement * *aDocumentElement) { return _to GetDocumentElement(aDocumentElement); } \
122 NS_IMETHOD CreateElement(const nsAString & tagName, nsIDOMElement **_retval) { return _to CreateElement(tagName, _retval); } \
123 NS_IMETHOD CreateDocumentFragment(nsIDOMDocumentFragment **_retval) { return _ to CreateDocumentFragment(_retval); } \
124 NS_IMETHOD CreateTextNode(const nsAString & data, nsIDOMText **_retval) { retu rn _to CreateTextNode(data, _retval); } \
125 NS_IMETHOD CreateComment(const nsAString & data, nsIDOMComment **_retval) { re turn _to CreateComment(data, _retval); } \
126 NS_IMETHOD CreateCDATASection(const nsAString & data, nsIDOMCDATASection **_re tval) { return _to CreateCDATASection(data, _retval); } \
127 NS_IMETHOD CreateProcessingInstruction(const nsAString & target, const nsAStri ng & data, nsIDOMProcessingInstruction **_retval) { return _to CreateProcessingI nstruction(target, data, _retval); } \
128 NS_IMETHOD CreateAttribute(const nsAString & name, nsIDOMAttr **_retval) { ret urn _to CreateAttribute(name, _retval); } \
129 NS_IMETHOD CreateEntityReference(const nsAString & name, nsIDOMEntityReference **_retval) { return _to CreateEntityReference(name, _retval); } \
130 NS_IMETHOD GetElementsByTagName(const nsAString & tagname, nsIDOMNodeList **_r etval) { return _to GetElementsByTagName(tagname, _retval); } \
131 NS_IMETHOD ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_ret val) { return _to ImportNode(importedNode, deep, _retval); } \
132 NS_IMETHOD CreateElementNS(const nsAString & namespaceURI, const nsAString & q ualifiedName, nsIDOMElement **_retval) { return _to CreateElementNS(namespaceURI , qualifiedName, _retval); } \
133 NS_IMETHOD CreateAttributeNS(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMAttr **_retval) { return _to CreateAttributeNS(namespaceUR I, qualifiedName, _retval); } \
134 NS_IMETHOD GetElementsByTagNameNS(const nsAString & namespaceURI, const nsAStr ing & localName, nsIDOMNodeList **_retval) { return _to GetElementsByTagNameNS(n amespaceURI, localName, _retval); } \
135 NS_IMETHOD GetElementById(const nsAString & elementId, nsIDOMElement **_retval ) { return _to GetElementById(elementId, _retval); }
136
137 /* Use this macro to declare functions that forward the behavior of this interfa ce to another object in a safe way. */
138 #define NS_FORWARD_SAFE_NSIDOMDOCUMENT(_to) \
139 NS_IMETHOD GetDoctype(nsIDOMDocumentType * *aDoctype) { return !_to ? NS_ERROR _NULL_POINTER : _to->GetDoctype(aDoctype); } \
140 NS_IMETHOD GetImplementation(nsIDOMDOMImplementation * *aImplementation) { ret urn !_to ? NS_ERROR_NULL_POINTER : _to->GetImplementation(aImplementation); } \
141 NS_IMETHOD GetDocumentElement(nsIDOMElement * *aDocumentElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentElement(aDocumentElement); } \
142 NS_IMETHOD CreateElement(const nsAString & tagName, nsIDOMElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateElement(tagName, _retval); } \
143 NS_IMETHOD CreateDocumentFragment(nsIDOMDocumentFragment **_retval) { return ! _to ? NS_ERROR_NULL_POINTER : _to->CreateDocumentFragment(_retval); } \
144 NS_IMETHOD CreateTextNode(const nsAString & data, nsIDOMText **_retval) { retu rn !_to ? NS_ERROR_NULL_POINTER : _to->CreateTextNode(data, _retval); } \
145 NS_IMETHOD CreateComment(const nsAString & data, nsIDOMComment **_retval) { re turn !_to ? NS_ERROR_NULL_POINTER : _to->CreateComment(data, _retval); } \
146 NS_IMETHOD CreateCDATASection(const nsAString & data, nsIDOMCDATASection **_re tval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateCDATASection(data, _ret val); } \
147 NS_IMETHOD CreateProcessingInstruction(const nsAString & target, const nsAStri ng & data, nsIDOMProcessingInstruction **_retval) { return !_to ? NS_ERROR_NULL_ POINTER : _to->CreateProcessingInstruction(target, data, _retval); } \
148 NS_IMETHOD CreateAttribute(const nsAString & name, nsIDOMAttr **_retval) { ret urn !_to ? NS_ERROR_NULL_POINTER : _to->CreateAttribute(name, _retval); } \
149 NS_IMETHOD CreateEntityReference(const nsAString & name, nsIDOMEntityReference **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateEntityReference(n ame, _retval); } \
150 NS_IMETHOD GetElementsByTagName(const nsAString & tagname, nsIDOMNodeList **_r etval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementsByTagName(tagname , _retval); } \
151 NS_IMETHOD ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_ret val) { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportNode(importedNode, deep, _retval); } \
152 NS_IMETHOD CreateElementNS(const nsAString & namespaceURI, const nsAString & q ualifiedName, nsIDOMElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _ to->CreateElementNS(namespaceURI, qualifiedName, _retval); } \
153 NS_IMETHOD CreateAttributeNS(const nsAString & namespaceURI, const nsAString & qualifiedName, nsIDOMAttr **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _t o->CreateAttributeNS(namespaceURI, qualifiedName, _retval); } \
154 NS_IMETHOD GetElementsByTagNameNS(const nsAString & namespaceURI, const nsAStr ing & localName, nsIDOMNodeList **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementsByTagNameNS(namespaceURI, localName, _retval); } \
155 NS_IMETHOD GetElementById(const nsAString & elementId, nsIDOMElement **_retval ) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementById(elementId, _retval ); }
156
157 #if 0
158 /* Use the code below as a template for the implementation class for this interf ace. */
159
160 /* Header file */
161 class nsDOMDocument : public nsIDOMDocument
162 {
163 public:
164 NS_DECL_ISUPPORTS
165 NS_DECL_NSIDOMDOCUMENT
166
167 nsDOMDocument();
168
169 private:
170 ~nsDOMDocument();
171
172 protected:
173 /* additional members */
174 };
175
176 /* Implementation file */
177 NS_IMPL_ISUPPORTS1(nsDOMDocument, nsIDOMDocument)
178
179 nsDOMDocument::nsDOMDocument()
180 {
181 /* member initializers and constructor code */
182 }
183
184 nsDOMDocument::~nsDOMDocument()
185 {
186 /* destructor code */
187 }
188
189 /* readonly attribute nsIDOMDocumentType doctype; */
190 NS_IMETHODIMP nsDOMDocument::GetDoctype(nsIDOMDocumentType * *aDoctype)
191 {
192 return NS_ERROR_NOT_IMPLEMENTED;
193 }
194
195 /* readonly attribute nsIDOMDOMImplementation implementation; */
196 NS_IMETHODIMP nsDOMDocument::GetImplementation(nsIDOMDOMImplementation * *aImple mentation)
197 {
198 return NS_ERROR_NOT_IMPLEMENTED;
199 }
200
201 /* readonly attribute nsIDOMElement documentElement; */
202 NS_IMETHODIMP nsDOMDocument::GetDocumentElement(nsIDOMElement * *aDocumentElemen t)
203 {
204 return NS_ERROR_NOT_IMPLEMENTED;
205 }
206
207 /* nsIDOMElement createElement (in DOMString tagName) raises (DOMException); */
208 NS_IMETHODIMP nsDOMDocument::CreateElement(const nsAString & tagName, nsIDOMElem ent **_retval)
209 {
210 return NS_ERROR_NOT_IMPLEMENTED;
211 }
212
213 /* nsIDOMDocumentFragment createDocumentFragment (); */
214 NS_IMETHODIMP nsDOMDocument::CreateDocumentFragment(nsIDOMDocumentFragment **_re tval)
215 {
216 return NS_ERROR_NOT_IMPLEMENTED;
217 }
218
219 /* nsIDOMText createTextNode (in DOMString data); */
220 NS_IMETHODIMP nsDOMDocument::CreateTextNode(const nsAString & data, nsIDOMText * *_retval)
221 {
222 return NS_ERROR_NOT_IMPLEMENTED;
223 }
224
225 /* nsIDOMComment createComment (in DOMString data); */
226 NS_IMETHODIMP nsDOMDocument::CreateComment(const nsAString & data, nsIDOMComment **_retval)
227 {
228 return NS_ERROR_NOT_IMPLEMENTED;
229 }
230
231 /* nsIDOMCDATASection createCDATASection (in DOMString data) raises (DOMExcepti on); */
232 NS_IMETHODIMP nsDOMDocument::CreateCDATASection(const nsAString & data, nsIDOMCD ATASection **_retval)
233 {
234 return NS_ERROR_NOT_IMPLEMENTED;
235 }
236
237 /* nsIDOMProcessingInstruction createProcessingInstruction (in DOMString target, in DOMString data) raises (DOMException); */
238 NS_IMETHODIMP nsDOMDocument::CreateProcessingInstruction(const nsAString & targe t, const nsAString & data, nsIDOMProcessingInstruction **_retval)
239 {
240 return NS_ERROR_NOT_IMPLEMENTED;
241 }
242
243 /* nsIDOMAttr createAttribute (in DOMString name) raises (DOMException); */
244 NS_IMETHODIMP nsDOMDocument::CreateAttribute(const nsAString & name, nsIDOMAttr **_retval)
245 {
246 return NS_ERROR_NOT_IMPLEMENTED;
247 }
248
249 /* nsIDOMEntityReference createEntityReference (in DOMString name) raises (DOME xception); */
250 NS_IMETHODIMP nsDOMDocument::CreateEntityReference(const nsAString & name, nsIDO MEntityReference **_retval)
251 {
252 return NS_ERROR_NOT_IMPLEMENTED;
253 }
254
255 /* nsIDOMNodeList getElementsByTagName (in DOMString tagname); */
256 NS_IMETHODIMP nsDOMDocument::GetElementsByTagName(const nsAString & tagname, nsI DOMNodeList **_retval)
257 {
258 return NS_ERROR_NOT_IMPLEMENTED;
259 }
260
261 /* nsIDOMNode importNode (in nsIDOMNode importedNode, in boolean deep) raises ( DOMException); */
262 NS_IMETHODIMP nsDOMDocument::ImportNode(nsIDOMNode *importedNode, PRBool deep, n sIDOMNode **_retval)
263 {
264 return NS_ERROR_NOT_IMPLEMENTED;
265 }
266
267 /* nsIDOMElement createElementNS (in DOMString namespaceURI, in DOMString qualif iedName) raises (DOMException); */
268 NS_IMETHODIMP nsDOMDocument::CreateElementNS(const nsAString & namespaceURI, con st nsAString & qualifiedName, nsIDOMElement **_retval)
269 {
270 return NS_ERROR_NOT_IMPLEMENTED;
271 }
272
273 /* nsIDOMAttr createAttributeNS (in DOMString namespaceURI, in DOMString qualifi edName) raises (DOMException); */
274 NS_IMETHODIMP nsDOMDocument::CreateAttributeNS(const nsAString & namespaceURI, c onst nsAString & qualifiedName, nsIDOMAttr **_retval)
275 {
276 return NS_ERROR_NOT_IMPLEMENTED;
277 }
278
279 /* nsIDOMNodeList getElementsByTagNameNS (in DOMString namespaceURI, in DOMStrin g localName); */
280 NS_IMETHODIMP nsDOMDocument::GetElementsByTagNameNS(const nsAString & namespaceU RI, const nsAString & localName, nsIDOMNodeList **_retval)
281 {
282 return NS_ERROR_NOT_IMPLEMENTED;
283 }
284
285 /* nsIDOMElement getElementById (in DOMString elementId); */
286 NS_IMETHODIMP nsDOMDocument::GetElementById(const nsAString & elementId, nsIDOME lement **_retval)
287 {
288 return NS_ERROR_NOT_IMPLEMENTED;
289 }
290
291 /* End of implementation class template. */
292 #endif
293
294
295 #endif /* __gen_nsIDOMDocument_h__ */
OLDNEW
« no previous file with comments | « gecko-sdk/include/nsIDOMDOMImplementation.h ('k') | gecko-sdk/include/nsIDOMDocumentEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698