2 * Copyright 2005-2006 Jacek Caban for CodeWeavers
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
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,
28 typedef HRESULT nsresult;
29 typedef ULONG nsrefcnt;
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;
42 typedef WORD PRUint16;
45 typedef LARGE_INTEGER PRInt64;
46 typedef ULARGE_INTEGER PRUint64;
47 typedef PRUint64 DOMTimeStamp;
48 typedef PRUint32 nsLoadFlags;
64 typedef nsCStringContainer nsACString;
65 typedef nsStringContainer nsAString;
67 interface nsIWebBrowserChrome;
68 interface nsILoadGroup;
70 interface nsIDOMDocument;
74 uuid(00000000-0000-0000-c000-000000000046)
78 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
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 nsIPrompt;
94 typedef nsISupports nsIAuthPrompt;
95 typedef nsISupports nsIDOMNamedNodeMap;
96 typedef nsISupports nsIDOMAttr;
97 typedef nsISupports nsIDOMDocumentType;
98 typedef nsISupports nsIDOMDOMImplementation;
99 typedef nsISupports nsIDOMDocumentFragment;
100 typedef nsISupports nsIDOMText;
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 nsIDOMRange;
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);
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);
134 uuid(db242e01-e4d9-11d2-9dde-000064657374)
136 interface nsIObserver : nsISupports
138 nsresult Observe(nsISupports *aSubject, nsstring aTopic, nswstring aData);
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,
151 nsresult CreateInstanceByContractID(nsstring aContractID, nsISupports *aDelegate,
152 nsIIDRef aIID, nsQIResult result);
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);
170 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf)
172 interface nsIWeakReference : nsISupports
174 nsresult QueryReferent(const nsIID *riid, void **result);
179 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf)
181 interface nsISupportsWeakReference : nsISupports
183 nsresult GetWeakReference(nsIWeakReference **_retval);
188 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c)
190 interface nsIInterfaceRequestor : nsISupports
192 nsresult GetInterface(const nsIID *riid, void **result);
197 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a)
199 interface nsIInputStream : nsISupports
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);
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);
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);
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);
268 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
269 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
270 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
271 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
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);
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);
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);
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);
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);
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);
376 uuid(a6cf907d-15b3-11d2-932e-00805f8add32)
378 interface nsIDOMNodeList : nsISupports
380 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
381 nsresult GetLength(PRUint32 *aLength);
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);
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,
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,
446 cpp_quote("#undef GetClassName");
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);
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);
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);
516 nsresult Close(void);
517 nsresult Write(const nsAString *text);
518 nsresult Writeln(const nsAString *text);
519 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
524 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1)
526 interface nsISelection : nsISupports
528 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
529 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
530 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
531 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
532 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
533 nsresult GetRangeCount(PRInt32 *aRangeCount);
534 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
535 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
536 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
537 nsresult CollapseToStart();
538 nsresult CollapseToEnd();
539 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
540 nsresult SelectAllChildren(nsIDOMNode *parentNode);
541 nsresult AddRange(nsIDOMRange *range);
542 nsresult RemoveRange(nsIDOMRange *range);
543 nsresult RemoveAllRanges();
544 nsresult DeleteFromDocument();
545 nsresult SelectionLanguageChange(PRBool langRTL);
546 nsresult ToString(PRUnichar **_retval);
551 uuid(a6cf906b-15b3-11d2-932e-00805f8add32)
553 interface nsIDOMWindow : nsISupports
555 nsresult GetDocument(nsIDOMDocument **aDocument);
556 nsresult GetParent(nsIDOMWindow **aParent);
557 nsresult GetTop(nsIDOMWindow **aTop);
558 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
559 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
560 nsresult GetName(nsAString *aName);
561 nsresult SetName(const nsAString *aName);
562 nsresult GetTextZoom(float *aTextZoom);
563 nsresult SetTextZoom(float aTextZoom);
564 nsresult GetScrollX(PRInt32 *aScrollX);
565 nsresult GetScrollY(PRInt32 *aScrollY);
566 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
567 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
568 nsresult GetSelection(nsISelection **_retval);
569 nsresult ScrollByLines(PRInt32 numLines);
570 nsresult ScrollByPages(PRInt32 numPages);
571 nsresult SizeToContent();
576 uuid(a6cf908e-15b3-11d2-932e-00805f8add32)
578 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
580 nsresult GetALink(nsAString *aALink);
581 nsresult SetALink(const nsAString *aALink);
582 nsresult GetBackground(nsAString *aBackground);
583 nsresult SetBackground(const nsAString *aBackground);
584 nsresult GetBgColor(nsAString *aBgColor);
585 nsresult SetBgColor(const nsAString *aBgColor);
586 nsresult GetLink(nsAString *aLink);
587 nsresult SetLink(const nsAString *aLink);
588 nsresult GetText(nsAString *aText);
589 nsresult SetText(const nsAString *aText);
590 nsresult GetVLink(nsAString *aVLink);
591 nsresult SetVLink(const nsAString *aVLink);
596 uuid(a6cf9093-15b3-11d2-932e-00805f8add32)
598 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
600 nsresult GetDefaultValue(nsAString *aDefaultValue);
601 nsresult SetDefaultValue(const nsAString *aDefaultValue);
602 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
603 nsresult SetDefaultChecked(PRBool aDefaultChecked);
604 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
605 nsresult GetAccept(nsAString *aAccept);
606 nsresult SetAccept(const nsAString *aAccept);
607 nsresult GetAccessKey(nsAString *aAccessKey);
608 nsresult SetAccessKey(const nsAString *aAccessKey);
609 nsresult GetAlign(nsAString *aAlign);
610 nsresult SetAlign(const nsAString *aAlign);
611 nsresult GetAlt(nsAString *aAlt);
612 nsresult SetAlt(const nsAString *aAlt);
613 nsresult GetChecked(PRBool *aChecked);
614 nsresult SetChecked(PRBool aChecked);
615 nsresult GetDisabled(PRBool *aDisabled);
616 nsresult SetDisabled(PRBool aDisabled);
617 nsresult GetMaxLength(PRInt32 *aMaxLength);
618 nsresult SetMaxLength(PRInt32 aMaxLength);
619 nsresult GetName(nsAString *aName);
620 nsresult SetName(const nsAString *aName);
621 nsresult GetReadOnly(PRBool *aReadOnly);
622 nsresult SetReadOnly(PRBool aReadOnly);
623 nsresult GetSize(PRUint32 *aSize);
624 nsresult SetSize(PRUint32 aSize);
625 nsresult GetSrc(nsAString *aSrc);
626 nsresult SetSrc(const nsAString *aSrc);
627 nsresult GetTabIndex(PRInt32 *aTabIndex);
628 nsresult SetTabIndex(PRInt32 aTabIndex);
629 nsresult GetType(nsAString *aType);
630 nsresult SetType(const nsAString *aType);
631 nsresult GetUseMap(nsAString *aUseMap);
632 nsresult SetUseMap(const nsAString *aUseMap);
633 nsresult GetValue(nsAString *aValue);
634 nsresult SetValue(const nsAString *aValue);
643 uuid(a6cf9090-15b3-11d2-932e-00805f8add32)
645 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
647 nsresult GetType(nsAString *aType);
648 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
649 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
650 nsresult GetValue(nsAString *aValue);
651 nsresult SetValue(const nsAString *aValue);
652 nsresult GetLength(PRUint32 *aLength);
653 nsresult SetLength(PRUint32 aLength);
654 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
655 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
656 nsresult GetDisabled(PRBool *aDisabled);
657 nsresult SetDisabled(PRBool aDisabled);
658 nsresult GetMultiple(PRBool *aMultiple);
659 nsresult SetMultiple(PRBool aMultiple);
660 nsresult GetName(nsAString *aName);
661 nsresult SetName(const nsAString *aName);
662 nsresult GetSize(PRInt32 *aSize);
663 nsresult SetSize(PRInt32 aSize);
664 nsresult GetTabIndex(PRInt32 *aTabIndex);
665 nsresult SetTabIndex(PRInt32 aTabIndex);
666 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
667 nsresult Remove(PRInt32 index);
674 uuid(a6cf9094-15b3-11d2-932e-00805f8add32)
676 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
678 nsresult GetDefaultValue(nsAString *aDefaultValue);
679 nsresult SetDefaultValue(const nsAString *aDefaultValue);
680 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
681 nsresult GetAccessKey(nsAString *aAccessKey);
682 nsresult SetAccessKey(const nsAString *aAccessKey);
683 nsresult GetCols(PRInt32 *aCols);
684 nsresult SetCols(PRInt32 aCols);
685 nsresult GetDisabled(PRBool *aDisabled);
686 nsresult SetDisabled(PRBool aDisabled);
687 nsresult GetName(nsAString *aName);
688 nsresult SetName(const nsAString *aName);
689 nsresult GetReadOnly(PRBool *aReadOnly);
690 nsresult SetReadOnly(PRBool aReadOnly);
691 nsresult GetRows(PRInt32 *aRows);
692 nsresult SetRows(PRInt32 aRows);
693 nsresult GetTabIndex(PRInt32 *aTabIndex);
694 nsresult SetTabIndex(PRInt32 aTabIndex);
695 nsresult GetType(nsAString *aType);
696 nsresult GetValue(nsAString *aValue);
697 nsresult SetValue(const nsAString *aValue);
705 uuid(94928ab3-8b63-11d3-989d-001083010e9b)
707 interface nsIURIContentListener : nsISupports
709 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
710 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
711 nsIStreamListener **aContentHandler, PRBool *_retval);
712 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
713 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
714 char **aDesiredContentType, PRBool *_retval);
715 nsresult GetLoadCookie(nsISupports **aLoadCookie);
716 nsresult SetLoadCookie(nsISupports *aLoadCookie);
717 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
718 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
723 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916)
725 interface nsITooltipListener : nsISupports
727 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
728 nsresult OnHideTooltip();
733 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c)
735 interface nsIWebBrowser : nsISupports
737 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
738 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
739 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
740 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
741 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
742 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
743 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
746 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7");
750 uuid(f15398a0-8018-11d3-af70-00a024ffc08c)
752 interface nsIWebBrowserSetup : nsISupports
754 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
757 typedef void* nativeWindow;
761 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)
763 interface nsIBaseWindow : nsISupports
765 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
766 PRInt32 y, PRInt32 cx, PRInt32 cy);
769 nsresult SetPosition(PRInt32 x, PRInt32 y);
770 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
771 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
772 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
773 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
774 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
775 nsresult Repaint(PRBool force);
776 nsresult GetParentWidget(nsIWidget **aParentWidget);
777 nsresult SetParentWidget(nsIWidget *aParentWidget);
778 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
779 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
780 nsresult GetVisibility(PRBool *aVisibility);
781 nsresult SetVisibility(PRBool aVisibility);
782 nsresult GetEnabled(PRBool *aEnabled);
783 nsresult SetEnabled(PRBool aEnabled);
784 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
785 nsresult SetBlurSuppression(PRBool aBlurSuppression);
786 nsresult GetMainWidget(nsIWidget **aMainWidget);
788 nsresult GetTitle(PRUnichar **aTitle);
789 nsresult SetTitle(const PRUnichar *aTitle);
792 cpp_quote("#define LOAD_FLAGS_NONE 0");
796 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c)
798 interface nsIWebNavigation : nsISupports
800 nsresult GetCanGoBack(PRBool *aCanGoBack);
801 nsresult GetCanGoForward(PRBool *aCanGoForward);
803 nsresult GoForward();
804 nsresult GotoIndex(PRInt32 index);
805 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
806 nsIInputStream *aPostData, nsIInputStream *aHeaders);
807 nsresult Reload(PRUint32 aReloadFlags);
808 nsresult Stop(PRUint32 aStopFlags);
809 nsresult GetDocument(nsIDOMDocument **aDocument);
810 nsresult GetCurrentURI(nsIURI **aCurrentURI);
811 nsresult GetReferringURI(nsIURI **aReferringURI);
812 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
813 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
818 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)
820 interface nsIFile : nsISupports
822 nsresult Append(const nsAString *node);
823 nsresult AppendNative(const nsAString *node);
824 nsresult Normalize();
825 nsresult Create(PRUint32 type, PRUint32 permission);
826 nsresult GetLeafName(nsAString *aLeafName);
827 nsresult SetLeafName(const nsAString *aLeafName);
828 nsresult GetNativeLeafName(nsAString *aLeafName);
829 nsresult SetNativeLeafName(const nsAString *aLeafName);
830 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
831 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
832 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
833 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
834 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
835 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
836 nsresult Remove(PRBool recursive);
837 nsresult GetPermissions(PRUint32 *aPermissions);
838 nsresult SetPermissions(PRUint32 pPermissions);
839 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
840 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
841 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
842 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
843 nsresult GetFileSize(PRInt64 *aFileSize);
844 nsresult SetFileSize(PRInt64 aFileSize);
845 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
846 nsresult GetTarget(nsAString *aTarget);
847 nsresult GetNativeTarget(nsACString *aNativeTarget);
848 nsresult GetPath(nsAString *aPath);
849 nsresult GetNativePath(nsACString *aNativePath);
850 nsresult Exists(PRBool *_retval);
851 nsresult IsWritable(PRBool *_retval);
852 nsresult IsReadable(PRBool *_retval);
853 nsresult IsExecutable(PRBool *_retval);
854 nsresult IsHidden(PRBool *_retval);
855 nsresult IsDirectory(PRBool *_retval);
856 nsresult IsFile(PRBool *_retval);
857 nsresult IsSymlink(PRBool *_retval);
858 nsresult IsSpecial(PRBool *_retval);
859 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
860 nsresult Clone(nsIFile **_retval);
861 nsresult Equals(nsIFile *inFile, PRBool *_retval);
862 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
863 nsresult GetParent(nsIFile **aParent);
864 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
869 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e)
871 interface nsIIOService : nsISupports
873 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
874 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
875 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
877 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
878 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
879 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
880 nsIChannel **_retval);
881 nsresult GetOffline(PRBool *aOffline);
882 nsresult SetOffline(PRBool aOffline);
883 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
884 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
889 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a)
891 interface nsIWebBrowserFocus : nsISupports
894 nsresult Deactivate();
895 nsresult SetFocusAtFirstElement();
896 nsresult SetFocusAtLastElement();
897 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
898 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
899 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
900 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
905 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c)
907 interface nsIWebBrowserChrome : nsISupports
909 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
910 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
911 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
912 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
913 nsresult SetChromeFlags(PRUint32 aChromeFlags);
914 nsresult DestroyBrowserWindow();
915 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
916 nsresult ShowAsModal();
917 nsresult IsWindowModal(PRBool *_retval);
918 nsresult ExitModalEventLoop(nsresult aStatus);
923 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32)
925 interface nsIDOMEvent : nsISupports
927 nsresult GetType(nsAString *aType);
928 nsresult GetTarget(nsIDOMEventTarget **aTarget);
929 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
930 nsresult GetEventPhase(PRUint16 *aEventPhase);
931 nsresult GetBubbles(PRBool *aBubbles);
932 nsresult GetCancelable(PRBool *aCancelable);
933 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
934 nsresult StopPropagation();
935 nsresult PreventDefault();
936 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
939 cpp_quote("#define CONTEXT_NONE 0x00");
940 cpp_quote("#define CONTEXT_LINK 0x01");
941 cpp_quote("#define CONTEXT_IMAGE 0x02");
942 cpp_quote("#define CONTEXT_DOCUMENT 0x04");
943 cpp_quote("#define CONTEXT_TEXT 0x08");
944 cpp_quote("#define CONTEXT_INPUT 0x10");
945 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20");
949 uuid(3478b6b0-3875-11d4-94ef-0020183bf181)
951 interface nsIContextMenuListener : nsISupports
953 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
958 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32)
960 interface nsIDOMUIEvent : nsIDOMEvent
962 nsresult GetView(nsIDOMAbstractView **aView);
963 nsresult GetDetail(PRInt32 *aDetail);
964 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
965 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
970 uuid(ff751edc-8b02-aae7-0010-8301838a3123)
972 interface nsIDOMMouseEvent : nsIDOMUIEvent
974 nsresult GetScreenX(PRInt32 *aScreenX);
975 nsresult GetScreenY(PRInt32 *aScreenY);
976 nsresult GetClientX(PRInt32 *aClientX);
977 nsresult GetClientY(PRInt32 *aClientY);
978 nsresult GetCtrlKey(PRBool *aCtrlKey);
979 nsresult GetShiftKey(PRBool *aShiftKey);
980 nsresult GetAltKey(PRBool *aAltKey);
981 nsresult GetMetaKey(PRBool *aMetaKey);
982 nsresult GetButton(PRUint16 *aButton);
983 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
984 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
985 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
986 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
987 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
988 nsIDOMEventTarget *relatedTargetArg);
993 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743)
995 interface nsIEmbeddingSiteWindow : nsISupports
997 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
998 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1000 nsresult GetVisibility(PRBool *aVisibility);
1001 nsresult SetVisibility(PRBool aVisibility);
1002 nsresult GetTitle(PRUnichar **aTitle);
1003 nsresult SetTitle(const PRUnichar *aTitle);
1004 nsresult GetSiteWindow(void **aSiteWindow);
1009 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392)
1011 interface nsIComponentRegistrar : nsISupports
1013 nsresult AutoRegister(nsIFile *aSpec);
1014 nsresult AutoUnregister(nsIFile *aSpec);
1015 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1016 const char *aContractID, nsIFactory *aFactory);
1017 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1018 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1019 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1021 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1022 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1023 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1024 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1025 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1026 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1027 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1032 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5)
1034 interface nsIPromptService : nsISupports
1036 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1037 const PRUnichar *aText);
1038 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1039 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
1040 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1041 const PRUnichar *aText, PRBool *_retval);
1042 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1043 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
1045 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1046 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
1047 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
1048 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
1049 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1050 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
1051 PRBool *aCheckState, PRBool *_retval);
1052 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1053 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
1054 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
1055 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1056 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
1057 PRBool *aCheckState, PRBool *_retval);
1058 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1059 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
1060 PRInt32 *aOutSelection, PRBool *_retval);
1065 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee)
1067 interface nsITooltipTextProvider : nsISupports
1069 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
1074 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9)
1076 interface nsIProfile : nsISupports
1078 nsresult GetProfileCount(PRInt32 *aProfileCount);
1079 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
1080 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
1081 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
1082 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
1083 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
1084 nsresult CreateNewProfile(const PRUnichar *profileName,
1085 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
1086 PRBool useExistingDir);
1087 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
1088 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
1089 nsresult CloneProfile(const PRUnichar *profileName);
1094 uuid(30465632-a777-44cc-90f9-8145475ef999)
1096 interface nsIWindowCreator : nsISupports
1098 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1099 nsIWebBrowserChrome **_retval);
1104 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc)
1106 interface nsIWindowCreator2 : nsIWindowCreator
1108 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1109 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
1110 nsIWebBrowserChrome **_retval);
1115 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b)
1117 interface nsIWindowWatcher : nsISupports
1119 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
1120 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
1121 nsresult RegisterNotification(nsIObserver *aObserver);
1122 nsresult UnregisterNotification(nsIObserver *aObserver);
1123 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
1124 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
1125 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
1126 nsresult SetWindowCreator(nsIWindowCreator *creator);
1127 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
1128 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
1129 nsIDOMWindow **_retval);
1130 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
1131 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
1136 * This is a private Wine interface that is implemented by our implementation
1137 * of nsIURI to store its owner.
1141 uuid(5088272e-900b-11da-c687-000fea57f21a)
1143 interface nsIWineURI : nsIURI
1145 typedef struct NSContainer NSContainer;
1147 nsresult GetNSContainer(NSContainer **aNSContainer);
1148 nsresult SetNSContainer(NSContainer *aNSContainer);