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