mshtml: Add a dummy member to nsMargin as empty structs aren't valid in C89.
[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 an usual idl file. Interfaces in this file are XPCOM interfaces
22  * (NOT MSCOM!), but we generate the header file with WIDL compatibile with XPCOM,
23  * useable in C code.
24  */
25
26 cpp_quote("#define GECKO_VERSION \"0.1.0\"")
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
28
29 import "wtypes.idl";
30
31 typedef HRESULT nsresult;
32 typedef ULONG nsrefcnt;
33
34 typedef IID nsID;
35 typedef IID nsIID;
36 typedef nsIID nsCID;
37 typedef REFIID nsIIDRef;
38 typedef nsIIDRef nsCIDRef;
39
40 typedef void** nsQIResult;
41 typedef WCHAR PRUnichar;
42 typedef ULONG PRUint32;
43 typedef LONG PRInt32;
44 typedef WORD PRUint16;
45 typedef INT16 PRInt16;
46 typedef BYTE PRUint8;
47 typedef BOOL PRBool;
48 typedef LARGE_INTEGER PRInt64;
49 typedef ULARGE_INTEGER PRUint64;
50 typedef PRUint64 DOMTimeStamp;
51 typedef PRUint32 nsLoadFlags;
52
53 typedef struct {
54     void *v;
55     void *d1;
56     PRUint32 d2;
57     void *d3;
58 } nsCStringContainer;
59
60 typedef struct {
61     void *v;
62     void *d1;
63     PRUint32 d2;
64     void *d3;
65 } nsStringContainer;
66
67 typedef nsCStringContainer nsACString;
68 typedef nsStringContainer nsAString;
69
70 interface nsIWebBrowserChrome;
71 interface nsILoadGroup;
72 interface nsIDOMNode;
73 interface nsIDOMDocument;
74 interface nsIDOMEvent;
75 interface nsIEditor;
76 interface nsISelectionController;
77 interface nsITransactionManager;
78 interface nsITransaction;
79 interface nsIInlineSpellChecker;
80 interface nsIOutputStream;
81 interface nsIEditorObserver;
82 interface nsIEditActionListener;
83 interface nsIDocumentStateListener;
84 interface nsIDOMCSSStyleSheet;
85
86 interface IMoniker;
87
88 [
89     object,
90     uuid(00000000-0000-0000-c000-000000000046),
91     local
92 ]
93 interface nsISupports
94 {
95     nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
96     nsrefcnt AddRef();
97     nsrefcnt Release();
98 }
99
100 /* Currently we don't need a full declaration of these interfaces */
101 typedef nsISupports nsISHistory;
102 typedef nsISupports nsIWidget;
103 typedef nsISupports nsIDOMAbstractView;
104 typedef nsISupports nsIHttpHeaderVisitor;
105 typedef nsISupports nsIDOMBarProp;
106 typedef nsISupports nsIDOMWindowCollection;
107 typedef nsISupports nsIPrompt;
108 typedef nsISupports nsIAuthPrompt;
109 typedef nsISupports nsIDOMNamedNodeMap;
110 typedef nsISupports nsIDOMAttr;
111 typedef nsISupports nsIDOMDocumentType;
112 typedef nsISupports nsIDOMDOMImplementation;
113 typedef nsISupports nsIDOMCDATASection;
114 typedef nsISupports nsIDOMProcessingInstruction;
115 typedef nsISupports nsIDOMEntityReference;
116 typedef nsISupports nsIDOMHTMLFormElement;
117 typedef nsISupports nsIDOMHTMLOptionsCollection;
118 typedef nsISupports nsIDOMHTMLCollection;
119 typedef nsISupports nsIWebProgressListener;
120 typedef nsISupports nsIDOMCSSValue;
121 typedef nsISupports nsIPrintSession;
122 typedef nsISupports nsIControllerCommandTable;
123 typedef nsISupports nsIPrincipal;
124 typedef nsISupports nsIAtom;
125 typedef nsISupports nsISupportsArray;
126 typedef nsISupports nsIContentFilter;
127 typedef nsISupports nsIDOMMediaList;
128
129 [
130     object,
131     uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
132     local
133     /* FROZEN */
134 ]
135 interface nsIServiceManager : nsISupports
136 {
137     nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
138     nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
139     nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
140     nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
141 }
142
143 [
144     object,
145     uuid(00000001-0000-0000-c000-000000000046),
146     local
147     /* FROZEN */
148 ]
149 interface nsIFactory : nsISupports
150 {
151     nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
152     nsresult LockFactory(PRBool lock);
153 }
154
155 [
156     object,
157     uuid(db242e01-e4d9-11d2-9dde-000064657374),
158     local
159     /* FROZEN */
160 ]
161 interface nsIObserver : nsISupports
162 {
163     nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
164 }
165
166 [
167     object,
168     uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
169     local
170     /* FROZEN */
171 ]
172 interface nsIComponentManager : nsISupports
173 {
174     nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
175     nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
176     nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
177             nsQIResult result);
178     nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
179             nsIIDRef aIID, nsQIResult result);
180 }
181
182 [
183     object,
184     uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
185     local
186     /* FROZEN */
187 ]
188 interface nsIMemory : nsISupports
189 {
190     void *Alloc(/*size_t*/ int size);
191     void *Realloc(void *_ptr, /*size_t*/ int newSize);
192     void Free(void *_ptr);
193     nsresult HeapMinimize(PRBool immediate);
194     nsresult IsLowMemory(PRBool *_retval);
195 }
196
197 [
198     object,
199     uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
200     local
201     /* FROZEN */
202 ]
203 interface nsIWeakReference : nsISupports
204 {
205     nsresult QueryReferent(const nsIID *riid, void **result);
206 }
207
208 [
209     object,
210     uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
211     local
212     /* FROZEN */
213 ]
214 interface nsISupportsWeakReference : nsISupports
215 {
216     nsresult GetWeakReference(nsIWeakReference **_retval);
217 }
218
219 [
220     object,
221     uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
222     local
223     /* FROZEN */
224 ]
225 interface nsIInterfaceRequestor : nsISupports
226 {
227     nsresult GetInterface(const nsIID *riid, void **result);
228 }
229
230 [
231     object,
232     uuid(d1899240-f9d2-11d2-bdd6-000064657374),
233     local
234     /* FROZEN */
235 ]
236 interface nsISimpleEnumerator : nsISupports
237 {
238     nsresult HasMoreElements(PRBool *_retval);
239     nsresult GetNext(nsISupports **_retval);
240 }
241
242 [
243     object,
244     uuid(114744d9-c369-456e-b55a-52fe52880d2d),
245     local
246     /* NOT_FROZEN */
247 ]
248 interface nsIArray : nsISupports
249 {
250     nsresult GetLength(PRUint32 *aLength);
251     nsresult QueryElementAt(PRUint32 index, const nsIID *uuid, void **result);
252     nsresult IndexOf(PRUint32 startIndex, nsISupports *element, PRUint32 *_retval);
253     nsresult Enumerate(nsISimpleEnumerator **_retval);
254 }
255
256 [
257     object,
258     uuid(af059da0-c85b-40ec-af07-ae4bfdc192cc),
259     local
260     /* NOT_FROZEN */
261 ]
262 interface nsIMutableArray : nsIArray
263 {
264     nsresult AppendElement(nsISupports *element, PRBool weak);
265     nsresult RemoveElementAt(PRUint32 index);
266     nsresult InsertElementAt(nsISupports *element, PRUint32 index, PRBool weak);
267     nsresult Clear();
268 }
269
270 [
271     object,
272     uuid(4d12e540-83d7-11d5-90ed-0010a4e73d9a),
273     local
274     /* NOT_FROZEN */
275 ]
276 interface nsIVariant : nsISupports
277 {
278     enum nsDataType {
279         TYPE_INT8,
280         TYPE_INT16,
281         TYPE_INT32,
282         TYPE_INT64,
283         TYPE_UINT8,
284         TYPE_UINT16,
285         TYPE_UINT32,
286         TYPE_UINT64,
287         TYPE_FLOAT,
288         TYPE_DOUBLE,
289         TYPE_BOOL,
290         TYPE_CHAR,
291         TYPE_WCHAR,
292         TYPE_VOID,
293         TYPE_ID,
294         TYPE_DOMSTRING,
295         TYPE_CHAR_STR,
296         TYPE_WCHAR_STR,
297         TYPE_INTERFACE,
298         TYPE_INTERFACE_IS,
299         TYPE_ARRAY,
300         TYPE_STRING_SIZE_IS,
301         TYPE_WSTRING_SIZE_IS,
302         TYPE_UTF8STRING,
303         TYPE_CSTRING,
304         TYPE_ASTRING,
305         TYPE_AMPTY_ARRAY,
306         TYPE_EMPTY
307     };
308
309     nsresult GetDataType(PRUint16 *aDataType);
310     nsresult GetAsInt8(PRUint8 *_retval);
311     nsresult GetAsInt16(PRInt16 *_retval);
312     nsresult GetAsInt32(PRInt32 *_retval);
313     nsresult GetAsInt64(PRInt64 *_retval);
314     nsresult GetAsUint8(PRUint8 *_retval);
315     nsresult GetAsUint16(PRUint16 *_retval);
316     nsresult GetAsUint32(PRUint32 *_retval);
317     nsresult GetAsUint64(PRUint64 *_retval);
318     nsresult GetAsFloat(float *_retval);
319     nsresult GetAsDouble(double *_retval);
320     nsresult GetAsBool(PRBool *_retval);
321     nsresult GetAsChar(char *_retval);
322     nsresult GetAsWChar(PRUnichar *_retval);
323     nsresult GetAsID(nsID *retval);
324     nsresult GetAsAString(nsAString *_retval);
325     nsresult GetAsDOMString(nsAString *_retval);
326     nsresult GetAsACString(nsACString *_retval);
327     nsresult GetAsAUTF8String(nsACString *_retval);
328     nsresult GetAsString(char **_retval);
329     nsresult GetAsWString(PRUnichar **_retval);
330     nsresult GetAsISupports(nsISupports **_retval);
331     nsresult GetAsInterface(nsIID * *iid, void **iface);
332     nsresult GetAsArray(PRUint16 *type, nsIID *iid, PRUint32 *count, void **ptr);
333     nsresult GetAsStringWithSize(PRUint32 *size, char **str);
334     nsresult GetAsWStringWithSize(PRUint32 *size, PRUnichar **str);
335 }
336
337 [
338     object,
339     uuid(5586a590-8c82-11d5-90f3-0010a4e73d9a),
340     local
341     /* NOT_FROZEN */
342 ]
343 interface nsIWritableVariant : nsIVariant
344 {
345     nsresult GetWritable(PRBool *aWritable);
346     nsresult SetWritable(PRBool aWritable);
347     nsresult SetAsInt8(PRUint8 aValue);
348     nsresult SetAsInt16(PRInt16 aValue);
349     nsresult SetAsInt32(PRInt32 aValue);
350     nsresult SetAsInt64(PRInt64 aValue);
351     nsresult SetAsUint8(PRUint8 aValue);
352     nsresult SetAsUint16(PRUint16 aValue);
353     nsresult SetAsUint32(PRUint32 aValue);
354     nsresult SetAsUint64(PRUint64 aValue);
355     nsresult SetAsFloat(float aValue);
356     nsresult SetAsDouble(double aValue);
357     nsresult SetAsBool(PRBool aValue);
358     nsresult SetAsChar(char aValue);
359     nsresult SetAsWChar(PRUnichar aValue);
360     nsresult SetAsID(const nsID *aValue);
361     nsresult SetAsAString(const nsAString *aValue);
362     nsresult SetAsDOMString(const nsAString *aValue);
363     nsresult SetAsACString(const nsACString *aValue);
364     nsresult SetAsAUTF8String(const nsACString *aValue);
365     nsresult SetAsString(const char *aValue);
366     nsresult SetAsWString(const PRUnichar *aValue);
367     nsresult SetAsISupports(nsISupports *aValue);
368     nsresult SetAsInterface(const nsIID *iid, void *iface);
369     nsresult SetAsArray(PRUint16 type, const nsIID *iid, PRUint32 count, void *ptr);
370     nsresult SetAsStringWithSize(PRUint32 size, const char *str);
371     nsresult SetAsWStringWithSize(PRUint32 size, const PRUnichar *str);
372     nsresult SetAsVoid();
373     nsresult SetAsEmpty();
374     nsresult SetAsEmptyArray();
375     nsresult SetFromVariant(nsIVariant *aValue);
376 }
377
378 [
379     object,
380     uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
381     local
382     /* FROZEN */
383 ]
384 interface nsIInputStream : nsISupports
385 {
386     nsresult Close();
387     nsresult Available(PRUint32 *_retval);
388     nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
389     nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream, 
390             void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
391             PRUint32 aCount, PRUint32 *aWriteCount),
392             void *aClosure, PRUint32 aCount, PRUint32 *_retval);
393     nsresult IsNonBlocking(PRBool *_retval);
394 }
395
396 [
397     object,
398     uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53),
399     local
400     /* NOT_FROZEN */
401 ]
402 interface nsIStringInputStream : nsIInputStream
403 {
404     nsresult SetData(const char *data, PRInt32 dataLen);
405     nsresult AdoptData(char *data, PRInt32 dataLen);
406     nsresult ShareData(const char *data, PRInt32 dataLen);
407 }
408
409 [
410     object,
411     uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
412     local
413     /* FROZEN */
414 ]
415 interface nsIURI : nsISupports
416 {
417     nsresult GetSpec(nsACString *aSpec);
418     nsresult SetSpec(const nsACString *aSpec);
419     nsresult GetPrePath(nsACString *aPrePath);
420     nsresult GetScheme(nsACString *aScheme);
421     nsresult SetScheme(const nsACString *aScheme);
422     nsresult GetUserPass(nsACString *aUserPass);
423     nsresult SetUserPass(const nsACString *aUserPass);
424     nsresult GetUsername(nsACString *aUsername);
425     nsresult SetUsername(const nsACString *aUsername);
426     nsresult GetPassword(nsACString *aPassword);
427     nsresult SetPassword(const nsACString *aPassword);
428     nsresult GetHostPort(nsACString *aHostPort);
429     nsresult SetHostPort(const nsACString *aHostPort);
430     nsresult GetHost(nsACString *aHost);
431     nsresult SetHost(const nsACString *aHost);
432     nsresult GetPort(PRInt32 *aPort);
433     nsresult SetPort(PRInt32 aPort);
434     nsresult GetPath(nsACString *aPath);
435     nsresult SetPath(const nsACString *aPath);
436     nsresult Equals(nsIURI *other, PRBool *_retval);
437     nsresult SchemeIs(const char *scheme, PRBool *_retval);
438     nsresult Clone(nsIURI **_retval);
439     nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
440     nsresult GetAsciiSpec(nsACString *aAsciiSpec);
441     nsresult GetAsciiHost(nsACString *aAsciiHost);
442     nsresult GetOriginCharset(nsACString *aOriginCharset);
443 }
444
445 [
446     object,
447     uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
448     local
449     /* FROZEN */
450 ]
451 interface nsIRequest : nsISupports
452 {
453     nsresult GetName(nsACString *aName);
454     nsresult IsPending(PRBool *_retval);
455     nsresult GetStatus(nsresult *aStatus);
456     nsresult Cancel(nsresult aStatus);
457     nsresult Suspend();
458     nsresult Resume();
459     nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
460     nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
461     nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
462     nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
463 }
464
465 [
466     object,
467     uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
468     local
469     /* FROZEN */
470 ]
471 interface nsIRequestObserver : nsISupports
472 {
473     nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
474     nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
475 }
476
477 [
478     object,
479     uuid(1a637020-1482-11d3-9333-00104ba0fd40),
480     local
481     /* FROZEN */
482
483 interface nsIStreamListener : nsIRequestObserver
484 {
485     nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
486                              nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
487 }
488
489 [
490     object,
491     uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
492     local
493     /* FROZEN */
494 ]
495 interface nsILoadGroup : nsIRequest
496 {
497     nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
498     nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
499     nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
500     nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
501     nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
502     nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
503     nsresult GetRequests(nsISimpleEnumerator **aRequests);
504     nsresult GetActiveCount(PRUint32 *aActiveCount);
505     nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
506     nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
507 }
508
509 [
510     object,
511     uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
512     local
513     /* FROZEN */
514 ]
515 interface nsIChannel : nsIRequest
516 {
517     nsresult GetOriginalURI(nsIURI **aOriginalURI);
518     nsresult SetOriginalURI(nsIURI *aOriginalURI);
519     nsresult GetURI(nsIURI **aURI);
520     nsresult GetOwner(nsISupports **aOwner);
521     nsresult SetOwner(nsISupports *aOwner);
522     nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
523     nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
524     nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
525     nsresult GetContentType(nsACString *aContentType);
526     nsresult SetContentType(const nsACString *aContentType);
527     nsresult GetContentCharset(nsACString *aContentCharset);
528     nsresult SetContentCharset(const nsACString *aContentCharset);
529     nsresult GetContentLength(PRInt32 *aContentLength);
530     nsresult SetContentLength(PRInt32 aContentLength);
531     nsresult Open(nsIInputStream **_retval);
532     nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
533 }
534
535 [
536     object,
537     uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
538     local
539     /* FROZEN */
540 ]
541 interface nsIHttpChannel : nsIChannel
542 {
543     nsresult GetRequestMethod(nsACString *aRequestMethod);
544     nsresult SetRequestMethod(const nsACString *aRequestMethod);
545     nsresult GetReferrer(nsIURI **aReferrer);
546     nsresult SetReferrer(nsIURI *aReferrer);
547     nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
548     nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
549     nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
550     nsresult GetAllowPipelining(PRBool *aAllowPipelining);
551     nsresult SetAllowPipelining(PRBool aAllowPipelining);
552     nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
553     nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
554     nsresult GetResponseStatus(PRUint32 *aResponseStatus);
555     nsresult GetResponseStatusText(nsACString *aResponseStatusText);
556     nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
557     nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
558     nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
559     nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
560     nsresult IsNoStoreResponse(PRBool *_retval);
561     nsresult IsNoCacheResponse(PRBool *_retval);
562 }
563
564 [
565     object,
566     uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
567     local
568     /* FROZEN */
569 ]
570 interface nsIUploadChannel : nsISupports
571 {
572     nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
573                              PRInt32 aContentLength);
574     nsresult GetUploadStream(nsIInputStream **aUploadStream);
575 }
576
577 [
578     object,
579     uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
580     local
581     /* FROZEN */
582 ]
583 interface nsIDOMCSSRule : nsISupports
584 {
585     nsresult GetType(PRUint16 *aType);
586     nsresult GetCssText(nsAString *aCssText);
587     nsresult SetCssText(const nsAString *aCssText);
588     nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
589     nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
590 }
591
592 [
593     object,
594     uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
595     local
596     /* FROZEN */
597 ]
598 interface nsIDOMCSSStyleDeclaration : nsISupports
599 {
600     nsresult GetCssText(nsAString *aCssText);
601     nsresult SetCssText(const nsAString *aCssText);
602     nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
603     nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
604     nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
605     nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
606     nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
607                          const nsAString *priority);
608     nsresult GetLength(PRUint32 *aLength);
609     nsresult Item(PRUint32 index, nsAString *_retval);
610     nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
611 }
612
613 [
614     object,
615     uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
616     local
617     /* FROZEN */
618 ]
619 interface nsIDOMCSSRuleList : nsISupports
620 {
621     nsresult GetLength(PRUint32 *aLength);
622     nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
623 }
624
625 [
626     object,
627     uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
628     local
629     /* FROZEN */
630 ]
631 interface nsIDOMStyleSheet : nsISupports
632 {
633     nsresult GetType(nsAString *aType);
634     nsresult GetDisabled(PRBool *aDisabled);
635     nsresult SetDisabled(PRBool aDisabled);
636     nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
637     nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
638     nsresult GetHref(nsAString *aHref);
639     nsresult GetTitle(nsAString *aTitle);
640     nsresult GetMedia(nsIDOMMediaList **aMedia);
641 }
642
643 [
644     object,
645     uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
646     local
647     /* FROZEN */
648 ]
649 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
650 {
651     nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
652     nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
653     nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
654     nsresult DeleteRule(PRUint32 index);
655 }
656
657 [
658     object,
659     uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
660     local
661     /* FROZEN */
662 ]
663 interface nsIDOMStyleSheetList : nsISupports
664 {
665     nsresult GetLength(PRUint32 *aLength);
666     nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
667 }
668
669 [
670     object,
671     uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
672     local
673     /* FROZEN */
674 ]
675 interface nsIDOMNodeList : nsISupports
676 {
677     nsresult Item(PRUint32 index, nsIDOMNode **_retval);
678     nsresult GetLength(PRUint32 *aLength);
679 }
680
681 [
682     object,
683     uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
684     local
685     /* FROZEN */
686 ]
687 interface nsIDOMNode : nsISupports
688 {
689     enum NSNODETYPE {
690         ELEMENT_NODE = 1,
691         ATTRIBUTE_NODE = 2,
692         TEXT_NODE = 3,
693         CDATA_SELECTION_NODE = 4,
694         ENTITY_REFERENCE_NODE = 5,
695         ENTITY_NODE = 6,
696         PROCESSING_INSTRUCTION_NODE = 7,
697         COMMENT_NODE = 8,
698         DOCUMENT_NODE = 9,
699         DOCUMENT_TYPE_NODE = 10,
700         DOCUMENT_FRAGMENT_NODE = 11,
701         NOTATION_NODE = 12
702     };
703
704     nsresult GetNodeName(nsAString *aNodeName);
705     nsresult GetNodeValue(nsAString *aNodeValue);
706     nsresult SetNodeValue(const nsAString *aNodeValue);
707     nsresult GetNodeType(PRUint16 *aNodeType);
708     nsresult GetParentNode(nsIDOMNode **aParentNode);
709     nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
710     nsresult GetFirstChild(nsIDOMNode **aFirstChild);
711     nsresult GetLastChild(nsIDOMNode **aLastChild);
712     nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
713     nsresult GetNextSibling(nsIDOMNode **aNextSibling);
714     nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
715     nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
716     nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
717     nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
718     nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
719     nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
720     nsresult HasChildNodes(PRBool *_retval);
721     nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
722     nsresult Normalize();
723     nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
724     nsresult GetNamespaceURI(nsAString *aNamespaceURI);
725     nsresult GetPrefix(nsAString *aPrefix);
726     nsresult SetPrefix(const nsAString *aPrefix);
727     nsresult GetLocalName(nsAString *aLocalName);
728     nsresult HasAttributes(PRBool *_retval);
729 }
730
731 [
732     object,
733     uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
734     local
735     /* FROZEN */
736 ]
737 interface nsIDOMElement : nsIDOMNode
738 {
739     nsresult GetTagName(nsAString *aTagName);
740     nsresult GetAttribute(const nsAString *name, nsAString *_retval);
741     nsresult SetAttribute(const nsAString *name, const nsAString *value);
742     nsresult RemoveAttribute(const nsAString *name);
743     nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
744     nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
745     nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
746     nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
747     nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
748                             nsAString *_retval);
749     nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
750                             const nsAString *value);
751     nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
752     nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
753                                 nsIDOMAttr **_retval);
754     nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
755     nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
756                                     nsIDOMNodeList **_retval);
757     nsresult HasAttribute(const nsAString *name, PRBool *_retval);
758     nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
759                             PRBool *_retval);
760 }
761
762 [
763     object,
764     uuid(99715845-95fc-4a56-aa53-214b65c26e22),
765     local
766     /* FROZEN */
767 ]
768 interface nsIDOMElementCSSInlineStyle : nsISupports
769 {
770     nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
771 }
772
773 cpp_quote("#undef GetClassName")
774
775 [
776     object,
777     uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
778     local
779     /* FROZEN */
780 ]
781 interface nsIDOMHTMLElement : nsIDOMElement
782 {
783     nsresult GetId(nsAString *aId);
784     nsresult SetId(const nsAString *aId);
785     nsresult GetTitle(nsAString *aTitle);
786     nsresult SetTitle(const nsAString *aTitle);
787     nsresult GetLang(nsAString *aLang);
788     nsresult SetLang(const nsAString *aLang);
789     nsresult GetDir(nsAString *aDir);
790     nsresult SetDir(const nsAString *aDir);
791     nsresult GetClassName(nsAString *aClassName);
792     nsresult SetClassName(const nsAString *aClassName);
793 }
794
795 [
796     object,
797     uuid(da83b2ec-8264-4410-8496-ada3acd2ae42),
798     local
799     /* NOT_FROZEN */
800 ]
801 interface nsIDOMNSHTMLElement : nsISupports
802 {
803     nsresult GetOffsetTop(PRInt32 *aOffsetTop);
804     nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
805     nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
806     nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
807     nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
808     nsresult GetInnerHTML(nsAString *aInnerHTML);
809     nsresult SetInnerHTML(const nsAString *aInnerHTML);
810     nsresult GetScrollTop(PRInt32 *aScrollTop);
811     nsresult SetScrollTop(PRInt32 aScrollTop);
812     nsresult GetScrollLeft(PRInt32 *aScrollLeft);
813     nsresult SetScrollLeft(PRInt32 aScrollLeft);
814     nsresult GetScrollHeight(PRInt32 *aScrollHeight);
815     nsresult GetScrollWidth(PRInt32 *aScrollWidth);
816     nsresult GetClientHeight(PRInt32 *aClientHeight);
817     nsresult GetClientWidth(PRInt32 *aClientWidth);
818     nsresult GetTabIndex(PRInt32 *aTabIndex);
819     nsresult SetTabIndex(PRInt32 aTabIndex);
820     nsresult blur();
821     nsresult focus();
822     nsresult ScrollIntoView(PRBool top);
823 }
824
825 [
826     object,
827     uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
828     local
829     /* FROZEN */
830 ]
831 interface nsIDOMCharacterData : nsIDOMNode
832 {
833     nsresult GetData(nsAString *aData);
834     nsresult SetData(const nsAString *aData);
835     nsresult GetLength(PRUint32 *aLength);
836     nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
837     nsresult AppendData(const nsAString *arg);
838     nsresult InsertData(PRUint32 offset, const nsAString *arg);
839     nsresult DeleteData(PRUint32 offset, PRUint32 count);
840     nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
841 }
842
843 [
844     object,
845     uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
846     local
847     /* FROZEN */
848 ]
849 interface nsIDOMText : nsIDOMCharacterData
850 {
851     nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
852 }
853
854 [
855     object,
856     uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
857     local
858     /* FROZEN */
859 ]
860 interface nsIDOMComment : nsIDOMCharacterData
861 {
862 }
863
864 [
865     object,
866     uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
867     local
868     /* FROZEN */
869 ]
870 interface nsIDOMDocumentFragment : nsIDOMNode
871 {
872 }
873
874 [
875     object,
876     uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
877     local
878     /* FROZEN */
879 ]
880 interface nsIDOMDocument : nsIDOMNode
881 {
882     nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
883     nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
884     nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
885     nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
886     nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
887     nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
888     nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
889     nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
890     nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
891                                          nsIDOMProcessingInstruction **_retval);
892     nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
893     nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
894     nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
895     nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
896     nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
897                              nsIDOMElement **_retval);
898     nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
899                                nsIDOMAttr **_retval);
900     nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
901                                     nsIDOMNodeList **_retval);
902     nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
903 }
904
905 [
906     object,
907     uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
908     local
909     /* FROZEN */
910 ]
911 interface nsIDOMHTMLDocument : nsIDOMDocument
912 {
913     nsresult GetTitle(nsAString *aTitle);
914     nsresult SetTitle(const nsAString *aTitle);
915     nsresult GetReferrer(nsAString *aReferrer);
916     nsresult GetDomain(nsAString *aDomain);
917     nsresult GetURL(nsAString *aURL);
918     nsresult GetBody(nsIDOMHTMLElement **aBody);
919     nsresult SetBody(nsIDOMHTMLElement *aBody);
920     nsresult GetImages(nsIDOMHTMLCollection **aImages);
921     nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
922     nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
923     nsresult GetForms(nsIDOMHTMLCollection **aForms);
924     nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
925     nsresult GetCookie(nsAString *aCookie);
926     nsresult SetCookie(const nsAString *aCookie);
927     nsresult Open();
928     nsresult Close();
929     nsresult Write(const nsAString *text);
930     nsresult Writeln(const nsAString *text);
931     nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
932 }
933
934 [
935     object,
936     uuid(79beb289-3644-4b54-9432-9fb993945629),
937     local
938     /* NOT_FROZEN */
939 ]
940 interface nsIDOMNSHTMLDocument : nsISupports
941 {
942     nsresult GetWidth(PRInt32 *aWidth);
943     nsresult GetHeight(PRInt32 *aHeight);
944     nsresult GetAlinkColor(nsAString *aAlinkColor);
945     nsresult SetAlinkColor(const nsAString *aAlinkColor);
946     nsresult GetLinkColor(nsAString *aLinkColor);
947     nsresult SetLinkColor(const nsAString *aLinkColor);
948     nsresult GetVlinkColor(nsAString *aVlinkColor);
949     nsresult SetVlinkColor(const nsAString *aVlinkColor);
950     nsresult GetBgColor(nsAString *aBgColor);
951     nsresult SetBgColor(const nsAString *aBgColor);
952     nsresult GetFgColor(nsAString *aFgColor);
953     nsresult SetFgColor(const nsAString *aFgColor);
954     nsresult GetDomain(nsAString *aDomain);
955     nsresult SetDomain(const nsAString *aDomain);
956     nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
957     nsresult GetSelection(nsAString *_retval);
958     nsresult Open(nsIDOMDocument **_retval);
959     nsresult Write();
960     nsresult Writeln();
961     nsresult Clear();
962     nsresult CaptureEvents(PRInt32 eventFlags);
963     nsresult ReleaseEvents(PRInt32 eventFlags);
964     nsresult RouteEvent(nsIDOMEvent *evt);
965     nsresult GetCompatMode(nsAString *aCompatMode);
966     nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
967     nsresult GetDesignMode(nsAString *aDesignMode);
968     nsresult SetDesignMode(const nsAString *aDesignMode);
969     nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
970     nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
971     nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
972     nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
973     nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
974     nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
975     nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
976     nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
977 }
978
979 [
980     object,
981     uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
982     local
983     /* FROZEN */
984 ]
985 interface nsIDOMDocumentStyle : nsISupports
986 {
987     nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
988 }
989
990 [
991     object,
992     uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
993     local
994     /* FROZEN */
995 ]
996 interface nsIDOMRange : nsISupports
997 {
998     enum {
999         NS_START_TO_START,
1000         NS_START_TO_END,
1001         NS_END_TO_END,
1002         NS_END_TO_START
1003     };
1004
1005     nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1006     nsresult GetStartOffset(PRInt32 *aStartOffset);
1007     nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1008     nsresult GetEndOffset(PRInt32 *aEndOffset);
1009     nsresult GetCollapsed(PRBool *aCollapsed);
1010     nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1011     nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1012     nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1013     nsresult SetStartBefore(nsIDOMNode *refNode);
1014     nsresult SetStartAfter(nsIDOMNode *refNode);
1015     nsresult SetEndBefore(nsIDOMNode *refNode);
1016     nsresult SetEndAfter(nsIDOMNode *refNode);
1017     nsresult Collapse(PRBool toStart);
1018     nsresult SelectNode(nsIDOMNode *refNode);
1019     nsresult SelectNodeContents(nsIDOMNode *refNode);
1020     nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1021     nsresult DeleteContents();
1022     nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1023     nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1024     nsresult InsertNode(nsIDOMNode *newNode);
1025     nsresult SurroundContents(nsIDOMNode *newParent);
1026     nsresult CloneRange(nsIDOMRange **_retval);
1027     nsresult ToString(nsAString *_retval);
1028     nsresult Detach();
1029 }
1030
1031 [
1032     object,
1033     uuid(a6cf90f2-15b3-11d2-932e-00805f8add32),
1034     local
1035 ]
1036 interface nsIDOMNSRange : nsISupports
1037 {
1038     nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1039     nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1040     nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1041     nsresult IntersectsNode([in] nsIDOMNode *n, [out] PRBool *_retval);
1042     nsresult CompareNode([in] nsIDOMNode *n, [out] PRUint16 *_retval);
1043     nsresult nSDetach();
1044 }
1045
1046
1047 [
1048     object,
1049     uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1050     local
1051     /* FROZEN */
1052 ]
1053 interface nsIDOMDocumentRange : nsISupports
1054 {
1055     nsresult CreateRange(nsIDOMRange **_retval);
1056 }
1057
1058 [
1059     object,
1060     uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1061     local
1062     /* FROZEN */
1063 ]
1064 interface nsISelection : nsISupports
1065 {
1066     nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1067     nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1068     nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1069     nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1070     nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1071     nsresult GetRangeCount(PRInt32 *aRangeCount);
1072     nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1073     nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1074     nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1075     nsresult CollapseToStart();
1076     nsresult CollapseToEnd();
1077     nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1078     nsresult SelectAllChildren(nsIDOMNode *parentNode);
1079     nsresult AddRange(nsIDOMRange *range);
1080     nsresult RemoveRange(nsIDOMRange *range);
1081     nsresult RemoveAllRanges();
1082     nsresult DeleteFromDocument();
1083     nsresult SelectionLanguageChange(PRBool langRTL);
1084     nsresult ToString(PRUnichar **_retval);
1085 }
1086
1087 [
1088     object,
1089     uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1090     local
1091     /* FROZEN */
1092 ]
1093 interface nsIDOMWindow : nsISupports
1094 {
1095     nsresult GetDocument(nsIDOMDocument **aDocument);
1096     nsresult GetParent(nsIDOMWindow **aParent);
1097     nsresult GetTop(nsIDOMWindow **aTop);
1098     nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1099     nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1100     nsresult GetName(nsAString *aName);
1101     nsresult SetName(const nsAString *aName);
1102     nsresult GetTextZoom(float *aTextZoom);
1103     nsresult SetTextZoom(float aTextZoom);
1104     nsresult GetScrollX(PRInt32 *aScrollX);
1105     nsresult GetScrollY(PRInt32 *aScrollY);
1106     nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1107     nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1108     nsresult GetSelection(nsISelection **_retval);
1109     nsresult ScrollByLines(PRInt32 numLines);
1110     nsresult ScrollByPages(PRInt32 numPages);
1111     nsresult SizeToContent();
1112 }
1113
1114 [
1115     object,
1116     uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1117     local
1118     /* FROZEN */
1119 ]
1120 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1121 {
1122     nsresult GetALink(nsAString *aALink);
1123     nsresult SetALink(const nsAString *aALink);
1124     nsresult GetBackground(nsAString *aBackground);
1125     nsresult SetBackground(const nsAString *aBackground);
1126     nsresult GetBgColor(nsAString *aBgColor);
1127     nsresult SetBgColor(const nsAString *aBgColor);
1128     nsresult GetLink(nsAString *aLink);
1129     nsresult SetLink(const nsAString *aLink);
1130     nsresult GetText(nsAString *aText);
1131     nsresult SetText(const nsAString *aText);
1132     nsresult GetVLink(nsAString *aVLink);
1133     nsresult SetVLink(const nsAString *aVLink);
1134 }
1135
1136 [
1137     object,
1138     uuid(a6cf9093-15b3-11d2-932e-00805f8add32),
1139     local
1140     /* FROZEN */
1141 ]
1142 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1143 {
1144     nsresult GetDefaultValue(nsAString *aDefaultValue);
1145     nsresult SetDefaultValue(const nsAString *aDefaultValue);
1146     nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1147     nsresult SetDefaultChecked(PRBool aDefaultChecked);
1148     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1149     nsresult GetAccept(nsAString *aAccept);
1150     nsresult SetAccept(const nsAString *aAccept);
1151     nsresult GetAccessKey(nsAString *aAccessKey);
1152     nsresult SetAccessKey(const nsAString *aAccessKey);
1153     nsresult GetAlign(nsAString *aAlign);
1154     nsresult SetAlign(const nsAString *aAlign);
1155     nsresult GetAlt(nsAString *aAlt);
1156     nsresult SetAlt(const nsAString *aAlt);
1157     nsresult GetChecked(PRBool *aChecked);
1158     nsresult SetChecked(PRBool aChecked);
1159     nsresult GetDisabled(PRBool *aDisabled);
1160     nsresult SetDisabled(PRBool aDisabled);
1161     nsresult GetMaxLength(PRInt32 *aMaxLength);
1162     nsresult SetMaxLength(PRInt32 aMaxLength);
1163     nsresult GetName(nsAString *aName);
1164     nsresult SetName(const nsAString *aName);
1165     nsresult GetReadOnly(PRBool *aReadOnly);
1166     nsresult SetReadOnly(PRBool aReadOnly);
1167     nsresult GetSize(PRUint32 *aSize);
1168     nsresult SetSize(PRUint32 aSize);
1169     nsresult GetSrc(nsAString *aSrc);
1170     nsresult SetSrc(const nsAString *aSrc);
1171     nsresult GetTabIndex(PRInt32 *aTabIndex);
1172     nsresult SetTabIndex(PRInt32 aTabIndex);
1173     nsresult GetType(nsAString *aType);
1174     nsresult SetType(const nsAString *aType);
1175     nsresult GetUseMap(nsAString *aUseMap);
1176     nsresult SetUseMap(const nsAString *aUseMap);
1177     nsresult GetValue(nsAString *aValue);
1178     nsresult SetValue(const nsAString *aValue);
1179     nsresult Blur();
1180     nsresult Focus();
1181     nsresult Select();
1182     nsresult Click();
1183 }
1184
1185 [
1186     object,
1187     uuid(a6cf9092-15b3-11d2-932e-00805f8add32),
1188     local
1189     /* FROZEN */
1190 ]
1191 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1192 {
1193     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1194     nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1195     nsresult SetDefaultSelected(PRBool aDefaultSelected);
1196     nsresult GetText(nsAString *aText);
1197     nsresult GetIndex(PRInt32 *aIndex);
1198     nsresult GetDisabled(PRBool *aDisabled);
1199     nsresult SetDisabled(PRBool aDisabled);
1200     nsresult GetLabel(nsAString *aLabel);
1201     nsresult SetLabel(const nsAString *aLabel);
1202     nsresult GetSelected(PRBool *aSelected);
1203     nsresult SetSelected(PRBool aSelected);
1204     nsresult GetValue(nsAString *aValue);
1205     nsresult SetValue(const nsAString *aValue);
1206 }
1207
1208 [
1209     object,
1210     uuid(a6cf9090-15b3-11d2-932e-00805f8add32),
1211     local
1212     /* FROZEN */
1213 ]
1214 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1215 {
1216     nsresult GetType(nsAString *aType);
1217     nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1218     nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1219     nsresult GetValue(nsAString *aValue);
1220     nsresult SetValue(const nsAString *aValue);
1221     nsresult GetLength(PRUint32 *aLength);
1222     nsresult SetLength(PRUint32 aLength);
1223     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1224     nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1225     nsresult GetDisabled(PRBool *aDisabled);
1226     nsresult SetDisabled(PRBool aDisabled);
1227     nsresult GetMultiple(PRBool *aMultiple);
1228     nsresult SetMultiple(PRBool aMultiple);
1229     nsresult GetName(nsAString *aName);
1230     nsresult SetName(const nsAString *aName);
1231     nsresult GetSize(PRInt32 *aSize);
1232     nsresult SetSize(PRInt32 aSize);
1233     nsresult GetTabIndex(PRInt32 *aTabIndex);
1234     nsresult SetTabIndex(PRInt32 aTabIndex);
1235     nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1236     nsresult Remove(PRInt32 index);
1237     nsresult Blur();
1238     nsresult Focus();
1239 }
1240
1241 [
1242     object,
1243     uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1244     local
1245     /* FROZEN */
1246 ]
1247 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1248 {
1249     nsresult GetDefaultValue(nsAString *aDefaultValue);
1250     nsresult SetDefaultValue(const nsAString *aDefaultValue);
1251     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1252     nsresult GetAccessKey(nsAString *aAccessKey);
1253     nsresult SetAccessKey(const nsAString *aAccessKey);
1254     nsresult GetCols(PRInt32 *aCols);
1255     nsresult SetCols(PRInt32 aCols);
1256     nsresult GetDisabled(PRBool *aDisabled);
1257     nsresult SetDisabled(PRBool aDisabled);
1258     nsresult GetName(nsAString *aName);
1259     nsresult SetName(const nsAString *aName);
1260     nsresult GetReadOnly(PRBool *aReadOnly);
1261     nsresult SetReadOnly(PRBool aReadOnly);
1262     nsresult GetRows(PRInt32 *aRows);
1263     nsresult SetRows(PRInt32 aRows);
1264     nsresult GetTabIndex(PRInt32 *aTabIndex);
1265     nsresult SetTabIndex(PRInt32 aTabIndex);
1266     nsresult GetType(nsAString *aType);
1267     nsresult GetValue(nsAString *aValue);
1268     nsresult SetValue(const nsAString *aValue);
1269     nsresult Blur();
1270     nsresult Focus();
1271     nsresult Select();
1272 }
1273
1274 [
1275     object,
1276     uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1277     local
1278     /* FROZEN */
1279 ]
1280 interface nsIURIContentListener : nsISupports
1281 {
1282     nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1283     nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1284         nsIStreamListener **aContentHandler, PRBool *_retval);
1285     nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1286     nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1287         char **aDesiredContentType, PRBool *_retval);
1288     nsresult GetLoadCookie(nsISupports **aLoadCookie);
1289     nsresult SetLoadCookie(nsISupports *aLoadCookie);
1290     nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1291     nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1292 }
1293
1294 [
1295     object,
1296     uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1297     local
1298     /* FROZEN */
1299 ]
1300 interface nsITooltipListener : nsISupports
1301 {
1302     nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1303     nsresult OnHideTooltip();
1304 }
1305
1306 [
1307     object,
1308     uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c),
1309     local
1310     /* FROZEN */
1311 ]
1312 interface nsIWebBrowser : nsISupports
1313 {
1314     nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1315     nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1316     nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1317     nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1318     nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1319     nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1320     nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1321 }
1322
1323 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1324
1325 [
1326     object,
1327     uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1328     local
1329     /* FROZEN */
1330 ]
1331 interface nsIWebBrowserSetup : nsISupports
1332 {
1333     nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1334 }
1335
1336 typedef void* nativeWindow;
1337
1338 [
1339     object,
1340     uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1341     local
1342     /* NOT_FROZEN */
1343 ]
1344 interface nsIBaseWindow : nsISupports
1345 {
1346     nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1347             PRInt32 y, PRInt32 cx, PRInt32 cy);
1348     nsresult Create();
1349     nsresult Destroy();
1350     nsresult SetPosition(PRInt32 x, PRInt32 y);
1351     nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1352     nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1353     nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1354     nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1355     nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1356     nsresult Repaint(PRBool force);
1357     nsresult GetParentWidget(nsIWidget **aParentWidget); 
1358     nsresult SetParentWidget(nsIWidget *aParentWidget);
1359     nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1360     nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1361     nsresult GetVisibility(PRBool *aVisibility);
1362     nsresult SetVisibility(PRBool aVisibility);
1363     nsresult GetEnabled(PRBool *aEnabled);
1364     nsresult SetEnabled(PRBool aEnabled);
1365     nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1366     nsresult SetBlurSuppression(PRBool aBlurSuppression);
1367     nsresult GetMainWidget(nsIWidget **aMainWidget);
1368     nsresult SetFocus();
1369     nsresult GetTitle(PRUnichar **aTitle);
1370     nsresult SetTitle(const PRUnichar *aTitle);
1371 }
1372
1373 cpp_quote("#define LOAD_FLAGS_NONE 0")
1374
1375 [
1376     object,
1377     uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1378     local
1379     /* NOT_FROZEN */
1380 ]
1381 interface nsIWebNavigation : nsISupports
1382 {
1383     nsresult GetCanGoBack(PRBool *aCanGoBack);
1384     nsresult GetCanGoForward(PRBool *aCanGoForward);
1385     nsresult GoBack();
1386     nsresult GoForward();
1387     nsresult GotoIndex(PRInt32 index);
1388     nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1389             nsIInputStream *aPostData, nsIInputStream *aHeaders);
1390     nsresult Reload(PRUint32 aReloadFlags);
1391     nsresult Stop(PRUint32 aStopFlags);
1392     nsresult GetDocument(nsIDOMDocument **aDocument);
1393     nsresult GetCurrentURI(nsIURI **aCurrentURI);
1394     nsresult GetReferringURI(nsIURI **aReferringURI);
1395     nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1396     nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1397 }
1398
1399 [
1400     object,
1401     uuid(f1094df6-ce0e-42c9-9847-2f663172c38d),
1402     local
1403     /* NOT_FROZEN */
1404 ]
1405 interface nsIPrintSettings : nsISupports
1406 {
1407     typedef struct { char dummy; } nsMargin;
1408
1409     nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1410     nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1411     nsresult GetPrintOptionsBits(PRInt32 *_retval);
1412     nsresult GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight);
1413     nsresult Clone(nsIPrintSettings **_retval);
1414     nsresult Assign(nsIPrintSettings *aPS);
1415     nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1416     nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1417     nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1418     nsresult SetStartPageRange(PRInt32 aStartPageRange);
1419     nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1420     nsresult SetEndPageRange(PRInt32 aEndPageRange);
1421     nsresult GetMarginTop(double *aMarginTop);
1422     nsresult SetMarginTop(double aMarginTop);
1423     nsresult GetMarginLeft(double *aMarginLeft);
1424     nsresult SetMarginLeft(double aMarginLeft);
1425     nsresult GetMarginBottom(double *aMarginBottom);
1426     nsresult SetMarginBottom(double aMarginBottom);
1427     nsresult GetMarginRight(double *aMarginRight);
1428     nsresult SetMarginRight(double aMarginRight);
1429     nsresult GetScaling(double *aScaling);
1430     nsresult SetScaling(double aScaling);
1431     nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1432     nsresult SetPrintBGColors(PRBool aPrintBGColors);
1433     nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1434     nsresult SetPrintBGImages(PRBool aPrintBGImages);
1435     nsresult GetPrintRange(PRInt16 *aPrintRange);
1436     nsresult SetPrintRange(PRInt16 aPrintRange);
1437     nsresult GetTitle(PRUnichar **aTitle);
1438     nsresult SetTitle(const PRUnichar *aTitle);
1439     nsresult GetDocURL(PRUnichar **aDocURL);
1440     nsresult SetDocURL(const PRUnichar *aDocURL);
1441     nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1442     nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1443     nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1444     nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1445     nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1446     nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1447     nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1448     nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1449     nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1450     nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1451     nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1452     nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1453     nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1454     nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1455     nsresult GetIsCancelled(PRBool *aIsCancelled);
1456     nsresult SetIsCancelled(PRBool aIsCancelled);
1457     nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1458     nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1459     nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1460     nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1461     nsresult GetPrintSilent(PRBool *aPrintSilent);
1462     nsresult SetPrintSilent(PRBool aPrintSilent);
1463     nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1464     nsresult SetShrinkToFit(PRBool aShrinkToFit);
1465     nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1466     nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1467     nsresult GetPaperName(PRUnichar **aPaperName);
1468     nsresult SetPaperName(const PRUnichar *aPaperName);
1469     nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1470     nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1471     nsresult GetPaperData(PRInt16 *aPaperData);
1472     nsresult SetPaperData(PRInt16 aPaperData);
1473     nsresult GetPaperWidth(double *aPaperWidth);
1474     nsresult SetPaperWidth(double aPaperWidth);
1475     nsresult GetPaperHeight(double *aPaperHeight);
1476     nsresult SetPaperHeight(double aPaperHeight);
1477     nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1478     nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1479     nsresult GetPlexName(PRUnichar **aPlexName);
1480     nsresult SetPlexName(const PRUnichar *aPlexName);
1481     nsresult GetColorspace(PRUnichar **aColorspace);
1482     nsresult SetColorspace(const PRUnichar *aColorspace);
1483     nsresult GetResolutionName(PRUnichar **aResolutionName);
1484     nsresult SetResolutionName(const PRUnichar aResolutionName);
1485     nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1486     nsresult SetDownloadFonts(PRBool aDownloadFonts);
1487     nsresult GetPrintReversed(PRBool *aPrintReversed);
1488     nsresult SetPrintReversed(PRBool aPrintReversed);
1489     nsresult GetPrintInColor(PRBool *aPrintInColor);
1490     nsresult SetPrintInColor(PRBool aPrintInColor);
1491     nsresult GetPaperSize(PRInt32 *aPaperSize);
1492     nsresult SetPaperSize(PRInt32 aPaperSize);
1493     nsresult GetOrientation(PRInt32 *aOrientation);
1494     nsresult SetOrientation(PRInt32 aOrientation);
1495     nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1496     nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1497     nsresult GetNumCopies(PRInt32 *aNumCopies);
1498     nsresult SetNumCopies(PRInt32 aNumCopies);
1499     nsresult GetPrinterName(PRUnichar **aPrinterName);
1500     nsresult SetPrinterName(const PRUnichar *aPrinterName);
1501     nsresult GetPrintToFile(PRBool *aPrintToFile);
1502     nsresult SetPrintToFile(PRBool aPrintToFile);
1503     nsresult GetToFileName(PRUnichar **aToFileName);
1504     nsresult SetToFileName(const PRUnichar *aToFileName);
1505     nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1506     nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1507     nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1508     nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1509     nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1510     nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1511     nsresult SetMarginInTwips(nsMargin *aMargin);
1512     nsresult GetMarginInTwips(nsMargin *aMargin);
1513 }
1514
1515 [
1516     object,
1517     uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1518     local
1519     /* FROZEN */
1520 ]
1521 interface nsIWebBrowserPrint : nsISupports
1522 {
1523     nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1524     nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1525     nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1526     nsresult GetDoingPrint(PRBool *aDoingPrint);
1527     nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1528     nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1529     nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1530     nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1531     nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1532     nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1533     nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1534     nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1535                           nsIWebProgressListener *aWPListener);
1536     nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1537     nsresult Cancel();
1538     nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1539     nsresult ExitPrintPreview();
1540 }
1541
1542 [
1543     object,
1544     uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1545     local
1546     /* NOT_FROZEN */
1547 ]
1548 interface nsIScrollable : nsISupports
1549 {
1550     enum {
1551         ScrollOrientation_X = 1,
1552         ScrollOrientation_Y = 2
1553     };
1554
1555     enum {
1556         Scrollbar_Auto   = 1,
1557         Scrollbar_Never  = 2,
1558         Scrollbar_Always = 3
1559     };
1560
1561     nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1562     nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1563     nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1564     nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1565     nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1566     nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1567             PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1568     nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1569     nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1570     nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1571 }
1572
1573 [
1574     object,
1575     uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1576     local
1577     /* FROZEN */
1578 ]
1579 interface nsIFile : nsISupports
1580 {
1581     nsresult Append(const nsAString *node);
1582     nsresult AppendNative(const nsAString *node);
1583     nsresult Normalize();
1584     nsresult Create(PRUint32 type, PRUint32 permission);
1585     nsresult GetLeafName(nsAString *aLeafName);
1586     nsresult SetLeafName(const nsAString *aLeafName);
1587     nsresult GetNativeLeafName(nsAString *aLeafName);
1588     nsresult SetNativeLeafName(const nsAString *aLeafName);
1589     nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1590     nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1591     nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1592     nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1593     nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1594     nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1595     nsresult Remove(PRBool recursive);
1596     nsresult GetPermissions(PRUint32 *aPermissions);
1597     nsresult SetPermissions(PRUint32 pPermissions);
1598     nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1599     nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1600     nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1601     nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1602     nsresult GetFileSize(PRInt64 *aFileSize);
1603     nsresult SetFileSize(PRInt64 aFileSize);
1604     nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1605     nsresult GetTarget(nsAString *aTarget);
1606     nsresult GetNativeTarget(nsACString *aNativeTarget);
1607     nsresult GetPath(nsAString *aPath);
1608     nsresult GetNativePath(nsACString *aNativePath);
1609     nsresult Exists(PRBool *_retval);
1610     nsresult IsWritable(PRBool *_retval);
1611     nsresult IsReadable(PRBool *_retval);
1612     nsresult IsExecutable(PRBool *_retval);
1613     nsresult IsHidden(PRBool *_retval);
1614     nsresult IsDirectory(PRBool *_retval);
1615     nsresult IsFile(PRBool *_retval);
1616     nsresult IsSymlink(PRBool *_retval);
1617     nsresult IsSpecial(PRBool *_retval);
1618     nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1619     nsresult Clone(nsIFile **_retval);
1620     nsresult Equals(nsIFile *inFile, PRBool *_retval);
1621     nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1622     nsresult GetParent(nsIFile **aParent);
1623     nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1624 }
1625
1626 [
1627     object,
1628     uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
1629     local
1630     /* FROZEN */
1631 ]
1632 interface nsIPrefBranch : nsISupports
1633 {
1634     nsresult GetRoot(char **aRoot);
1635     nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
1636     nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
1637     nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
1638     nsresult GetCharPref(const char *aPrefName, char **_retval);
1639     nsresult SetCharPref(const char *aPrefName, const char *aValue);
1640     nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
1641     nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
1642     nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
1643     nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
1644     nsresult ClearUserPref(const char *aPrefName);
1645     nsresult LockPref(const char *aPrefName);
1646     nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
1647     nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
1648     nsresult UnlockPref(const char *aPrefName);
1649     nsresult DeleteBranch(const char *aStartingAt);
1650     nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
1651     nsresult ResetBranch(const char *aStartingAt);
1652 }
1653
1654 [
1655     object,
1656     uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
1657     local
1658     /* FROZEN */
1659 ]
1660 interface nsIProtocolHandler : nsISupports
1661 {
1662     nsresult GetScheme(nsACString *aScheme);
1663     nsresult GetDefaultPort(PRInt32 *aDefaultPort);
1664     nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
1665     nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
1666                     nsIURI *aBaseURI, nsIURI **_retval);
1667     nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
1668     nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
1669 }
1670
1671 [
1672     object,
1673     uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
1674     local
1675     /* NOT_FROZEN */
1676 ]
1677 interface nsIExternalProtocolHandler : nsIProtocolHandler
1678 {
1679     nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
1680 }
1681
1682 [
1683     object,
1684     uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
1685     local
1686     /* FROZEN */
1687 ]
1688 interface nsIIOService : nsISupports
1689 {
1690     nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1691     nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1692     nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1693                     nsIURI **_retval);
1694     nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1695     nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1696     nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1697                         nsIChannel **_retval);
1698     nsresult GetOffline(PRBool *aOffline);
1699     nsresult SetOffline(PRBool aOffline);
1700     nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1701     nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1702 }
1703
1704 [
1705     object,
1706     uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
1707     local
1708     /* FROZEN */
1709 ]
1710 interface nsIWebBrowserFocus : nsISupports
1711 {
1712     nsresult Activate();
1713     nsresult Deactivate();
1714     nsresult SetFocusAtFirstElement();
1715     nsresult SetFocusAtLastElement();
1716     nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1717     nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1718     nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1719     nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1720 }
1721
1722 [
1723     object,
1724     uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
1725     local
1726     /* FROZEN */
1727 ]
1728 interface nsIWebBrowserChrome : nsISupports
1729 {
1730     nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1731     nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1732     nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1733     nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1734     nsresult SetChromeFlags(PRUint32 aChromeFlags);
1735     nsresult DestroyBrowserWindow();
1736     nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1737     nsresult ShowAsModal();
1738     nsresult IsWindowModal(PRBool *_retval);
1739     nsresult ExitModalEventLoop(nsresult aStatus);
1740 }
1741
1742 [
1743     object,
1744     uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
1745     local
1746     /* FROZEN */
1747 ]
1748 interface nsIDOMEventListener : nsISupports
1749 {
1750     nsresult HandleEvent(nsIDOMEvent *event);
1751 }
1752
1753 [
1754     object,
1755     uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
1756     local
1757     /* FROZEN */
1758 ]
1759 interface nsIDOMEventTarget : nsISupports
1760 {
1761     nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1762     nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1763     nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1764 }
1765
1766 [
1767     object,
1768     uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
1769     local
1770     /* FROZEN */
1771 ]
1772 interface nsIDOMEvent : nsISupports
1773 {
1774     nsresult GetType(nsAString *aType);
1775     nsresult GetTarget(nsIDOMEventTarget **aTarget);
1776     nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1777     nsresult GetEventPhase(PRUint16 *aEventPhase);
1778     nsresult GetBubbles(PRBool *aBubbles);
1779     nsresult GetCancelable(PRBool *aCancelable);
1780     nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1781     nsresult StopPropagation();
1782     nsresult PreventDefault();
1783     nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1784 }
1785
1786 cpp_quote("#define CONTEXT_NONE              0x00")
1787 cpp_quote("#define CONTEXT_LINK              0x01")
1788 cpp_quote("#define CONTEXT_IMAGE             0x02")
1789 cpp_quote("#define CONTEXT_DOCUMENT          0x04")
1790 cpp_quote("#define CONTEXT_TEXT              0x08")
1791 cpp_quote("#define CONTEXT_INPUT             0x10")
1792 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE  0x20")
1793
1794 [
1795     object,
1796     uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
1797     local
1798     /* FROZEN */
1799 ]
1800 interface nsIContextMenuListener : nsISupports
1801 {
1802     nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1803 }
1804
1805 [
1806     object,
1807     uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
1808     local
1809     /* FROZEN */
1810 ]
1811 interface nsIDOMUIEvent : nsIDOMEvent
1812 {
1813     nsresult GetView(nsIDOMAbstractView **aView);
1814     nsresult GetDetail(PRInt32 *aDetail);
1815     nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1816             nsIDOMAbstractView *viewArg, PRInt32 detailArg);
1817 }
1818
1819 [
1820     object,
1821     uuid(ff751edc-8b02-aae7-0010-8301838a3123),
1822     local
1823     /* FROZEN */
1824 ]
1825 interface nsIDOMMouseEvent : nsIDOMUIEvent
1826 {
1827     nsresult GetScreenX(PRInt32 *aScreenX);
1828     nsresult GetScreenY(PRInt32 *aScreenY);
1829     nsresult GetClientX(PRInt32 *aClientX);
1830     nsresult GetClientY(PRInt32 *aClientY);
1831     nsresult GetCtrlKey(PRBool *aCtrlKey);
1832     nsresult GetShiftKey(PRBool *aShiftKey);
1833     nsresult GetAltKey(PRBool *aAltKey);
1834     nsresult GetMetaKey(PRBool *aMetaKey);
1835     nsresult GetButton(PRUint16 *aButton);
1836     nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
1837     nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1838             nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
1839             PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
1840             PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
1841             nsIDOMEventTarget *relatedTargetArg);
1842 }
1843
1844 [
1845     object,
1846     uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
1847     local
1848     /* NOT_FROZEN */
1849 ]
1850 interface nsIDOMKeyEvent : nsIDOMUIEvent
1851 {
1852     nsresult GetCharCode(PRUint32 *aCharCode);
1853     nsresult GetKeyCode(PRUint32 *aKeyCode);
1854     nsresult GetAltKey(PRBool *aAltKey);
1855     nsresult GetCtrlKey(PRBool *aCtrlKey);
1856     nsresult GetShiftKey(PRBool *aShiftKey);
1857     nsresult GetMetaKey(PRBool *aMetaKey);
1858     nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
1859             PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
1860             PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
1861             PRUint32 charCodeArg);
1862 }
1863
1864 [
1865     object,
1866     uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
1867     local
1868     /* FROZEN */
1869 ]
1870 interface nsIEmbeddingSiteWindow : nsISupports
1871 {
1872     nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
1873     nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1874     nsresult SetFocus();
1875     nsresult GetVisibility(PRBool *aVisibility);
1876     nsresult SetVisibility(PRBool aVisibility);
1877     nsresult GetTitle(PRUnichar **aTitle);
1878     nsresult SetTitle(const PRUnichar *aTitle);
1879     nsresult GetSiteWindow(void **aSiteWindow);
1880 }
1881
1882 [
1883     object,
1884     uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
1885     local
1886     /* FROZEN */
1887 ]
1888 interface nsIComponentRegistrar : nsISupports
1889 {
1890     nsresult AutoRegister(nsIFile *aSpec);
1891     nsresult AutoUnregister(nsIFile *aSpec);
1892     nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1893             const char *aContractID, nsIFactory *aFactory);
1894     nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1895     nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1896             const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1897             const char *aType);
1898     nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1899     nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1900     nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1901     nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1902     nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1903     nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1904     nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1905 }
1906
1907 [
1908     object,
1909     uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
1910     local
1911     /* FROZEN */
1912 ]
1913 interface nsIPromptService : nsISupports
1914 {
1915     nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1916             const PRUnichar *aText);
1917     nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1918             const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
1919     nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1920             const PRUnichar *aText, PRBool *_retval);
1921     nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1922             const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
1923             PRBool *_retval);
1924     nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1925             const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
1926             const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
1927             const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
1928     nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1929             const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
1930             PRBool *aCheckState, PRBool *_retval);
1931     nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1932             const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
1933             const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
1934     nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1935             const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
1936             PRBool *aCheckState, PRBool *_retval);
1937     nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1938             const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
1939             PRInt32 *aOutSelection, PRBool *_retval);
1940 }
1941
1942 [
1943     object,
1944     uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
1945     local
1946     /* FROZEN */
1947 ]
1948 interface nsITooltipTextProvider : nsISupports
1949 {
1950     nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
1951 }
1952
1953 [
1954     object,
1955     uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
1956     local
1957     /* FROZEN */
1958 ]
1959 interface nsIProfile : nsISupports
1960 {
1961     nsresult GetProfileCount(PRInt32 *aProfileCount);
1962     nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
1963     nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
1964     nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
1965     nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
1966     nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
1967     nsresult CreateNewProfile(const PRUnichar *profileName,
1968             const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
1969             PRBool useExistingDir);
1970     nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
1971     nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
1972     nsresult CloneProfile(const PRUnichar *profileName);
1973 }
1974
1975 [
1976     object,
1977     uuid(30465632-a777-44cc-90f9-8145475ef999),
1978     local
1979     /* FROZEN */
1980 ]
1981 interface nsIWindowCreator : nsISupports
1982 {
1983     nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1984                                    nsIWebBrowserChrome **_retval);
1985 }
1986
1987 [
1988     object,
1989     uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
1990     local
1991     /* NOT_FROZEN */
1992 ]
1993 interface nsIWindowCreator2 : nsIWindowCreator
1994 {
1995     nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1996                                  PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
1997                                  nsIWebBrowserChrome **_retval);
1998 }
1999
2000 [
2001     object,
2002     uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2003     local
2004     /* FROZEN */
2005 ]
2006 interface nsIWindowWatcher : nsISupports
2007 {
2008     nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2009                         const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2010     nsresult RegisterNotification(nsIObserver *aObserver);
2011     nsresult UnregisterNotification(nsIObserver *aObserver);
2012     nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2013     nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2014     nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2015     nsresult SetWindowCreator(nsIWindowCreator *creator);
2016     nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2017     nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2018                              nsIDOMWindow **_retval);
2019     nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2020     nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2021 }
2022
2023 [
2024     object,
2025     uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b),
2026     local
2027     /* NOT_FROZEN */
2028 ]
2029 interface nsIEditingSession : nsISupports
2030 {
2031     nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2032     nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2033                                 PRBool doAfterUriLoad);
2034     nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2035     nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2036     nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2037     nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2038     nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2039 }
2040
2041 [
2042     object,
2043     uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2044     local
2045     /* NOT_FROZEN */
2046 ]
2047 interface nsICommandParams : nsISupports
2048 {
2049     nsresult GetValueType(const char *name, PRInt16 *_retval);
2050     nsresult GetBooleanValue(const char *name, PRBool *_retval);
2051     nsresult GetLongValue(const char *name, PRInt32 *_retval);
2052     nsresult GetDoubleValue(const char *name, double *_retval);
2053     nsresult GetStringValue(const char *name, nsAString *_retval);
2054     nsresult GetCStringValue(const char *name, char **_retval);
2055     nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2056     nsresult SetBooleanValue(const char *name, PRBool value);
2057     nsresult SetLongValue(const char *name, PRInt32 value);
2058     nsresult SetDoubleValue(const char *name, double value);
2059     nsresult SetStringValue(const char *name, const nsAString *value);
2060     nsresult SetCStringValue(const char *name, const char *value);
2061     nsresult SetISupportsValue(const char *name, nsISupports *value);
2062     nsresult RemoveValue(const char *name);
2063     nsresult HasMoreElements(PRBool *_retval);
2064     nsresult First();
2065     nsresult GetNext(char **_retval);
2066 }
2067
2068 [
2069     object,
2070     uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2071     local
2072     /* NOT_FROZEN */
2073 ]
2074 interface nsICommandManager : nsISupports
2075 {
2076     nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2077     nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2078     nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2079     nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2080     nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2081             nsICommandParams *aCommandParams);
2082     nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2083             nsIDOMWindow *aTargetWindow);
2084 }
2085
2086 [
2087     object,
2088     uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2089     local
2090     /* NOT_FROZEN */
2091 ]
2092 interface nsIControllerContext : nsISupports
2093 {
2094     nsresult Init(nsIControllerCommandTable *aCommandTable);
2095     nsresult SetCommandContext(nsISupports *aCommandContext);
2096 }
2097
2098 [
2099     object,
2100     uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2101     local
2102     /* NOT_FROZEN */
2103 ]
2104 interface nsIController : nsISupports
2105 {
2106     nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2107     nsresult SupportsCommand(const char *command, PRBool *_retval);
2108     nsresult DoCommand(const char *command);
2109     nsresult OnEvent(const char *eventName);
2110 }
2111
2112 [
2113     object,
2114     uuid(d650439a-ca29-410d-a906-b0557fb62fcd),
2115     local
2116     /* NOT_FROZEN */
2117 ]
2118 interface nsIContentSerializer : nsISupports
2119 {
2120     nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying);
2121     nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2122     nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
2123             PRInt32 aEndOffset, nsAString *aStr);
2124     nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
2125             PRInt32 aEndOffset, nsAString *aStr);
2126     nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2127             nsAString *aStr);
2128     nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
2129     nsresult AppendElementStart(nsIDOMElement *aElement, PRBool aHasChildren, nsAString *aStr);
2130     nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
2131     nsresult Flush(nsAString *aStr);
2132     nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
2133 }
2134
2135 [
2136     object,
2137     uuid(68b97c56-2289-48ac-a9e1-72c30fd3dba2),
2138     local
2139 ]
2140 interface nsIScriptContainer : nsISupports
2141 {
2142     typedef void *JSObject;
2143
2144     nsresult GetContext(void **aContext);
2145     nsresult GetGlobalObject(void **aGlobalObject);
2146     nsresult CompileScript(const PRUnichar *aText, PRInt32 aTextLength, void *aScopeObject,
2147             nsIPrincipal *aPrincipal, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, void **_retval);
2148     nsresult ExecuteScript(void *aScriptObject, void *aScopeObject, nsAString *aRetVal, PRBool *aIsUndefined);
2149     nsresult CompileFunction(void *aTarget, const nsACString *aName, PRUint32 aArgCount,
2150             const char **aArgArray, const nsAString *aBody, const char *aURL, PRInt32 aLineNo,
2151             PRBool aShared, void* *_retval);
2152     nsresult CallFunction(nsISupports *aTarget, void *aScope, void *aHandler, nsIArray *argv,
2153             nsIVariant **_retval);
2154     nsresult BindEventHandler(nsISupports *aTarget, void *aScope, nsIAtom *aName, void *aHandler);
2155     nsresult HoldScriptObject(void *aObject);
2156     nsresult DropScriptObject(void *aObject);
2157 }
2158
2159 [
2160     object,
2161     uuid(D4882FFB-E927-408b-96BE-D4391B456FA9),
2162     local
2163 ]
2164 interface nsIEditor  : nsISupports
2165 {
2166     typedef void *nsIPresShellPtr;
2167     typedef void *nsIContentPtr;
2168
2169     nsresult GetSelection([out] nsISelection *_retval);
2170     nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2171     nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2172     nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2173     nsresult PostCreate();
2174     nsresult PreDestroy();
2175     nsresult GetFlags([out] PRUint32 *_retval);
2176     nsresult SetFlags([in] PRUint32 val);
2177     nsresult GetContentsMIMEType([out] char **_retval);
2178     nsresult SetContentsMIMEType([in] const char *val);
2179     nsresult GetIsDocumentEditable([out] PRBool *_retval);
2180     nsresult GetDocument([out] nsIDOMDocument **_retval);
2181     nsresult GetRootElement([out] nsIDOMElement **_retval);
2182     nsresult GetSelectionController([out] nsISelectionController **_retval);
2183     nsresult DeleteSelection([in] PRInt16 action);
2184     nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2185     nsresult GetDocumentModified([out] PRBool *_retval);
2186     nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2187     nsresult SetDocumentCharacterSet([in] const nsACString *val);
2188     nsresult ResetModificationCount();
2189     nsresult GetModificationCount([out] PRInt32 *_retval);
2190     nsresult IncrementModificationCount([in] long aModCount);
2191     nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2192     nsresult DoTransaction([in] nsITransaction *txn);
2193     nsresult EnableUndo([in] PRBool enable);
2194     nsresult Undo([in] PRUint32 count);
2195     nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2196     nsresult Redo([in] PRUint32 count);
2197     nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2198     nsresult BeginTransaction();
2199     nsresult EndTransaction();
2200     nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2201     nsresult EndPlaceHolderTransaction();
2202     nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2203     nsresult SetShouldTxnSetSelection([in] PRBool should);
2204     nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2205     nsresult Cut();
2206     nsresult CanCut([out] PRBool *_retval);
2207     nsresult Copy();
2208     nsresult CanCopy([out] PRBool *_retval);
2209     nsresult Paste([in] PRInt32 aSelectionType);
2210     nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2211     nsresult SelectAll();
2212     nsresult BeginningOfDocument();
2213     nsresult EndOfDocument();
2214     nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2215     nsresult DoDrag([in] nsIDOMEvent *aEvent);
2216     nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2217     nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2218     nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2219     nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2220     nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2221     nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2222     nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2223     nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2224     nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2225     nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2226     nsresult DeleteNode([in] nsIDOMNode *child);
2227     nsresult MarkNodeDirty([in] nsIDOMNode *node);
2228     nsresult SwitchTextDirection();
2229     nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2230     nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2231     nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2232     nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2233     nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2234     nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2235     nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2236     nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2237     nsresult DumpContentTree();
2238     nsresult DebugDumpContent();
2239     nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2240 }
2241
2242 [
2243     object,
2244     uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2245     local
2246 ]
2247 interface nsIHTMLEditor : nsISupports
2248 {
2249     nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2250     nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2251     nsresult RemoveAllDefaultProperties();
2252     nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2253     nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2254     nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2255     nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2256     nsresult RemoveAllInlineProperties();
2257     nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2258     nsresult IncreaseFontSize();
2259     nsresult DecreaseFontSize();
2260     nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2261     nsresult DoDrag([in] nsIDOMEvent *aEvent);
2262     nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2263     nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2264     nsresult InsertHTML([in] nsAString *aInputString);
2265     nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2266     nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2267     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);
2268     nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2269     nsresult SetDocumentTitle([in] nsAString *aTitle);
2270     nsresult UpdateBaseURL();
2271     nsresult SelectElement([in] nsIDOMElement *aElement);
2272     nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2273     nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2274     nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2275     nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2276     nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2277     nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2278     nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2279     nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2280     nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2281     nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2282     nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2283     nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2284     nsresult RemoveList([in] nsAString *aListType);
2285     nsresult Indent([in] nsAString *aIndent);
2286     nsresult Align([in] nsAString *aAlign);
2287     nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2288     nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2289     nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2290     nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2291     nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2292     nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2293     nsresult SetBackgroundColor([in] nsAString *aColor);
2294     nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2295     nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2296     nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2297     nsresult GetIsCSSEnabled([out] PRBool *_retval);
2298     nsresult SetIsCSSEnabled([in] PRBool prb);
2299     nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2300     nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2301     nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2302     nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2303     nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2304     nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2305     nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2306     nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2307 }
2308
2309 /*
2310  * NOTE:
2311  * This is a private Wine interface that is implemented by our implementation
2312  * of nsIURI to store its owner.
2313  */
2314 [
2315     object,
2316     uuid(5088272e-900b-11da-c687-000fea57f21a),
2317     local
2318     /* INTERNAL */
2319 ]
2320 interface nsIWineURI : nsIURI
2321 {
2322     typedef struct NSContainer NSContainer;
2323
2324     nsresult GetNSContainer(NSContainer **aNSContainer);
2325     nsresult SetNSContainer(NSContainer *aNSContainer);
2326     nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
2327     nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
2328     nsresult GetWineURL(LPCWSTR *aURL);
2329     nsresult SetWineURL(LPCWSTR aURL);
2330 }