urlmon: Implemented PARSE_PATH_FROM_URL for CoInternetParseIUri.
[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(a6cf90ac-15b3-11d2-932e-00805f8add32),
1644     local
1645 ]
1646 interface nsIDOMHTMLObjectElement : nsIDOMHTMLElement
1647 {
1648     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1649     nsresult GetCode(nsAString *aCode);
1650     nsresult SetCode(const nsAString *aCode);
1651     nsresult GetAlign(nsAString *aAlign);
1652     nsresult SetAlign(const nsAString *aAlign);
1653     nsresult GetArchive(nsAString *aArchive);
1654     nsresult SetArchive(const nsAString *aArchive);
1655     nsresult GetBorder(nsAString *aBorder);
1656     nsresult SetBorder(const nsAString *aBorder);
1657     nsresult GetCodeBase(nsAString *aCodeBase);
1658     nsresult SetCodeBase(const nsAString *aCodeBase);
1659     nsresult GetCodeType(nsAString *aCodeType);
1660     nsresult SetCodeType(const nsAString *aCodeType);
1661     nsresult GetData(nsAString *aData);
1662     nsresult SetData(const nsAString *aData);
1663     nsresult GetDeclare(PRBool *aDeclare);
1664     nsresult SetDeclare(PRBool aDeclare);
1665     nsresult GetHeight(nsAString *aHeight);
1666     nsresult SetHeight(const nsAString *aHeight);
1667     nsresult GetHspace(PRInt32 *aHspace);
1668     nsresult SetHspace(PRInt32 aHspace);
1669     nsresult GetName(nsAString *aName);
1670     nsresult SetName(const nsAString *aName);
1671     nsresult GetStandby(nsAString *aStandby);
1672     nsresult SetStandby(const nsAString *aStandby);
1673     nsresult GetTabIndex(PRInt32 *aTabIndex);
1674     nsresult SetTabIndex(PRInt32 aTabIndex);
1675     nsresult GetType(nsAString *aType);
1676     nsresult SetType(const nsAString *aType);
1677     nsresult GetUseMap(nsAString *aUseMap);
1678     nsresult SetUseMap(const nsAString *aUseMap);
1679     nsresult GetVspace(PRInt32 *aVspace);
1680     nsresult SetVspace(PRInt32 aVspace);
1681     nsresult GetWidth(nsAString *aWidth);
1682     nsresult SetWidth(const nsAString *aWidth);
1683     nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1684 }
1685
1686 [
1687     object,
1688     uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1689     local
1690 ]
1691 interface nsIURIContentListener : nsISupports
1692 {
1693     nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1694     nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1695         nsIStreamListener **aContentHandler, PRBool *_retval);
1696     nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1697     nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1698         char **aDesiredContentType, PRBool *_retval);
1699     nsresult GetLoadCookie(nsISupports **aLoadCookie);
1700     nsresult SetLoadCookie(nsISupports *aLoadCookie);
1701     nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1702     nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1703 }
1704
1705 [
1706     object,
1707     uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1708     local
1709 ]
1710 interface nsITooltipListener : nsISupports
1711 {
1712     nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1713     nsresult OnHideTooltip();
1714 }
1715
1716 [
1717     object,
1718     uuid(33e9d001-caab-4ba9-8961-54902f197202),
1719     local
1720 ]
1721 interface nsIWebBrowser : nsISupports
1722 {
1723     nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1724     nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1725     nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1726     nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1727     nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1728     nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1729     nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1730     nsresult GetIsActive(PRBool *aIsActive);
1731     nsresult SetIsActive(PRBool aIsActive);
1732 }
1733
1734 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT  2")
1735 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1736
1737 [
1738     object,
1739     uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1740     local
1741 ]
1742 interface nsIWebBrowserSetup : nsISupports
1743 {
1744     nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1745 }
1746
1747 typedef void* nativeWindow;
1748
1749 [
1750     object,
1751     uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1752     local
1753 ]
1754 interface nsIBaseWindow : nsISupports
1755 {
1756     nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1757             PRInt32 y, PRInt32 cx, PRInt32 cy);
1758     nsresult Create();
1759     nsresult Destroy();
1760     nsresult SetPosition(PRInt32 x, PRInt32 y);
1761     nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1762     nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1763     nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1764     nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1765     nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1766     nsresult Repaint(PRBool force);
1767     nsresult GetParentWidget(nsIWidget **aParentWidget); 
1768     nsresult SetParentWidget(nsIWidget *aParentWidget);
1769     nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1770     nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1771     nsresult GetVisibility(PRBool *aVisibility);
1772     nsresult SetVisibility(PRBool aVisibility);
1773     nsresult GetEnabled(PRBool *aEnabled);
1774     nsresult SetEnabled(PRBool aEnabled);
1775     nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1776     nsresult SetBlurSuppression(PRBool aBlurSuppression);
1777     nsresult GetMainWidget(nsIWidget **aMainWidget);
1778     nsresult SetFocus();
1779     nsresult GetTitle(PRUnichar **aTitle);
1780     nsresult SetTitle(const PRUnichar *aTitle);
1781 }
1782
1783 cpp_quote("#define LOAD_FLAGS_NONE           0x00000")
1784 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x80000")
1785
1786 [
1787     object,
1788     uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1789     local
1790 ]
1791 interface nsIWebNavigation : nsISupports
1792 {
1793     nsresult GetCanGoBack(PRBool *aCanGoBack);
1794     nsresult GetCanGoForward(PRBool *aCanGoForward);
1795     nsresult GoBack();
1796     nsresult GoForward();
1797     nsresult GotoIndex(PRInt32 index);
1798     nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1799             nsIInputStream *aPostData, nsIInputStream *aHeaders);
1800     nsresult Reload(PRUint32 aReloadFlags);
1801     nsresult Stop(PRUint32 aStopFlags);
1802     nsresult GetDocument(nsIDOMDocument **aDocument);
1803     nsresult GetCurrentURI(nsIURI **aCurrentURI);
1804     nsresult GetReferringURI(nsIURI **aReferringURI);
1805     nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1806     nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1807 }
1808
1809 [
1810     object,
1811     uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
1812     local
1813 ]
1814 interface nsIWebProgress : nsISupports
1815 {
1816     nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
1817     nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
1818     nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
1819     nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
1820 }
1821
1822 [
1823     object,
1824     uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1825     local
1826 ]
1827 interface nsIPrintSettings : nsISupports
1828 {
1829     typedef struct { char dummy; } nsIntMargin;
1830
1831     nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1832     nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1833     nsresult GetPrintOptionsBits(PRInt32 *_retval);
1834     nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1835     nsresult Clone(nsIPrintSettings **_retval);
1836     nsresult Assign(nsIPrintSettings *aPS);
1837     nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1838     nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1839     nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1840     nsresult SetStartPageRange(PRInt32 aStartPageRange);
1841     nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1842     nsresult SetEndPageRange(PRInt32 aEndPageRange);
1843     nsresult GetEdgeTop(double *aEdgeTop);
1844     nsresult SetEdgeTop(double aEdgeTop);
1845     nsresult GetEdgeLeft(double *aEdgeLeft);
1846     nsresult SetEdgeLeft(double aEdgeLeft);
1847     nsresult GetEdgeBottom(double *aEdgeBottom);
1848     nsresult SetEdgeBottom(double aEdgeBottom);
1849     nsresult GetEdgeRight(double *aEdgeRight);
1850     nsresult SetEdgeRight(double aEdgeRight);
1851     nsresult GetMarginTop(double *aMarginTop);
1852     nsresult SetMarginTop(double aMarginTop);
1853     nsresult GetMarginLeft(double *aMarginLeft);
1854     nsresult SetMarginLeft(double aMarginLeft);
1855     nsresult GetMarginBottom(double *aMarginBottom);
1856     nsresult SetMarginBottom(double aMarginBottom);
1857     nsresult GetMarginRight(double *aMarginRight);
1858     nsresult SetMarginRight(double aMarginRight);
1859     nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1860     nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1861     nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1862     nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1863     nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1864     nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1865     nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1866     nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1867     nsresult GetScaling(double *aScaling);
1868     nsresult SetScaling(double aScaling);
1869     nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1870     nsresult SetPrintBGColors(PRBool aPrintBGColors);
1871     nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1872     nsresult SetPrintBGImages(PRBool aPrintBGImages);
1873     nsresult GetPrintRange(PRInt16 *aPrintRange);
1874     nsresult SetPrintRange(PRInt16 aPrintRange);
1875     nsresult GetTitle(PRUnichar **aTitle);
1876     nsresult SetTitle(const PRUnichar *aTitle);
1877     nsresult GetDocURL(PRUnichar **aDocURL);
1878     nsresult SetDocURL(const PRUnichar *aDocURL);
1879     nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1880     nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1881     nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1882     nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1883     nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1884     nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1885     nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1886     nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1887     nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1888     nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1889     nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1890     nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1891     nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1892     nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1893     nsresult GetIsCancelled(PRBool *aIsCancelled);
1894     nsresult SetIsCancelled(PRBool aIsCancelled);
1895     nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1896     nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1897     nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1898     nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1899     nsresult GetPrintSilent(PRBool *aPrintSilent);
1900     nsresult SetPrintSilent(PRBool aPrintSilent);
1901     nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1902     nsresult SetShrinkToFit(PRBool aShrinkToFit);
1903     nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1904     nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1905     nsresult GetPaperName(PRUnichar **aPaperName);
1906     nsresult SetPaperName(const PRUnichar *aPaperName);
1907     nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1908     nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1909     nsresult GetPaperData(PRInt16 *aPaperData);
1910     nsresult SetPaperData(PRInt16 aPaperData);
1911     nsresult GetPaperWidth(double *aPaperWidth);
1912     nsresult SetPaperWidth(double aPaperWidth);
1913     nsresult GetPaperHeight(double *aPaperHeight);
1914     nsresult SetPaperHeight(double aPaperHeight);
1915     nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1916     nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1917     nsresult GetPlexName(PRUnichar **aPlexName);
1918     nsresult SetPlexName(const PRUnichar *aPlexName);
1919     nsresult GetColorspace(PRUnichar **aColorspace);
1920     nsresult SetColorspace(const PRUnichar *aColorspace);
1921     nsresult GetResolutionName(PRUnichar **aResolutionName);
1922     nsresult SetResolutionName(const PRUnichar aResolutionName);
1923     nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1924     nsresult SetDownloadFonts(PRBool aDownloadFonts);
1925     nsresult GetPrintReversed(PRBool *aPrintReversed);
1926     nsresult SetPrintReversed(PRBool aPrintReversed);
1927     nsresult GetPrintInColor(PRBool *aPrintInColor);
1928     nsresult SetPrintInColor(PRBool aPrintInColor);
1929     nsresult GetOrientation(PRInt32 *aOrientation);
1930     nsresult SetOrientation(PRInt32 aOrientation);
1931     nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1932     nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1933     nsresult GetNumCopies(PRInt32 *aNumCopies);
1934     nsresult SetNumCopies(PRInt32 aNumCopies);
1935     nsresult GetPrinterName(PRUnichar **aPrinterName);
1936     nsresult SetPrinterName(const PRUnichar *aPrinterName);
1937     nsresult GetPrintToFile(PRBool *aPrintToFile);
1938     nsresult SetPrintToFile(PRBool aPrintToFile);
1939     nsresult GetToFileName(PRUnichar **aToFileName);
1940     nsresult SetToFileName(const PRUnichar *aToFileName);
1941     nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1942     nsresult SetOutputFormat(PRInt16 aOutputFormat);
1943     nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1944     nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1945     nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1946     nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1947     nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1948     nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1949     nsresult SetMarginInTwips(nsIntMargin *aMargin);
1950     nsresult SetEdgeInTwips(nsIntMargin *aEdge);
1951     nsresult GetMarginInTwips(nsIntMargin *aMargin);
1952     nsresult GetEdgeInTwips(nsIntMargin *aEdge);
1953     nsresult SetupSilentPrinting();
1954     nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1955     nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1956 }
1957
1958 [
1959     object,
1960     uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1961     local
1962 ]
1963 interface nsIWebBrowserPrint : nsISupports
1964 {
1965     nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1966     nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1967     nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1968     nsresult GetDoingPrint(PRBool *aDoingPrint);
1969     nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1970     nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1971     nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1972     nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1973     nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1974     nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1975     nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1976     nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1977                           nsIWebProgressListener *aWPListener);
1978     nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1979     nsresult Cancel();
1980     nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1981     nsresult ExitPrintPreview();
1982 }
1983
1984 [
1985     object,
1986     uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1987     local
1988 ]
1989 interface nsIScrollable : nsISupports
1990 {
1991     enum {
1992         ScrollOrientation_X = 1,
1993         ScrollOrientation_Y = 2
1994     };
1995
1996     enum {
1997         Scrollbar_Auto   = 1,
1998         Scrollbar_Never  = 2,
1999         Scrollbar_Always = 3
2000     };
2001
2002     nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
2003     nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
2004     nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
2005     nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
2006     nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
2007     nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
2008             PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
2009     nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
2010     nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
2011     nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
2012 }
2013
2014 [
2015     object,
2016     uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
2017     local
2018 ]
2019 interface nsIFile : nsISupports
2020 {
2021     nsresult Append(const nsAString *node);
2022     nsresult AppendNative(const nsAString *node);
2023     nsresult Normalize();
2024     nsresult Create(PRUint32 type, PRUint32 permission);
2025     nsresult GetLeafName(nsAString *aLeafName);
2026     nsresult SetLeafName(const nsAString *aLeafName);
2027     nsresult GetNativeLeafName(nsAString *aLeafName);
2028     nsresult SetNativeLeafName(const nsAString *aLeafName);
2029     nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
2030     nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
2031     nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
2032     nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
2033     nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
2034     nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
2035     nsresult Remove(PRBool recursive);
2036     nsresult GetPermissions(PRUint32 *aPermissions);
2037     nsresult SetPermissions(PRUint32 pPermissions);
2038     nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
2039     nsresult SetPermissionsOfLink(PRUint32 pPermissions);
2040     nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
2041     nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
2042     nsresult GetLastModifiedTimeOfLink(PRInt64 *aLastModifiedTimeOfLink);
2043     nsresult SetLastModifiedTimeOfLink(PRInt64 aLastModifiedTimeOfLink);
2044     nsresult GetFileSize(PRInt64 *aFileSize);
2045     nsresult SetFileSize(PRInt64 aFileSize);
2046     nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
2047     nsresult GetTarget(nsAString *aTarget);
2048     nsresult GetNativeTarget(nsACString *aNativeTarget);
2049     nsresult GetPath(nsAString *aPath);
2050     nsresult GetNativePath(nsACString *aNativePath);
2051     nsresult Exists(PRBool *_retval);
2052     nsresult IsWritable(PRBool *_retval);
2053     nsresult IsReadable(PRBool *_retval);
2054     nsresult IsExecutable(PRBool *_retval);
2055     nsresult IsHidden(PRBool *_retval);
2056     nsresult IsDirectory(PRBool *_retval);
2057     nsresult IsFile(PRBool *_retval);
2058     nsresult IsSymlink(PRBool *_retval);
2059     nsresult IsSpecial(PRBool *_retval);
2060     nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2061     nsresult Clone(nsIFile **_retval);
2062     nsresult Equals(nsIFile *inFile, PRBool *_retval);
2063     nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
2064     nsresult GetParent(nsIFile **aParent);
2065     nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2066 }
2067
2068 [
2069     object,
2070     uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
2071     local
2072 ]
2073 interface nsIPrefBranch : nsISupports
2074 {
2075     nsresult GetRoot(char **aRoot);
2076     nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2077     nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
2078     nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
2079     nsresult GetCharPref(const char *aPrefName, char **_retval);
2080     nsresult SetCharPref(const char *aPrefName, const char *aValue);
2081     nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2082     nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2083     nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2084     nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2085     nsresult ClearUserPref(const char *aPrefName);
2086     nsresult LockPref(const char *aPrefName);
2087     nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
2088     nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
2089     nsresult UnlockPref(const char *aPrefName);
2090     nsresult DeleteBranch(const char *aStartingAt);
2091     nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2092     nsresult ResetBranch(const char *aStartingAt);
2093 }
2094
2095 [
2096     object,
2097     uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2098     local
2099 ]
2100 interface nsIDirectoryServiceProvider : nsISupports
2101 {
2102     nsresult GetFile(const char *prop, PRBool *persistent, nsIFile **_retval);
2103 }
2104
2105 [
2106     object,
2107     uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2108     local
2109 ]
2110 interface nsIProtocolHandler : nsISupports
2111 {
2112     nsresult GetScheme(nsACString *aScheme);
2113     nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2114     nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2115     nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2116                     nsIURI *aBaseURI, nsIURI **_retval);
2117     nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2118     nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
2119 }
2120
2121 [
2122     object,
2123     uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2124     local
2125 ]
2126 interface nsIExternalProtocolHandler : nsIProtocolHandler
2127 {
2128     nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
2129 }
2130
2131 [
2132     object,
2133     uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2134     local
2135 ]
2136 interface nsIIOService : nsISupports
2137 {
2138     nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2139     nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2140     nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2141                     nsIURI **_retval);
2142     nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2143     nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2144     nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2145                         nsIChannel **_retval);
2146     nsresult GetOffline(PRBool *aOffline);
2147     nsresult SetOffline(PRBool aOffline);
2148     nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
2149     nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
2150 }
2151
2152 [
2153     object,
2154     uuid(ca68c485-9db3-4c12-82a6-4fab7948e2d5),
2155     local,
2156 ]
2157 interface nsINetUtil : nsISupports
2158 {
2159     nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2160             PRBool *aHadCharset, nsACString *_retval);
2161     nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
2162     nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
2163     nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2164     nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
2165     nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2166     nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2167     nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2168     nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2169             PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
2170 }
2171
2172 [
2173     object,
2174     uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2175     local
2176 ]
2177 interface nsIWebBrowserFocus : nsISupports
2178 {
2179     nsresult Activate();
2180     nsresult Deactivate();
2181     nsresult SetFocusAtFirstElement();
2182     nsresult SetFocusAtLastElement();
2183     nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2184     nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2185     nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2186     nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2187 }
2188
2189 [
2190     object,
2191     uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2192     local
2193 ]
2194 interface nsIWebBrowserChrome : nsISupports
2195 {
2196     nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2197     nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2198     nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2199     nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2200     nsresult SetChromeFlags(PRUint32 aChromeFlags);
2201     nsresult DestroyBrowserWindow();
2202     nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2203     nsresult ShowAsModal();
2204     nsresult IsWindowModal(PRBool *_retval);
2205     nsresult ExitModalEventLoop(nsresult aStatus);
2206 }
2207
2208 [
2209     object,
2210     uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2211     local
2212 ]
2213 interface nsIDOMEventListener : nsISupports
2214 {
2215     nsresult HandleEvent(nsIDOMEvent *event);
2216 }
2217
2218 [
2219     object,
2220     uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
2221     local
2222 ]
2223 interface nsIDOMEventTarget : nsISupports
2224 {
2225     nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2226     nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2227     nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
2228 }
2229
2230 [
2231     object,
2232     uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
2233     local
2234 ]
2235 interface nsIDOMEvent : nsISupports
2236 {
2237     nsresult GetType(nsAString *aType);
2238     nsresult GetTarget(nsIDOMEventTarget **aTarget);
2239     nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2240     nsresult GetEventPhase(PRUint16 *aEventPhase);
2241     nsresult GetBubbles(PRBool *aBubbles);
2242     nsresult GetCancelable(PRBool *aCancelable);
2243     nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2244     nsresult StopPropagation();
2245     nsresult PreventDefault();
2246     nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
2247 }
2248
2249 cpp_quote("#define CONTEXT_NONE              0x00")
2250 cpp_quote("#define CONTEXT_LINK              0x01")
2251 cpp_quote("#define CONTEXT_IMAGE             0x02")
2252 cpp_quote("#define CONTEXT_DOCUMENT          0x04")
2253 cpp_quote("#define CONTEXT_TEXT              0x08")
2254 cpp_quote("#define CONTEXT_INPUT             0x10")
2255 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE  0x20")
2256
2257 [
2258     object,
2259     uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2260     local
2261 ]
2262 interface nsIContextMenuListener : nsISupports
2263 {
2264     nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2265 }
2266
2267 [
2268     object,
2269     uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
2270     local
2271 ]
2272 interface nsIDOMUIEvent : nsIDOMEvent
2273 {
2274     nsresult GetView(nsIDOMAbstractView **aView);
2275     nsresult GetDetail(PRInt32 *aDetail);
2276     nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2277             nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2278 }
2279
2280 [
2281     object,
2282     uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2283     local
2284 ]
2285 interface nsIDOMMouseEvent : nsIDOMUIEvent
2286 {
2287     nsresult GetScreenX(PRInt32 *aScreenX);
2288     nsresult GetScreenY(PRInt32 *aScreenY);
2289     nsresult GetClientX(PRInt32 *aClientX);
2290     nsresult GetClientY(PRInt32 *aClientY);
2291     nsresult GetCtrlKey(PRBool *aCtrlKey);
2292     nsresult GetShiftKey(PRBool *aShiftKey);
2293     nsresult GetAltKey(PRBool *aAltKey);
2294     nsresult GetMetaKey(PRBool *aMetaKey);
2295     nsresult GetButton(PRUint16 *aButton);
2296     nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2297     nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2298             nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2299             PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2300             PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2301             nsIDOMEventTarget *relatedTargetArg);
2302 }
2303
2304 [
2305     object,
2306     uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2307     local
2308 ]
2309 interface nsIDOMKeyEvent : nsIDOMUIEvent
2310 {
2311     nsresult GetCharCode(PRUint32 *aCharCode);
2312     nsresult GetKeyCode(PRUint32 *aKeyCode);
2313     nsresult GetAltKey(PRBool *aAltKey);
2314     nsresult GetCtrlKey(PRBool *aCtrlKey);
2315     nsresult GetShiftKey(PRBool *aShiftKey);
2316     nsresult GetMetaKey(PRBool *aMetaKey);
2317     nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2318             PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2319             PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2320             PRUint32 charCodeArg);
2321 }
2322
2323 [
2324     object,
2325     uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2326     local
2327 ]
2328 interface nsIEmbeddingSiteWindow : nsISupports
2329 {
2330     nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2331     nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2332     nsresult SetFocus();
2333     nsresult GetVisibility(PRBool *aVisibility);
2334     nsresult SetVisibility(PRBool aVisibility);
2335     nsresult GetTitle(PRUnichar **aTitle);
2336     nsresult SetTitle(const PRUnichar *aTitle);
2337     nsresult GetSiteWindow(void **aSiteWindow);
2338 }
2339
2340 [
2341     object,
2342     uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2343     local
2344 ]
2345 interface nsIComponentRegistrar : nsISupports
2346 {
2347     nsresult AutoRegister(nsIFile *aSpec);
2348     nsresult AutoUnregister(nsIFile *aSpec);
2349     nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2350             const char *aContractID, nsIFactory *aFactory);
2351     nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2352     nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2353             const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2354             const char *aType);
2355     nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2356     nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2357     nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2358     nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2359     nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2360     nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2361     nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2362 }
2363
2364 [
2365     object,
2366     uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2367     local
2368 ]
2369 interface nsIPromptService : nsISupports
2370 {
2371     nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2372             const PRUnichar *aText);
2373     nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2374             const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2375     nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2376             const PRUnichar *aText, PRBool *_retval);
2377     nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2378             const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2379             PRBool *_retval);
2380     nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2381             const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2382             const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2383             const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2384     nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2385             const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2386             PRBool *aCheckState, PRBool *_retval);
2387     nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2388             const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2389             const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2390     nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2391             const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2392             PRBool *aCheckState, PRBool *_retval);
2393     nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2394             const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2395             PRInt32 *aOutSelection, PRBool *_retval);
2396 }
2397
2398 [
2399     object,
2400     uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2401     local
2402 ]
2403 interface nsITooltipTextProvider : nsISupports
2404 {
2405     nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2406 }
2407
2408 [
2409     object,
2410     uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2411     local
2412 ]
2413 interface nsIProfile : nsISupports
2414 {
2415     nsresult GetProfileCount(PRInt32 *aProfileCount);
2416     nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2417     nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2418     nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
2419     nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2420     nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2421     nsresult CreateNewProfile(const PRUnichar *profileName,
2422             const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2423             PRBool useExistingDir);
2424     nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2425     nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2426     nsresult CloneProfile(const PRUnichar *profileName);
2427 }
2428
2429 [
2430     object,
2431     uuid(30465632-a777-44cc-90f9-8145475ef999),
2432     local
2433 ]
2434 interface nsIWindowCreator : nsISupports
2435 {
2436     nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2437                                    nsIWebBrowserChrome **_retval);
2438 }
2439
2440 [
2441     object,
2442     uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2443     local
2444 ]
2445 interface nsIWindowCreator2 : nsIWindowCreator
2446 {
2447     nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2448                                  PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2449                                  nsIWebBrowserChrome **_retval);
2450 }
2451
2452 [
2453     object,
2454     uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2455     local
2456 ]
2457 interface nsIWindowWatcher : nsISupports
2458 {
2459     nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2460                         const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2461     nsresult RegisterNotification(nsIObserver *aObserver);
2462     nsresult UnregisterNotification(nsIObserver *aObserver);
2463     nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2464     nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2465     nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2466     nsresult SetWindowCreator(nsIWindowCreator *creator);
2467     nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2468     nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2469                              nsIDOMWindow **_retval);
2470     nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2471     nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2472 }
2473
2474 [
2475     object,
2476     uuid(24f3f4da-18a4-448d-876d-7360fefac029),
2477     local
2478 ]
2479 interface nsIEditingSession : nsISupports
2480 {
2481     nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2482     nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2483             PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2484     nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2485     nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2486     nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2487     nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2488     nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2489     nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2490     nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2491     nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2492     nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2493     nsresult GetJsAndPluginsDisabled(PRBool *aJsAndPluginsDisabled);
2494 }
2495
2496 [
2497     object,
2498     uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2499     local
2500 ]
2501 interface nsICommandParams : nsISupports
2502 {
2503     nsresult GetValueType(const char *name, PRInt16 *_retval);
2504     nsresult GetBooleanValue(const char *name, PRBool *_retval);
2505     nsresult GetLongValue(const char *name, PRInt32 *_retval);
2506     nsresult GetDoubleValue(const char *name, double *_retval);
2507     nsresult GetStringValue(const char *name, nsAString *_retval);
2508     nsresult GetCStringValue(const char *name, char **_retval);
2509     nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2510     nsresult SetBooleanValue(const char *name, PRBool value);
2511     nsresult SetLongValue(const char *name, PRInt32 value);
2512     nsresult SetDoubleValue(const char *name, double value);
2513     nsresult SetStringValue(const char *name, const nsAString *value);
2514     nsresult SetCStringValue(const char *name, const char *value);
2515     nsresult SetISupportsValue(const char *name, nsISupports *value);
2516     nsresult RemoveValue(const char *name);
2517     nsresult HasMoreElements(PRBool *_retval);
2518     nsresult First();
2519     nsresult GetNext(char **_retval);
2520 }
2521
2522 [
2523     object,
2524     uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2525     local
2526 ]
2527 interface nsICommandManager : nsISupports
2528 {
2529     nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2530     nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2531     nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2532     nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2533     nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2534             nsICommandParams *aCommandParams);
2535     nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2536             nsIDOMWindow *aTargetWindow);
2537 }
2538
2539 [
2540     object,
2541     uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2542     local
2543 ]
2544 interface nsIControllerContext : nsISupports
2545 {
2546     nsresult Init(nsIControllerCommandTable *aCommandTable);
2547     nsresult SetCommandContext(nsISupports *aCommandContext);
2548 }
2549
2550 [
2551     object,
2552     uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2553     local
2554 ]
2555 interface nsIController : nsISupports
2556 {
2557     nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2558     nsresult SupportsCommand(const char *command, PRBool *_retval);
2559     nsresult DoCommand(const char *command);
2560     nsresult OnEvent(const char *eventName);
2561 }
2562
2563 [
2564     object,
2565     uuid(dd254504-e273-4923-9ec1-d8421a6635f1),
2566     local
2567 ]
2568 interface nsIContent : nsISupports
2569 {
2570     /* This is not a real interface declaration. It's too internal for us. */
2571 }
2572
2573 [
2574     object,
2575     uuid(b2274bc3-4a1c-4e64-8de4-3bc650288438),
2576     local
2577 ]
2578 interface nsIDocument : nsISupports
2579 {
2580     /* This is not a real interface declaration. It's too internal for us. */
2581 }
2582
2583 [
2584     object,
2585     uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
2586     local
2587 ]
2588 interface nsIContentSerializer : nsISupports
2589 {
2590     nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2591             PRBool aIsWholeDocument);
2592     nsresult AppendText(nsIContent *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2593     nsresult AppendCDATASection(nsIContent *aCDATASection, PRInt32 aStartOffset,
2594             PRInt32 aEndOffset, nsAString *aStr);
2595     nsresult AppendProcessingInstruction(nsIContent* aPI, PRInt32 aStartOffset,
2596             PRInt32 aEndOffset, nsAString *aStr);
2597     nsresult AppendComment(nsIContent *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2598             nsAString *aStr);
2599     nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
2600     nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
2601             nsAString *aStr);
2602     nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
2603     nsresult Flush(nsAString *aStr);
2604     nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
2605 }
2606
2607 [
2608     object,
2609     uuid(972e54e1-dec3-4e3f-87ec-408a7dbcfd92),
2610     local
2611 ]
2612 interface nsIEditor  : nsISupports
2613 {
2614     typedef void *nsIPresShellPtr;
2615     typedef void *nsIContentPtr;
2616
2617     nsresult GetSelection([out] nsISelection *_retval);
2618     nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2619     nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2620     nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2621     nsresult PostCreate();
2622     nsresult PreDestroy();
2623     nsresult GetFlags([out] PRUint32 *_retval);
2624     nsresult SetFlags([in] PRUint32 val);
2625     nsresult GetContentsMIMEType([out] char **_retval);
2626     nsresult SetContentsMIMEType([in] const char *val);
2627     nsresult GetIsDocumentEditable([out] PRBool *_retval);
2628     nsresult GetDocument([out] nsIDOMDocument **_retval);
2629     nsresult GetRootElement([out] nsIDOMElement **_retval);
2630     nsresult GetSelectionController([out] nsISelectionController **_retval);
2631     nsresult DeleteSelection([in] PRInt16 action);
2632     nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2633     nsresult GetDocumentModified([out] PRBool *_retval);
2634     nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2635     nsresult SetDocumentCharacterSet([in] const nsACString *val);
2636     nsresult ResetModificationCount();
2637     nsresult GetModificationCount([out] PRInt32 *_retval);
2638     nsresult IncrementModificationCount([in] PRInt32 aModCount);
2639     nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2640     nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2641     nsresult DoTransaction([in] nsITransaction *txn);
2642     nsresult EnableUndo([in] PRBool enable);
2643     nsresult Undo([in] PRUint32 count);
2644     nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2645     nsresult Redo([in] PRUint32 count);
2646     nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2647     nsresult BeginTransaction();
2648     nsresult EndTransaction();
2649     nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2650     nsresult EndPlaceHolderTransaction();
2651     nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2652     nsresult SetShouldTxnSetSelection([in] PRBool should);
2653     nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2654     nsresult SyncRealTimeSpell();
2655     nsresult SetSpellcheckUserOverride(PRBool enable);
2656     nsresult Cut();
2657     nsresult CanCut([out] PRBool *_retval);
2658     nsresult Copy();
2659     nsresult CanCopy([out] PRBool *_retval);
2660     nsresult Paste([in] PRInt32 aSelectionType);
2661     nsresult PasteTransferable(nsITransferable *aTransferable);
2662     nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2663     nsresult CanPasteTransferable(nsITransferable *aTransferable, PRBool *_retval);
2664     nsresult SelectAll();
2665     nsresult BeginningOfDocument();
2666     nsresult EndOfDocument();
2667     nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2668     nsresult DoDrag([in] nsIDOMEvent *aEvent);
2669     nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2670     nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2671     nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2672     nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2673     nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2674     nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2675     nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2676     nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2677     nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2678     nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2679     nsresult DeleteNode([in] nsIDOMNode *child);
2680     nsresult MarkNodeDirty([in] nsIDOMNode *node);
2681     nsresult SwitchTextDirection();
2682     nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2683     nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2684     nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2685     nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2686     nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2687     nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2688     nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2689     nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2690     nsresult DumpContentTree();
2691     nsresult DebugDumpContent();
2692     nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2693     PRBool IsModifiableNode(nsIDOMNode *aNode);
2694 }
2695
2696 [
2697     object,
2698     uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2699     local
2700 ]
2701 interface nsIHTMLEditor : nsISupports
2702 {
2703     nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2704     nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2705     nsresult RemoveAllDefaultProperties();
2706     nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2707     nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2708     nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2709     nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2710     nsresult RemoveAllInlineProperties();
2711     nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2712     nsresult IncreaseFontSize();
2713     nsresult DecreaseFontSize();
2714     nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2715     nsresult DoDrag([in] nsIDOMEvent *aEvent);
2716     nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2717     nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2718     nsresult InsertHTML([in] nsAString *aInputString);
2719     nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2720     nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2721     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);
2722     nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2723     nsresult SetDocumentTitle([in] nsAString *aTitle);
2724     nsresult UpdateBaseURL();
2725     nsresult SelectElement([in] nsIDOMElement *aElement);
2726     nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2727     nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2728     nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2729     nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2730     nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2731     nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2732     nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2733     nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2734     nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2735     nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2736     nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2737     nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2738     nsresult RemoveList([in] nsAString *aListType);
2739     nsresult Indent([in] nsAString *aIndent);
2740     nsresult Align([in] nsAString *aAlign);
2741     nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2742     nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2743     nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2744     nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2745     nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2746     nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2747     nsresult SetBackgroundColor([in] nsAString *aColor);
2748     nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2749     nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2750     nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2751     nsresult GetIsCSSEnabled([out] PRBool *_retval);
2752     nsresult SetIsCSSEnabled([in] PRBool prb);
2753     nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2754     nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2755     nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2756     nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2757     nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2758     nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2759     nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2760     nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2761 }
2762
2763 [
2764     object,
2765     uuid(bf6db598-3833-400b-9e53-ec220cb2496c),
2766     local
2767 ]
2768 interface nsIDocShell : nsISupports
2769 {
2770     nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
2771     nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
2772             const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
2773     nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
2774             const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
2775             nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
2776     nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, PRBool aReplace);
2777     nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
2778     nsresult PrepareForNewContentModel();
2779     nsresult SetCurrentURI(nsIURI *aURI);
2780     nsresult FirePageHideNotification(PRBool isUnload);
2781     nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
2782     nsresult GetPresShell(nsIPresShell **aPresShell);
2783     nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
2784     nsresult GetContentViewer(nsIContentViewer **aContentViewer);
2785     nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
2786     nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
2787     nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
2788     nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
2789     nsresult GetAllowPlugins(PRBool *aAllowPlugins);
2790     nsresult SetAllowPlugins(PRBool aAllowPlugins);
2791     nsresult GetAllowJavascript(PRBool *aAllowJavascript);
2792     nsresult SetAllowJavascript(PRBool aAllowJavascript);
2793     nsresult GetAllowMetaRedirects(PRBool *aAllowMetaRedirects);
2794     nsresult SetAllowMetaRedirects(PRBool aAllowMetaRedirects);
2795     nsresult GetAllowSubframes(PRBool *aAllowSubframes);
2796     nsresult SetAllowSubframes(PRBool aAllowSubframes);
2797     nsresult GetAllowImages(PRBool *aAllowImages);
2798     nsresult SetAllowImages(PRBool aAllowImages);
2799     nsresult GetAllowDNSPrefetch(PRBool *aAllowDNSPrefetch);
2800     nsresult SetAllowDNSPrefetch(PRBool aAllowDNSPrefetch);
2801     nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
2802     nsresult GetAppType(PRUint32 *aAppType);
2803     nsresult SetAppType(PRUint32 aAppType);
2804     nsresult GetAllowAuth(PRBool *aAllowAuth);
2805     nsresult SetAllowAuth(PRBool aAllowAuth);
2806     nsresult GetZoom(float *aZoom);
2807     nsresult SetZoom(float aZoom);
2808     nsresult GetMarginWidth(PRInt32 *aMarginWidth);
2809     nsresult SetMarginWidth(PRInt32 aMarginWidth);
2810     nsresult GetMarginHeight(PRInt32 *aMarginHeight);
2811     nsresult SetMarginHeight(PRInt32 aMarginHeight);
2812     nsresult TabToTreeOwner(PRBool forward, PRBool *tookFocus);
2813     nsresult GetBusyFlags(PRUint32 *aBusyFlags);
2814     nsresult GetLoadType(PRUint32 *aLoadType);
2815     nsresult SetLoadType(PRUint32 aLoadType);
2816     nsresult IsBeingDestroyed(PRBool *_retval);
2817     nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
2818     nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
2819     nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
2820     nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
2821     nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
2822     nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
2823     nsresult SuspendRefreshURIs();
2824     nsresult ResumeRefreshURIs();
2825     nsresult BeginRestore(nsIContentViewer *viewer, PRBool top);
2826     nsresult FinishRestore();
2827     nsresult GetRestoringDocument(PRBool *aRestoringDocument);
2828     nsresult GetUseErrorPages(PRBool *aUseErrorPages);
2829     nsresult SetUseErrorPages(PRBool aUseErrorPages);
2830     nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
2831     nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
2832     nsresult HistoryPurged(PRInt32 numEntries);
2833     nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
2834     nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
2835             PRBool create, nsIDOMStorage **_retval);
2836     nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
2837     nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
2838     nsresult SetChildOffset(PRUint32 offset);
2839     nsresult GetIsInUnload(PRBool *aIsInUnload);
2840     nsresult GetChannelIsUnsafe(PRBool *aChannelIsUnsafe);
2841     void DetachEditorFromWindow();
2842     nsresult GetIsOffScreenBrowser(PRBool *aIsOffScreenBrowser);
2843     nsresult SetIsOffScreenBrowser(PRBool aIsOffScreenBrowser);
2844     nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
2845     nsresult GetCanExecuteScripts(PRBool *aCanExecuteScripts);
2846     nsresult GetIsActive(PRBool *aIsActive);
2847     nsresult SetIsActive(PRBool aIsActive);
2848 }
2849
2850 [
2851     object,
2852     uuid(85eea794-ed8e-4e1b-a128-d09300ae51aa),
2853     local
2854 ]
2855 interface nsIMutationObserver : nsISupports
2856 {
2857     void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2858                                  void /*CharacterDataChangeInfo*/ *aInfo);
2859     void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2860                               void /*CharacterDataChangeInfo*/ *aInfo);
2861     void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2862                              nsIAtom *aAttribute, PRInt32 aModType);
2863     void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2864                           nsIAtom *aAttribute, PRInt32 aModType);
2865     void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent* aFirstNewContent,
2866                          PRInt32 aNewIndexInContainer);
2867     void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2868                          PRInt32 aIndexInContainer);
2869     void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2870                         PRInt32 aIndexInContainer, nsIContent *aPreviousSibling);
2871     void NodeWillBeDestroyed(const nsINode *aNode);
2872     void ParentChainChanged(nsIContent *aContent);
2873 }
2874
2875 [
2876     object,
2877     uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2878     local
2879 ]
2880 interface nsIDocumentObserver : nsIMutationObserver
2881 {
2882     typedef int nsUpdateType;
2883
2884     void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2885     void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2886     void BeginLoad(nsIDocument *aDocument);
2887     void EndLoad(nsIDocument *aDocument);
2888     void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2889                               PRInt32 aStateMask);
2890     void DocumentStatesChanged(nsIDocument* aDocument, PRInt32 aStateMask);
2891     void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2892     void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2893     void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2894                                           PRBool aApplicable);
2895     void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2896                           nsIStyleRule *aNewStyleRule);
2897     void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2898     void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2899     void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2900     void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified);
2901 }