mshtml: Pass the correct DOCHOSTUITYPE value to IDocHostUIHandler_ShowUI.
[wine] / dlls / mshtml / nsiface.idl
1 /*
2  * Copyright 2005-2007 Jacek Caban for CodeWeavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18
19 /* 
20  * NOTE:
21  * This file is not an usual idl file. Interfaces in this file are XPCOM interfaces
22  * (NOT MSCOM!), but we generate the header file with WIDL compatibile with XPCOM,
23  * useable in C code.
24  */
25
26 cpp_quote("#define GECKO_VERSION \"0.1.0\"");
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION");
28
29 import "wtypes.idl";
30
31 typedef HRESULT nsresult;
32 typedef ULONG nsrefcnt;
33
34 typedef IID nsIID;
35 typedef nsIID nsCID;
36 typedef REFIID nsIIDRef;
37 typedef nsIIDRef nsCIDRef;
38
39 typedef void** nsQIResult;
40 typedef WCHAR PRUnichar;
41 typedef ULONG PRUint32;
42 typedef LONG PRInt32;
43 typedef WORD PRUint16;
44 typedef INT16 PRInt16;
45 typedef BYTE PRUint8;
46 typedef BOOL PRBool;
47 typedef LARGE_INTEGER PRInt64;
48 typedef ULARGE_INTEGER PRUint64;
49 typedef PRUint64 DOMTimeStamp;
50 typedef PRUint32 nsLoadFlags;
51
52 typedef struct {
53     void *v;
54     void *d1;
55     PRUint32 d2;
56     void *d3;
57 } nsCStringContainer;
58
59 typedef struct {
60     void *v;
61     void *d1;
62     PRUint32 d2;
63     void *d3;
64 } nsStringContainer;
65
66 typedef nsCStringContainer nsACString;
67 typedef nsStringContainer nsAString;
68
69 interface nsIWebBrowserChrome;
70 interface nsILoadGroup;
71 interface nsIDOMNode;
72 interface nsIDOMDocument;
73 interface nsIDOMEvent;
74
75 interface IMoniker;
76
77 [
78     object,
79     uuid(00000000-0000-0000-c000-000000000046)
80 ]
81 interface nsISupports
82 {
83     nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
84     nsrefcnt AddRef();
85     nsrefcnt Release();
86 }
87
88 /* Currently we don't need a full declaration of these interfaces */
89 typedef nsISupports nsISHistory;
90 typedef nsISupports nsISimpleEnumerator;
91 typedef nsISupports nsIWidget;
92 typedef nsISupports nsIDOMAbstractView;
93 typedef nsISupports nsIHttpHeaderVisitor;
94 typedef nsISupports nsIDOMBarProp;
95 typedef nsISupports nsIDOMWindowCollection;
96 typedef nsISupports nsIPrompt;
97 typedef nsISupports nsIAuthPrompt;
98 typedef nsISupports nsIDOMNamedNodeMap;
99 typedef nsISupports nsIDOMAttr;
100 typedef nsISupports nsIDOMDocumentType;
101 typedef nsISupports nsIDOMDOMImplementation;
102 typedef nsISupports nsIDOMCDATASection;
103 typedef nsISupports nsIDOMProcessingInstruction;
104 typedef nsISupports nsIDOMEntityReference;
105 typedef nsISupports nsIDOMHTMLFormElement;
106 typedef nsISupports nsIDOMHTMLOptionsCollection;
107 typedef nsISupports nsIDOMHTMLCollection;
108 typedef nsISupports nsIEditor;
109 typedef nsISupports nsIWebProgressListener;
110 typedef nsISupports nsIDOMCSSValue;
111 typedef nsISupports nsIDOMCSSRule;
112 typedef nsISupports nsIPrintSession;
113 typedef nsISupports nsIControllerCommandTable;
114
115 [
116     object,
117     uuid(8bb35ed9-e332-462d-9155-4a002ab5c958)
118     /* FROZEN */
119 ]
120 interface nsIServiceManager : nsISupports
121 {
122     nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
123     nsresult GetServiceByContactID(const char *aContactID, nsIIDRef aIID, void **result);
124     nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
125     nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
126 }
127
128 [
129     object,
130     uuid(00000001-0000-0000-c000-000000000046)
131     /* FROZEN */
132 ]
133 interface nsIFactory : nsISupports
134 {
135     nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
136     nsresult LockFactory(PRBool lock);
137 }
138
139 [
140     object,
141     uuid(db242e01-e4d9-11d2-9dde-000064657374)
142     /* FROZEN */
143 ]
144 interface nsIObserver : nsISupports
145 {
146     nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
147 }
148
149 [
150     object,
151     uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae)
152     /* FROZEN */
153 ]
154 interface nsIComponentManager : nsISupports
155 {
156     nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
157     nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
158     nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
159             nsQIResult result);
160     nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
161             nsIIDRef aIID, nsQIResult result);
162 }
163
164 [
165     object,
166     uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3)
167     /* FROZEN */
168 ]
169 interface nsIMemory : nsISupports
170 {
171     void *Alloc(/*size_t*/ int size);
172     void *Realloc(void *_ptr, /*size_t*/ int newSize);
173     void Free(void *_ptr);
174     nsresult HeapMinimize(PRBool immediate);
175     nsresult IsLowMemory(PRBool *_retval);
176 }
177
178 [
179     object,
180     uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf)
181     /* FROZEN */
182 ]
183 interface nsIWeakReference : nsISupports
184 {
185     nsresult QueryReferent(const nsIID *riid, void **result);
186 }
187
188 [
189     object,
190     uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf)
191     /* FROZEN */
192 ]
193 interface nsISupportsWeakReference : nsISupports
194 {
195     nsresult GetWeakReference(nsIWeakReference **_retval);
196 }
197
198 [
199     object,
200     uuid(033a1470-8b2a-11d3-af88-00a024ffc08c)
201     /* FROZEN */
202 ]
203 interface nsIInterfaceRequestor : nsISupports
204 {
205     nsresult GetInterface(const nsIID *riid, void **result);
206 }
207
208 [
209     object,
210     uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a)
211     /* FROZEN */
212 ]
213 interface nsIInputStream : nsISupports
214 {
215     nsresult Close();
216     nsresult Available(PRUint32 *_retval);
217     nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
218     nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream, 
219             void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
220             PRUint32 aCount, PRUint32 *aWriteCount),
221             void *aClosure, PRUint32 aCount, PRUint32 *_retval);
222     nsresult IsNonBlocking(PRBool *_retval);
223 }
224
225 [
226     object,
227     uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53)
228     /* NOT_FROZEN */
229 ]
230 interface nsIStringInputStream : nsIInputStream
231 {
232     nsresult SetData(const char *data, PRInt32 dataLen);
233     nsresult AdoptData(char *data, PRInt32 dataLen);
234     nsresult ShareData(const char *data, PRInt32 dataLen);
235 }
236
237 [
238     object,
239     uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40)
240     /* FROZEN */
241 ]
242 interface nsIURI : nsISupports
243 {
244     nsresult GetSpec(nsACString *aSpec);
245     nsresult SetSpec(const nsACString *aSpec);
246     nsresult GetPrePath(nsACString *aPrePath);
247     nsresult GetScheme(nsACString *aScheme);
248     nsresult SetScheme(const nsACString *aScheme);
249     nsresult GetUserPass(nsACString *aUserPass);
250     nsresult SetUserPass(const nsACString *aUserPass);
251     nsresult GetUsername(nsACString *aUsername);
252     nsresult SetUsername(const nsACString *aUsername);
253     nsresult GetPassword(nsACString *aPassword);
254     nsresult SetPassword(const nsACString *aPassword);
255     nsresult GetHostPort(nsACString *aHostPort);
256     nsresult SetHostPort(const nsACString *aHostPort);
257     nsresult GetHost(nsACString *aHost);
258     nsresult SetHost(const nsACString *aHost);
259     nsresult GetPort(PRInt32 *aPort);
260     nsresult SetPort(PRInt32 aPort);
261     nsresult GetPath(nsACString *aPath);
262     nsresult SetPath(const nsACString *aPath);
263     nsresult Equals(nsIURI *other, PRBool *_retval);
264     nsresult SchemeIs(const char *scheme, PRBool *_retval);
265     nsresult Clone(nsIURI **_retval);
266     nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
267     nsresult GetAsciiSpec(nsACString *aAsciiSpec);
268     nsresult GetAsciiHost(nsACString *aAsciiHost);
269     nsresult GetOriginCharset(nsACString *aOriginCharset);
270 }
271
272 [
273     object,
274     uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe)
275     /* FROZEN */
276 ]
277 interface nsIRequest : nsISupports
278 {
279     nsresult GetName(nsACString *aName);
280     nsresult IsPending(PRBool *_retval);
281     nsresult GetStatus(nsresult *aStatus);
282     nsresult Cancel(nsresult aStatus);
283     nsresult Suspend();
284     nsresult Resume();
285     nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
286     nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
287     nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
288     nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
289 }
290
291 [
292     object,
293     uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40)
294     /* FROZEN */
295 ]
296 interface nsIRequestObserver : nsISupports
297 {
298     nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
299     nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
300 }
301
302 [
303     object,
304     uuid(1a637020-1482-11d3-9333-00104ba0fd40)
305     /* FROZEN */
306
307 interface nsIStreamListener : nsIRequestObserver
308 {
309     nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
310                              nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
311 }
312
313 [
314     object,
315     uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc)
316     /* FROZEN */
317 ]
318 interface nsILoadGroup : nsIRequest
319 {
320     nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
321     nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
322     nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
323     nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
324     nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
325     nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
326     nsresult GetRequests(nsISimpleEnumerator **aRequests);
327     nsresult GetActiveCount(PRUint32 *aActiveCount);
328     nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
329     nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
330 }
331
332 [
333     object,
334     uuid(c63a055a-a676-4e71-bf3c-6cfa11082018)
335     /* FROZEN */
336 ]
337 interface nsIChannel : nsIRequest
338 {
339     nsresult GetOriginalURI(nsIURI **aOriginalURI);
340     nsresult SetOriginalURI(nsIURI *aOriginalURI);
341     nsresult GetURI(nsIURI **aURI);
342     nsresult GetOwner(nsISupports **aOwner);
343     nsresult SetOwner(nsISupports *aOwner);
344     nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
345     nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
346     nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
347     nsresult GetContentType(nsACString *aContentType);
348     nsresult SetContentType(const nsACString *aContentType);
349     nsresult GetContentCharset(nsACString *aContentCharset);
350     nsresult SetContentCharset(const nsACString *aContentCharset);
351     nsresult GetContentLength(PRInt32 *aContentLength);
352     nsresult SetContentLength(PRInt32 aContentLength);
353     nsresult Open(nsIInputStream **_retval);
354     nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
355 }
356
357 [
358     object,
359     uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260)
360     /* FROZEN */
361 ]
362 interface nsIHttpChannel : nsIChannel
363 {
364     nsresult GetRequestMethod(nsACString *aRequestMethod);
365     nsresult SetRequestMethod(const nsACString *aRequestMethod);
366     nsresult GetReferrer(nsIURI **aReferrer);
367     nsresult SetReferrer(nsIURI *aReferrer);
368     nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
369     nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
370     nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
371     nsresult GetAllowPipelining(PRBool *aAllowPipelining);
372     nsresult SetAllowPipelining(PRBool aAllowPipelining);
373     nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
374     nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
375     nsresult GetResponseStatus(PRUint32 *aResponseStatus);
376     nsresult GetResponseStatusText(nsACString *aResponseStatusText);
377     nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
378     nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
379     nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
380     nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
381     nsresult IsNoStoreResponse(PRBool *_retval);
382     nsresult IsNoCacheResponse(PRBool *_retval);
383 }
384
385 [
386     object,
387     uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75)
388     /* FROZEN */
389 ]
390 interface nsIUploadChannel : nsISupports
391 {
392     nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
393                              PRInt32 aContentLength);
394     nsresult GetUploadStream(nsIInputStream **aUploadStream);
395 }
396
397 [
398     object,
399     uuid(a6cf90be-15b3-11d2-932e-00805f8add32)
400     /* FROZEN */
401 ]
402 interface nsIDOMCSSStyleDeclaration : nsISupports
403 {
404     nsresult GetCssText(nsAString *aCssText);
405     nsresult SetCssText(const nsAString *aCssText);
406     nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
407     nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
408     nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
409     nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
410     nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
411                          const nsAString *priority);
412     nsresult GetLength(PRUint32 *aLength);
413     nsresult Item(PRUint32 index, nsAString *_retval);
414     nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
415 }
416
417 [
418     object,
419     uuid(a6cf907d-15b3-11d2-932e-00805f8add32)
420     /* FROZEN */
421 ]
422 interface nsIDOMNodeList : nsISupports
423 {
424     nsresult Item(PRUint32 index, nsIDOMNode **_retval);
425     nsresult GetLength(PRUint32 *aLength);
426 }
427
428 [
429     object,
430     uuid(a6cf907c-15b3-11d2-932e-00805f8add32)
431     /* FROZEN */
432 ]
433 interface nsIDOMNode : nsISupports
434 {
435     enum NSNODETYPE {
436         ELEMENT_NODE = 1,
437         ATTRIBUTE_NODE = 2,
438         TEXT_NODE = 3,
439         CDATA_SELECTION_NODE = 4,
440         ENTITY_REFERENCE_NODE = 5,
441         ENTITY_NODE = 6,
442         PROCESSING_INSTRUCTION_NODE = 7,
443         COMMENT_NODE = 8,
444         DOCUMENT_NODE = 9,
445         DOCUMENT_TYPE_NODE = 10,
446         DOCUMENT_FRAGMENT_NODE = 11,
447         NOTATION_NODE = 12
448     };
449
450     nsresult GetNodeName(nsAString *aNodeName);
451     nsresult GetNodeValue(nsAString *aNodeValue);
452     nsresult SetNodeValue(const nsAString *aNodeValue);
453     nsresult GetNodeType(PRUint16 *aNodeType);
454     nsresult GetParentNode(nsIDOMNode **aParentNode);
455     nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
456     nsresult GetFirstChild(nsIDOMNode **aFirstChild);
457     nsresult GetLastChild(nsIDOMNode **aLastChild);
458     nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
459     nsresult GetNextSibling(nsIDOMNode **aNextSibling);
460     nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
461     nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
462     nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
463     nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
464     nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
465     nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
466     nsresult HasChildNodes(PRBool *_retval);
467     nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
468     nsresult Normalize();
469     nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
470     nsresult GetNamespaceURI(nsAString *aNamespaceURI);
471     nsresult GetPrefix(nsAString *aPrefix);
472     nsresult SetPrefix(const nsAString *aPrefix);
473     nsresult GetLocalName(nsAString *aLocalName);
474     nsresult HasAttributes(PRBool *_retval);
475 }
476
477 [
478     object,
479     uuid(a6cf9078-15b3-11d2-932e-00805f8add32)
480     /* FROZEN */
481 ]
482 interface nsIDOMElement : nsIDOMNode
483 {
484     nsresult GetTagName(nsAString *aTagName);
485     nsresult GetAttribute(const nsAString *name, nsAString *_retval);
486     nsresult SetAttribute(const nsAString *name, const nsAString *value);
487     nsresult RemoveAttribute(const nsAString *name);
488     nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
489     nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
490     nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
491     nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
492     nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
493                             nsAString *_retval);
494     nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
495                             const nsAString *value);
496     nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
497     nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
498                                 nsIDOMAttr **_retval);
499     nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
500     nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
501                                     nsIDOMNodeList **_retval);
502     nsresult HasAttribute(const nsAString *name, PRBool *_retval);
503     nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
504                             PRBool *_retval);
505 }
506
507 [
508     object,
509     uuid(99715845-95fc-4a56-aa53-214b65c26e22)
510     /* FROZEN */
511 ]
512 interface nsIDOMElementCSSInlineStyle : nsISupports
513 {
514     nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
515 }
516
517 cpp_quote("#undef GetClassName");
518
519 [
520     object,
521     uuid(a6cf9085-15b3-11d2-932e-00805f8add32)
522     /* FROZEN */
523 ]
524 interface nsIDOMHTMLElement : nsIDOMElement
525 {
526     nsresult GetId(nsAString *aId);
527     nsresult SetId(const nsAString *aId);
528     nsresult GetTitle(nsAString *aTitle);
529     nsresult SetTitle(const nsAString *aTitle);
530     nsresult GetLang(nsAString *aLang);
531     nsresult SetLang(const nsAString *aLang);
532     nsresult GetDir(nsAString *aDir);
533     nsresult SetDir(const nsAString *aDir);
534     nsresult GetClassName(nsAString *aClassName);
535     nsresult SetClassName(const nsAString *aClassName);
536 }
537
538 [
539     object,
540     uuid(da83b2ec-8264-4410-8496-ada3acd2ae42)
541     /* NOT_FROZEN */
542 ]
543 interface nsIDOMNSHTMLElement : nsISupports
544 {
545     nsresult GetOffsetTop(PRInt32 *aOffsetTop);
546     nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
547     nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
548     nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
549     nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
550     nsresult GetInnerHTML(nsAString *aInnerHTML);
551     nsresult SetInnerHTML(const nsAString *aInnerHTML);
552     nsresult GetScrollTop(PRInt32 *aScrollTop);
553     nsresult SetScrollTop(PRInt32 aScrollTop);
554     nsresult GetScrollLeft(PRInt32 *aScrollLeft);
555     nsresult SetScrollLeft(PRInt32 aScrollLeft);
556     nsresult GetScrollHeight(PRInt32 *aScrollHeight);
557     nsresult GetScrollWidth(PRInt32 *aScrollWidth);
558     nsresult GetClientHeight(PRInt32 *aClientHeight);
559     nsresult GetClientWidth(PRInt32 *aClientWidth);
560     nsresult GetTabIndex(PRInt32 *aTabIndex);
561     nsresult SetTabIndex(PRInt32 aTabIndex);
562     nsresult blur();
563     nsresult focus();
564     nsresult ScrollIntoView(PRBool top);
565 }
566
567 [
568     object,
569     uuid(a6cf9072-15b3-11d2-932e-00805f8add32)
570     /* FROZEN */
571 ]
572 interface nsIDOMCharacterData : nsIDOMNode
573 {
574     nsresult GetData(nsAString *aData);
575     nsresult SetData(const nsAString *aData);
576     nsresult GetLength(PRUint32 *aLength);
577     nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
578     nsresult AppendData(const nsAString *arg);
579     nsresult InsertData(PRUint32 offset, const nsAString *arg);
580     nsresult DeleteData(PRUint32 offset, PRUint32 count);
581     nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
582 }
583
584 [
585     object,
586     uuid(a6cf9082-15b3-11d2-932e-00805f8add32)
587     /* FROZEN */
588 ]
589 interface nsIDOMText : nsIDOMCharacterData
590 {
591     nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
592 }
593
594 [
595     object,
596     uuid(a6cf9073-15b3-11d2-932e-00805f8add32)
597     /* FROZEN */
598 ]
599 interface nsIDOMComment : nsIDOMCharacterData
600 {
601 }
602
603 [
604     object,
605     uuid(a6cf9076-15b3-11d2-932e-00805f8add32)
606     /* FROZEN */
607 ]
608 interface nsIDOMDocumentFragment : nsIDOMNode
609 {
610 }
611
612 [
613     object,
614     uuid(a6cf9075-15b3-11d2-932e-00805f8add32)
615     /* FROZEN */
616 ]
617 interface nsIDOMDocument : nsIDOMNode
618 {
619     nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
620     nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
621     nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
622     nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
623     nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
624     nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
625     nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
626     nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
627     nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
628                                          nsIDOMProcessingInstruction **_retval);
629     nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
630     nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
631     nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
632     nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
633     nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
634                              nsIDOMElement **_retval);
635     nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
636                                nsIDOMAttr **_retval);
637     nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
638                                     nsIDOMNodeList **_retval);
639     nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
640 }
641
642 [
643     object,
644     uuid(a6cf9084-15b3-11d2-932e-00805f8add32)
645     /* FROZEN */
646 ]
647 interface nsIDOMHTMLDocument : nsIDOMDocument
648 {
649     nsresult GetTitle(nsAString *aTitle);
650     nsresult SetTitle(const nsAString *aTitle);
651     nsresult GetReferrer(nsAString *aReferrer);
652     nsresult GetDomain(nsAString *aDomain);
653     nsresult GetURL(nsAString *aURL);
654     nsresult GetBody(nsIDOMHTMLElement **aBody);
655     nsresult SetBody(nsIDOMHTMLElement *aBody);
656     nsresult GetImages(nsIDOMHTMLCollection **aImages);
657     nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
658     nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
659     nsresult GetForms(nsIDOMHTMLCollection **aForms);
660     nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
661     nsresult GetCookie(nsAString *aCookie);
662     nsresult SetCookie(const nsAString *aCookie);
663     nsresult Open();
664     nsresult Close();
665     nsresult Write(const nsAString *text);
666     nsresult Writeln(const nsAString *text);
667     nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
668 }
669
670 [
671     object,
672     uuid(a6cf90ce-15b3-11d2-932e-00805f8add32)
673     /* FROZEN */
674 ]
675 interface nsIDOMRange : nsISupports
676 {
677     nsresult GetStartContainer(nsIDOMNode **aStartContainer);
678     nsresult GetStartOffset(PRInt32 *aStartOffset);
679     nsresult GetEndContainer(nsIDOMNode **aEndContainer);
680     nsresult GetEndOffset(PRInt32 *aEndOffset);
681     nsresult GetCollapsed(PRBool *aCollapsed);
682     nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
683     nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
684     nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
685     nsresult SetStartBefore(nsIDOMNode *refNode);
686     nsresult SetStartAfter(nsIDOMNode *refNode);
687     nsresult SetEndBefore(nsIDOMNode *refNode);
688     nsresult SetEndAfter(nsIDOMNode *refNode);
689     nsresult Collapse(PRBool toStart);
690     nsresult SelectNode(nsIDOMNode *refNode);
691     nsresult SelectNodeContents(nsIDOMNode *refNode);
692     nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
693     nsresult DeleteContents();
694     nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
695     nsresult CloneContents(nsIDOMDocumentFragment **_retval);
696     nsresult InsertNode(nsIDOMNode *newNode);
697     nsresult SurroundContents(nsIDOMNode *newParent);
698     nsresult CloneRange(nsIDOMRange **_retval);
699     nsresult ToString(nsAString *_retval);
700     nsresult Detach();
701 }
702
703 [
704     object,
705     uuid(a6cf90f2-15b3-11d2-932e-00805f8add32)
706 ]
707 interface nsIDOMNSRange : nsISupports
708 {
709     nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
710     nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
711     nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
712     nsresult IntersectsNode([in] nsIDOMNode *n, [out] PRBool *_retval);
713     nsresult CompareNode([in] nsIDOMNode *n, [out] PRUint16 *_retval);
714     nsresult nSDetach();
715 }
716
717
718 [
719     object,
720     uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b)
721     /* FROZEN */
722 ]
723 interface nsIDOMDocumentRange : nsISupports
724 {
725     nsresult CreateRange(nsIDOMRange **_retval);
726 }
727
728 [
729     object,
730     uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1)
731     /* FROZEN */
732 ]
733 interface nsISelection : nsISupports
734 {
735     nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
736     nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
737     nsresult GetFocusNode(nsIDOMNode **aFocusNode);
738     nsresult GetFocusOffset(PRInt32 *aFocusOffset);
739     nsresult GetIsCollapsed(PRBool *aIsCollapsed);
740     nsresult GetRangeCount(PRInt32 *aRangeCount);
741     nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
742     nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
743     nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
744     nsresult CollapseToStart();
745     nsresult CollapseToEnd();
746     nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
747     nsresult SelectAllChildren(nsIDOMNode *parentNode);
748     nsresult AddRange(nsIDOMRange *range);
749     nsresult RemoveRange(nsIDOMRange *range);
750     nsresult RemoveAllRanges();
751     nsresult DeleteFromDocument();
752     nsresult SelectionLanguageChange(PRBool langRTL);
753     nsresult ToString(PRUnichar **_retval);
754 }
755
756 [
757     object,
758     uuid(a6cf906b-15b3-11d2-932e-00805f8add32)
759     /* FROZEN */
760 ]
761 interface nsIDOMWindow : nsISupports
762 {
763     nsresult GetDocument(nsIDOMDocument **aDocument);
764     nsresult GetParent(nsIDOMWindow **aParent);
765     nsresult GetTop(nsIDOMWindow **aTop);
766     nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
767     nsresult GetFrames(nsIDOMWindowCollection **aFrames);
768     nsresult GetName(nsAString *aName);
769     nsresult SetName(const nsAString *aName);
770     nsresult GetTextZoom(float *aTextZoom);
771     nsresult SetTextZoom(float aTextZoom);
772     nsresult GetScrollX(PRInt32 *aScrollX);
773     nsresult GetScrollY(PRInt32 *aScrollY);
774     nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
775     nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
776     nsresult GetSelection(nsISelection **_retval);
777     nsresult ScrollByLines(PRInt32 numLines);
778     nsresult ScrollByPages(PRInt32 numPages);
779     nsresult SizeToContent();
780 }
781
782 [
783     object,
784     uuid(a6cf908e-15b3-11d2-932e-00805f8add32)
785     /* FROZEN */
786 ]
787 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
788 {
789     nsresult GetALink(nsAString *aALink);
790     nsresult SetALink(const nsAString *aALink);
791     nsresult GetBackground(nsAString *aBackground);
792     nsresult SetBackground(const nsAString *aBackground);
793     nsresult GetBgColor(nsAString *aBgColor);
794     nsresult SetBgColor(const nsAString *aBgColor);
795     nsresult GetLink(nsAString *aLink);
796     nsresult SetLink(const nsAString *aLink);
797     nsresult GetText(nsAString *aText);
798     nsresult SetText(const nsAString *aText);
799     nsresult GetVLink(nsAString *aVLink);
800     nsresult SetVLink(const nsAString *aVLink);
801 }
802
803 [
804     object,
805     uuid(a6cf9093-15b3-11d2-932e-00805f8add32)
806     /* FROZEN */
807 ]
808 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
809 {
810     nsresult GetDefaultValue(nsAString *aDefaultValue);
811     nsresult SetDefaultValue(const nsAString *aDefaultValue);
812     nsresult GetDefaultChecked(PRBool *aDefaultChecked);
813     nsresult SetDefaultChecked(PRBool aDefaultChecked);
814     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
815     nsresult GetAccept(nsAString *aAccept);
816     nsresult SetAccept(const nsAString *aAccept);
817     nsresult GetAccessKey(nsAString *aAccessKey);
818     nsresult SetAccessKey(const nsAString *aAccessKey);
819     nsresult GetAlign(nsAString *aAlign);
820     nsresult SetAlign(const nsAString *aAlign);
821     nsresult GetAlt(nsAString *aAlt);
822     nsresult SetAlt(const nsAString *aAlt);
823     nsresult GetChecked(PRBool *aChecked);
824     nsresult SetChecked(PRBool aChecked);
825     nsresult GetDisabled(PRBool *aDisabled);
826     nsresult SetDisabled(PRBool aDisabled);
827     nsresult GetMaxLength(PRInt32 *aMaxLength);
828     nsresult SetMaxLength(PRInt32 aMaxLength);
829     nsresult GetName(nsAString *aName);
830     nsresult SetName(const nsAString *aName);
831     nsresult GetReadOnly(PRBool *aReadOnly);
832     nsresult SetReadOnly(PRBool aReadOnly);
833     nsresult GetSize(PRUint32 *aSize);
834     nsresult SetSize(PRUint32 aSize);
835     nsresult GetSrc(nsAString *aSrc);
836     nsresult SetSrc(const nsAString *aSrc);
837     nsresult GetTabIndex(PRInt32 *aTabIndex);
838     nsresult SetTabIndex(PRInt32 aTabIndex);
839     nsresult GetType(nsAString *aType);
840     nsresult SetType(const nsAString *aType);
841     nsresult GetUseMap(nsAString *aUseMap);
842     nsresult SetUseMap(const nsAString *aUseMap);
843     nsresult GetValue(nsAString *aValue);
844     nsresult SetValue(const nsAString *aValue);
845     nsresult Blur();
846     nsresult Focus();
847     nsresult Select();
848     nsresult Click();
849 }
850
851 [
852     object,
853     uuid(a6cf9090-15b3-11d2-932e-00805f8add32)
854     /* FROZEN */
855 ]
856 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
857 {
858     nsresult GetType(nsAString *aType);
859     nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
860     nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
861     nsresult GetValue(nsAString *aValue);
862     nsresult SetValue(const nsAString *aValue);
863     nsresult GetLength(PRUint32 *aLength);
864     nsresult SetLength(PRUint32 aLength);
865     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
866     nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
867     nsresult GetDisabled(PRBool *aDisabled);
868     nsresult SetDisabled(PRBool aDisabled);
869     nsresult GetMultiple(PRBool *aMultiple);
870     nsresult SetMultiple(PRBool aMultiple);
871     nsresult GetName(nsAString *aName);
872     nsresult SetName(const nsAString *aName);
873     nsresult GetSize(PRInt32 *aSize);
874     nsresult SetSize(PRInt32 aSize);
875     nsresult GetTabIndex(PRInt32 *aTabIndex);
876     nsresult SetTabIndex(PRInt32 aTabIndex);
877     nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
878     nsresult Remove(PRInt32 index);
879     nsresult Blur();
880     nsresult Focus();
881 }
882
883 [
884     object,
885     uuid(a6cf9094-15b3-11d2-932e-00805f8add32)
886     /* FROZEN */
887 ]
888 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
889 {
890     nsresult GetDefaultValue(nsAString *aDefaultValue);
891     nsresult SetDefaultValue(const nsAString *aDefaultValue);
892     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
893     nsresult GetAccessKey(nsAString *aAccessKey);
894     nsresult SetAccessKey(const nsAString *aAccessKey);
895     nsresult GetCols(PRInt32 *aCols);
896     nsresult SetCols(PRInt32 aCols);
897     nsresult GetDisabled(PRBool *aDisabled);
898     nsresult SetDisabled(PRBool aDisabled);
899     nsresult GetName(nsAString *aName);
900     nsresult SetName(const nsAString *aName);
901     nsresult GetReadOnly(PRBool *aReadOnly);
902     nsresult SetReadOnly(PRBool aReadOnly);
903     nsresult GetRows(PRInt32 *aRows);
904     nsresult SetRows(PRInt32 aRows);
905     nsresult GetTabIndex(PRInt32 *aTabIndex);
906     nsresult SetTabIndex(PRInt32 aTabIndex);
907     nsresult GetType(nsAString *aType);
908     nsresult GetValue(nsAString *aValue);
909     nsresult SetValue(const nsAString *aValue);
910     nsresult Blur();
911     nsresult Focus();
912     nsresult Select();
913 }
914
915 [
916     object,
917     uuid(94928ab3-8b63-11d3-989d-001083010e9b)
918     /* FROZEN */
919 ]
920 interface nsIURIContentListener : nsISupports
921 {
922     nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
923     nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
924         nsIStreamListener **aContentHandler, PRBool *_retval);
925     nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
926     nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
927         char **aDesiredContentType, PRBool *_retval);
928     nsresult GetLoadCookie(nsISupports **aLoadCookie);
929     nsresult SetLoadCookie(nsISupports *aLoadCookie);
930     nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
931     nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
932 }
933
934 [
935     object,
936     uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916)
937     /* FROZEN */
938 ]
939 interface nsITooltipListener : nsISupports
940 {
941     nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
942     nsresult OnHideTooltip();
943 }
944
945 [
946     object,
947     uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c)
948     /* FROZEN */
949 ]
950 interface nsIWebBrowser : nsISupports
951 {
952     nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
953     nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
954     nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
955     nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
956     nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
957     nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
958     nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
959 }
960
961 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7");
962
963 [
964     object,
965     uuid(f15398a0-8018-11d3-af70-00a024ffc08c)
966     /* FROZEN */
967 ]
968 interface nsIWebBrowserSetup : nsISupports
969 {
970     nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
971 }
972
973 typedef void* nativeWindow;
974
975 [
976     object,
977     uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)
978     /* NOT_FROZEN */
979 ]
980 interface nsIBaseWindow : nsISupports
981 {
982     nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
983             PRInt32 y, PRInt32 cx, PRInt32 cy);
984     nsresult Create();
985     nsresult Destroy();
986     nsresult SetPosition(PRInt32 x, PRInt32 y);
987     nsresult GetPosition(PRInt32 *x, PRInt32 *y);
988     nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
989     nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
990     nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
991     nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
992     nsresult Repaint(PRBool force);
993     nsresult GetParentWidget(nsIWidget **aParentWidget); 
994     nsresult SetParentWidget(nsIWidget *aParentWidget);
995     nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
996     nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
997     nsresult GetVisibility(PRBool *aVisibility);
998     nsresult SetVisibility(PRBool aVisibility);
999     nsresult GetEnabled(PRBool *aEnabled);
1000     nsresult SetEnabled(PRBool aEnabled);
1001     nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1002     nsresult SetBlurSuppression(PRBool aBlurSuppression);
1003     nsresult GetMainWidget(nsIWidget **aMainWidget);
1004     nsresult SetFocus();
1005     nsresult GetTitle(PRUnichar **aTitle);
1006     nsresult SetTitle(const PRUnichar *aTitle);
1007 }
1008
1009 cpp_quote("#define LOAD_FLAGS_NONE 0");
1010
1011 [
1012     object,
1013     uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c)
1014     /* NOT_FROZEN */
1015 ]
1016 interface nsIWebNavigation : nsISupports
1017 {
1018     nsresult GetCanGoBack(PRBool *aCanGoBack);
1019     nsresult GetCanGoForward(PRBool *aCanGoForward);
1020     nsresult GoBack();
1021     nsresult GoForward();
1022     nsresult GotoIndex(PRInt32 index);
1023     nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1024             nsIInputStream *aPostData, nsIInputStream *aHeaders);
1025     nsresult Reload(PRUint32 aReloadFlags);
1026     nsresult Stop(PRUint32 aStopFlags);
1027     nsresult GetDocument(nsIDOMDocument **aDocument);
1028     nsresult GetCurrentURI(nsIURI **aCurrentURI);
1029     nsresult GetReferringURI(nsIURI **aReferringURI);
1030     nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1031     nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1032 }
1033
1034 [
1035     object,
1036     uuid(f1094df6-ce0e-42c9-9847-2f663172c38d)
1037     /* NOT_FROZEN */
1038 ]
1039 interface nsIPrintSettings : nsISupports
1040 {
1041     typedef struct {} nsMargin;
1042
1043     nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1044     nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1045     nsresult GetPrintOptionsBits(PRInt32 *_retval);
1046     nsresult GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight);
1047     nsresult Clone(nsIPrintSettings **_retval);
1048     nsresult Assign(nsIPrintSettings *aPS);
1049     nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1050     nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1051     nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1052     nsresult SetStartPageRange(PRInt32 aStartPageRange);
1053     nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1054     nsresult SetEndPageRange(PRInt32 aEndPageRange);
1055     nsresult GetMarginTop(double *aMarginTop);
1056     nsresult SetMarginTop(double aMarginTop);
1057     nsresult GetMarginLeft(double *aMarginLeft);
1058     nsresult SetMarginLeft(double aMarginLeft);
1059     nsresult GetMarginBottom(double *aMarginBottom);
1060     nsresult SetMarginBottom(double aMarginBottom);
1061     nsresult GetMarginRight(double *aMarginRight);
1062     nsresult SetMarginRight(double aMarginRight);
1063     nsresult GetScaling(double *aScaling);
1064     nsresult SetScaling(double aScaling);
1065     nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1066     nsresult SetPrintBGColors(PRBool aPrintBGColors);
1067     nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1068     nsresult SetPrintBGImages(PRBool aPrintBGImages);
1069     nsresult GetPrintRange(PRInt16 *aPrintRange);
1070     nsresult SetPrintRange(PRInt16 aPrintRange);
1071     nsresult GetTitle(PRUnichar **aTitle);
1072     nsresult SetTitle(const PRUnichar *aTitle);
1073     nsresult GetDocURL(PRUnichar **aDocURL);
1074     nsresult SetDocURL(const PRUnichar *aDocURL);
1075     nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1076     nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1077     nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1078     nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1079     nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1080     nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1081     nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1082     nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1083     nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1084     nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1085     nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1086     nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1087     nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1088     nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1089     nsresult GetIsCancelled(PRBool *aIsCancelled);
1090     nsresult SetIsCancelled(PRBool aIsCancelled);
1091     nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1092     nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1093     nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1094     nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1095     nsresult GetPrintSilent(PRBool *aPrintSilent);
1096     nsresult SetPrintSilent(PRBool aPrintSilent);
1097     nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1098     nsresult SetShrinkToFit(PRBool aShrinkToFit);
1099     nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1100     nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1101     nsresult GetPaperName(PRUnichar **aPaperName);
1102     nsresult SetPaperName(const PRUnichar *aPaperName);
1103     nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1104     nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1105     nsresult GetPaperData(PRInt16 *aPaperData);
1106     nsresult SetPaperData(PRInt16 aPaperData);
1107     nsresult GetPaperWidth(double *aPaperWidth);
1108     nsresult SetPaperWidth(double aPaperWidth);
1109     nsresult GetPaperHeight(double *aPaperHeight);
1110     nsresult SetPaperHeight(double aPaperHeight);
1111     nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1112     nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1113     nsresult GetPlexName(PRUnichar **aPlexName);
1114     nsresult SetPlexName(const PRUnichar *aPlexName);
1115     nsresult GetColorspace(PRUnichar **aColorspace);
1116     nsresult SetColorspace(const PRUnichar *aColorspace);
1117     nsresult GetResolutionName(PRUnichar **aResolutionName);
1118     nsresult SetResolutionName(const PRUnichar aResolutionName);
1119     nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1120     nsresult SetDownloadFonts(PRBool aDownloadFonts);
1121     nsresult GetPrintReversed(PRBool *aPrintReversed);
1122     nsresult SetPrintReversed(PRBool aPrintReversed);
1123     nsresult GetPrintInColor(PRBool *aPrintInColor);
1124     nsresult SetPrintInColor(PRBool aPrintInColor);
1125     nsresult GetPaperSize(PRInt32 *aPaperSize);
1126     nsresult SetPaperSize(PRInt32 aPaperSize);
1127     nsresult GetOrientation(PRInt32 *aOrientation);
1128     nsresult SetOrientation(PRInt32 aOrientation);
1129     nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1130     nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1131     nsresult GetNumCopies(PRInt32 *aNumCopies);
1132     nsresult SetNumCopies(PRInt32 aNumCopies);
1133     nsresult GetPrinterName(PRUnichar **aPrinterName);
1134     nsresult SetPrinterName(const PRUnichar *aPrinterName);
1135     nsresult GetPrintToFile(PRBool *aPrintToFile);
1136     nsresult SetPrintToFile(PRBool aPrintToFile);
1137     nsresult GetToFileName(PRUnichar **aToFileName);
1138     nsresult SetToFileName(const PRUnichar *aToFileName);
1139     nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1140     nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1141     nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1142     nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1143     nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1144     nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1145     nsresult SetMarginInTwips(nsMargin *aMargin);
1146     nsresult GetMarginInTwips(nsMargin *aMargin);
1147 }
1148
1149 [
1150     object,
1151     uuid(9a7ca4b0-fbba-11d4-a869-00105a183419)
1152     /* FROZEN */
1153 ]
1154 interface nsIWebBrowserPrint : nsISupports
1155 {
1156     nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1157     nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1158     nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1159     nsresult GetDoingPrint(PRBool *aDoingPrint);
1160     nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1161     nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1162     nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1163     nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1164     nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1165     nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1166     nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1167     nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1168                           nsIWebProgressListener *aWPListener);
1169     nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1170     nsresult Cancel();
1171     nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1172     nsresult ExitPrintPreview();
1173 }
1174
1175 [
1176     object,
1177     uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8)
1178     /* NOT_FROZEN */
1179 ]
1180 interface nsIScrollable : nsISupports
1181 {
1182     enum {
1183         ScrollOrientation_X = 1,
1184         ScrollOrientation_Y = 2
1185     };
1186
1187     enum {
1188         Scrollbar_Auto   = 1,
1189         Scrollbar_Never  = 2,
1190         Scrollbar_Always = 3
1191     };
1192
1193     nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1194     nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1195     nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1196     nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1197     nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1198     nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1199             PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1200     nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1201     nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1202     nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1203 }
1204
1205 [
1206     object,
1207     uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)
1208     /* FROZEN */
1209 ]
1210 interface nsIFile : nsISupports
1211 {
1212     nsresult Append(const nsAString *node);
1213     nsresult AppendNative(const nsAString *node);
1214     nsresult Normalize();
1215     nsresult Create(PRUint32 type, PRUint32 permission);
1216     nsresult GetLeafName(nsAString *aLeafName);
1217     nsresult SetLeafName(const nsAString *aLeafName);
1218     nsresult GetNativeLeafName(nsAString *aLeafName);
1219     nsresult SetNativeLeafName(const nsAString *aLeafName);
1220     nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1221     nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1222     nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1223     nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1224     nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1225     nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1226     nsresult Remove(PRBool recursive);
1227     nsresult GetPermissions(PRUint32 *aPermissions);
1228     nsresult SetPermissions(PRUint32 pPermissions);
1229     nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1230     nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1231     nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1232     nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1233     nsresult GetFileSize(PRInt64 *aFileSize);
1234     nsresult SetFileSize(PRInt64 aFileSize);
1235     nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1236     nsresult GetTarget(nsAString *aTarget);
1237     nsresult GetNativeTarget(nsACString *aNativeTarget);
1238     nsresult GetPath(nsAString *aPath);
1239     nsresult GetNativePath(nsACString *aNativePath);
1240     nsresult Exists(PRBool *_retval);
1241     nsresult IsWritable(PRBool *_retval);
1242     nsresult IsReadable(PRBool *_retval);
1243     nsresult IsExecutable(PRBool *_retval);
1244     nsresult IsHidden(PRBool *_retval);
1245     nsresult IsDirectory(PRBool *_retval);
1246     nsresult IsFile(PRBool *_retval);
1247     nsresult IsSymlink(PRBool *_retval);
1248     nsresult IsSpecial(PRBool *_retval);
1249     nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1250     nsresult Clone(nsIFile **_retval);
1251     nsresult Equals(nsIFile *inFile, PRBool *_retval);
1252     nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1253     nsresult GetParent(nsIFile **aParent);
1254     nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1255 }
1256
1257 [
1258     object,
1259     uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40)
1260     /* FROZEN */
1261 ]
1262 interface nsIProtocolHandler : nsISupports
1263 {
1264     nsresult GetScheme(nsACString *aScheme);
1265     nsresult GetDefaultPort(PRInt32 *aDefaultPort);
1266     nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
1267     nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
1268                     nsIURI *aBaseURI, nsIURI **_retval);
1269     nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
1270     nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
1271 }
1272
1273 [
1274     object,
1275     uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7)
1276     /* NOT_FROZEN */
1277 ]
1278 interface nsIExternalProtocolHandler : nsIProtocolHandler
1279 {
1280     nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
1281 }
1282
1283 [
1284     object,
1285     uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e)
1286     /* FROZEN */
1287 ]
1288 interface nsIIOService : nsISupports
1289 {
1290     nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1291     nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1292     nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1293                     nsIURI **_retval);
1294     nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1295     nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1296     nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1297                         nsIChannel **_retval);
1298     nsresult GetOffline(PRBool *aOffline);
1299     nsresult SetOffline(PRBool aOffline);
1300     nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1301     nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1302 }
1303
1304 [
1305     object,
1306     uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a)
1307     /* FROZEN */
1308 ]
1309 interface nsIWebBrowserFocus : nsISupports
1310 {
1311     nsresult Activate();
1312     nsresult Deactivate();
1313     nsresult SetFocusAtFirstElement();
1314     nsresult SetFocusAtLastElement();
1315     nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1316     nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1317     nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1318     nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1319 }
1320
1321 [
1322     object,
1323     uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c)
1324     /* FROZEN */
1325 ]
1326 interface nsIWebBrowserChrome : nsISupports
1327 {
1328     nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1329     nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1330     nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1331     nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1332     nsresult SetChromeFlags(PRUint32 aChromeFlags);
1333     nsresult DestroyBrowserWindow();
1334     nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1335     nsresult ShowAsModal();
1336     nsresult IsWindowModal(PRBool *_retval);
1337     nsresult ExitModalEventLoop(nsresult aStatus);
1338 }
1339
1340 [
1341     object,
1342     uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4)
1343     /* FROZEN */
1344 ]
1345 interface nsIDOMEventListener : nsISupports
1346 {
1347     nsresult HandleEvent(nsIDOMEvent *event);
1348 }
1349
1350 [
1351     object,
1352     uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4)
1353     /* FROZEN */
1354 ]
1355 interface nsIDOMEventTarget : nsISupports
1356 {
1357     nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1358     nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1359     nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1360 }
1361
1362 [
1363     object,
1364     uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32)
1365     /* FROZEN */
1366 ]
1367 interface nsIDOMEvent : nsISupports
1368 {
1369     nsresult GetType(nsAString *aType);
1370     nsresult GetTarget(nsIDOMEventTarget **aTarget);
1371     nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1372     nsresult GetEventPhase(PRUint16 *aEventPhase);
1373     nsresult GetBubbles(PRBool *aBubbles);
1374     nsresult GetCancelable(PRBool *aCancelable);
1375     nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1376     nsresult StopPropagation();
1377     nsresult PreventDefault();
1378     nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1379 }
1380
1381 cpp_quote("#define CONTEXT_NONE              0x00");
1382 cpp_quote("#define CONTEXT_LINK              0x01");
1383 cpp_quote("#define CONTEXT_IMAGE             0x02");
1384 cpp_quote("#define CONTEXT_DOCUMENT          0x04");
1385 cpp_quote("#define CONTEXT_TEXT              0x08");
1386 cpp_quote("#define CONTEXT_INPUT             0x10");
1387 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE  0x20");
1388
1389 [
1390     object,
1391     uuid(3478b6b0-3875-11d4-94ef-0020183bf181)
1392     /* FROZEN */
1393 ]
1394 interface nsIContextMenuListener : nsISupports
1395 {
1396     nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1397 }
1398
1399 [
1400     object,
1401     uuid(a6cf90c3-15b3-11d2-932e-00805f8add32)
1402     /* FROZEN */
1403 ]
1404 interface nsIDOMUIEvent : nsIDOMEvent
1405 {
1406     nsresult GetView(nsIDOMAbstractView **aView);
1407     nsresult GetDetail(PRInt32 *aDetail);
1408     nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1409             nsIDOMAbstractView *viewArg, PRInt32 detailArg);
1410 }
1411
1412 [
1413     object,
1414     uuid(ff751edc-8b02-aae7-0010-8301838a3123)
1415     /* FROZEN */
1416 ]
1417 interface nsIDOMMouseEvent : nsIDOMUIEvent
1418 {
1419     nsresult GetScreenX(PRInt32 *aScreenX);
1420     nsresult GetScreenY(PRInt32 *aScreenY);
1421     nsresult GetClientX(PRInt32 *aClientX);
1422     nsresult GetClientY(PRInt32 *aClientY);
1423     nsresult GetCtrlKey(PRBool *aCtrlKey);
1424     nsresult GetShiftKey(PRBool *aShiftKey);
1425     nsresult GetAltKey(PRBool *aAltKey);
1426     nsresult GetMetaKey(PRBool *aMetaKey);
1427     nsresult GetButton(PRUint16 *aButton);
1428     nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
1429     nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1430             nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
1431             PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
1432             PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
1433             nsIDOMEventTarget *relatedTargetArg);
1434 }
1435
1436 [
1437     object,
1438     uuid(028e0e6e-8b01-11d3-aae7-0010838a3123)
1439     /* NOT_FROZEN */
1440 ]
1441 interface nsIDOMKeyEvent : nsIDOMUIEvent
1442 {
1443     nsresult GetCharCode(PRUint32 *aCharCode);
1444     nsresult GetKeyCode(PRUint32 *aKeyCode);
1445     nsresult GetAltKey(PRBool *aAltKey);
1446     nsresult GetCtrlKey(PRBool *aCtrlKey);
1447     nsresult GetShiftKey(PRBool *aShiftKey);
1448     nsresult GetMetaKey(PRBool *aMetaKey);
1449     nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
1450             PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
1451             PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
1452             PRUint32 charCodeArg);
1453 }
1454
1455 [
1456      object,
1457      uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743)
1458      /* FROZEN */
1459 ]
1460 interface nsIEmbeddingSiteWindow : nsISupports
1461 {
1462     nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
1463     nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1464     nsresult SetFocus();
1465     nsresult GetVisibility(PRBool *aVisibility);
1466     nsresult SetVisibility(PRBool aVisibility);
1467     nsresult GetTitle(PRUnichar **aTitle);
1468     nsresult SetTitle(const PRUnichar *aTitle);
1469     nsresult GetSiteWindow(void **aSiteWindow);
1470 }
1471
1472 [
1473      object,
1474      uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392)
1475      /* FROZEN */
1476 ]
1477 interface nsIComponentRegistrar : nsISupports
1478 {
1479     nsresult AutoRegister(nsIFile *aSpec);
1480     nsresult AutoUnregister(nsIFile *aSpec);
1481     nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1482             const char *aContractID, nsIFactory *aFactory);
1483     nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1484     nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1485             const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1486             const char *aType);
1487     nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1488     nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1489     nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1490     nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1491     nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1492     nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1493     nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1494 }
1495
1496 [
1497     object,
1498     uuid(1630c61a-325e-49ca-8759-a31b16c47aa5)
1499     /* FROZEN */
1500 ]
1501 interface nsIPromptService : nsISupports
1502 {
1503     nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1504             const PRUnichar *aText);
1505     nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1506             const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
1507     nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1508             const PRUnichar *aText, PRBool *_retval);
1509     nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1510             const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
1511             PRBool *_retval);
1512     nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1513             const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
1514             const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
1515             const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
1516     nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1517             const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
1518             PRBool *aCheckState, PRBool *_retval);
1519     nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1520             const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
1521             const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
1522     nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1523             const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
1524             PRBool *aCheckState, PRBool *_retval);
1525     nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1526             const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
1527             PRInt32 *aOutSelection, PRBool *_retval);
1528 }
1529
1530 [
1531     object,
1532     uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee)
1533     /* FROZEN */
1534 ]
1535 interface nsITooltipTextProvider : nsISupports
1536 {
1537     nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
1538 }
1539
1540 [
1541     object,
1542     uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9)
1543     /* FROZEN */
1544 ]
1545 interface nsIProfile : nsISupports
1546 {
1547     nsresult GetProfileCount(PRInt32 *aProfileCount);
1548     nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
1549     nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
1550     nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
1551     nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
1552     nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
1553     nsresult CreateNewProfile(const PRUnichar *profileName,
1554             const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
1555             PRBool useExistingDir);
1556     nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
1557     nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
1558     nsresult CloneProfile(const PRUnichar *profileName);
1559 }
1560
1561 [
1562     object,
1563     uuid(30465632-a777-44cc-90f9-8145475ef999)
1564     /* FROZEN */
1565 ]
1566 interface nsIWindowCreator : nsISupports
1567 {
1568     nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1569                                    nsIWebBrowserChrome **_retval);
1570 }
1571
1572 [
1573     object,
1574     uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc)
1575     /* NOT_FROZEN */
1576 ]
1577 interface nsIWindowCreator2 : nsIWindowCreator
1578 {
1579     nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1580                                  PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
1581                                  nsIWebBrowserChrome **_retval);
1582 }
1583
1584 [
1585     object,
1586     uuid(002286a8-494b-43b3-8ddd-49e3fc50622b)
1587     /* FROZEN */
1588 ]
1589 interface nsIWindowWatcher : nsISupports
1590 {
1591     nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
1592                         const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
1593     nsresult RegisterNotification(nsIObserver *aObserver);
1594     nsresult UnregisterNotification(nsIObserver *aObserver);
1595     nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
1596     nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
1597     nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
1598     nsresult SetWindowCreator(nsIWindowCreator *creator);
1599     nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
1600     nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
1601                              nsIDOMWindow **_retval);
1602     nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
1603     nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
1604 }
1605
1606 [
1607     object,
1608     uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b)
1609     /* NOT_FROZEN */
1610 ]
1611 interface nsIEditingSession : nsISupports
1612 {
1613     nsresult GetEditorStatus(PRUint32 *aEditorStatus);
1614     nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
1615                                 PRBool doAfterUriLoad);
1616     nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
1617     nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
1618     nsresult SetupEditorOnWindow(nsIDOMWindow *window);
1619     nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
1620     nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
1621 }
1622
1623 [
1624     object,
1625     uuid(83f892cf-7ed3-490e-967a-62640f3158e1)
1626     /* NOT_FROZEN */
1627 ]
1628 interface nsICommandParams : nsISupports
1629 {
1630     nsresult GetValueType(const char *name, PRInt16 *_retval);
1631     nsresult GetBooleanValue(const char *name, PRBool *_retval);
1632     nsresult GetLongValue(const char *name, PRInt32 *_retval);
1633     nsresult GetDoubleValue(const char *name, double *_retval);
1634     nsresult GetStringValue(const char *name, nsAString *_retval);
1635     nsresult GetCStringValue(const char *name, char **_retval);
1636     nsresult GetISupportsValue(const char *name, nsISupports **_retval);
1637     nsresult SetBooleanValue(const char *name, PRBool value);
1638     nsresult SetLongValue(const char *name, PRInt32 value);
1639     nsresult SetDoubleValue(const char *name, double value);
1640     nsresult SetStringValue(const char *name, const nsAString *value);
1641     nsresult SetCStringValue(const char *name, const char *value);
1642     nsresult SetISupportsValue(const char *name, nsISupports *value);
1643     nsresult RemoveValue(const char *name);
1644     nsresult HasMoreElements(PRBool *_retval);
1645     nsresult First();
1646     nsresult GetNext(char **_retval);
1647 }
1648
1649 [
1650     object,
1651     uuid(080d2001-f91e-11d4-a73c-f9242928207c)
1652     /* NOT_FROZEN */
1653 ]
1654 interface nsICommandManager : nsISupports
1655 {
1656     nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
1657     nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
1658     nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1659     nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1660     nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
1661             nsICommandParams *aCommandParams);
1662     nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
1663             nsIDOMWindow *aTargetWindow);
1664 }
1665
1666 [
1667     object,
1668     uuid(47b82b60-a36f-4167-8072-6f421151ed50)
1669     /* NOT_FROZEN */
1670 ]
1671 interface nsIControllerContext : nsISupports
1672 {
1673     nsresult Init(nsIControllerCommandTable *aCommandTable);
1674     nsresult SetCommandContext(nsISupports *aCommandContext);
1675 }
1676
1677 [
1678     object,
1679     uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627)
1680     /* NOT_FROZEN */
1681 ]
1682 interface nsIController : nsISupports
1683 {
1684     nsresult IsCommandEnabled(const char *command, PRBool *_retval);
1685     nsresult SupportsCommand(const char *command, PRBool *_retval);
1686     nsresult DoCommand(const char *command);
1687     nsresult OnEvent(const char *eventName);
1688 }
1689
1690 [
1691     object,
1692     uuid(d650439a-ca29-410d-a906-b0557fb62fcd)
1693     /* NOT_FROZEN */
1694 ]
1695 interface nsIContentSerializer : nsISupports
1696 {
1697     nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying);
1698     nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
1699     nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
1700             PRInt32 aEndOffset, nsAString *aStr);
1701     nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
1702             PRInt32 aEndOffset, nsAString *aStr);
1703     nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
1704             nsAString *aStr);
1705     nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
1706     nsresult AppendElementStart(nsIDOMElement *aElement, PRBool aHasChildren, nsAString *aStr);
1707     nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
1708     nsresult Flush(nsAString *aStr);
1709     nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
1710 }
1711
1712 /*
1713  * NOTE:
1714  * This is a private Wine interface that is implemented by our implementation
1715  * of nsIURI to store its owner.
1716  */
1717 [
1718     object,
1719     uuid(5088272e-900b-11da-c687-000fea57f21a)
1720     /* INTERNAL */
1721 ]
1722 interface nsIWineURI : nsIURI
1723 {
1724     typedef struct NSContainer NSContainer;
1725
1726     nsresult GetNSContainer(NSContainer **aNSContainer);
1727     nsresult SetNSContainer(NSContainer *aNSContainer);
1728     nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
1729     nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
1730     nsresult GetWineURL(LPCWSTR *aURL);
1731     nsresult SetWineURL(LPCWSTR aURL);
1732 }