mshtml: Added tooltip implementation.
[wine] / dlls / mshtml / nsiface.idl
1 /*
2  * Copyright 2005 Jacek Caban
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  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 LPSTR nsstring;
38 typedef WCHAR PRUnichar;
39 typedef LPWSTR nswstring;
40 typedef ULONG PRUint32;
41 typedef LONG PRInt32;
42 typedef WORD PRUint16;
43 typedef BYTE PRUint8;
44 typedef BOOL PRBool;
45 typedef LARGE_INTEGER PRInt64;
46 typedef ULARGE_INTEGER PRUint64;
47 typedef PRUint64 DOMTimeStamp;
48 typedef PRUint32 nsLoadFlags;
49
50 typedef struct {
51     void *v;
52     void *d1;
53     PRUint32 d2;
54     void *d3;
55 } nsCStringContainer;
56
57 typedef struct {
58     void *v;
59     void *d1;
60     PRUint32 d2;
61     void *d3;
62 } nsStringContainer;
63
64 typedef nsCStringContainer nsACString;
65 typedef nsStringContainer nsAString;
66
67 interface nsIWebBrowserChrome;
68 interface nsILoadGroup;
69 interface nsIDOMNode;
70 interface nsIDOMDocument;
71
72 [
73     object,
74     uuid(00000000-0000-0000-c000-000000000046)
75 ]
76 interface nsISupports
77 {
78     nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
79     nsrefcnt AddRef();
80     nsrefcnt Release();
81 }
82
83 /* Currently we don't need a full declaration of these interfaces */
84 typedef nsISupports nsISHistory;
85 typedef nsISupports nsISimpleEnumerator;
86 typedef nsISupports nsIWidget;
87 typedef nsISupports nsIProtocolHandler;
88 typedef nsISupports nsIDOMEventTarget;
89 typedef nsISupports nsIDOMAbstractView;
90 typedef nsISupports nsIStreamListener;
91 typedef nsISupports nsIHttpHeaderVisitor;
92 typedef nsISupports nsIRequestObserver;
93 typedef nsISupports nsIDOMBarProp;
94 typedef nsISupports nsIDOMWindowCollection;
95 typedef nsISupports nsISelection;
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 nsIDOMDocumentFragment;
103 typedef nsISupports nsIDOMText;
104 typedef nsISupports nsIDOMComment;
105 typedef nsISupports nsIDOMCDATASection;
106 typedef nsISupports nsIDOMProcessingInstruction;
107 typedef nsISupports nsIDOMEntityReference;
108 typedef nsISupports nsIDOMHTMLFormElement;
109 typedef nsISupports nsIDOMHTMLOptionsCollection;
110
111 [
112     object,
113     uuid(8bb35ed9-e332-462d-9155-4a002ab5c958)
114 ]
115 interface nsIServiceManager : nsISupports
116 {
117     nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
118     nsresult GetServiceByContactID(nsstring aContactID, nsIIDRef aIID, void **result);
119     nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
120     nsresult IsServiceInstantiatedByContractID(nsstring aContractID, nsIIDRef aIID, BOOL *_retval);
121 }
122
123 [
124     object,
125     uuid(00000001-0000-0000-c000-000000000046)
126 ]
127 interface nsIFactory : nsISupports
128 {
129     nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
130     nsresult LockFactory(PRBool lock);
131 }
132
133 [
134     object,
135     uuid(db242e01-e4d9-11d2-9dde-000064657374)
136 ]
137 interface nsIObserver : nsISupports
138 {
139     nsresult Observe(nsISupports *aSubject, nsstring aTopic, nswstring aData);
140 }
141
142 [
143     object,
144     uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae)
145 ]
146 interface nsIComponentManager : nsISupports
147 {
148     nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
149     nsresult GetClassObjectByContractID(nsstring aContractID, nsIIDRef aIID, nsQIResult result);
150     nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
151             nsQIResult result);
152     nsresult CreateInstanceByContractID(nsstring aContractID, nsISupports *aDelegate,
153             nsIIDRef aIID, nsQIResult result);
154 }
155
156 [
157     object,
158     uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3)
159 ]
160 interface nsIMemory : nsISupports
161 {
162     void *Alloc(/*size_t*/ int size);
163     void *Realloc(void *_ptr, /*size_t*/ int newSize);
164     void Free(void *_ptr);
165     nsresult HeapMinimize(PRBool immediate);
166     nsresult IsLowMemory(PRBool *_retval);
167 }
168
169 [
170     object,
171     uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf)
172 ]
173 interface nsIWeakReference : nsISupports
174 {
175     nsresult QueryReferent(const nsIID *riid, void **result);
176 }
177
178 [
179     object,
180     uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf)
181 ]
182 interface nsISupportsWeakReference : nsISupports
183 {
184     nsresult GetWeakReference(nsIWeakReference **_retval);
185 }
186
187 [
188     object,
189     uuid(033a1470-8b2a-11d3-af88-00a024ffc08c)
190 ]
191 interface nsIInterfaceRequestor : nsISupports
192 {
193     nsresult GetInterface(const nsIID *riid, void **result);
194 }
195
196 [
197     object,
198     uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a)
199 ]
200 interface nsIInputStream : nsISupports
201 {
202     nsresult Close();
203     nsresult Available(PRUint32 *_retval);
204     nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
205     nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream, 
206             void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
207             PRUint32 aCount, PRUint32 *aWriteCount),
208             void *aClosure, PRUint32 aCount, PRUint32 *_retval);
209     nsresult IsNonBlocking(PRBool *_retval);
210 }
211
212 [
213     object,
214     uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53)
215 ]
216 interface nsIStringInputStream : nsIInputStream
217 {
218     nsresult SetData(const char *data, PRInt32 dataLen);
219     nsresult AdoptData(char *data, PRInt32 dataLen);
220     nsresult ShareData(const char *data, PRInt32 dataLen);
221 }
222
223 [
224     object,
225     uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40)
226 ]
227 interface nsIURI : nsISupports
228 {
229     nsresult GetSpec(nsACString *aSpec);
230     nsresult SetSpec(const nsACString *aSpec);
231     nsresult GetPrePath(nsACString *aPrePath);
232     nsresult GetScheme(nsACString *aScheme);
233     nsresult SetScheme(const nsACString *aScheme);
234     nsresult GetUserPass(nsACString *aUserPass);
235     nsresult SetUserPass(const nsACString *aUserPass);
236     nsresult GetUsername(nsACString *aUsername);
237     nsresult SetUsername(const nsACString *aUsername);
238     nsresult GetPassword(nsACString *aPassword);
239     nsresult SetPassword(const nsACString *aPassword);
240     nsresult GetHostPort(nsACString *aHostPort);
241     nsresult SetHostPort(const nsACString *aHostPort);
242     nsresult GetHost(nsACString *aHost);
243     nsresult SetHost(const nsACString *aHost);
244     nsresult GetPort(PRInt32 *aPort);
245     nsresult SetPort(PRInt32 aPort);
246     nsresult GetPath(nsACString *aPath);
247     nsresult SetPath(const nsACString *aPath);
248     nsresult Equals(nsIURI *other, PRBool *_retval);
249     nsresult SchemeIs(const char *scheme, PRBool *_retval);
250     nsresult Clone(nsIURI **_retval);
251     nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
252     nsresult GetAsciiSpec(nsACString *aAsciiSpec);
253     nsresult GetAsciiHost(nsACString *aAsciiHost);
254     nsresult GetOriginCharset(nsACString *aOriginCharset);
255 }
256
257 [
258     object,
259     uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe)
260 ]
261 interface nsIRequest : nsISupports
262 {
263     nsresult GetName(nsACString *aName);
264     nsresult IsPending(PRBool *_retval);
265     nsresult GetStatus(nsresult *aStatus);
266     nsresult Cancel(nsresult aStatus);
267     nsresult Suspend();
268     nsresult Resume();
269     nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
270     nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
271     nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
272     nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
273 }
274
275 [
276     object,
277     uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc)
278 ]
279 interface nsILoadGroup : nsIRequest
280 {
281     nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
282     nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
283     nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
284     nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
285     nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
286     nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
287     nsresult GetRequests(nsISimpleEnumerator **aRequests);
288     nsresult GetActiveCount(PRUint32 *aActiveCount);
289     nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
290     nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
291 }
292
293 [
294     object,
295     uuid(c63a055a-a676-4e71-bf3c-6cfa11082018)
296 ]
297 interface nsIChannel : nsIRequest
298 {
299     nsresult GetOriginalURI(nsIURI **aOriginalURI);
300     nsresult SetOriginalURI(nsIURI *aOriginalURI);
301     nsresult GetURI(nsIURI **aURI);
302     nsresult GetOwner(nsISupports **aOwner);
303     nsresult SetOwner(nsISupports *aOwner);
304     nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
305     nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
306     nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
307     nsresult GetContentType(nsACString *aContentType);
308     nsresult SetContentType(const nsACString *aContentType);
309     nsresult GetContentCharset(nsACString *aContentCharset);
310     nsresult SetContentCharset(const nsACString *aContentCharset);
311     nsresult GetContentLength(PRInt32 *aContentLength);
312     nsresult SetContentLength(PRInt32 aContentLength);
313     nsresult Open(nsIInputStream **_retval);
314     nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
315 }
316
317 [
318     object,
319     uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260)
320 ]
321 interface nsIHttpChannel : nsIChannel
322 {
323     nsresult GetRequestMethod(nsACString *aRequestMethod);
324     nsresult SetRequestMethod(const nsACString *aRequestMethod);
325     nsresult GetReferrer(nsIURI **aReferrer);
326     nsresult SetReferrer(nsIURI *aReferrer);
327     nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
328     nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
329     nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
330     nsresult GetAllowPipelining(PRBool *aAllowPipelining);
331     nsresult SetAllowPipelining(PRBool aAllowPipelining);
332     nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
333     nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
334     nsresult GetResponseStatus(PRUint32 *aResponseStatus);
335     nsresult GetResponseStatusText(nsACString *aResponseStatusText);
336     nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
337     nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
338     nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
339     nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
340     nsresult IsNoStoreResponse(PRBool *_retval);
341     nsresult IsNoCacheResponse(PRBool *_retval);
342 }
343
344 [
345     object,
346     uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75)
347 ]
348 interface nsIUploadChannel : nsISupports
349 {
350     nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
351                              PRInt32 aContentLength);
352     nsresult GetUploadStream(nsIInputStream **aUploadStream);
353 }
354
355 [
356     object,
357     uuid(a6cf907d-15b3-11d2-932e-00805f8add32)
358 ]
359 interface nsIDOMNodeList : nsISupports
360 {
361     nsresult Item(PRUint32 index, nsIDOMNode **_retval);
362     nsresult GetLength(PRUint32 *aLength);
363 }
364
365 [
366     object,
367     uuid(a6cf907c-15b3-11d2-932e-00805f8add32)
368 ]
369 interface nsIDOMNode : nsISupports
370 {
371     nsresult GetNodeName(nsAString *aNodeName);
372     nsresult GetNodeValue(nsAString *aNodeValue);
373     nsresult SetNodeValue(const nsAString *aNodeValue);
374     nsresult GetNodeType(PRUint16 *aNodeType);
375     nsresult GetParentNode(nsIDOMNode **aParentNode);
376     nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
377     nsresult GetFirstChild(nsIDOMNode **aFirstChild);
378     nsresult GetLastChild(nsIDOMNode **aLastChild);
379     nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
380     nsresult GetNextSibling(nsIDOMNode **aNextSibling);
381     nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
382     nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
383     nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
384     nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
385     nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
386     nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
387     nsresult HasChildNodes(PRBool *_retval);
388     nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
389     nsresult Normalize();
390     nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
391     nsresult GetNamespaceURI(nsAString *aNamespaceURI);
392     nsresult GetPrefix(nsAString *aPrefix);
393     nsresult SetPrefix(const nsAString *aPrefix);
394     nsresult GetLocalName(nsAString *aLocalName);
395     nsresult HasAttributes(PRBool *_retval);
396 }
397
398 [
399     object,
400     uuid(a6cf9078-15b3-11d2-932e-00805f8add32)
401 ]
402 interface nsIDOMElement : nsIDOMNode
403 {
404     nsresult GetTagName(nsAString *aTagName);
405     nsresult GetAttribute(const nsAString *name, nsAString *_retval);
406     nsresult SetAttribute(const nsAString *name, const nsAString *value);
407     nsresult RemoveAttribute(const nsAString *name);
408     nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
409     nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
410     nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
411     nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
412     nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
413                             nsAString *_retval);
414     nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
415                             const nsAString *value);
416     nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
417     nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
418                                 nsIDOMAttr **_retval);
419     nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
420     nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
421                                     nsIDOMNodeList **_retval);
422     nsresult HasAttribute(const nsAString *name, PRBool *_retval);
423     nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
424                             PRBool *_retval);
425 }
426
427 cpp_quote("#undef GetClassName");
428
429 [
430     object,
431     uuid(a6cf9085-15b3-11d2-932e-00805f8add32)
432 ]
433 interface nsIDOMHTMLElement : nsIDOMElement
434 {
435     nsresult GetId(nsAString *aId);
436     nsresult SetId(const nsAString *aId);
437     nsresult GetTitle(nsAString *aTitle);
438     nsresult SetTitle(const nsAString *aTitle);
439     nsresult GetLang(nsAString *aLang);
440     nsresult SetLang(const nsAString *aLang);
441     nsresult GetDir(nsAString *aDir);
442     nsresult SetDir(const nsAString *aDir);
443     nsresult GetClassName(nsAString *aClassName);
444     nsresult SetClassName(const nsAString *aClassName);
445 }
446
447 [
448     object,
449     uuid(a6cf9075-15b3-11d2-932e-00805f8add32)
450 ]
451 interface nsIDOMDocument : nsIDOMNode
452 {
453     nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
454     nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
455     nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
456     nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
457     nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
458     nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
459     nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
460     nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
461     nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
462                                          nsIDOMProcessingInstruction **_retval);
463     nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
464     nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
465     nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
466     nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
467     nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
468                              nsIDOMElement **_retval);
469     nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
470                                nsIDOMAttr **_retval);
471     nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
472                                     nsIDOMNodeList **_retval);
473     nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
474 }
475
476 [
477     object,
478     uuid(a6cf906b-15b3-11d2-932e-00805f8add32)
479 ]
480 interface nsIDOMWindow : nsISupports
481 {
482     nsresult GetDocument(nsIDOMDocument **aDocument);
483     nsresult GetParent(nsIDOMWindow **aParent);
484     nsresult GetTop(nsIDOMWindow **aTop);
485     nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
486     nsresult GetFrames(nsIDOMWindowCollection **aFrames);
487     nsresult GetName(nsAString *aName);
488     nsresult SetName(const nsAString *aName);
489     nsresult GetTextZoom(float *aTextZoom);
490     nsresult SetTextZoom(float aTextZoom);
491     nsresult GetScrollX(PRInt32 *aScrollX);
492     nsresult GetScrollY(PRInt32 *aScrollY);
493     nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
494     nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
495     nsresult GetSelection(nsISelection **_retval);
496     nsresult ScrollByLines(PRInt32 numLines);
497     nsresult ScrollByPages(PRInt32 numPages);
498     nsresult SizeToContent();
499 }
500
501 [
502     object,
503     uuid(a6cf908e-15b3-11d2-932e-00805f8add32)
504 ]
505 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
506 {
507     nsresult GetALink(nsAString *aALink);
508     nsresult SetALink(const nsAString *aALink);
509     nsresult GetBackground(nsAString *aBackground);
510     nsresult SetBackground(const nsAString *aBackground);
511     nsresult GetBgColor(nsAString *aBgColor);
512     nsresult SetBgColor(const nsAString *aBgColor);
513     nsresult GetLink(nsAString *aLink);
514     nsresult SetLink(const nsAString *aLink);
515     nsresult GetText(nsAString *aText);
516     nsresult SetText(const nsAString *aText);
517     nsresult GetVLink(nsAString *aVLink);
518     nsresult SetVLink(const nsAString *aVLink);
519 }
520
521 [
522     object,
523     uuid(a6cf9093-15b3-11d2-932e-00805f8add32)
524 ]
525 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
526 {
527     nsresult GetDefaultValue(nsAString *aDefaultValue);
528     nsresult SetDefaultValue(const nsAString *aDefaultValue);
529     nsresult GetDefaultChecked(PRBool *aDefaultChecked);
530     nsresult SetDefaultChecked(PRBool aDefaultChecked);
531     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
532     nsresult GetAccept(nsAString *aAccept);
533     nsresult SetAccept(const nsAString *aAccept);
534     nsresult GetAccessKey(nsAString *aAccessKey);
535     nsresult SetAccessKey(const nsAString *aAccessKey);
536     nsresult GetAlign(nsAString *aAlign);
537     nsresult SetAlign(const nsAString *aAlign);
538     nsresult GetAlt(nsAString *aAlt);
539     nsresult SetAlt(const nsAString *aAlt);
540     nsresult GetChecked(PRBool *aChecked);
541     nsresult SetChecked(PRBool aChecked);
542     nsresult GetDisabled(PRBool *aDisabled);
543     nsresult SetDisabled(PRBool aDisabled);
544     nsresult GetMaxLength(PRInt32 *aMaxLength);
545     nsresult SetMaxLength(PRInt32 aMaxLength);
546     nsresult GetName(nsAString *aName);
547     nsresult SetName(const nsAString *aName);
548     nsresult GetReadOnly(PRBool *aReadOnly);
549     nsresult SetReadOnly(PRBool aReadOnly);
550     nsresult GetSize(PRUint32 *aSize);
551     nsresult SetSize(PRUint32 aSize);
552     nsresult GetSrc(nsAString *aSrc);
553     nsresult SetSrc(const nsAString *aSrc);
554     nsresult GetTabIndex(PRInt32 *aTabIndex);
555     nsresult SetTabIndex(PRInt32 aTabIndex);
556     nsresult GetType(nsAString *aType);
557     nsresult SetType(const nsAString *aType);
558     nsresult GetUseMap(nsAString *aUseMap);
559     nsresult SetUseMap(const nsAString *aUseMap);
560     nsresult GetValue(nsAString *aValue);
561     nsresult SetValue(const nsAString *aValue);
562     nsresult Blur();
563     nsresult Focus();
564     nsresult Select();
565     nsresult Click();
566 }
567
568 [
569     object,
570     uuid(a6cf9090-15b3-11d2-932e-00805f8add32)
571 ]
572 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
573 {
574     nsresult GetType(nsAString *aType);
575     nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
576     nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
577     nsresult GetValue(nsAString *aValue);
578     nsresult SetValue(const nsAString *aValue);
579     nsresult GetLength(PRUint32 *aLength);
580     nsresult SetLength(PRUint32 aLength);
581     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
582     nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
583     nsresult GetDisabled(PRBool *aDisabled);
584     nsresult SetDisabled(PRBool aDisabled);
585     nsresult GetMultiple(PRBool *aMultiple);
586     nsresult SetMultiple(PRBool aMultiple);
587     nsresult GetName(nsAString *aName);
588     nsresult SetName(const nsAString *aName);
589     nsresult GetSize(PRInt32 *aSize);
590     nsresult SetSize(PRInt32 aSize);
591     nsresult GetTabIndex(PRInt32 *aTabIndex);
592     nsresult SetTabIndex(PRInt32 aTabIndex);
593     nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
594     nsresult Remove(PRInt32 index);
595     nsresult Blur();
596     nsresult Focus();
597 }
598
599 [
600     object,
601     uuid(a6cf9094-15b3-11d2-932e-00805f8add32)
602 ]
603 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
604 {
605     nsresult GetDefaultValue(nsAString *aDefaultValue);
606     nsresult SetDefaultValue(const nsAString *aDefaultValue);
607     nsresult GetForm(nsIDOMHTMLFormElement **aForm);
608     nsresult GetAccessKey(nsAString *aAccessKey);
609     nsresult SetAccessKey(const nsAString *aAccessKey);
610     nsresult GetCols(PRInt32 *aCols);
611     nsresult SetCols(PRInt32 aCols);
612     nsresult GetDisabled(PRBool *aDisabled);
613     nsresult SetDisabled(PRBool aDisabled);
614     nsresult GetName(nsAString *aName);
615     nsresult SetName(const nsAString *aName);
616     nsresult GetReadOnly(PRBool *aReadOnly);
617     nsresult SetReadOnly(PRBool aReadOnly);
618     nsresult GetRows(PRInt32 *aRows);
619     nsresult SetRows(PRInt32 aRows);
620     nsresult GetTabIndex(PRInt32 *aTabIndex);
621     nsresult SetTabIndex(PRInt32 aTabIndex);
622     nsresult GetType(nsAString *aType);
623     nsresult GetValue(nsAString *aValue);
624     nsresult SetValue(const nsAString *aValue);
625     nsresult Blur();
626     nsresult Focus();
627     nsresult Select();
628 }
629
630 [
631     object,
632     uuid(94928ab3-8b63-11d3-989d-001083010e9b)
633 ]
634 interface nsIURIContentListener : nsISupports
635 {
636     nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
637     nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
638         nsIStreamListener **aContentHandler, PRBool *_retval);
639     nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
640     nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
641         char **aDesiredContentType, PRBool *_retval);
642     nsresult GetLoadCookie(nsISupports **aLoadCookie);
643     nsresult SetLoadCookie(nsISupports *aLoadCookie);
644     nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
645     nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
646 }
647
648 [
649     object,
650     uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916)
651 ]
652 interface nsITooltipListener : nsISupports
653 {
654     nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
655     nsresult OnHideTooltip();
656 }
657
658 [
659     object,
660     uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c)
661 ]
662 interface nsIWebBrowser : nsISupports
663 {
664     nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
665     nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
666     nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
667     nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
668     nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
669     nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
670     nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
671 }
672
673 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7");
674
675 [
676     object,
677     uuid(f15398a0-8018-11d3-af70-00a024ffc08c)
678 ]
679 interface nsIWebBrowserSetup : nsISupports
680 {
681     nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
682 }
683
684 typedef void* nativeWindow;
685
686 [
687     object,
688     uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)
689 ]
690 interface nsIBaseWindow : nsISupports
691 {
692     nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
693             PRInt32 y, PRInt32 cx, PRInt32 cy);
694     nsresult Create();
695     nsresult Destroy();
696     nsresult SetPosition(PRInt32 x, PRInt32 y);
697     nsresult GetPosition(PRInt32 *x, PRInt32 *y);
698     nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
699     nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
700     nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
701     nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
702     nsresult Repaint(PRBool force);
703     nsresult GetParentWidget(nsIWidget **aParentWidget); 
704     nsresult SetParentWidget(nsIWidget *aParentWidget);
705     nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
706     nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
707     nsresult GetVisibility(PRBool *aVisibility);
708     nsresult SetVisibility(PRBool aVisibility);
709     nsresult GetEnabled(PRBool *aEnabled);
710     nsresult SetEnabled(PRBool aEnabled);
711     nsresult GetBlurSuppression(PRBool *aBlurSuppression);
712     nsresult SetBlurSuppression(PRBool aBlurSuppression);
713     nsresult GetMainWidget(nsIWidget **aMainWidget);
714     nsresult SetFocus();
715     nsresult GetTitle(PRUnichar **aTitle);
716     nsresult SetTitle(const PRUnichar *aTitle);
717 }
718
719 cpp_quote("#define LOAD_FLAGS_NONE 0");
720
721 [
722     object,
723     uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c)
724 ]
725 interface nsIWebNavigation : nsISupports
726 {
727     nsresult GetCanGoBack(PRBool *aCanGoBack);
728     nsresult GetCanGoForward(PRBool *aCanGoForward);
729     nsresult GoBack();
730     nsresult GoForward();
731     nsresult GotoIndex(PRInt32 index);
732     nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
733             nsIInputStream *aPostData, nsIInputStream *aHeaders);
734     nsresult Reload(PRUint32 aReloadFlags);
735     nsresult Stop(PRUint32 aStopFlags);
736     nsresult GetDocument(nsIDOMDocument **aDocument);
737     nsresult GetCurrentURI(nsIURI **aCurrentURI);
738     nsresult GetReferringURI(nsIURI **aReferringURI);
739     nsresult GetSessionHistory(nsISHistory **aSessionHistory);
740     nsresult SetSessionHistory(nsISHistory *aSessionHistory);
741 }
742
743 [
744     object,
745     uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)
746 ]
747 interface nsIFile : nsISupports
748 {
749     nsresult Append(const nsAString *node);
750     nsresult AppendNative(const nsAString *node);
751     nsresult Normalize();
752     nsresult Create(PRUint32 type, PRUint32 permission);
753     nsresult GetLeafName(nsAString *aLeafName);
754     nsresult SetLeafName(const nsAString *aLeafName);
755     nsresult GetNativeLeafName(nsAString *aLeafName);
756     nsresult SetNativeLeafName(const nsAString *aLeafName);
757     nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
758     nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
759     nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
760     nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
761     nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
762     nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
763     nsresult Remove(PRBool recursive);
764     nsresult GetPermissions(PRUint32 *aPermissions);
765     nsresult SetPermissions(PRUint32 pPermissions);
766     nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
767     nsresult SetPermissionsOfLink(PRUint32 pPermissions);
768     nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
769     nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
770     nsresult GetFileSize(PRInt64 *aFileSize);
771     nsresult SetFileSize(PRInt64 aFileSize);
772     nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
773     nsresult GetTarget(nsAString *aTarget);
774     nsresult GetNativeTarget(nsACString *aNativeTarget);
775     nsresult GetPath(nsAString *aPath);
776     nsresult GetNativePath(nsACString *aNativePath);
777     nsresult Exists(PRBool *_retval);
778     nsresult IsWritable(PRBool *_retval);
779     nsresult IsReadable(PRBool *_retval);
780     nsresult IsExecutable(PRBool *_retval);
781     nsresult IsHidden(PRBool *_retval);
782     nsresult IsDirectory(PRBool *_retval);
783     nsresult IsFile(PRBool *_retval);
784     nsresult IsSymlink(PRBool *_retval);
785     nsresult IsSpecial(PRBool *_retval);
786     nsresult CreateUnique(PRUint32 type, PRUint32 permission);
787     nsresult Clone(nsIFile **_retval);
788     nsresult Equals(nsIFile *inFile, PRBool *_retval);
789     nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
790     nsresult GetParent(nsIFile **aParent);
791     nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
792 }
793
794 [
795     object,
796     uuid(86d02f0e-219b-4cfc-9c88-bd98d2cce0b8)
797 ]
798 interface nsIWebBrowserStream : nsISupports
799 {
800     nsresult OpenStream(nsIURI *aBaseURI, nsACString *aContentType);
801     nsresult AppendToStream(PRUint8 *aData, PRUint32 aLen);
802     nsresult CloseStream();
803 }
804
805 [
806     object,
807     uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e)
808 ]
809 interface nsIIOService : nsISupports
810 {
811     nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
812     nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
813     nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
814                     nsIURI **_retval);
815     nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
816     nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
817     nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
818                         nsIChannel **_retval);
819     nsresult GetOffline(PRBool *aOffline);
820     nsresult SetOffline(PRBool aOffline);
821     nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
822     nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
823 }
824
825 [
826     object,
827     uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a)
828 ]
829 interface nsIWebBrowserFocus : nsISupports
830 {
831     nsresult Activate();
832     nsresult Deactivate();
833     nsresult SetFocusAtFirstElement();
834     nsresult SetFocusAtLastElement();
835     nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
836     nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
837     nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
838     nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
839 }
840
841 [
842     object,
843     uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c)
844 ]
845 interface nsIWebBrowserChrome : nsISupports
846 {
847     nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
848     nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
849     nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
850     nsresult GetChromeFlags(PRUint32 *aChromeFlags);
851     nsresult SetChromeFlags(PRUint32 aChromeFlags);
852     nsresult DestroyBrowserWindow();
853     nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
854     nsresult ShowAsModal();
855     nsresult IsWindowModal(PRBool *_retval);
856     nsresult ExitModalEventLoop(nsresult aStatus);
857 }
858
859 [
860     object,
861     uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32)
862 ]
863 interface nsIDOMEvent : nsISupports
864 {
865     nsresult GetType(nsAString *aType);
866     nsresult GetTarget(nsIDOMEventTarget **aTarget);
867     nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
868     nsresult GetEventPhase(PRUint16 *aEventPhase);
869     nsresult GetBubbles(PRBool *aBubbles);
870     nsresult GetCancelable(PRBool *aCancelable);
871     nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
872     nsresult StopPropagation();
873     nsresult PreventDefault();
874     nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
875 }
876
877 cpp_quote("#define CONTEXT_NONE              0x00");
878 cpp_quote("#define CONTEXT_LINK              0x01");
879 cpp_quote("#define CONTEXT_IMAGE             0x02");
880 cpp_quote("#define CONTEXT_DOCUMENT          0x04");
881 cpp_quote("#define CONTEXT_TEXT              0x08");
882 cpp_quote("#define CONTEXT_INPUT             0x10");
883 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE  0x20");
884
885 [
886     object,
887     uuid(3478b6b0-3875-11d4-94ef-0020183bf181)
888 ]
889 interface nsIContextMenuListener : nsISupports
890 {
891     nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
892 }
893
894 [
895     object,
896     uuid(a6cf90c3-15b3-11d2-932e-00805f8add32)
897 ]
898 interface nsIDOMUIEvent : nsIDOMEvent
899 {
900     nsresult GetView(nsIDOMAbstractView **aView);
901     nsresult GetDetail(PRInt32 *aDetail);
902     nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
903             nsIDOMAbstractView *viewArg, PRInt32 detailArg);
904 }
905
906 [
907     object,
908     uuid(ff751edc-8b02-aae7-0010-8301838a3123)
909 ]
910 interface nsIDOMMouseEvent : nsIDOMUIEvent
911 {
912     nsresult GetScreenX(PRInt32 *aScreenX);
913     nsresult GetScreenY(PRInt32 *aScreenY);
914     nsresult GetClientX(PRInt32 *aClientX);
915     nsresult GetClientY(PRInt32 *aClientY);
916     nsresult GetCtrlKey(PRBool *aCtrlKey);
917     nsresult GetShiftKey(PRBool *aShiftKey);
918     nsresult GetAltKey(PRBool *aAltKey);
919     nsresult GetMetaKey(PRBool *aMetaKey);
920     nsresult GetButton(PRUint16 *aButton);
921     nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
922     nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
923             nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
924             PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
925             PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
926             nsIDOMEventTarget *relatedTargetArg);
927 }
928
929 [
930      object,
931      uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743)
932 ]
933 interface nsIEmbeddingSiteWindow : nsISupports
934 {
935     nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
936     nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
937     nsresult SetFocus();
938     nsresult GetVisibility(PRBool *aVisibility);
939     nsresult SetVisibility(PRBool aVisibility);
940     nsresult GetTitle(PRUnichar **aTitle);
941     nsresult SetTitle(const PRUnichar *aTitle);
942     nsresult GetSiteWindow(void **aSiteWindow);
943 }
944
945 [
946      object,
947      uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392)
948 ]
949 interface nsIComponentRegistrar : nsISupports
950 {
951     nsresult AutoRegister(nsIFile *aSpec);
952     nsresult AutoUnregister(nsIFile *aSpec);
953     nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
954             const char *aContractID, nsIFactory *aFactory);
955     nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
956     nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
957             const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
958             const char *aType);
959     nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
960     nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
961     nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
962     nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
963     nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
964     nsresult CIDToContractID(const nsCID *aClass, char **_retval);
965     nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
966 }
967
968 [
969     object,
970     uuid(1630c61a-325e-49ca-8759-a31b16c47aa5)
971 ]
972 interface nsIPromptService : nsISupports
973 {
974     nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
975             const PRUnichar *aText);
976     nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
977             const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
978     nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
979             const PRUnichar *aText, PRBool *_retval);
980     nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
981             const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
982             PRBool *_retval);
983     nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
984             const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
985             const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
986             const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
987     nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
988             const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
989             PRBool *aCheckState, PRBool *_retval);
990     nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
991             const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
992             const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
993     nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
994             const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
995             PRBool *aCheckState, PRBool *_retval);
996     nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
997             const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
998             PRInt32 *aOutSelection, PRBool *_retval);
999 }
1000
1001 [
1002     object,
1003     uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee)
1004 ]
1005 interface nsITooltipTextProvider : nsISupports
1006 {
1007     nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
1008 }
1009
1010 [
1011     object,
1012     uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9)
1013 ]
1014 interface nsIProfile : nsISupports
1015 {
1016     nsresult GetProfileCount(PRInt32 *aProfileCount);
1017     nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
1018     nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
1019     nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
1020     nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
1021     nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
1022     nsresult CreateNewProfile(const PRUnichar *profileName,
1023             const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
1024             PRBool useExistingDir);
1025     nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
1026     nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
1027     nsresult CloneProfile(const PRUnichar *profileName);
1028 }
1029
1030 [
1031     object,
1032     uuid(30465632-a777-44cc-90f9-8145475ef999)
1033 ]
1034 interface nsIWindowCreator : nsISupports
1035 {
1036     nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1037                                    nsIWebBrowserChrome **_retval);
1038 }
1039
1040 [
1041     object,
1042     uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc)
1043 ]
1044 interface nsIWindowCreator2 : nsIWindowCreator
1045 {
1046     nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1047                                  PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
1048                                  nsIWebBrowserChrome **_retval);
1049 }
1050
1051 [
1052     object,
1053     uuid(002286a8-494b-43b3-8ddd-49e3fc50622b)
1054 ]
1055 interface nsIWindowWatcher : nsISupports
1056 {
1057     nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
1058                         const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
1059     nsresult RegisterNotification(nsIObserver *aObserver);
1060     nsresult UnregisterNotification(nsIObserver *aObserver);
1061     nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
1062     nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
1063     nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
1064     nsresult SetWindowCreator(nsIWindowCreator *creator);
1065     nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
1066     nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
1067                              nsIDOMWindow **_retval);
1068     nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
1069     nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
1070 }
1071
1072 /*
1073  * NOTE:
1074  * This is a private Wine interface that is implemented by our implementation
1075  * of nsIURI to store its owner.
1076  */
1077 [
1078     object,
1079     uuid(5088272e-900b-11da-c687-000fea57f21a)
1080 ]
1081 interface nsIWineURI : nsIURI
1082 {
1083     typedef struct NSContainer NSContainer;
1084
1085     nsresult GetNSContainer(NSContainer **aNSContainer);
1086     nsresult SetNSContainer(NSContainer *aNSContainer);
1087 }