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