d3dcompiler/tests: Add D3D_BLOB_OUTPUT_SIGNATURE_BLOB test.
[wine] / dlls / mshtml / nsiface.idl
1 /*
2  * Copyright 2005-2007 Jacek Caban for CodeWeavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 /* 
20  * NOTE:
21  * This file is not a typical idl file. Interfaces in this file are XPCOM
22  * interfaces (NOT MSCOM!), but we generate the header file with WIDL
23  * compatible with XPCOM, usable in C code.
24  */
25
26 cpp_quote("#define GECKO_VERSION \"1.1.0\"")
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
28
29 import "wtypes.idl";
30
31 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
32 cpp_quote("#undef GetForm")
33 cpp_quote("#undef SetPort")
34 cpp_quote("#endif")
35
36 typedef HRESULT nsresult;
37 typedef ULONG nsrefcnt;
38
39 typedef IID nsID;
40 typedef IID nsIID;
41 typedef nsIID nsCID;
42 typedef REFIID nsIIDRef;
43 typedef nsIIDRef nsCIDRef;
44
45 typedef WCHAR PRUnichar;
46 typedef ULONG PRUint32;
47 typedef LONG PRInt32;
48 typedef WORD PRUint16;
49 typedef INT16 PRInt16;
50 typedef BYTE PRUint8;
51 typedef BOOL PRBool;
52 typedef LONGLONG PRInt64;
53 typedef ULONGLONG PRUint64;
54 typedef PRUint64 DOMTimeStamp;
55 typedef PRUint32 nsLoadFlags;
56
57 typedef struct {
58     void *v;
59     void *d1;
60     PRUint32 d2;
61     void *d3;
62 } nsCStringContainer;
63
64 typedef struct {
65     void *v;
66     void *d1;
67     PRUint32 d2;
68     void *d3;
69 } nsStringContainer;
70
71 typedef nsCStringContainer nsACString;
72 typedef nsStringContainer nsAString;
73
74 interface nsIWebBrowserChrome;
75 interface nsILoadGroup;
76 interface nsIDOMNode;
77 interface nsIDOMDocument;
78 interface nsIDOMEvent;
79 interface nsIEditor;
80 interface nsISelectionController;
81 interface nsITransactionManager;
82 interface nsITransaction;
83 interface nsIInlineSpellChecker;
84 interface nsIOutputStream;
85 interface nsIEditorObserver;
86 interface nsIEditActionListener;
87 interface nsIDocumentStateListener;
88 interface nsIDOMCSSStyleSheet;
89 interface nsIDOMDocumentView;
90 interface nsIDocumentObserver;
91 interface nsIDOMWindow;
92
93 interface IMoniker;
94
95 [
96     object,
97     uuid(00000000-0000-0000-c000-000000000046),
98     local
99 ]
100 interface nsISupports
101 {
102     nsresult QueryInterface(nsIIDRef riid, void **result);
103     nsrefcnt AddRef();
104     nsrefcnt Release();
105 }
106
107 /* Currently we don't need a full declaration of these interfaces */
108 typedef nsISupports nsISHistory;
109 typedef nsISupports nsIWidget;
110 typedef nsISupports nsIDOMBarProp;
111 typedef nsISupports nsIPrompt;
112 typedef nsISupports nsIAuthPrompt;
113 typedef nsISupports nsIDOMNamedNodeMap;
114 typedef nsISupports nsIDOMAttr;
115 typedef nsISupports nsIDOMDocumentType;
116 typedef nsISupports nsIDOMDOMImplementation;
117 typedef nsISupports nsIDOMCDATASection;
118 typedef nsISupports nsIDOMProcessingInstruction;
119 typedef nsISupports nsIDOMEntityReference;
120 typedef nsISupports nsIWebProgressListener;
121 typedef nsISupports nsIDOMCSSValue;
122 typedef nsISupports nsIPrintSession;
123 typedef nsISupports nsIControllerCommandTable;
124 typedef nsISupports nsIPrincipal;
125 typedef nsISupports nsIAtom;
126 typedef nsISupports nsISupportsArray;
127 typedef nsISupports nsIContentFilter;
128 typedef nsISupports nsIDOMMediaList;
129 typedef nsISupports nsIDOMHTMLTableCaptionElement;
130 typedef nsISupports nsIDOMHTMLTableSectionElement;
131 typedef nsISupports nsIDOMClientRectList;
132 typedef nsISupports nsIDOMLocation;
133 typedef nsISupports nsINode;
134 typedef nsISupports nsIStyleSheet;
135 typedef nsISupports nsIStyleRule;
136 typedef nsISupports nsIVariant;
137 typedef nsISupports nsIDOMUserDataHandler;
138 typedef nsISupports nsIDocShellLoadInfo;
139 typedef nsISupports nsISHEntry;
140 typedef nsISupports nsIPresShell;
141 typedef nsISupports nsIContentViewer;
142 typedef nsISupports nsIDocumentCharsetInfo;
143 typedef nsISupports nsILayoutHistoryState;
144 typedef nsISupports nsISecureBrowserUI;
145 typedef nsISupports nsIDOMStorage;
146 typedef nsISupports nsIDOMDOMTokenList;
147 typedef nsISupports nsITransferable;
148 typedef nsISupports nsIDOMHTMLHeadElement;
149 typedef nsISupports nsIDOMFileList;
150 typedef nsISupports nsIControllers;
151
152 [
153     object,
154     uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
155     local
156 ]
157 interface nsIServiceManager : nsISupports
158 {
159     nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
160     nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
161     nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
162     nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
163 }
164
165 [
166     object,
167     uuid(00000001-0000-0000-c000-000000000046),
168     local
169 ]
170 interface nsIFactory : nsISupports
171 {
172     nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
173     nsresult LockFactory(PRBool lock);
174 }
175
176 [
177     object,
178     uuid(db242e01-e4d9-11d2-9dde-000064657374),
179     local
180 ]
181 interface nsIObserver : nsISupports
182 {
183     nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
184 }
185
186 [
187     object,
188     uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
189     local
190 ]
191 interface nsIComponentManager : nsISupports
192 {
193     nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, void **result);
194     nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, void **result);
195     nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
196             void **result);
197     nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
198             nsIIDRef aIID, void **result);
199 }
200
201 [
202     object,
203     uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
204     local
205 ]
206 interface nsIMemory : nsISupports
207 {
208     void *Alloc(/*size_t*/ int size);
209     void *Realloc(void *_ptr, /*size_t*/ int newSize);
210     void Free(void *_ptr);
211     nsresult HeapMinimize(PRBool immediate);
212     nsresult IsLowMemory(PRBool *_retval);
213 }
214
215 [
216     object,
217     uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
218     local
219 ]
220 interface nsIWeakReference : nsISupports
221 {
222     nsresult QueryReferent(const nsIID *riid, void **result);
223 }
224
225 [
226     object,
227     uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
228     local
229 ]
230 interface nsISupportsWeakReference : nsISupports
231 {
232     nsresult GetWeakReference(nsIWeakReference **_retval);
233 }
234
235 [
236     object,
237     uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
238     local
239 ]
240 interface nsIInterfaceRequestor : nsISupports
241 {
242     nsresult GetInterface(const nsIID *riid, void **result);
243 }
244
245 [
246     object,
247     uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
248     local
249 ]
250 interface nsIRunnable : nsISupports
251 {
252     nsresult Run();
253 }
254
255 [
256     object,
257     uuid(d1899240-f9d2-11d2-bdd6-000064657374),
258     local
259 ]
260 interface nsISimpleEnumerator : nsISupports
261 {
262     nsresult HasMoreElements(PRBool *_retval);
263     nsresult GetNext(nsISupports **_retval);
264 }
265
266 [
267     object,
268     uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
269     local
270 ]
271 interface nsIInputStream : nsISupports
272 {
273     nsresult Close();
274     nsresult Available(PRUint32 *_retval);
275     nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
276     nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream, 
277             void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
278             PRUint32 aCount, PRUint32 *aWriteCount),
279             void *aClosure, PRUint32 aCount, PRUint32 *_retval);
280     nsresult IsNonBlocking(PRBool *_retval);
281 }
282
283 [
284     object,
285     uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
286     local
287 ]
288 interface nsIURI : nsISupports
289 {
290     nsresult GetSpec(nsACString *aSpec);
291     nsresult SetSpec(const nsACString *aSpec);
292     nsresult GetPrePath(nsACString *aPrePath);
293     nsresult GetScheme(nsACString *aScheme);
294     nsresult SetScheme(const nsACString *aScheme);
295     nsresult GetUserPass(nsACString *aUserPass);
296     nsresult SetUserPass(const nsACString *aUserPass);
297     nsresult GetUsername(nsACString *aUsername);
298     nsresult SetUsername(const nsACString *aUsername);
299     nsresult GetPassword(nsACString *aPassword);
300     nsresult SetPassword(const nsACString *aPassword);
301     nsresult GetHostPort(nsACString *aHostPort);
302     nsresult SetHostPort(const nsACString *aHostPort);
303     nsresult GetHost(nsACString *aHost);
304     nsresult SetHost(const nsACString *aHost);
305     nsresult GetPort(PRInt32 *aPort);
306     nsresult SetPort(PRInt32 aPort);
307     nsresult GetPath(nsACString *aPath);
308     nsresult SetPath(const nsACString *aPath);
309     nsresult Equals(nsIURI *other, PRBool *_retval);
310     nsresult SchemeIs(const char *scheme, PRBool *_retval);
311     nsresult Clone(nsIURI **_retval);
312     nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
313     nsresult GetAsciiSpec(nsACString *aAsciiSpec);
314     nsresult GetAsciiHost(nsACString *aAsciiHost);
315     nsresult GetOriginCharset(nsACString *aOriginCharset);
316 }
317
318 [
319     object,
320     uuid(d6116970-8034-11d3-9399-00104ba0fd40),
321     local
322 ]
323 interface nsIURL : nsIURI
324 {
325     nsresult GetFilePath(nsACString *aFilePath);
326     nsresult SetFilePath(const nsACString *aFilePath);
327     nsresult GetParam(nsACString *aParam);
328     nsresult SetParam(const nsACString *aParam);
329     nsresult GetQuery(nsACString *aQuery);
330     nsresult SetQuery(const nsACString *aQuery);
331     nsresult GetRef(nsACString *aRef);
332     nsresult SetRef(const nsACString *aRef);
333     nsresult GetDirectory(nsACString *aDirectory);
334     nsresult SetDirectory(const nsACString *aDirectory);
335     nsresult GetFileName(nsACString *aFileName);
336     nsresult SetFileName(const nsACString *aFileName);
337     nsresult GetFileBaseName(nsACString *aFileBaseName);
338     nsresult SetFileBaseName(const nsACString *aFileBaseName);
339     nsresult GetFileExtension(nsACString *aFileExtension);
340     nsresult SetFileExtension(const nsACString *aFileExtension);
341     nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
342     nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
343 }
344
345 [
346     object,
347     uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
348     local
349 ]
350 interface nsIRequest : nsISupports
351 {
352     nsresult GetName(nsACString *aName);
353     nsresult IsPending(PRBool *_retval);
354     nsresult GetStatus(nsresult *aStatus);
355     nsresult Cancel(nsresult aStatus);
356     nsresult Suspend();
357     nsresult Resume();
358     nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
359     nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
360     nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
361     nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
362 }
363
364 [
365     object,
366     uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
367     local
368 ]
369 interface nsIRequestObserver : nsISupports
370 {
371     nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
372     nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
373 }
374
375 [
376     object,
377     uuid(1a637020-1482-11d3-9333-00104ba0fd40),
378     local
379
380 interface nsIStreamListener : nsIRequestObserver
381 {
382     nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
383                              nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
384 }
385
386 [
387     object,
388     uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
389     local
390 ]
391 interface nsILoadGroup : nsIRequest
392 {
393     nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
394     nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
395     nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
396     nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
397     nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
398     nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
399     nsresult GetRequests(nsISimpleEnumerator **aRequests);
400     nsresult GetActiveCount(PRUint32 *aActiveCount);
401     nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
402     nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
403 }
404
405 [
406     object,
407     uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
408     local
409 ]
410 interface nsIChannel : nsIRequest
411 {
412     nsresult GetOriginalURI(nsIURI **aOriginalURI);
413     nsresult SetOriginalURI(nsIURI *aOriginalURI);
414     nsresult GetURI(nsIURI **aURI);
415     nsresult GetOwner(nsISupports **aOwner);
416     nsresult SetOwner(nsISupports *aOwner);
417     nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
418     nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
419     nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
420     nsresult GetContentType(nsACString *aContentType);
421     nsresult SetContentType(const nsACString *aContentType);
422     nsresult GetContentCharset(nsACString *aContentCharset);
423     nsresult SetContentCharset(const nsACString *aContentCharset);
424     nsresult GetContentLength(PRInt32 *aContentLength);
425     nsresult SetContentLength(PRInt32 aContentLength);
426     nsresult Open(nsIInputStream **_retval);
427     nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
428 }
429
430 [
431     object,
432     uuid(0cf40717-d7c1-4a94-8c1e-d6c9734101bb),
433     local
434 ]
435 interface nsIHttpHeaderVisitor : nsISupports
436 {
437     nsresult VisitHeader(const nsACString *aHeader, const nsACString *aValue);
438 }
439
440 [
441     object,
442     uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
443     local
444 ]
445 interface nsIHttpChannel : nsIChannel
446 {
447     nsresult GetRequestMethod(nsACString *aRequestMethod);
448     nsresult SetRequestMethod(const nsACString *aRequestMethod);
449     nsresult GetReferrer(nsIURI **aReferrer);
450     nsresult SetReferrer(nsIURI *aReferrer);
451     nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
452     nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
453     nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
454     nsresult GetAllowPipelining(PRBool *aAllowPipelining);
455     nsresult SetAllowPipelining(PRBool aAllowPipelining);
456     nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
457     nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
458     nsresult GetResponseStatus(PRUint32 *aResponseStatus);
459     nsresult GetResponseStatusText(nsACString *aResponseStatusText);
460     nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
461     nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
462     nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
463     nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
464     nsresult IsNoStoreResponse(PRBool *_retval);
465     nsresult IsNoCacheResponse(PRBool *_retval);
466 }
467
468 [
469     object,
470     uuid(91dbb42a-dffc-4f47-8b27-9579c0d92c3f),
471     local
472 ]
473 interface nsIHttpChannelInternal : nsISupports
474 {
475     nsresult GetDocumentURI(nsIURI **aDocumentURI);
476     nsresult SetDocumentURI(nsIURI *aDocumentURI);
477     nsresult GetRequestVersion(PRUint32 *major, PRUint32 *minor);
478     nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
479     nsresult SetCookie(const char *aCookieHeader);
480     nsresult SetupFallbackChannel(const char *aFallbackKey);
481     nsresult GetForceAllowThirdPartyCookie(PRBool *aForceAllowThirdPartyCookie);
482     nsresult SetForceAllowThirdPartyCookie(PRBool aForceAllowThirdPartyCookie);
483     nsresult GetCanceled(PRBool *aCanceled);
484 }
485
486 [
487     object,
488     uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
489     local
490 ]
491 interface nsIUploadChannel : nsISupports
492 {
493     nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
494                              PRInt32 aContentLength);
495     nsresult GetUploadStream(nsIInputStream **aUploadStream);
496 }
497
498 [
499     object,
500     uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
501     local
502 ]
503 interface nsIDOMCSSRule : nsISupports
504 {
505     nsresult GetType(PRUint16 *aType);
506     nsresult GetCssText(nsAString *aCssText);
507     nsresult SetCssText(const nsAString *aCssText);
508     nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
509     nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
510 }
511
512 [
513     object,
514     uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
515     local
516 ]
517 interface nsIDOMCSSStyleDeclaration : nsISupports
518 {
519     nsresult GetCssText(nsAString *aCssText);
520     nsresult SetCssText(const nsAString *aCssText);
521     nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
522     nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
523     nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
524     nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
525     nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
526                          const nsAString *priority);
527     nsresult GetLength(PRUint32 *aLength);
528     nsresult Item(PRUint32 index, nsAString *_retval);
529     nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
530 }
531
532 [
533     object,
534     uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
535     local
536 ]
537 interface nsIDOMCSSRuleList : nsISupports
538 {
539     nsresult GetLength(PRUint32 *aLength);
540     nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
541 }
542
543 [
544     object,
545     uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
546     local
547 ]
548 interface nsIDOMStyleSheet : nsISupports
549 {
550     nsresult GetType(nsAString *aType);
551     nsresult GetDisabled(PRBool *aDisabled);
552     nsresult SetDisabled(PRBool aDisabled);
553     nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
554     nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
555     nsresult GetHref(nsAString *aHref);
556     nsresult GetTitle(nsAString *aTitle);
557     nsresult GetMedia(nsIDOMMediaList **aMedia);
558 }
559
560 [
561     object,
562     uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
563     local
564 ]
565 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
566 {
567     nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
568     nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
569     nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
570     nsresult DeleteRule(PRUint32 index);
571 }
572
573 [
574     object,
575     uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
576     local
577 ]
578 interface nsIDOMStyleSheetList : nsISupports
579 {
580     nsresult GetLength(PRUint32 *aLength);
581     nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
582 }
583
584 [
585     object,
586     uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
587     local
588 ]
589 interface nsIDOMNodeList : nsISupports
590 {
591     nsresult Item(PRUint32 index, nsIDOMNode **_retval);
592     nsresult GetLength(PRUint32 *aLength);
593 }
594
595 [
596     object,
597     uuid(29fb2a18-1dd2-11b2-8dd9-a6fd5d5ad12f),
598     local
599 ]
600 interface nsIDOM3Node : nsISupports
601 {
602     enum NSDOCPOSITION {
603         DISCONNECTED = 1,
604         PRECEDING = 2,
605         FOLLOWING = 4,
606         CONTAINS = 8,
607         CONTAINED_BY = 16,
608         IMPLEMENTATION_SPECIFIC = 32
609     };
610
611     nsresult GetBaseURI(nsAString *aBaseURI);
612     nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
613     nsresult GetTextContent(nsAString *aTextContent);
614     nsresult SetTextContent(const nsAString *aTextContent);
615     nsresult IsSameNode(nsIDOMNode *other, PRBool *_retval);
616     nsresult LookupPrefix(const nsAString *namespaceURI, PRBool *_retval);
617     nsresult IsDefaultNamespace(const nsAString *namespaceURI, PRBool *_retval);
618     nsresult LookupNamespaceURI(const nsAString *prefix, nsAString _retval);
619     nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval);
620     nsresult GetFeature(const nsAString *feature, const nsAString *version, nsISupports **_retval);
621     nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
622     nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
623 }
624
625 [
626     object,
627     uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
628     local
629 ]
630 interface nsIDOMNode : nsISupports
631 {
632     enum NSNODETYPE {
633         ELEMENT_NODE = 1,
634         ATTRIBUTE_NODE = 2,
635         TEXT_NODE = 3,
636         CDATA_SELECTION_NODE = 4,
637         ENTITY_REFERENCE_NODE = 5,
638         ENTITY_NODE = 6,
639         PROCESSING_INSTRUCTION_NODE = 7,
640         COMMENT_NODE = 8,
641         DOCUMENT_NODE = 9,
642         DOCUMENT_TYPE_NODE = 10,
643         DOCUMENT_FRAGMENT_NODE = 11,
644         NOTATION_NODE = 12
645     };
646
647     nsresult GetNodeName(nsAString *aNodeName);
648     nsresult GetNodeValue(nsAString *aNodeValue);
649     nsresult SetNodeValue(const nsAString *aNodeValue);
650     nsresult GetNodeType(PRUint16 *aNodeType);
651     nsresult GetParentNode(nsIDOMNode **aParentNode);
652     nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
653     nsresult GetFirstChild(nsIDOMNode **aFirstChild);
654     nsresult GetLastChild(nsIDOMNode **aLastChild);
655     nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
656     nsresult GetNextSibling(nsIDOMNode **aNextSibling);
657     nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
658     nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
659     nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
660     nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
661     nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
662     nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
663     nsresult HasChildNodes(PRBool *_retval);
664     nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
665     nsresult Normalize();
666     nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
667     nsresult GetNamespaceURI(nsAString *aNamespaceURI);
668     nsresult GetPrefix(nsAString *aPrefix);
669     nsresult SetPrefix(const nsAString *aPrefix);
670     nsresult GetLocalName(nsAString *aLocalName);
671     nsresult HasAttributes(PRBool *_retval);
672 }
673
674 [
675     object,
676     uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
677     local
678 ]
679 interface nsIDOMElement : nsIDOMNode
680 {
681     nsresult GetTagName(nsAString *aTagName);
682     nsresult GetAttribute(const nsAString *name, nsAString *_retval);
683     nsresult SetAttribute(const nsAString *name, const nsAString *value);
684     nsresult RemoveAttribute(const nsAString *name);
685     nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
686     nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
687     nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
688     nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
689     nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
690                             nsAString *_retval);
691     nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
692                             const nsAString *value);
693     nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
694     nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
695                                 nsIDOMAttr **_retval);
696     nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
697     nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
698                                     nsIDOMNodeList **_retval);
699     nsresult HasAttribute(const nsAString *name, PRBool *_retval);
700     nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
701                             PRBool *_retval);
702 }
703
704 [
705     object,
706     uuid(99715845-95fc-4a56-aa53-214b65c26e22),
707     local
708 ]
709 interface nsIDOMElementCSSInlineStyle : nsISupports
710 {
711     nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
712 }
713
714 [
715     object,
716     uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
717     local
718 ]
719 interface nsIDOMClientRect : nsISupports
720 {
721     nsresult GetLeft(float *aLeft);
722     nsresult GetTop(float *aTop);
723     nsresult GetRight(float *aRight);
724     nsresult GetBottom(float *aBottom);
725     nsresult GetWidth(float *aWidth);
726     nsresult GetHeight(float *aHeight);
727 }
728
729 [
730     object,
731     uuid(d894b5d4-44f3-422a-a220-7763c12d4a94),
732     local
733 ]
734 interface nsIDOMNSElement : nsISupports
735 {
736     nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
737     nsresult GetClientRects(nsIDOMClientRectList **_retval);
738     nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
739     nsresult GetScrollTop(PRInt32 *aScrollTop);
740     nsresult SetScrollTop(PRInt32 aScrollTop);
741     nsresult GetScrollLeft(PRInt32 *aScrollLeft);
742     nsresult SetScrollLeft(PRInt32 aScrollLeft);
743     nsresult GetScrollHeight(PRInt32 *aScrollHeight);
744     nsresult GetScrollWidth(PRInt32 *aScrollWidth);
745     nsresult GetClientTop(PRInt32 *aClientTop);
746     nsresult GetClientLeft(PRInt32 *aClientLeft);
747     nsresult GetClientHeight(PRInt32 *aClientHeight);
748     nsresult GetClientWidth(PRInt32 *aClientWidth);
749     nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
750     nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
751     nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
752     nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
753     nsresult GetChildElementCount(PRUint32 *aChildElementCount);
754     nsresult GetChildren(nsIDOMNodeList **aChildren);
755     nsresult GetClassList(nsIDOMDOMTokenList **aClassList);
756     nsresult SetCapture(PRBool retargetToElement);
757     nsresult ReleaseCapture();
758     nsresult MozMatchesSelector(const nsAString *selector, PRBool *_retval);
759 }
760
761 cpp_quote("#undef GetClassName")
762
763 [
764     object,
765     uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
766     local
767 ]
768 interface nsIDOMHTMLElement : nsIDOMElement
769 {
770     nsresult GetId(nsAString *aId);
771     nsresult SetId(const nsAString *aId);
772     nsresult GetTitle(nsAString *aTitle);
773     nsresult SetTitle(const nsAString *aTitle);
774     nsresult GetLang(nsAString *aLang);
775     nsresult SetLang(const nsAString *aLang);
776     nsresult GetDir(nsAString *aDir);
777     nsresult SetDir(const nsAString *aDir);
778     nsresult GetClassName(nsAString *aClassName);
779     nsresult SetClassName(const nsAString *aClassName);
780 }
781
782 [
783     object,
784     uuid(f0ffe1d2-9615-492b-aae1-05428ebc2a70),
785     local
786 ]
787 interface nsIDOMNSHTMLElement : nsISupports
788 {
789     nsresult GetOffsetTop(PRInt32 *aOffsetTop);
790     nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
791     nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
792     nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
793     nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
794     nsresult GetInnerHTML(nsAString *aInnerHTML);
795     nsresult SetInnerHTML(const nsAString *aInnerHTML);
796     nsresult GetHidden(PRBool *aHidden);
797     nsresult SetHidden(PRBool aHidden);
798     nsresult GetTabIndex(PRInt32 *aTabIndex);
799     nsresult SetTabIndex(PRInt32 aTabIndex);
800     nsresult GetContentEditable(nsAString *aContentEditable);
801     nsresult SetContentEditable(const nsAString *aContentEditable);
802     nsresult GetIsContentEditable(PRBool *aIsContentEditable);
803     nsresult GetDraggable(PRBool *aDraggable);
804     nsresult SetDraggable(PRBool aDraggable);
805     nsresult Blur();
806     nsresult Focus();
807     nsresult ScrollIntoView(PRBool top, PRUint8 _argc);
808     nsresult GetSpellcheck(PRBool *aSpellcheck);
809     nsresult SetSpellcheck(PRBool aSpellcheck);
810 }
811
812 [
813     object,
814     uuid(a6cf9083-15b3-11d2-932e-00805f8add32),
815     local
816 ]
817 interface nsIDOMHTMLCollection : nsISupports
818 {
819     nsresult GetLength(PRUint32 *aLength);
820     nsresult Item(PRUint32 index, nsIDOMNode **_retval);
821     nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
822 }
823
824 [
825     object,
826     uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
827     local
828 ]
829 interface nsIDOMCharacterData : nsIDOMNode
830 {
831     nsresult GetData(nsAString *aData);
832     nsresult SetData(const nsAString *aData);
833     nsresult GetLength(PRUint32 *aLength);
834     nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
835     nsresult AppendData(const nsAString *arg);
836     nsresult InsertData(PRUint32 offset, const nsAString *arg);
837     nsresult DeleteData(PRUint32 offset, PRUint32 count);
838     nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
839 }
840
841 [
842     object,
843     uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
844     local
845 ]
846 interface nsIDOMText : nsIDOMCharacterData
847 {
848     nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
849 }
850
851 [
852     object,
853     uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
854     local
855 ]
856 interface nsIDOMComment : nsIDOMCharacterData
857 {
858 }
859
860 [
861     object,
862     uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
863     local
864 ]
865 interface nsIDOMDocumentFragment : nsIDOMNode
866 {
867 }
868
869 [
870     object,
871     uuid(f51ebade-8b1a-11d3-aae7-0010830123b4),
872     local
873 ]
874 interface nsIDOMAbstractView : nsISupports
875 {
876     nsresult GetDocument(nsIDOMDocumentView **aDocument);
877 }
878
879 [
880     object,
881     uuid(0b9341f3-95d4-4fa4-adcd-e119e0db2889),
882     local
883 ]
884 interface nsIDOMViewCSS : nsIDOMAbstractView
885 {
886     nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
887 }
888
889 [
890     object,
891     uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
892     local
893 ]
894 interface nsIDOMDocument : nsIDOMNode
895 {
896     nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
897     nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
898     nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
899     nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
900     nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
901     nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
902     nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
903     nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
904     nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
905                                          nsIDOMProcessingInstruction **_retval);
906     nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
907     nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
908     nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
909     nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
910     nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
911                              nsIDOMElement **_retval);
912     nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
913                                nsIDOMAttr **_retval);
914     nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
915                                     nsIDOMNodeList **_retval);
916     nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
917 }
918
919 [
920     object,
921     uuid(7485b35e-d215-42a0-8a67-896f86c8afd9),
922     local
923 ]
924 interface nsIDOMNSDocument : nsISupports
925 {
926     nsresult GetCharacterSet(nsAString *aCharacterSet);
927     nsresult GetDir(nsAString *aDir);
928     nsresult SetDir(const nsAString *aDir);
929     nsresult GetLocation(nsIDOMLocation **aLocation);
930     nsresult GetTitle(nsAString *aTitle);
931     nsresult SetTitle(const nsAString *aTitle);
932     nsresult GetContentType(nsAString *aContentType);
933     nsresult GetReadyState(nsAString *aReadyState);
934     nsresult GetLastModified(nsAString *aLastModified);
935     nsresult GetReferrer(nsAString *aReferrer);
936     nsresult HasFocus(PRBool *_retval);
937     nsresult GetActiveElement(nsIDOMElement **aActiveElement);
938     nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
939     nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
940     nsresult ReleaseCapture();
941     nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
942
943     /* Wine extensions */
944     nsresult WineAddObserver(nsIDocumentObserver *aObserver);
945     nsresult WineRemoveObserver(nsIDocumentObserver *aObserver);
946     nsresult WineAddScriptRunner(nsIRunnable *aRunnable);
947 }
948
949 [
950     object,
951     uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
952     local
953 ]
954 interface nsIDOMHTMLDocument : nsIDOMDocument
955 {
956     nsresult GetTitle(nsAString *aTitle);
957     nsresult SetTitle(const nsAString *aTitle);
958     nsresult GetReferrer(nsAString *aReferrer);
959     nsresult GetDomain(nsAString *aDomain);
960     nsresult GetURL(nsAString *aURL);
961     nsresult GetBody(nsIDOMHTMLElement **aBody);
962     nsresult SetBody(nsIDOMHTMLElement *aBody);
963     nsresult GetImages(nsIDOMHTMLCollection **aImages);
964     nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
965     nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
966     nsresult GetForms(nsIDOMHTMLCollection **aForms);
967     nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
968     nsresult GetCookie(nsAString *aCookie);
969     nsresult SetCookie(const nsAString *aCookie);
970     nsresult Open();
971     nsresult Close();
972     nsresult Write(const nsAString *text);
973     nsresult Writeln(const nsAString *text);
974     nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
975 }
976
977 [
978     object,
979     uuid(95cd5ad4-ae8a-4f0e-b168-35e03d5e0b9a),
980     local
981 ]
982 interface nsIDOMNSHTMLDocument : nsISupports
983 {
984     nsresult GetWidth(PRInt32 *aWidth);
985     nsresult GetHeight(PRInt32 *aHeight);
986     nsresult GetAlinkColor(nsAString *aAlinkColor);
987     nsresult SetAlinkColor(const nsAString *aAlinkColor);
988     nsresult GetLinkColor(nsAString *aLinkColor);
989     nsresult SetLinkColor(const nsAString *aLinkColor);
990     nsresult GetVlinkColor(nsAString *aVlinkColor);
991     nsresult SetVlinkColor(const nsAString *aVlinkColor);
992     nsresult GetBgColor(nsAString *aBgColor);
993     nsresult SetBgColor(const nsAString *aBgColor);
994     nsresult GetFgColor(nsAString *aFgColor);
995     nsresult SetFgColor(const nsAString *aFgColor);
996     nsresult GetDomain(nsAString *aDomain);
997     nsresult SetDomain(const nsAString *aDomain);
998     nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
999     nsresult GetSelection(nsAString *_retval);
1000     nsresult Open(nsACString *aContentType, PRBool aReplace, nsIDOMDocument **_retval);
1001     nsresult Clear();
1002     nsresult CaptureEvents(PRInt32 eventFlags);
1003     nsresult ReleaseEvents(PRInt32 eventFlags);
1004     nsresult RouteEvent(nsIDOMEvent *evt);
1005     nsresult GetCompatMode(nsAString *aCompatMode);
1006     nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1007     nsresult GetDesignMode(nsAString *aDesignMode);
1008     nsresult SetDesignMode(const nsAString *aDesignMode);
1009     nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
1010     nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
1011     nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
1012     nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
1013     nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
1014     nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
1015     nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
1016     nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1017     nsresult GetHead(nsIDOMHTMLHeadElement *_retval);
1018 }
1019
1020 [
1021     object,
1022     uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
1023     local
1024 ]
1025 interface nsIDOMDocumentStyle : nsISupports
1026 {
1027     nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1028 }
1029
1030 [
1031     object,
1032     uuid(1acdb2ba-1dd2-11b2-95bc-9542495d2569),
1033     local
1034 ]
1035 interface nsIDOMDocumentView : nsISupports
1036 {
1037     nsresult GetDefaultView(nsIDOMAbstractView **aDefaultView);
1038 }
1039
1040 [
1041     object,
1042     uuid(46b91d66-28e2-11d4-ab1e-0010830123b4),
1043     local
1044 ]
1045 interface nsIDOMDocumentEvent : nsISupports
1046 {
1047 cpp_quote("#undef CreateEvent")
1048     nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1049 }
1050
1051 [
1052     object,
1053     uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
1054     local
1055 ]
1056 interface nsIDOMRange : nsISupports
1057 {
1058     enum {
1059         NS_START_TO_START,
1060         NS_START_TO_END,
1061         NS_END_TO_END,
1062         NS_END_TO_START
1063     };
1064
1065     nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1066     nsresult GetStartOffset(PRInt32 *aStartOffset);
1067     nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1068     nsresult GetEndOffset(PRInt32 *aEndOffset);
1069     nsresult GetCollapsed(PRBool *aCollapsed);
1070     nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1071     nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1072     nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1073     nsresult SetStartBefore(nsIDOMNode *refNode);
1074     nsresult SetStartAfter(nsIDOMNode *refNode);
1075     nsresult SetEndBefore(nsIDOMNode *refNode);
1076     nsresult SetEndAfter(nsIDOMNode *refNode);
1077     nsresult Collapse(PRBool toStart);
1078     nsresult SelectNode(nsIDOMNode *refNode);
1079     nsresult SelectNodeContents(nsIDOMNode *refNode);
1080     nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1081     nsresult DeleteContents();
1082     nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1083     nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1084     nsresult InsertNode(nsIDOMNode *newNode);
1085     nsresult SurroundContents(nsIDOMNode *newParent);
1086     nsresult CloneRange(nsIDOMRange **_retval);
1087     nsresult ToString(nsAString *_retval);
1088     nsresult Detach();
1089 }
1090
1091 [
1092     object,
1093     uuid(fed93d11-f24d-41d8-ae55-4197927999bb),
1094     local
1095 ]
1096 interface nsIDOMNSRange : nsISupports
1097 {
1098     nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1099     nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1100     nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1101     nsresult GetClientRects(nsIDOMClientRectList **_retval);
1102     nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1103 }
1104
1105
1106 [
1107     object,
1108     uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1109     local
1110 ]
1111 interface nsIDOMDocumentRange : nsISupports
1112 {
1113     nsresult CreateRange(nsIDOMRange **_retval);
1114 }
1115
1116 [
1117     object,
1118     uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1119     local
1120 ]
1121 interface nsISelection : nsISupports
1122 {
1123     nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1124     nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1125     nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1126     nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1127     nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1128     nsresult GetRangeCount(PRInt32 *aRangeCount);
1129     nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1130     nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1131     nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1132     nsresult CollapseToStart();
1133     nsresult CollapseToEnd();
1134     nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1135     nsresult SelectAllChildren(nsIDOMNode *parentNode);
1136     nsresult AddRange(nsIDOMRange *range);
1137     nsresult RemoveRange(nsIDOMRange *range);
1138     nsresult RemoveAllRanges();
1139     nsresult DeleteFromDocument();
1140     nsresult SelectionLanguageChange(PRBool langRTL);
1141     nsresult ToString(PRUnichar **_retval);
1142 }
1143
1144 [
1145     object,
1146     uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1147     local
1148 ]
1149 interface nsIDOMWindowCollection : nsISupports
1150 {
1151     nsresult GetLength(PRUint32 *aLength);
1152     nsresult Item(PRUint32 index, nsIDOMWindow **_retval);
1153     nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1154 }
1155
1156 [
1157     object,
1158     uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1159     local
1160 ]
1161 interface nsIDOMWindow : nsISupports
1162 {
1163     nsresult GetDocument(nsIDOMDocument **aDocument);
1164     nsresult GetParent(nsIDOMWindow **aParent);
1165     nsresult GetTop(nsIDOMWindow **aTop);
1166     nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1167     nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1168     nsresult GetName(nsAString *aName);
1169     nsresult SetName(const nsAString *aName);
1170     nsresult GetTextZoom(float *aTextZoom);
1171     nsresult SetTextZoom(float aTextZoom);
1172     nsresult GetScrollX(PRInt32 *aScrollX);
1173     nsresult GetScrollY(PRInt32 *aScrollY);
1174     nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1175     nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1176     nsresult GetSelection(nsISelection **_retval);
1177     nsresult ScrollByLines(PRInt32 numLines);
1178     nsresult ScrollByPages(PRInt32 numPages);
1179     nsresult SizeToContent();
1180 }
1181
1182 [
1183     object,
1184     uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1185     local
1186 ]
1187 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1188 {
1189     nsresult GetALink(nsAString *aALink);
1190     nsresult SetALink(const nsAString *aALink);
1191     nsresult GetBackground(nsAString *aBackground);
1192     nsresult SetBackground(const nsAString *aBackground);
1193     nsresult GetBgColor(nsAString *aBgColor);
1194     nsresult SetBgColor(const nsAString *aBgColor);
1195     nsresult GetLink(nsAString *aLink);
1196     nsresult SetLink(const nsAString *aLink);
1197     nsresult GetText(nsAString *aText);
1198     nsresult SetText(const nsAString *aText);
1199     nsresult GetVLink(nsAString *aVLink);
1200     nsresult SetVLink(const nsAString *aVLink);
1201 }
1202
1203 [
1204     object,
1205     uuid(a6cf908f-15b3-11d2-932e-00805f8add32),
1206     local
1207 ]
1208 interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
1209 {
1210     nsresult GetElements(nsIDOMHTMLCollection **aElements);
1211     nsresult GetLength(PRInt32 *aLength);
1212     nsresult GetName(nsAString *aName);
1213     nsresult SetName(const nsAString *aName);
1214     nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1215     nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1216     nsresult GetAction(nsAString *aAction);
1217     nsresult SetAction(const nsAString *aAction);
1218     nsresult GetEnctype(nsAString *aEnctype);
1219     nsresult SetEnctype(const nsAString *aEnctype);
1220     nsresult GetMethod(nsAString *aMethod);
1221     nsresult SetMethod(const nsAString *aMethod);
1222     nsresult GetTarget(nsAString *aTarget);
1223     nsresult SetTarget(const nsAString *aTarget);
1224     nsresult Submit();
1225     nsresult Reset();
1226 }
1227
1228 [
1229     object,
1230     uuid(2480b6f0-094e-484f-8717-0c204ed23e69),
1231     local
1232 ]
1233 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1234 {
1235     nsresult GetAccept(nsAString *aAccept);
1236     nsresult SetAccept(const nsAString *aAccept);
1237     nsresult GetAlt(nsAString *aAlt);
1238     nsresult SetAlt(const nsAString *aAlt);
1239     nsresult GetAutofocus(PRBool *aAutofocus);
1240     nsresult SetAutofocus(PRBool aAutofocus);
1241     nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1242     nsresult SetDefaultChecked(PRBool aDefaultChecked);
1243     nsresult GetChecked(PRBool *aChecked);
1244     nsresult SetChecked(PRBool aChecked);
1245     nsresult GetDisabled(PRBool *aDisabled);
1246     nsresult SetDisabled(PRBool aDisabled);
1247     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1248     nsresult GetFiles(nsIDOMFileList **aFiles);
1249     nsresult GetIndeterminate(PRBool *aIndeterminate);
1250     nsresult SetIndeterminate(PRBool aIndeterminate);
1251     nsresult GetMaxLength(PRInt32 *aMaxLength);
1252     nsresult SetMaxLength(PRInt32 aMaxLength);
1253     nsresult GetMultiple(PRBool *aMultiple);
1254     nsresult SetMultiple(PRBool aMultiple);
1255     nsresult GetName(nsAString *aName);
1256     nsresult SetName(const nsAString *aName);
1257     nsresult GetPlaceholder(nsAString *aPlaceholder);
1258     nsresult SetPlaceholder(const nsAString *aPlaceholder);
1259     nsresult GetReadOnly(PRBool *aReadOnly);
1260     nsresult SetReadOnly(PRBool aReadOnly);
1261     nsresult GetAccessKey(nsAString *aAccessKey);
1262     nsresult SetAccessKey(const nsAString *aAccessKey);
1263     nsresult GetAlign(nsAString *aAlign);
1264     nsresult SetAlign(const nsAString *aAlign);
1265     nsresult GetSize(PRUint32 *aSize);
1266     nsresult SetSize(PRUint32 aSize);
1267     nsresult GetSrc(nsAString *aSrc);
1268     nsresult SetSrc(const nsAString *aSrc);
1269     nsresult GetType(nsAString *aType);
1270     nsresult SetType(const nsAString *aType);
1271     nsresult GetDefaultValue(nsAString *aDefaultValue);
1272     nsresult SetDefaultValue(const nsAString *aDefaultValue);
1273     nsresult GetValue(nsAString *aValue);
1274     nsresult SetValue(const nsAString *aValue);
1275     nsresult Select();
1276     nsresult GetSelectionStart(PRInt32 *aSelectionStart);
1277     nsresult SetSelectionStart(PRInt32 aSelectionStart);
1278     nsresult GetSelectionEnd(PRInt32 *aSelectionEnd);
1279     nsresult SetSelectionEnd(PRInt32 aSelectionEnd);
1280     nsresult SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd);
1281     nsresult GetTabIndex(PRInt32 *aTabIndex);
1282     nsresult SetTabIndex(PRInt32 aTabIndex);
1283     nsresult GetUseMap(nsAString *aUseMap);
1284     nsresult SetUseMap(const nsAString *aUseMap);
1285     nsresult GetControllers(nsIControllers **aControllers);
1286     nsresult GetTextLength(PRInt32 *aTextLength);
1287     nsresult MozGetFileNameArray(PRUint32 *aLength, PRUnichar ***aFileNames);
1288     nsresult MozSetFileNameArray(const PRUnichar **aFileNames, PRUint32 aLength);
1289     nsresult MozIsTextField(PRBool aExcludePassword, PRBool *_retval);
1290     nsresult Blur();
1291     nsresult Focus();
1292     nsresult Click();
1293 }
1294
1295 [
1296     object,
1297     uuid(611d00f5-1eb8-4571-b995-2a2019d2d11c),
1298     local
1299 ]
1300 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1301 {
1302     nsresult GetDisabled(PRBool *aDisabled);
1303     nsresult SetDisabled(PRBool aDisabled);
1304     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1305     nsresult GetLabel(nsAString *aLabel);
1306     nsresult SetLabel(const nsAString *aLabel);
1307     nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1308     nsresult SetDefaultSelected(PRBool aDefaultSelected);
1309     nsresult GetSelected(PRBool *aSelected);
1310     nsresult SetSelected(PRBool aSelected);
1311     nsresult GetValue(nsAString *aValue);
1312     nsresult SetValue(const nsAString *aValue);
1313     nsresult GetText(nsAString *aText);
1314     nsresult SetText(const nsAString *aText);
1315     nsresult GetIndex(PRInt32 *aIndex);
1316 }
1317
1318 [
1319     object,
1320     uuid(bce0213c-f70f-488f-b93f-688acca55d63),
1321     local
1322 ]
1323 interface nsIDOMHTMLOptionsCollection : nsISupports
1324 {
1325     nsresult GetLength(PRUint32 *aLength);
1326     nsresult SetLength(PRUint32 aLength);
1327     nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1328     nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1329 }
1330
1331 [
1332     object,
1333     uuid(110a4b15-e0a2-48d7-8e59-d8d94ef510ad),
1334     local
1335 ]
1336 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1337 {
1338     nsresult GetAutofocus(PRBool *aAutofocus);
1339     nsresult SetAutofocus(PRBool aAutofocus);
1340     nsresult GetDisabled(PRBool *aDisabled);
1341     nsresult SetDisabled(PRBool aDisabled);
1342     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1343     nsresult GetMultiple(PRBool *aMultiple);
1344     nsresult SetMultiple(PRBool aMultiple);
1345     nsresult GetName(nsAString *aName);
1346     nsresult SetName(const nsAString *aName);
1347     nsresult GetSize(PRInt32 *aSize);
1348     nsresult SetSize(PRInt32 aSize);
1349     nsresult GetType(nsAString *aType);
1350     nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1351     nsresult GetLength(PRUint32 *aLength);
1352     nsresult SetLength(PRUint32 aLength);
1353     nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1354     nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1355     nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1356     nsresult Remove(PRInt32 index);
1357     nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1358     nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1359     nsresult GetValue(nsAString *aValue);
1360     nsresult SetValue(const nsAString *aValue);
1361     nsresult GetTabIndex(PRInt32 *aTabIndex);
1362     nsresult SetTabIndex(PRInt32 aTabIndex);
1363     nsresult Blur();
1364     nsresult Focus();
1365 }
1366
1367 [
1368     object,
1369     uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1370     local
1371 ]
1372 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1373 {
1374     nsresult GetDefaultValue(nsAString *aDefaultValue);
1375     nsresult SetDefaultValue(const nsAString *aDefaultValue);
1376     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1377     nsresult GetAccessKey(nsAString *aAccessKey);
1378     nsresult SetAccessKey(const nsAString *aAccessKey);
1379     nsresult GetCols(PRInt32 *aCols);
1380     nsresult SetCols(PRInt32 aCols);
1381     nsresult GetDisabled(PRBool *aDisabled);
1382     nsresult SetDisabled(PRBool aDisabled);
1383     nsresult GetName(nsAString *aName);
1384     nsresult SetName(const nsAString *aName);
1385     nsresult GetReadOnly(PRBool *aReadOnly);
1386     nsresult SetReadOnly(PRBool aReadOnly);
1387     nsresult GetRows(PRInt32 *aRows);
1388     nsresult SetRows(PRInt32 aRows);
1389     nsresult GetTabIndex(PRInt32 *aTabIndex);
1390     nsresult SetTabIndex(PRInt32 aTabIndex);
1391     nsresult GetType(nsAString *aType);
1392     nsresult GetValue(nsAString *aValue);
1393     nsresult SetValue(const nsAString *aValue);
1394     nsresult Blur();
1395     nsresult Focus();
1396     nsresult Select();
1397 }
1398
1399 [
1400     object,
1401     uuid(4af8568c-375c-42fd-a82f-b25a7c03fc3e),
1402     local
1403 ]
1404 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1405 {
1406     nsresult GetSrc(nsAString *aSrc);
1407     nsresult SetSrc(const nsAString *aSrc);
1408     nsresult GetAsync(PRBool *aAsync);
1409     nsresult SetAsync(PRBool aAsync);
1410     nsresult GetDefer(PRBool *aDefer);
1411     nsresult SetDefer(PRBool aDefer);
1412     nsresult GetType(nsAString *aType);
1413     nsresult SetType(const nsAString *aType);
1414     nsresult GetCharset(nsAString *aCharset);
1415     nsresult SetCharset(const nsAString *aCharset);
1416     nsresult GetText(nsAString *aText);
1417     nsresult SetText(const nsAString *aText);
1418     nsresult GetHtmlFor(nsAString *aHtmlFor);
1419     nsresult SetHtmlFor(const nsAString *aHtmlFor);
1420     nsresult GetEvent(nsAString *aEvent);
1421     nsresult SetEvent(const nsAString *aEvent);
1422 }
1423
1424 [
1425     object,
1426     uuid(3fc9c313-49b9-4315-b39f-7166cf362e10),
1427     local
1428 ]
1429 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1430 {
1431     nsresult GetAlt(nsAString *aAlt);
1432     nsresult SetAlt(const nsAString *aAlt);
1433     nsresult GetSrc(nsAString *aSrc);
1434     nsresult SetSrc(const nsAString *aSrc);
1435     nsresult GetUseMap(nsAString *aUseMap);
1436     nsresult SetUseMap(const nsAString *aUseMap);
1437     nsresult GetIsMap(PRBool *aIsMap);
1438     nsresult SetIsMap(PRBool aIsMap);
1439     nsresult GetWidth(PRInt32 *aWidth);
1440     nsresult SetWidth(PRInt32 aWidth);
1441     nsresult GetHeight(PRInt32 *aHeight);
1442     nsresult SetHeight(PRInt32 aHeight);
1443     nsresult GetNaturalWidth(PRInt32 *aNaturalWidth);
1444     nsresult GetNaturalHeight(PRInt32 *aNaturalHeight);
1445     nsresult GetComplete(PRBool *aComplete);
1446     nsresult GetName(nsAString *aName);
1447     nsresult SetName(const nsAString *aName);
1448     nsresult GetAlign(nsAString *aAlign);
1449     nsresult SetAlign(const nsAString *aAlign);
1450     nsresult GetBorder(nsAString *aBorder);
1451     nsresult SetBorder(const nsAString *aBorder);
1452     nsresult GetHspace(PRInt32 *aHspace);
1453     nsresult SetHspace(PRInt32 aHspace);
1454     nsresult GetLongDesc(nsAString *aLongDesc);
1455     nsresult SetLongDesc(const nsAString *aLongDesc);
1456     nsresult GetVspace(PRInt32 *aVspace);
1457     nsresult SetVspace(PRInt32 aVspace);
1458     nsresult GetLowsrc(nsAString *aLowsrc);
1459     nsresult SetLowsrc(const nsAString *aLowsrc);
1460     nsresult GetX(PRInt32 *aX);
1461     nsresult GetY(PRInt32 *aY);
1462 }
1463
1464 [
1465     object,
1466     uuid(4e237175-3628-4dc8-892f-5270edc3c71a),
1467     local
1468 ]
1469 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1470 {
1471     nsresult GetHref(nsAString *aHref);
1472     nsresult SetHref(const nsAString *aHref);
1473     nsresult GetTarget(nsAString *aTarget);
1474     nsresult SetTarget(const nsAString *aTarget);
1475     nsresult GetPing(nsAString *aPing);
1476     nsresult SetPing(const nsAString *aPing);
1477     nsresult GetRel(nsAString *aRel);
1478     nsresult SetRel(const nsAString *aRel);
1479     nsresult GetHreflang(nsAString *aHreflang);
1480     nsresult SetHreflang(const nsAString *aHreflang);
1481     nsresult GetType(nsAString *aType);
1482     nsresult SetType(const nsAString *aType);
1483     nsresult GetText(nsAString *aText);
1484     nsresult SetText(const nsAString *aText);
1485     nsresult GetProtocol(nsAString *aProtocol);
1486     nsresult SetProtocol(const nsAString *aProtocol);
1487     nsresult GetHost(nsAString *aHost);
1488     nsresult SetHost(const nsAString *aHost);
1489     nsresult GetHostname(nsAString *aHostname);
1490     nsresult SetHostname(const nsAString *aHostname);
1491     nsresult GetPort(nsAString *aPort);
1492     nsresult SetPort(const nsAString *aPort);
1493     nsresult GetPathname(nsAString *aPathname);
1494     nsresult SetPathname(const nsAString *aPathname);
1495     nsresult GetSearch(nsAString *aSearch);
1496     nsresult SetSearch(const nsAString *aSearch);
1497     nsresult GetHash(nsAString *aHash);
1498     nsresult SetHash(const nsAString *aHash);
1499     nsresult GetAccessKey(nsAString *aAccessKey);
1500     nsresult SetAccessKey(const nsAString *aAccessKey);
1501     nsresult GetCharset(nsAString *aCharset);
1502     nsresult SetCharset(const nsAString *aCharset);
1503     nsresult GetCoords(nsAString *aCoords);
1504     nsresult SetCoords(const nsAString *aCoords);
1505     nsresult GetName(nsAString *aName);
1506     nsresult SetName(const nsAString *aName);
1507     nsresult GetRev(nsAString *aRev);
1508     nsresult SetRev(const nsAString *aRev);
1509     nsresult GetShape(nsAString *aShape);
1510     nsresult SetShape(const nsAString *aShape);
1511     nsresult GetTabIndex(PRInt32 *aTabIndex);
1512     nsresult SetTabIndex(PRInt32 aTabIndex);
1513     nsresult ToString(nsAString *_retval);
1514     nsresult Blur();
1515     nsresult Focus();
1516 }
1517
1518 [
1519     object,
1520     uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
1521     local
1522 ]
1523 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1524 {
1525     nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1526     nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1527     nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1528     nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1529     nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1530     nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1531     nsresult GetRows(nsIDOMHTMLCollection **aRows);
1532     nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1533     nsresult GetAlign(nsAString *aAlign);
1534     nsresult SetAlign(const nsAString *aAlign);
1535     nsresult GetBgColor(nsAString *aBgColor);
1536     nsresult SetBgColor(const nsAString *aBgColor);
1537     nsresult GetBorder(nsAString *aBorder);
1538     nsresult SetBorder(const nsAString *aBorder);
1539     nsresult GetCellPadding(nsAString *aCellPadding);
1540     nsresult SetCellPadding(const nsAString *aCellPadding);
1541     nsresult GetCellSpacing(nsAString *aCellSpacing);
1542     nsresult SetCellSpacing(const nsAString *aCellSpacing);
1543     nsresult GetFrame(nsAString *aFrame);
1544     nsresult SetFrame(const nsAString *aFrame);
1545     nsresult GetRules(nsAString *aRules);
1546     nsresult SetRules(const nsAString *aRules);
1547     nsresult GetSummary(nsAString *aSummary);
1548     nsresult SetSummary(const nsAString *aSummary);
1549     nsresult GetWidth(nsAString *aWidth);
1550     nsresult SetWidth(const nsAString *aWidth);
1551     nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1552     nsresult DeleteTHead();
1553     nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1554     nsresult DeleteTFoot();
1555     nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1556     nsresult DeleteCaption();
1557     nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1558     nsresult DeleteRow(PRInt32 index);
1559 }
1560
1561 [
1562     object,
1563     uuid(a6cf90b6-15b3-11d2-932e-00805f8add32),
1564     local
1565 ]
1566 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1567 {
1568     nsresult GetRowIndex(PRInt32 *aRowIndex);
1569     nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1570     nsresult GetCells(nsIDOMHTMLCollection **aCells);
1571     nsresult GetAlign(nsAString *aAlign);
1572     nsresult SetAlign(const nsAString *aAlign);
1573     nsresult GetBgColor(nsAString *aBgColor);
1574     nsresult SetBgColor(const nsAString *aBgColor);
1575     nsresult GetCh(nsAString *aCh);
1576     nsresult SetCh(const nsAString *aCh);
1577     nsresult GetChOff(nsAString *aChOff);
1578     nsresult SetChOff(const nsAString *aChOff);
1579     nsresult GetVAlign(nsAString *aVAlign);
1580     nsresult SetVAlign(const nsAString *aVAlign);
1581     nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1582     nsresult DeleteCell(PRInt32 index);
1583 }
1584
1585 [
1586     object,
1587     uuid(a6cf90ba-15b3-11d2-932e-00805f8add32),
1588     local
1589 ]
1590 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1591 {
1592     nsresult GetAlign(nsAString *aAlign);
1593     nsresult SetAlign(const nsAString *aAlign);
1594     nsresult GetFrameBorder(nsAString *aFrameBorder);
1595     nsresult SetFrameBorder(const nsAString *aFrameBorder);
1596     nsresult GetHeight(nsAString *aHeight);
1597     nsresult SetHeight(const nsAString *aHeight);
1598     nsresult GetLongDesc(nsAString *aLongDesc);
1599     nsresult SetLongDesc(const nsAString *aLongDesc);
1600     nsresult GetMarginHeight(nsAString *aMarginHeight);
1601     nsresult SetMarginHeight(const nsAString *aMarginHeight);
1602     nsresult GetMarginWidth(nsAString *aMarginWidth);
1603     nsresult SetMarginWidth(const nsAString *aMarginWidth);
1604     nsresult GetName(nsAString *aName);
1605     nsresult SetName(const nsAString *aName);
1606     nsresult GetScrolling(nsAString *aScrolling);
1607     nsresult SetScrolling(const nsAString *aScrolling);
1608     nsresult GetSrc(nsAString *aSrc);
1609     nsresult SetSrc(const nsAString *aSrc);
1610     nsresult GetWidth(nsAString *aWidth);
1611     nsresult SetWidth(const nsAString *aWidth);
1612     nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1613 }
1614
1615 [
1616     object,
1617     uuid(a6cf90b9-15b3-11d2-932e-00805f8add32),
1618     local
1619 ]
1620 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
1621 {
1622     nsresult GetFrameBorder(nsAString *aFrameBorder);
1623     nsresult SetFrameBorder(const nsAString *aFrameBorder);
1624     nsresult GetLongDesc(nsAString *aLongDesc);
1625     nsresult SetLongDesc(const nsAString *aLongDesc);
1626     nsresult GetMarginHeight(nsAString *aMarginHeight);
1627     nsresult SetMarginHeight(const nsAString *aMarginHeight);
1628     nsresult GetMarginWidth(nsAString *aMarginWidth);
1629     nsresult SetMarginWidth(const nsAString *aMarginWidth);
1630     nsresult GetName(nsAString *aName);
1631     nsresult SetName(const nsAString *aName);
1632     nsresult GetNoResize(PRBool *aNoResize);
1633     nsresult SetNoResize(PRBool aNoResize);
1634     nsresult GetScrolling(nsAString *aScrolling);
1635     nsresult SetScrolling(const nsAString *aScrolling);
1636     nsresult GetSrc(nsAString *aSrc);
1637     nsresult SetSrc(const nsAString *aSrc);
1638     nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1639 }
1640
1641 [
1642     object,
1643     uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1644     local
1645 ]
1646 interface nsIURIContentListener : nsISupports
1647 {
1648     nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1649     nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1650         nsIStreamListener **aContentHandler, PRBool *_retval);
1651     nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1652     nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1653         char **aDesiredContentType, PRBool *_retval);
1654     nsresult GetLoadCookie(nsISupports **aLoadCookie);
1655     nsresult SetLoadCookie(nsISupports *aLoadCookie);
1656     nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1657     nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1658 }
1659
1660 [
1661     object,
1662     uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1663     local
1664 ]
1665 interface nsITooltipListener : nsISupports
1666 {
1667     nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1668     nsresult OnHideTooltip();
1669 }
1670
1671 [
1672     object,
1673     uuid(33e9d001-caab-4ba9-8961-54902f197202),
1674     local
1675 ]
1676 interface nsIWebBrowser : nsISupports
1677 {
1678     nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1679     nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1680     nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1681     nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1682     nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1683     nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1684     nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1685     nsresult GetIsActive(PRBool *aIsActive);
1686     nsresult SetIsActive(PRBool aIsActive);
1687 }
1688
1689 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT  2")
1690 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1691
1692 [
1693     object,
1694     uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1695     local
1696 ]
1697 interface nsIWebBrowserSetup : nsISupports
1698 {
1699     nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1700 }
1701
1702 typedef void* nativeWindow;
1703
1704 [
1705     object,
1706     uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1707     local
1708 ]
1709 interface nsIBaseWindow : nsISupports
1710 {
1711     nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1712             PRInt32 y, PRInt32 cx, PRInt32 cy);
1713     nsresult Create();
1714     nsresult Destroy();
1715     nsresult SetPosition(PRInt32 x, PRInt32 y);
1716     nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1717     nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1718     nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1719     nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1720     nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1721     nsresult Repaint(PRBool force);
1722     nsresult GetParentWidget(nsIWidget **aParentWidget); 
1723     nsresult SetParentWidget(nsIWidget *aParentWidget);
1724     nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1725     nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1726     nsresult GetVisibility(PRBool *aVisibility);
1727     nsresult SetVisibility(PRBool aVisibility);
1728     nsresult GetEnabled(PRBool *aEnabled);
1729     nsresult SetEnabled(PRBool aEnabled);
1730     nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1731     nsresult SetBlurSuppression(PRBool aBlurSuppression);
1732     nsresult GetMainWidget(nsIWidget **aMainWidget);
1733     nsresult SetFocus();
1734     nsresult GetTitle(PRUnichar **aTitle);
1735     nsresult SetTitle(const PRUnichar *aTitle);
1736 }
1737
1738 cpp_quote("#define LOAD_FLAGS_NONE           0x00000")
1739 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x80000")
1740
1741 [
1742     object,
1743     uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1744     local
1745 ]
1746 interface nsIWebNavigation : nsISupports
1747 {
1748     nsresult GetCanGoBack(PRBool *aCanGoBack);
1749     nsresult GetCanGoForward(PRBool *aCanGoForward);
1750     nsresult GoBack();
1751     nsresult GoForward();
1752     nsresult GotoIndex(PRInt32 index);
1753     nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1754             nsIInputStream *aPostData, nsIInputStream *aHeaders);
1755     nsresult Reload(PRUint32 aReloadFlags);
1756     nsresult Stop(PRUint32 aStopFlags);
1757     nsresult GetDocument(nsIDOMDocument **aDocument);
1758     nsresult GetCurrentURI(nsIURI **aCurrentURI);
1759     nsresult GetReferringURI(nsIURI **aReferringURI);
1760     nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1761     nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1762 }
1763
1764 [
1765     object,
1766     uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
1767     local
1768 ]
1769 interface nsIWebProgress : nsISupports
1770 {
1771     nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
1772     nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
1773     nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
1774     nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
1775 }
1776
1777 [
1778     object,
1779     uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1780     local
1781 ]
1782 interface nsIPrintSettings : nsISupports
1783 {
1784     typedef struct { char dummy; } nsIntMargin;
1785
1786     nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1787     nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1788     nsresult GetPrintOptionsBits(PRInt32 *_retval);
1789     nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1790     nsresult Clone(nsIPrintSettings **_retval);
1791     nsresult Assign(nsIPrintSettings *aPS);
1792     nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1793     nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1794     nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1795     nsresult SetStartPageRange(PRInt32 aStartPageRange);
1796     nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1797     nsresult SetEndPageRange(PRInt32 aEndPageRange);
1798     nsresult GetEdgeTop(double *aEdgeTop);
1799     nsresult SetEdgeTop(double aEdgeTop);
1800     nsresult GetEdgeLeft(double *aEdgeLeft);
1801     nsresult SetEdgeLeft(double aEdgeLeft);
1802     nsresult GetEdgeBottom(double *aEdgeBottom);
1803     nsresult SetEdgeBottom(double aEdgeBottom);
1804     nsresult GetEdgeRight(double *aEdgeRight);
1805     nsresult SetEdgeRight(double aEdgeRight);
1806     nsresult GetMarginTop(double *aMarginTop);
1807     nsresult SetMarginTop(double aMarginTop);
1808     nsresult GetMarginLeft(double *aMarginLeft);
1809     nsresult SetMarginLeft(double aMarginLeft);
1810     nsresult GetMarginBottom(double *aMarginBottom);
1811     nsresult SetMarginBottom(double aMarginBottom);
1812     nsresult GetMarginRight(double *aMarginRight);
1813     nsresult SetMarginRight(double aMarginRight);
1814     nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1815     nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1816     nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1817     nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1818     nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1819     nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1820     nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1821     nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1822     nsresult GetScaling(double *aScaling);
1823     nsresult SetScaling(double aScaling);
1824     nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1825     nsresult SetPrintBGColors(PRBool aPrintBGColors);
1826     nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1827     nsresult SetPrintBGImages(PRBool aPrintBGImages);
1828     nsresult GetPrintRange(PRInt16 *aPrintRange);
1829     nsresult SetPrintRange(PRInt16 aPrintRange);
1830     nsresult GetTitle(PRUnichar **aTitle);
1831     nsresult SetTitle(const PRUnichar *aTitle);
1832     nsresult GetDocURL(PRUnichar **aDocURL);
1833     nsresult SetDocURL(const PRUnichar *aDocURL);
1834     nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1835     nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1836     nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1837     nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1838     nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1839     nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1840     nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1841     nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1842     nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1843     nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1844     nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1845     nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1846     nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1847     nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1848     nsresult GetIsCancelled(PRBool *aIsCancelled);
1849     nsresult SetIsCancelled(PRBool aIsCancelled);
1850     nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1851     nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1852     nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1853     nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1854     nsresult GetPrintSilent(PRBool *aPrintSilent);
1855     nsresult SetPrintSilent(PRBool aPrintSilent);
1856     nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1857     nsresult SetShrinkToFit(PRBool aShrinkToFit);
1858     nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1859     nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1860     nsresult GetPaperName(PRUnichar **aPaperName);
1861     nsresult SetPaperName(const PRUnichar *aPaperName);
1862     nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1863     nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1864     nsresult GetPaperData(PRInt16 *aPaperData);
1865     nsresult SetPaperData(PRInt16 aPaperData);
1866     nsresult GetPaperWidth(double *aPaperWidth);
1867     nsresult SetPaperWidth(double aPaperWidth);
1868     nsresult GetPaperHeight(double *aPaperHeight);
1869     nsresult SetPaperHeight(double aPaperHeight);
1870     nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1871     nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1872     nsresult GetPlexName(PRUnichar **aPlexName);
1873     nsresult SetPlexName(const PRUnichar *aPlexName);
1874     nsresult GetColorspace(PRUnichar **aColorspace);
1875     nsresult SetColorspace(const PRUnichar *aColorspace);
1876     nsresult GetResolutionName(PRUnichar **aResolutionName);
1877     nsresult SetResolutionName(const PRUnichar aResolutionName);
1878     nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1879     nsresult SetDownloadFonts(PRBool aDownloadFonts);
1880     nsresult GetPrintReversed(PRBool *aPrintReversed);
1881     nsresult SetPrintReversed(PRBool aPrintReversed);
1882     nsresult GetPrintInColor(PRBool *aPrintInColor);
1883     nsresult SetPrintInColor(PRBool aPrintInColor);
1884     nsresult GetOrientation(PRInt32 *aOrientation);
1885     nsresult SetOrientation(PRInt32 aOrientation);
1886     nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1887     nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1888     nsresult GetNumCopies(PRInt32 *aNumCopies);
1889     nsresult SetNumCopies(PRInt32 aNumCopies);
1890     nsresult GetPrinterName(PRUnichar **aPrinterName);
1891     nsresult SetPrinterName(const PRUnichar *aPrinterName);
1892     nsresult GetPrintToFile(PRBool *aPrintToFile);
1893     nsresult SetPrintToFile(PRBool aPrintToFile);
1894     nsresult GetToFileName(PRUnichar **aToFileName);
1895     nsresult SetToFileName(const PRUnichar *aToFileName);
1896     nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1897     nsresult SetOutputFormat(PRInt16 aOutputFormat);
1898     nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1899     nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1900     nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1901     nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1902     nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1903     nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1904     nsresult SetMarginInTwips(nsIntMargin *aMargin);
1905     nsresult SetEdgeInTwips(nsIntMargin *aEdge);
1906     nsresult GetMarginInTwips(nsIntMargin *aMargin);
1907     nsresult GetEdgeInTwips(nsIntMargin *aEdge);
1908     nsresult SetupSilentPrinting();
1909     nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1910     nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1911 }
1912
1913 [
1914     object,
1915     uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1916     local
1917 ]
1918 interface nsIWebBrowserPrint : nsISupports
1919 {
1920     nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1921     nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1922     nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1923     nsresult GetDoingPrint(PRBool *aDoingPrint);
1924     nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1925     nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1926     nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1927     nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1928     nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1929     nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1930     nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1931     nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1932                           nsIWebProgressListener *aWPListener);
1933     nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1934     nsresult Cancel();
1935     nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1936     nsresult ExitPrintPreview();
1937 }
1938
1939 [
1940     object,
1941     uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1942     local
1943 ]
1944 interface nsIScrollable : nsISupports
1945 {
1946     enum {
1947         ScrollOrientation_X = 1,
1948         ScrollOrientation_Y = 2
1949     };
1950
1951     enum {
1952         Scrollbar_Auto   = 1,
1953         Scrollbar_Never  = 2,
1954         Scrollbar_Always = 3
1955     };
1956
1957     nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1958     nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1959     nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1960     nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1961     nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1962     nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1963             PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1964     nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1965     nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1966     nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1967 }
1968
1969 [
1970     object,
1971     uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1972     local
1973 ]
1974 interface nsIFile : nsISupports
1975 {
1976     nsresult Append(const nsAString *node);
1977     nsresult AppendNative(const nsAString *node);
1978     nsresult Normalize();
1979     nsresult Create(PRUint32 type, PRUint32 permission);
1980     nsresult GetLeafName(nsAString *aLeafName);
1981     nsresult SetLeafName(const nsAString *aLeafName);
1982     nsresult GetNativeLeafName(nsAString *aLeafName);
1983     nsresult SetNativeLeafName(const nsAString *aLeafName);
1984     nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1985     nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1986     nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1987     nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1988     nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1989     nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1990     nsresult Remove(PRBool recursive);
1991     nsresult GetPermissions(PRUint32 *aPermissions);
1992     nsresult SetPermissions(PRUint32 pPermissions);
1993     nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1994     nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1995     nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1996     nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1997     nsresult GetLastModifiedTimeOfLink(PRInt64 *aLastModifiedTimeOfLink);
1998     nsresult SetLastModifiedTimeOfLink(PRInt64 aLastModifiedTimeOfLink);
1999     nsresult GetFileSize(PRInt64 *aFileSize);
2000     nsresult SetFileSize(PRInt64 aFileSize);
2001     nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
2002     nsresult GetTarget(nsAString *aTarget);
2003     nsresult GetNativeTarget(nsACString *aNativeTarget);
2004     nsresult GetPath(nsAString *aPath);
2005     nsresult GetNativePath(nsACString *aNativePath);
2006     nsresult Exists(PRBool *_retval);
2007     nsresult IsWritable(PRBool *_retval);
2008     nsresult IsReadable(PRBool *_retval);
2009     nsresult IsExecutable(PRBool *_retval);
2010     nsresult IsHidden(PRBool *_retval);
2011     nsresult IsDirectory(PRBool *_retval);
2012     nsresult IsFile(PRBool *_retval);
2013     nsresult IsSymlink(PRBool *_retval);
2014     nsresult IsSpecial(PRBool *_retval);
2015     nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2016     nsresult Clone(nsIFile **_retval);
2017     nsresult Equals(nsIFile *inFile, PRBool *_retval);
2018     nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
2019     nsresult GetParent(nsIFile **aParent);
2020     nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2021 }
2022
2023 [
2024     object,
2025     uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
2026     local
2027 ]
2028 interface nsIPrefBranch : nsISupports
2029 {
2030     nsresult GetRoot(char **aRoot);
2031     nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2032     nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
2033     nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
2034     nsresult GetCharPref(const char *aPrefName, char **_retval);
2035     nsresult SetCharPref(const char *aPrefName, const char *aValue);
2036     nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2037     nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2038     nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2039     nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2040     nsresult ClearUserPref(const char *aPrefName);
2041     nsresult LockPref(const char *aPrefName);
2042     nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
2043     nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
2044     nsresult UnlockPref(const char *aPrefName);
2045     nsresult DeleteBranch(const char *aStartingAt);
2046     nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2047     nsresult ResetBranch(const char *aStartingAt);
2048 }
2049
2050 [
2051     object,
2052     uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2053     local
2054 ]
2055 interface nsIDirectoryServiceProvider : nsISupports
2056 {
2057     nsresult GetFile(const char *prop, PRBool *persistent, nsIFile **_retval);
2058 }
2059
2060 [
2061     object,
2062     uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2063     local
2064 ]
2065 interface nsIProtocolHandler : nsISupports
2066 {
2067     nsresult GetScheme(nsACString *aScheme);
2068     nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2069     nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2070     nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2071                     nsIURI *aBaseURI, nsIURI **_retval);
2072     nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2073     nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
2074 }
2075
2076 [
2077     object,
2078     uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2079     local
2080 ]
2081 interface nsIExternalProtocolHandler : nsIProtocolHandler
2082 {
2083     nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
2084 }
2085
2086 [
2087     object,
2088     uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2089     local
2090 ]
2091 interface nsIIOService : nsISupports
2092 {
2093     nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2094     nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2095     nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2096                     nsIURI **_retval);
2097     nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2098     nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2099     nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2100                         nsIChannel **_retval);
2101     nsresult GetOffline(PRBool *aOffline);
2102     nsresult SetOffline(PRBool aOffline);
2103     nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
2104     nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
2105 }
2106
2107 [
2108     object,
2109     uuid(ca68c485-9db3-4c12-82a6-4fab7948e2d5),
2110     local,
2111 ]
2112 interface nsINetUtil : nsISupports
2113 {
2114     nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2115             PRBool *aHadCharset, nsACString *_retval);
2116     nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
2117     nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
2118     nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2119     nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
2120     nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2121     nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2122     nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2123     nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2124             PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
2125 }
2126
2127 [
2128     object,
2129     uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2130     local
2131 ]
2132 interface nsIWebBrowserFocus : nsISupports
2133 {
2134     nsresult Activate();
2135     nsresult Deactivate();
2136     nsresult SetFocusAtFirstElement();
2137     nsresult SetFocusAtLastElement();
2138     nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2139     nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2140     nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2141     nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2142 }
2143
2144 [
2145     object,
2146     uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2147     local
2148 ]
2149 interface nsIWebBrowserChrome : nsISupports
2150 {
2151     nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2152     nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2153     nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2154     nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2155     nsresult SetChromeFlags(PRUint32 aChromeFlags);
2156     nsresult DestroyBrowserWindow();
2157     nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2158     nsresult ShowAsModal();
2159     nsresult IsWindowModal(PRBool *_retval);
2160     nsresult ExitModalEventLoop(nsresult aStatus);
2161 }
2162
2163 [
2164     object,
2165     uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2166     local
2167 ]
2168 interface nsIDOMEventListener : nsISupports
2169 {
2170     nsresult HandleEvent(nsIDOMEvent *event);
2171 }
2172
2173 [
2174     object,
2175     uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
2176     local
2177 ]
2178 interface nsIDOMEventTarget : nsISupports
2179 {
2180     nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2181     nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2182     nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
2183 }
2184
2185 [
2186     object,
2187     uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
2188     local
2189 ]
2190 interface nsIDOMEvent : nsISupports
2191 {
2192     nsresult GetType(nsAString *aType);
2193     nsresult GetTarget(nsIDOMEventTarget **aTarget);
2194     nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2195     nsresult GetEventPhase(PRUint16 *aEventPhase);
2196     nsresult GetBubbles(PRBool *aBubbles);
2197     nsresult GetCancelable(PRBool *aCancelable);
2198     nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2199     nsresult StopPropagation();
2200     nsresult PreventDefault();
2201     nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
2202 }
2203
2204 cpp_quote("#define CONTEXT_NONE              0x00")
2205 cpp_quote("#define CONTEXT_LINK              0x01")
2206 cpp_quote("#define CONTEXT_IMAGE             0x02")
2207 cpp_quote("#define CONTEXT_DOCUMENT          0x04")
2208 cpp_quote("#define CONTEXT_TEXT              0x08")
2209 cpp_quote("#define CONTEXT_INPUT             0x10")
2210 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE  0x20")
2211
2212 [
2213     object,
2214     uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2215     local
2216 ]
2217 interface nsIContextMenuListener : nsISupports
2218 {
2219     nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2220 }
2221
2222 [
2223     object,
2224     uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
2225     local
2226 ]
2227 interface nsIDOMUIEvent : nsIDOMEvent
2228 {
2229     nsresult GetView(nsIDOMAbstractView **aView);
2230     nsresult GetDetail(PRInt32 *aDetail);
2231     nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2232             nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2233 }
2234
2235 [
2236     object,
2237     uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2238     local
2239 ]
2240 interface nsIDOMMouseEvent : nsIDOMUIEvent
2241 {
2242     nsresult GetScreenX(PRInt32 *aScreenX);
2243     nsresult GetScreenY(PRInt32 *aScreenY);
2244     nsresult GetClientX(PRInt32 *aClientX);
2245     nsresult GetClientY(PRInt32 *aClientY);
2246     nsresult GetCtrlKey(PRBool *aCtrlKey);
2247     nsresult GetShiftKey(PRBool *aShiftKey);
2248     nsresult GetAltKey(PRBool *aAltKey);
2249     nsresult GetMetaKey(PRBool *aMetaKey);
2250     nsresult GetButton(PRUint16 *aButton);
2251     nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2252     nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2253             nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2254             PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2255             PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2256             nsIDOMEventTarget *relatedTargetArg);
2257 }
2258
2259 [
2260     object,
2261     uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2262     local
2263 ]
2264 interface nsIDOMKeyEvent : nsIDOMUIEvent
2265 {
2266     nsresult GetCharCode(PRUint32 *aCharCode);
2267     nsresult GetKeyCode(PRUint32 *aKeyCode);
2268     nsresult GetAltKey(PRBool *aAltKey);
2269     nsresult GetCtrlKey(PRBool *aCtrlKey);
2270     nsresult GetShiftKey(PRBool *aShiftKey);
2271     nsresult GetMetaKey(PRBool *aMetaKey);
2272     nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2273             PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2274             PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2275             PRUint32 charCodeArg);
2276 }
2277
2278 [
2279     object,
2280     uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2281     local
2282 ]
2283 interface nsIEmbeddingSiteWindow : nsISupports
2284 {
2285     nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2286     nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2287     nsresult SetFocus();
2288     nsresult GetVisibility(PRBool *aVisibility);
2289     nsresult SetVisibility(PRBool aVisibility);
2290     nsresult GetTitle(PRUnichar **aTitle);
2291     nsresult SetTitle(const PRUnichar *aTitle);
2292     nsresult GetSiteWindow(void **aSiteWindow);
2293 }
2294
2295 [
2296     object,
2297     uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2298     local
2299 ]
2300 interface nsIComponentRegistrar : nsISupports
2301 {
2302     nsresult AutoRegister(nsIFile *aSpec);
2303     nsresult AutoUnregister(nsIFile *aSpec);
2304     nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2305             const char *aContractID, nsIFactory *aFactory);
2306     nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2307     nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2308             const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2309             const char *aType);
2310     nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2311     nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2312     nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2313     nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2314     nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2315     nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2316     nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2317 }
2318
2319 [
2320     object,
2321     uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2322     local
2323 ]
2324 interface nsIPromptService : nsISupports
2325 {
2326     nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2327             const PRUnichar *aText);
2328     nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2329             const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2330     nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2331             const PRUnichar *aText, PRBool *_retval);
2332     nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2333             const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2334             PRBool *_retval);
2335     nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2336             const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2337             const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2338             const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2339     nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2340             const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2341             PRBool *aCheckState, PRBool *_retval);
2342     nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2343             const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2344             const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2345     nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2346             const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2347             PRBool *aCheckState, PRBool *_retval);
2348     nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2349             const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2350             PRInt32 *aOutSelection, PRBool *_retval);
2351 }
2352
2353 [
2354     object,
2355     uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2356     local
2357 ]
2358 interface nsITooltipTextProvider : nsISupports
2359 {
2360     nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2361 }
2362
2363 [
2364     object,
2365     uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2366     local
2367 ]
2368 interface nsIProfile : nsISupports
2369 {
2370     nsresult GetProfileCount(PRInt32 *aProfileCount);
2371     nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2372     nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2373     nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
2374     nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2375     nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2376     nsresult CreateNewProfile(const PRUnichar *profileName,
2377             const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2378             PRBool useExistingDir);
2379     nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2380     nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2381     nsresult CloneProfile(const PRUnichar *profileName);
2382 }
2383
2384 [
2385     object,
2386     uuid(30465632-a777-44cc-90f9-8145475ef999),
2387     local
2388 ]
2389 interface nsIWindowCreator : nsISupports
2390 {
2391     nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2392                                    nsIWebBrowserChrome **_retval);
2393 }
2394
2395 [
2396     object,
2397     uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2398     local
2399 ]
2400 interface nsIWindowCreator2 : nsIWindowCreator
2401 {
2402     nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2403                                  PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2404                                  nsIWebBrowserChrome **_retval);
2405 }
2406
2407 [
2408     object,
2409     uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2410     local
2411 ]
2412 interface nsIWindowWatcher : nsISupports
2413 {
2414     nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2415                         const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2416     nsresult RegisterNotification(nsIObserver *aObserver);
2417     nsresult UnregisterNotification(nsIObserver *aObserver);
2418     nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2419     nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2420     nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2421     nsresult SetWindowCreator(nsIWindowCreator *creator);
2422     nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2423     nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2424                              nsIDOMWindow **_retval);
2425     nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2426     nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2427 }
2428
2429 [
2430     object,
2431     uuid(24f3f4da-18a4-448d-876d-7360fefac029),
2432     local
2433 ]
2434 interface nsIEditingSession : nsISupports
2435 {
2436     nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2437     nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2438             PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2439     nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2440     nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2441     nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2442     nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2443     nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2444     nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2445     nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2446     nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2447     nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2448     nsresult GetJsAndPluginsDisabled(PRBool *aJsAndPluginsDisabled);
2449 }
2450
2451 [
2452     object,
2453     uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2454     local
2455 ]
2456 interface nsICommandParams : nsISupports
2457 {
2458     nsresult GetValueType(const char *name, PRInt16 *_retval);
2459     nsresult GetBooleanValue(const char *name, PRBool *_retval);
2460     nsresult GetLongValue(const char *name, PRInt32 *_retval);
2461     nsresult GetDoubleValue(const char *name, double *_retval);
2462     nsresult GetStringValue(const char *name, nsAString *_retval);
2463     nsresult GetCStringValue(const char *name, char **_retval);
2464     nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2465     nsresult SetBooleanValue(const char *name, PRBool value);
2466     nsresult SetLongValue(const char *name, PRInt32 value);
2467     nsresult SetDoubleValue(const char *name, double value);
2468     nsresult SetStringValue(const char *name, const nsAString *value);
2469     nsresult SetCStringValue(const char *name, const char *value);
2470     nsresult SetISupportsValue(const char *name, nsISupports *value);
2471     nsresult RemoveValue(const char *name);
2472     nsresult HasMoreElements(PRBool *_retval);
2473     nsresult First();
2474     nsresult GetNext(char **_retval);
2475 }
2476
2477 [
2478     object,
2479     uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2480     local
2481 ]
2482 interface nsICommandManager : nsISupports
2483 {
2484     nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2485     nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2486     nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2487     nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2488     nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2489             nsICommandParams *aCommandParams);
2490     nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2491             nsIDOMWindow *aTargetWindow);
2492 }
2493
2494 [
2495     object,
2496     uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2497     local
2498 ]
2499 interface nsIControllerContext : nsISupports
2500 {
2501     nsresult Init(nsIControllerCommandTable *aCommandTable);
2502     nsresult SetCommandContext(nsISupports *aCommandContext);
2503 }
2504
2505 [
2506     object,
2507     uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2508     local
2509 ]
2510 interface nsIController : nsISupports
2511 {
2512     nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2513     nsresult SupportsCommand(const char *command, PRBool *_retval);
2514     nsresult DoCommand(const char *command);
2515     nsresult OnEvent(const char *eventName);
2516 }
2517
2518 [
2519     object,
2520     uuid(dd254504-e273-4923-9ec1-d8421a6635f1),
2521     local
2522 ]
2523 interface nsIContent : nsISupports
2524 {
2525     /* This is not a real interface declaration. It's too internal for us. */
2526 }
2527
2528 [
2529     object,
2530     uuid(b2274bc3-4a1c-4e64-8de4-3bc650288438),
2531     local
2532 ]
2533 interface nsIDocument : nsISupports
2534 {
2535     /* This is not a real interface declaration. It's too internal for us. */
2536 }
2537
2538 [
2539     object,
2540     uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
2541     local
2542 ]
2543 interface nsIContentSerializer : nsISupports
2544 {
2545     nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2546             PRBool aIsWholeDocument);
2547     nsresult AppendText(nsIContent *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2548     nsresult AppendCDATASection(nsIContent *aCDATASection, PRInt32 aStartOffset,
2549             PRInt32 aEndOffset, nsAString *aStr);
2550     nsresult AppendProcessingInstruction(nsIContent* aPI, PRInt32 aStartOffset,
2551             PRInt32 aEndOffset, nsAString *aStr);
2552     nsresult AppendComment(nsIContent *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2553             nsAString *aStr);
2554     nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
2555     nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
2556             nsAString *aStr);
2557     nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
2558     nsresult Flush(nsAString *aStr);
2559     nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
2560 }
2561
2562 [
2563     object,
2564     uuid(972e54e1-dec3-4e3f-87ec-408a7dbcfd92),
2565     local
2566 ]
2567 interface nsIEditor  : nsISupports
2568 {
2569     typedef void *nsIPresShellPtr;
2570     typedef void *nsIContentPtr;
2571
2572     nsresult GetSelection([out] nsISelection *_retval);
2573     nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2574     nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2575     nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2576     nsresult PostCreate();
2577     nsresult PreDestroy();
2578     nsresult GetFlags([out] PRUint32 *_retval);
2579     nsresult SetFlags([in] PRUint32 val);
2580     nsresult GetContentsMIMEType([out] char **_retval);
2581     nsresult SetContentsMIMEType([in] const char *val);
2582     nsresult GetIsDocumentEditable([out] PRBool *_retval);
2583     nsresult GetDocument([out] nsIDOMDocument **_retval);
2584     nsresult GetRootElement([out] nsIDOMElement **_retval);
2585     nsresult GetSelectionController([out] nsISelectionController **_retval);
2586     nsresult DeleteSelection([in] PRInt16 action);
2587     nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2588     nsresult GetDocumentModified([out] PRBool *_retval);
2589     nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2590     nsresult SetDocumentCharacterSet([in] const nsACString *val);
2591     nsresult ResetModificationCount();
2592     nsresult GetModificationCount([out] PRInt32 *_retval);
2593     nsresult IncrementModificationCount([in] PRInt32 aModCount);
2594     nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2595     nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2596     nsresult DoTransaction([in] nsITransaction *txn);
2597     nsresult EnableUndo([in] PRBool enable);
2598     nsresult Undo([in] PRUint32 count);
2599     nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2600     nsresult Redo([in] PRUint32 count);
2601     nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2602     nsresult BeginTransaction();
2603     nsresult EndTransaction();
2604     nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2605     nsresult EndPlaceHolderTransaction();
2606     nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2607     nsresult SetShouldTxnSetSelection([in] PRBool should);
2608     nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2609     nsresult SyncRealTimeSpell();
2610     nsresult SetSpellcheckUserOverride(PRBool enable);
2611     nsresult Cut();
2612     nsresult CanCut([out] PRBool *_retval);
2613     nsresult Copy();
2614     nsresult CanCopy([out] PRBool *_retval);
2615     nsresult Paste([in] PRInt32 aSelectionType);
2616     nsresult PasteTransferable(nsITransferable *aTransferable);
2617     nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2618     nsresult CanPasteTransferable(nsITransferable *aTransferable, PRBool *_retval);
2619     nsresult SelectAll();
2620     nsresult BeginningOfDocument();
2621     nsresult EndOfDocument();
2622     nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2623     nsresult DoDrag([in] nsIDOMEvent *aEvent);
2624     nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2625     nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2626     nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2627     nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2628     nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2629     nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2630     nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2631     nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2632     nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2633     nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2634     nsresult DeleteNode([in] nsIDOMNode *child);
2635     nsresult MarkNodeDirty([in] nsIDOMNode *node);
2636     nsresult SwitchTextDirection();
2637     nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2638     nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2639     nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2640     nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2641     nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2642     nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2643     nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2644     nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2645     nsresult DumpContentTree();
2646     nsresult DebugDumpContent();
2647     nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2648     PRBool IsModifiableNode(nsIDOMNode *aNode);
2649 }
2650
2651 [
2652     object,
2653     uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2654     local
2655 ]
2656 interface nsIHTMLEditor : nsISupports
2657 {
2658     nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2659     nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2660     nsresult RemoveAllDefaultProperties();
2661     nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2662     nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2663     nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2664     nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2665     nsresult RemoveAllInlineProperties();
2666     nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2667     nsresult IncreaseFontSize();
2668     nsresult DecreaseFontSize();
2669     nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2670     nsresult DoDrag([in] nsIDOMEvent *aEvent);
2671     nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2672     nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2673     nsresult InsertHTML([in] nsAString *aInputString);
2674     nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2675     nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2676     nsresult InsertHTMLWithContext([in] nsAString *aInputString, [in] nsAString *aContextStr, [in] nsAString *aInfoStr, [in] nsAString *aFlavor, [in] nsIDOMDocument *aSourceDoc, [in] nsIDOMNode *aDestinationNode, [in] PRInt32 aDestinationOffset, [in] PRBool aDeleteSelection);
2677     nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2678     nsresult SetDocumentTitle([in] nsAString *aTitle);
2679     nsresult UpdateBaseURL();
2680     nsresult SelectElement([in] nsIDOMElement *aElement);
2681     nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2682     nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2683     nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2684     nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2685     nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2686     nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2687     nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2688     nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2689     nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2690     nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2691     nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2692     nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2693     nsresult RemoveList([in] nsAString *aListType);
2694     nsresult Indent([in] nsAString *aIndent);
2695     nsresult Align([in] nsAString *aAlign);
2696     nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2697     nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2698     nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2699     nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2700     nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2701     nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2702     nsresult SetBackgroundColor([in] nsAString *aColor);
2703     nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2704     nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2705     nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2706     nsresult GetIsCSSEnabled([out] PRBool *_retval);
2707     nsresult SetIsCSSEnabled([in] PRBool prb);
2708     nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2709     nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2710     nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2711     nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2712     nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2713     nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2714     nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2715     nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2716 }
2717
2718 [
2719     object,
2720     uuid(bf6db598-3833-400b-9e53-ec220cb2496c),
2721     local
2722 ]
2723 interface nsIDocShell : nsISupports
2724 {
2725     nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
2726     nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
2727             const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
2728     nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
2729             const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
2730             nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
2731     nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, PRBool aReplace);
2732     nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
2733     nsresult PrepareForNewContentModel();
2734     nsresult SetCurrentURI(nsIURI *aURI);
2735     nsresult FirePageHideNotification(PRBool isUnload);
2736     nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
2737     nsresult GetPresShell(nsIPresShell **aPresShell);
2738     nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
2739     nsresult GetContentViewer(nsIContentViewer **aContentViewer);
2740     nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
2741     nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
2742     nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
2743     nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
2744     nsresult GetAllowPlugins(PRBool *aAllowPlugins);
2745     nsresult SetAllowPlugins(PRBool aAllowPlugins);
2746     nsresult GetAllowJavascript(PRBool *aAllowJavascript);
2747     nsresult SetAllowJavascript(PRBool aAllowJavascript);
2748     nsresult GetAllowMetaRedirects(PRBool *aAllowMetaRedirects);
2749     nsresult SetAllowMetaRedirects(PRBool aAllowMetaRedirects);
2750     nsresult GetAllowSubframes(PRBool *aAllowSubframes);
2751     nsresult SetAllowSubframes(PRBool aAllowSubframes);
2752     nsresult GetAllowImages(PRBool *aAllowImages);
2753     nsresult SetAllowImages(PRBool aAllowImages);
2754     nsresult GetAllowDNSPrefetch(PRBool *aAllowDNSPrefetch);
2755     nsresult SetAllowDNSPrefetch(PRBool aAllowDNSPrefetch);
2756     nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
2757     nsresult GetAppType(PRUint32 *aAppType);
2758     nsresult SetAppType(PRUint32 aAppType);
2759     nsresult GetAllowAuth(PRBool *aAllowAuth);
2760     nsresult SetAllowAuth(PRBool aAllowAuth);
2761     nsresult GetZoom(float *aZoom);
2762     nsresult SetZoom(float aZoom);
2763     nsresult GetMarginWidth(PRInt32 *aMarginWidth);
2764     nsresult SetMarginWidth(PRInt32 aMarginWidth);
2765     nsresult GetMarginHeight(PRInt32 *aMarginHeight);
2766     nsresult SetMarginHeight(PRInt32 aMarginHeight);
2767     nsresult TabToTreeOwner(PRBool forward, PRBool *tookFocus);
2768     nsresult GetBusyFlags(PRUint32 *aBusyFlags);
2769     nsresult GetLoadType(PRUint32 *aLoadType);
2770     nsresult SetLoadType(PRUint32 aLoadType);
2771     nsresult IsBeingDestroyed(PRBool *_retval);
2772     nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
2773     nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
2774     nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
2775     nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
2776     nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
2777     nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
2778     nsresult SuspendRefreshURIs();
2779     nsresult ResumeRefreshURIs();
2780     nsresult BeginRestore(nsIContentViewer *viewer, PRBool top);
2781     nsresult FinishRestore();
2782     nsresult GetRestoringDocument(PRBool *aRestoringDocument);
2783     nsresult GetUseErrorPages(PRBool *aUseErrorPages);
2784     nsresult SetUseErrorPages(PRBool aUseErrorPages);
2785     nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
2786     nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
2787     nsresult HistoryPurged(PRInt32 numEntries);
2788     nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
2789     nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
2790             PRBool create, nsIDOMStorage **_retval);
2791     nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
2792     nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
2793     nsresult SetChildOffset(PRUint32 offset);
2794     nsresult GetIsInUnload(PRBool *aIsInUnload);
2795     nsresult GetChannelIsUnsafe(PRBool *aChannelIsUnsafe);
2796     void DetachEditorFromWindow();
2797     nsresult GetIsOffScreenBrowser(PRBool *aIsOffScreenBrowser);
2798     nsresult SetIsOffScreenBrowser(PRBool aIsOffScreenBrowser);
2799     nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
2800     nsresult GetCanExecuteScripts(PRBool *aCanExecuteScripts);
2801     nsresult GetIsActive(PRBool *aIsActive);
2802     nsresult SetIsActive(PRBool aIsActive);
2803 }
2804
2805 [
2806     object,
2807     uuid(85eea794-ed8e-4e1b-a128-d09300ae51aa),
2808     local
2809 ]
2810 interface nsIMutationObserver : nsISupports
2811 {
2812     void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2813                                  void /*CharacterDataChangeInfo*/ *aInfo);
2814     void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2815                               void /*CharacterDataChangeInfo*/ *aInfo);
2816     void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2817                              nsIAtom *aAttribute, PRInt32 aModType);
2818     void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2819                           nsIAtom *aAttribute, PRInt32 aModType);
2820     void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent* aFirstNewContent,
2821                          PRInt32 aNewIndexInContainer);
2822     void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2823                          PRInt32 aIndexInContainer);
2824     void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2825                         PRInt32 aIndexInContainer, nsIContent *aPreviousSibling);
2826     void NodeWillBeDestroyed(const nsINode *aNode);
2827     void ParentChainChanged(nsIContent *aContent);
2828 }
2829
2830 [
2831     object,
2832     uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2833     local
2834 ]
2835 interface nsIDocumentObserver : nsIMutationObserver
2836 {
2837     typedef int nsUpdateType;
2838
2839     void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2840     void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2841     void BeginLoad(nsIDocument *aDocument);
2842     void EndLoad(nsIDocument *aDocument);
2843     void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2844                               PRInt32 aStateMask);
2845     void DocumentStatesChanged(nsIDocument* aDocument, PRInt32 aStateMask);
2846     void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2847     void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2848     void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2849                                           PRBool aApplicable);
2850     void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2851                           nsIStyleRule *aNewStyleRule);
2852     void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2853     void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2854     void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2855     void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified);
2856 }