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