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,
26 cpp_quote("#define GECKO_VERSION \"0.1.0\"");
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION");
31 typedef HRESULT nsresult;
32 typedef ULONG nsrefcnt;
36 typedef REFIID nsIIDRef;
37 typedef nsIIDRef nsCIDRef;
39 typedef void** nsQIResult;
40 typedef WCHAR PRUnichar;
41 typedef ULONG PRUint32;
43 typedef WORD PRUint16;
44 typedef INT16 PRInt16;
47 typedef LARGE_INTEGER PRInt64;
48 typedef ULARGE_INTEGER PRUint64;
49 typedef PRUint64 DOMTimeStamp;
50 typedef PRUint32 nsLoadFlags;
66 typedef nsCStringContainer nsACString;
67 typedef nsStringContainer nsAString;
69 interface nsIWebBrowserChrome;
70 interface nsILoadGroup;
72 interface nsIDOMDocument;
73 interface nsIDOMEvent;
79 uuid(00000000-0000-0000-c000-000000000046)
83 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
88 /* Currently we don't need a full declaration of these interfaces */
89 typedef nsISupports nsISHistory;
90 typedef nsISupports nsISimpleEnumerator;
91 typedef nsISupports nsIWidget;
92 typedef nsISupports nsIDOMAbstractView;
93 typedef nsISupports nsIHttpHeaderVisitor;
94 typedef nsISupports nsIDOMBarProp;
95 typedef nsISupports nsIDOMWindowCollection;
96 typedef nsISupports nsIPrompt;
97 typedef nsISupports nsIAuthPrompt;
98 typedef nsISupports nsIDOMNamedNodeMap;
99 typedef nsISupports nsIDOMAttr;
100 typedef nsISupports nsIDOMDocumentType;
101 typedef nsISupports nsIDOMDOMImplementation;
102 typedef nsISupports 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;
109 typedef nsISupports nsIEditor;
110 typedef nsISupports nsIWebProgressListener;
111 typedef nsISupports nsIDOMCSSValue;
112 typedef nsISupports nsIDOMCSSRule;
113 typedef nsISupports nsIPrintSession;
117 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958)
120 interface nsIServiceManager : nsISupports
122 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
123 nsresult GetServiceByContactID(const char *aContactID, nsIIDRef aIID, void **result);
124 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
125 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
130 uuid(00000001-0000-0000-c000-000000000046)
133 interface nsIFactory : nsISupports
135 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
136 nsresult LockFactory(PRBool lock);
141 uuid(db242e01-e4d9-11d2-9dde-000064657374)
144 interface nsIObserver : nsISupports
146 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
151 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae)
154 interface nsIComponentManager : nsISupports
156 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
157 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
158 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
160 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
161 nsIIDRef aIID, nsQIResult result);
166 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3)
169 interface nsIMemory : nsISupports
171 void *Alloc(/*size_t*/ int size);
172 void *Realloc(void *_ptr, /*size_t*/ int newSize);
173 void Free(void *_ptr);
174 nsresult HeapMinimize(PRBool immediate);
175 nsresult IsLowMemory(PRBool *_retval);
180 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf)
183 interface nsIWeakReference : nsISupports
185 nsresult QueryReferent(const nsIID *riid, void **result);
190 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf)
193 interface nsISupportsWeakReference : nsISupports
195 nsresult GetWeakReference(nsIWeakReference **_retval);
200 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c)
203 interface nsIInterfaceRequestor : nsISupports
205 nsresult GetInterface(const nsIID *riid, void **result);
210 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a)
213 interface nsIInputStream : nsISupports
216 nsresult Available(PRUint32 *_retval);
217 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
218 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
219 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
220 PRUint32 aCount, PRUint32 *aWriteCount),
221 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
222 nsresult IsNonBlocking(PRBool *_retval);
227 uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53)
230 interface nsIStringInputStream : nsIInputStream
232 nsresult SetData(const char *data, PRInt32 dataLen);
233 nsresult AdoptData(char *data, PRInt32 dataLen);
234 nsresult ShareData(const char *data, PRInt32 dataLen);
239 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40)
242 interface nsIURI : nsISupports
244 nsresult GetSpec(nsACString *aSpec);
245 nsresult SetSpec(const nsACString *aSpec);
246 nsresult GetPrePath(nsACString *aPrePath);
247 nsresult GetScheme(nsACString *aScheme);
248 nsresult SetScheme(const nsACString *aScheme);
249 nsresult GetUserPass(nsACString *aUserPass);
250 nsresult SetUserPass(const nsACString *aUserPass);
251 nsresult GetUsername(nsACString *aUsername);
252 nsresult SetUsername(const nsACString *aUsername);
253 nsresult GetPassword(nsACString *aPassword);
254 nsresult SetPassword(const nsACString *aPassword);
255 nsresult GetHostPort(nsACString *aHostPort);
256 nsresult SetHostPort(const nsACString *aHostPort);
257 nsresult GetHost(nsACString *aHost);
258 nsresult SetHost(const nsACString *aHost);
259 nsresult GetPort(PRInt32 *aPort);
260 nsresult SetPort(PRInt32 aPort);
261 nsresult GetPath(nsACString *aPath);
262 nsresult SetPath(const nsACString *aPath);
263 nsresult Equals(nsIURI *other, PRBool *_retval);
264 nsresult SchemeIs(const char *scheme, PRBool *_retval);
265 nsresult Clone(nsIURI **_retval);
266 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
267 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
268 nsresult GetAsciiHost(nsACString *aAsciiHost);
269 nsresult GetOriginCharset(nsACString *aOriginCharset);
274 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe)
277 interface nsIRequest : nsISupports
279 nsresult GetName(nsACString *aName);
280 nsresult IsPending(PRBool *_retval);
281 nsresult GetStatus(nsresult *aStatus);
282 nsresult Cancel(nsresult aStatus);
285 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
286 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
287 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
288 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
293 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40)
296 interface nsIRequestObserver : nsISupports
298 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
299 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
304 uuid(1a637020-1482-11d3-9333-00104ba0fd40)
307 interface nsIStreamListener : nsIRequestObserver
309 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
310 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
315 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc)
318 interface nsILoadGroup : nsIRequest
320 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
321 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
322 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
323 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
324 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
325 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
326 nsresult GetRequests(nsISimpleEnumerator **aRequests);
327 nsresult GetActiveCount(PRUint32 *aActiveCount);
328 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
329 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
334 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018)
337 interface nsIChannel : nsIRequest
339 nsresult GetOriginalURI(nsIURI **aOriginalURI);
340 nsresult SetOriginalURI(nsIURI *aOriginalURI);
341 nsresult GetURI(nsIURI **aURI);
342 nsresult GetOwner(nsISupports **aOwner);
343 nsresult SetOwner(nsISupports *aOwner);
344 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
345 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
346 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
347 nsresult GetContentType(nsACString *aContentType);
348 nsresult SetContentType(const nsACString *aContentType);
349 nsresult GetContentCharset(nsACString *aContentCharset);
350 nsresult SetContentCharset(const nsACString *aContentCharset);
351 nsresult GetContentLength(PRInt32 *aContentLength);
352 nsresult SetContentLength(PRInt32 aContentLength);
353 nsresult Open(nsIInputStream **_retval);
354 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
359 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260)
362 interface nsIHttpChannel : nsIChannel
364 nsresult GetRequestMethod(nsACString *aRequestMethod);
365 nsresult SetRequestMethod(const nsACString *aRequestMethod);
366 nsresult GetReferrer(nsIURI **aReferrer);
367 nsresult SetReferrer(nsIURI *aReferrer);
368 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
369 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
370 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
371 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
372 nsresult SetAllowPipelining(PRBool aAllowPipelining);
373 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
374 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
375 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
376 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
377 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
378 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
379 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
380 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
381 nsresult IsNoStoreResponse(PRBool *_retval);
382 nsresult IsNoCacheResponse(PRBool *_retval);
387 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75)
390 interface nsIUploadChannel : nsISupports
392 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
393 PRInt32 aContentLength);
394 nsresult GetUploadStream(nsIInputStream **aUploadStream);
399 uuid(a6cf90be-15b3-11d2-932e-00805f8add32)
402 interface nsIDOMCSSStyleDeclaration : nsISupports
404 nsresult GetCssText(nsAString *aCssText);
405 nsresult SetCssText(const nsAString *aCssText);
406 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
407 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
408 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
409 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
410 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
411 const nsAString *priority);
412 nsresult GetLength(PRUint32 *aLength);
413 nsresult Item(PRUint32 index, nsAString *_retval);
414 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
419 uuid(a6cf907d-15b3-11d2-932e-00805f8add32)
422 interface nsIDOMNodeList : nsISupports
424 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
425 nsresult GetLength(PRUint32 *aLength);
430 uuid(a6cf907c-15b3-11d2-932e-00805f8add32)
433 interface nsIDOMNode : nsISupports
439 CDATA_SELECTION_NODE = 4,
440 ENTITY_REFERENCE_NODE = 5,
442 PROCESSING_INSTRUCTION_NODE = 7,
445 DOCUMENT_TYPE_NODE = 10,
446 DOCUMENT_FRAGMENT_NODE = 11,
450 nsresult GetNodeName(nsAString *aNodeName);
451 nsresult GetNodeValue(nsAString *aNodeValue);
452 nsresult SetNodeValue(const nsAString *aNodeValue);
453 nsresult GetNodeType(PRUint16 *aNodeType);
454 nsresult GetParentNode(nsIDOMNode **aParentNode);
455 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
456 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
457 nsresult GetLastChild(nsIDOMNode **aLastChild);
458 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
459 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
460 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
461 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
462 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
463 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
464 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
465 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
466 nsresult HasChildNodes(PRBool *_retval);
467 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
468 nsresult Normalize();
469 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
470 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
471 nsresult GetPrefix(nsAString *aPrefix);
472 nsresult SetPrefix(const nsAString *aPrefix);
473 nsresult GetLocalName(nsAString *aLocalName);
474 nsresult HasAttributes(PRBool *_retval);
479 uuid(a6cf9078-15b3-11d2-932e-00805f8add32)
482 interface nsIDOMElement : nsIDOMNode
484 nsresult GetTagName(nsAString *aTagName);
485 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
486 nsresult SetAttribute(const nsAString *name, const nsAString *value);
487 nsresult RemoveAttribute(const nsAString *name);
488 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
489 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
490 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
491 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
492 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
494 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
495 const nsAString *value);
496 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
497 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
498 nsIDOMAttr **_retval);
499 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
500 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
501 nsIDOMNodeList **_retval);
502 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
503 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
509 uuid(99715845-95fc-4a56-aa53-214b65c26e22)
512 interface nsIDOMElementCSSInlineStyle : nsISupports
514 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
517 cpp_quote("#undef GetClassName");
521 uuid(a6cf9085-15b3-11d2-932e-00805f8add32)
524 interface nsIDOMHTMLElement : nsIDOMElement
526 nsresult GetId(nsAString *aId);
527 nsresult SetId(const nsAString *aId);
528 nsresult GetTitle(nsAString *aTitle);
529 nsresult SetTitle(const nsAString *aTitle);
530 nsresult GetLang(nsAString *aLang);
531 nsresult SetLang(const nsAString *aLang);
532 nsresult GetDir(nsAString *aDir);
533 nsresult SetDir(const nsAString *aDir);
534 nsresult GetClassName(nsAString *aClassName);
535 nsresult SetClassName(const nsAString *aClassName);
540 uuid(da83b2ec-8264-4410-8496-ada3acd2ae42)
543 interface nsIDOMNSHTMLElement : nsISupports
545 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
546 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
547 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
548 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
549 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
550 nsresult GetInnerHTML(nsAString *aInnerHTML);
551 nsresult SetInnerHTML(const nsAString *aInnerHTML);
552 nsresult GetScrollTop(PRInt32 *aScrollTop);
553 nsresult SetScrollTop(PRInt32 aScrollTop);
554 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
555 nsresult SetScrollLeft(PRInt32 aScrollLeft);
556 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
557 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
558 nsresult GetClientHeight(PRInt32 *aClientHeight);
559 nsresult GetClientWidth(PRInt32 *aClientWidth);
560 nsresult GetTabIndex(PRInt32 *aTabIndex);
561 nsresult SetTabIndex(PRInt32 aTabIndex);
564 nsresult ScrollIntoView(PRBool top);
569 uuid(a6cf9072-15b3-11d2-932e-00805f8add32)
572 interface nsIDOMCharacterData : nsIDOMNode
574 nsresult GetData(nsAString *aData);
575 nsresult SetData(const nsAString *aData);
576 nsresult GetLength(PRUint32 *aLength);
577 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
578 nsresult AppendData(const nsAString *arg);
579 nsresult InsertData(PRUint32 offset, const nsAString *arg);
580 nsresult DeleteData(PRUint32 offset, PRUint32 count);
581 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
586 uuid(a6cf9082-15b3-11d2-932e-00805f8add32)
589 interface nsIDOMText : nsIDOMCharacterData
591 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
596 uuid(a6cf9076-15b3-11d2-932e-00805f8add32)
599 interface nsIDOMDocumentFragment : nsIDOMNode
605 uuid(a6cf9075-15b3-11d2-932e-00805f8add32)
608 interface nsIDOMDocument : nsIDOMNode
610 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
611 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
612 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
613 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
614 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
615 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
616 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
617 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
618 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
619 nsIDOMProcessingInstruction **_retval);
620 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
621 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
622 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
623 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
624 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
625 nsIDOMElement **_retval);
626 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
627 nsIDOMAttr **_retval);
628 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
629 nsIDOMNodeList **_retval);
630 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
635 uuid(a6cf9084-15b3-11d2-932e-00805f8add32)
638 interface nsIDOMHTMLDocument : nsIDOMDocument
640 nsresult GetTitle(nsAString *aTitle);
641 nsresult SetTitle(const nsAString *aTitle);
642 nsresult GetReferrer(nsAString *aReferrer);
643 nsresult GetDomain(nsAString *aDomain);
644 nsresult GetURL(nsAString *aURL);
645 nsresult GetBody(nsIDOMHTMLElement **aBody);
646 nsresult SetBody(nsIDOMHTMLElement *aBody);
647 nsresult GetImages(nsIDOMHTMLCollection **aImages);
648 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
649 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
650 nsresult GetForms(nsIDOMHTMLCollection **aForms);
651 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
652 nsresult GetCookie(nsAString *aCookie);
653 nsresult SetCookie(const nsAString *aCookie);
656 nsresult Write(const nsAString *text);
657 nsresult Writeln(const nsAString *text);
658 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
663 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32)
666 interface nsIDOMRange : nsISupports
668 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
669 nsresult GetStartOffset(PRInt32 *aStartOffset);
670 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
671 nsresult GetEndOffset(PRInt32 *aEndOffset);
672 nsresult GetCollapsed(PRBool *aCollapsed);
673 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
674 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
675 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
676 nsresult SetStartBefore(nsIDOMNode *refNode);
677 nsresult SetStartAfter(nsIDOMNode *refNode);
678 nsresult SetEndBefore(nsIDOMNode *refNode);
679 nsresult SetEndAfter(nsIDOMNode *refNode);
680 nsresult Collapse(PRBool toStart);
681 nsresult SelectNode(nsIDOMNode *refNode);
682 nsresult SelectNodeContents(nsIDOMNode *refNode);
683 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
684 nsresult DeleteContents();
685 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
686 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
687 nsresult InsertNode(nsIDOMNode *newNode);
688 nsresult SurroundContents(nsIDOMNode *newParent);
689 nsresult CloneRange(nsIDOMRange **_retval);
690 nsresult ToString(nsAString *_retval);
696 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b)
699 interface nsIDOMDocumentRange : nsISupports
701 nsresult CreateRange(nsIDOMRange **_retval);
706 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1)
709 interface nsISelection : nsISupports
711 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
712 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
713 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
714 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
715 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
716 nsresult GetRangeCount(PRInt32 *aRangeCount);
717 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
718 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
719 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
720 nsresult CollapseToStart();
721 nsresult CollapseToEnd();
722 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
723 nsresult SelectAllChildren(nsIDOMNode *parentNode);
724 nsresult AddRange(nsIDOMRange *range);
725 nsresult RemoveRange(nsIDOMRange *range);
726 nsresult RemoveAllRanges();
727 nsresult DeleteFromDocument();
728 nsresult SelectionLanguageChange(PRBool langRTL);
729 nsresult ToString(PRUnichar **_retval);
734 uuid(a6cf906b-15b3-11d2-932e-00805f8add32)
737 interface nsIDOMWindow : nsISupports
739 nsresult GetDocument(nsIDOMDocument **aDocument);
740 nsresult GetParent(nsIDOMWindow **aParent);
741 nsresult GetTop(nsIDOMWindow **aTop);
742 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
743 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
744 nsresult GetName(nsAString *aName);
745 nsresult SetName(const nsAString *aName);
746 nsresult GetTextZoom(float *aTextZoom);
747 nsresult SetTextZoom(float aTextZoom);
748 nsresult GetScrollX(PRInt32 *aScrollX);
749 nsresult GetScrollY(PRInt32 *aScrollY);
750 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
751 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
752 nsresult GetSelection(nsISelection **_retval);
753 nsresult ScrollByLines(PRInt32 numLines);
754 nsresult ScrollByPages(PRInt32 numPages);
755 nsresult SizeToContent();
760 uuid(a6cf908e-15b3-11d2-932e-00805f8add32)
763 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
765 nsresult GetALink(nsAString *aALink);
766 nsresult SetALink(const nsAString *aALink);
767 nsresult GetBackground(nsAString *aBackground);
768 nsresult SetBackground(const nsAString *aBackground);
769 nsresult GetBgColor(nsAString *aBgColor);
770 nsresult SetBgColor(const nsAString *aBgColor);
771 nsresult GetLink(nsAString *aLink);
772 nsresult SetLink(const nsAString *aLink);
773 nsresult GetText(nsAString *aText);
774 nsresult SetText(const nsAString *aText);
775 nsresult GetVLink(nsAString *aVLink);
776 nsresult SetVLink(const nsAString *aVLink);
781 uuid(a6cf9093-15b3-11d2-932e-00805f8add32)
784 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
786 nsresult GetDefaultValue(nsAString *aDefaultValue);
787 nsresult SetDefaultValue(const nsAString *aDefaultValue);
788 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
789 nsresult SetDefaultChecked(PRBool aDefaultChecked);
790 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
791 nsresult GetAccept(nsAString *aAccept);
792 nsresult SetAccept(const nsAString *aAccept);
793 nsresult GetAccessKey(nsAString *aAccessKey);
794 nsresult SetAccessKey(const nsAString *aAccessKey);
795 nsresult GetAlign(nsAString *aAlign);
796 nsresult SetAlign(const nsAString *aAlign);
797 nsresult GetAlt(nsAString *aAlt);
798 nsresult SetAlt(const nsAString *aAlt);
799 nsresult GetChecked(PRBool *aChecked);
800 nsresult SetChecked(PRBool aChecked);
801 nsresult GetDisabled(PRBool *aDisabled);
802 nsresult SetDisabled(PRBool aDisabled);
803 nsresult GetMaxLength(PRInt32 *aMaxLength);
804 nsresult SetMaxLength(PRInt32 aMaxLength);
805 nsresult GetName(nsAString *aName);
806 nsresult SetName(const nsAString *aName);
807 nsresult GetReadOnly(PRBool *aReadOnly);
808 nsresult SetReadOnly(PRBool aReadOnly);
809 nsresult GetSize(PRUint32 *aSize);
810 nsresult SetSize(PRUint32 aSize);
811 nsresult GetSrc(nsAString *aSrc);
812 nsresult SetSrc(const nsAString *aSrc);
813 nsresult GetTabIndex(PRInt32 *aTabIndex);
814 nsresult SetTabIndex(PRInt32 aTabIndex);
815 nsresult GetType(nsAString *aType);
816 nsresult SetType(const nsAString *aType);
817 nsresult GetUseMap(nsAString *aUseMap);
818 nsresult SetUseMap(const nsAString *aUseMap);
819 nsresult GetValue(nsAString *aValue);
820 nsresult SetValue(const nsAString *aValue);
829 uuid(a6cf9090-15b3-11d2-932e-00805f8add32)
832 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
834 nsresult GetType(nsAString *aType);
835 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
836 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
837 nsresult GetValue(nsAString *aValue);
838 nsresult SetValue(const nsAString *aValue);
839 nsresult GetLength(PRUint32 *aLength);
840 nsresult SetLength(PRUint32 aLength);
841 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
842 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
843 nsresult GetDisabled(PRBool *aDisabled);
844 nsresult SetDisabled(PRBool aDisabled);
845 nsresult GetMultiple(PRBool *aMultiple);
846 nsresult SetMultiple(PRBool aMultiple);
847 nsresult GetName(nsAString *aName);
848 nsresult SetName(const nsAString *aName);
849 nsresult GetSize(PRInt32 *aSize);
850 nsresult SetSize(PRInt32 aSize);
851 nsresult GetTabIndex(PRInt32 *aTabIndex);
852 nsresult SetTabIndex(PRInt32 aTabIndex);
853 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
854 nsresult Remove(PRInt32 index);
861 uuid(a6cf9094-15b3-11d2-932e-00805f8add32)
864 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
866 nsresult GetDefaultValue(nsAString *aDefaultValue);
867 nsresult SetDefaultValue(const nsAString *aDefaultValue);
868 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
869 nsresult GetAccessKey(nsAString *aAccessKey);
870 nsresult SetAccessKey(const nsAString *aAccessKey);
871 nsresult GetCols(PRInt32 *aCols);
872 nsresult SetCols(PRInt32 aCols);
873 nsresult GetDisabled(PRBool *aDisabled);
874 nsresult SetDisabled(PRBool aDisabled);
875 nsresult GetName(nsAString *aName);
876 nsresult SetName(const nsAString *aName);
877 nsresult GetReadOnly(PRBool *aReadOnly);
878 nsresult SetReadOnly(PRBool aReadOnly);
879 nsresult GetRows(PRInt32 *aRows);
880 nsresult SetRows(PRInt32 aRows);
881 nsresult GetTabIndex(PRInt32 *aTabIndex);
882 nsresult SetTabIndex(PRInt32 aTabIndex);
883 nsresult GetType(nsAString *aType);
884 nsresult GetValue(nsAString *aValue);
885 nsresult SetValue(const nsAString *aValue);
893 uuid(94928ab3-8b63-11d3-989d-001083010e9b)
896 interface nsIURIContentListener : nsISupports
898 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
899 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
900 nsIStreamListener **aContentHandler, PRBool *_retval);
901 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
902 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
903 char **aDesiredContentType, PRBool *_retval);
904 nsresult GetLoadCookie(nsISupports **aLoadCookie);
905 nsresult SetLoadCookie(nsISupports *aLoadCookie);
906 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
907 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
912 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916)
915 interface nsITooltipListener : nsISupports
917 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
918 nsresult OnHideTooltip();
923 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c)
926 interface nsIWebBrowser : nsISupports
928 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
929 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
930 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
931 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
932 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
933 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
934 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
937 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7");
941 uuid(f15398a0-8018-11d3-af70-00a024ffc08c)
944 interface nsIWebBrowserSetup : nsISupports
946 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
949 typedef void* nativeWindow;
953 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)
956 interface nsIBaseWindow : nsISupports
958 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
959 PRInt32 y, PRInt32 cx, PRInt32 cy);
962 nsresult SetPosition(PRInt32 x, PRInt32 y);
963 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
964 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
965 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
966 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
967 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
968 nsresult Repaint(PRBool force);
969 nsresult GetParentWidget(nsIWidget **aParentWidget);
970 nsresult SetParentWidget(nsIWidget *aParentWidget);
971 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
972 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
973 nsresult GetVisibility(PRBool *aVisibility);
974 nsresult SetVisibility(PRBool aVisibility);
975 nsresult GetEnabled(PRBool *aEnabled);
976 nsresult SetEnabled(PRBool aEnabled);
977 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
978 nsresult SetBlurSuppression(PRBool aBlurSuppression);
979 nsresult GetMainWidget(nsIWidget **aMainWidget);
981 nsresult GetTitle(PRUnichar **aTitle);
982 nsresult SetTitle(const PRUnichar *aTitle);
985 cpp_quote("#define LOAD_FLAGS_NONE 0");
989 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c)
992 interface nsIWebNavigation : nsISupports
994 nsresult GetCanGoBack(PRBool *aCanGoBack);
995 nsresult GetCanGoForward(PRBool *aCanGoForward);
997 nsresult GoForward();
998 nsresult GotoIndex(PRInt32 index);
999 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1000 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1001 nsresult Reload(PRUint32 aReloadFlags);
1002 nsresult Stop(PRUint32 aStopFlags);
1003 nsresult GetDocument(nsIDOMDocument **aDocument);
1004 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1005 nsresult GetReferringURI(nsIURI **aReferringURI);
1006 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1007 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1012 uuid(f1094df6-ce0e-42c9-9847-2f663172c38d)
1015 interface nsIPrintSettings : nsISupports
1017 typedef struct {} nsMargin;
1019 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1020 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1021 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1022 nsresult GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight);
1023 nsresult Clone(nsIPrintSettings **_retval);
1024 nsresult Assign(nsIPrintSettings *aPS);
1025 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1026 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1027 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1028 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1029 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1030 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1031 nsresult GetMarginTop(double *aMarginTop);
1032 nsresult SetMarginTop(double aMarginTop);
1033 nsresult GetMarginLeft(double *aMarginLeft);
1034 nsresult SetMarginLeft(double aMarginLeft);
1035 nsresult GetMarginBottom(double *aMarginBottom);
1036 nsresult SetMarginBottom(double aMarginBottom);
1037 nsresult GetMarginRight(double *aMarginRight);
1038 nsresult SetMarginRight(double aMarginRight);
1039 nsresult GetScaling(double *aScaling);
1040 nsresult SetScaling(double aScaling);
1041 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1042 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1043 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1044 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1045 nsresult GetPrintRange(PRInt16 *aPrintRange);
1046 nsresult SetPrintRange(PRInt16 aPrintRange);
1047 nsresult GetTitle(PRUnichar **aTitle);
1048 nsresult SetTitle(const PRUnichar *aTitle);
1049 nsresult GetDocURL(PRUnichar **aDocURL);
1050 nsresult SetDocURL(const PRUnichar *aDocURL);
1051 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1052 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1053 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1054 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1055 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1056 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1057 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1058 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1059 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1060 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1061 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1062 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1063 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1064 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1065 nsresult GetIsCancelled(PRBool *aIsCancelled);
1066 nsresult SetIsCancelled(PRBool aIsCancelled);
1067 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1068 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1069 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1070 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1071 nsresult GetPrintSilent(PRBool *aPrintSilent);
1072 nsresult SetPrintSilent(PRBool aPrintSilent);
1073 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1074 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1075 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1076 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1077 nsresult GetPaperName(PRUnichar **aPaperName);
1078 nsresult SetPaperName(const PRUnichar *aPaperName);
1079 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1080 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1081 nsresult GetPaperData(PRInt16 *aPaperData);
1082 nsresult SetPaperData(PRInt16 aPaperData);
1083 nsresult GetPaperWidth(double *aPaperWidth);
1084 nsresult SetPaperWidth(double aPaperWidth);
1085 nsresult GetPaperHeight(double *aPaperHeight);
1086 nsresult SetPaperHeight(double aPaperHeight);
1087 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1088 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1089 nsresult GetPlexName(PRUnichar **aPlexName);
1090 nsresult SetPlexName(const PRUnichar *aPlexName);
1091 nsresult GetColorspace(PRUnichar **aColorspace);
1092 nsresult SetColorspace(const PRUnichar *aColorspace);
1093 nsresult GetResolutionName(PRUnichar **aResolutionName);
1094 nsresult SetResolutionName(const PRUnichar aResolutionName);
1095 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1096 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1097 nsresult GetPrintReversed(PRBool *aPrintReversed);
1098 nsresult SetPrintReversed(PRBool aPrintReversed);
1099 nsresult GetPrintInColor(PRBool *aPrintInColor);
1100 nsresult SetPrintInColor(PRBool aPrintInColor);
1101 nsresult GetPaperSize(PRInt32 *aPaperSize);
1102 nsresult SetPaperSize(PRInt32 aPaperSize);
1103 nsresult GetOrientation(PRInt32 *aOrientation);
1104 nsresult SetOrientation(PRInt32 aOrientation);
1105 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1106 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1107 nsresult GetNumCopies(PRInt32 *aNumCopies);
1108 nsresult SetNumCopies(PRInt32 aNumCopies);
1109 nsresult GetPrinterName(PRUnichar **aPrinterName);
1110 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1111 nsresult GetPrintToFile(PRBool *aPrintToFile);
1112 nsresult SetPrintToFile(PRBool aPrintToFile);
1113 nsresult GetToFileName(PRUnichar **aToFileName);
1114 nsresult SetToFileName(const PRUnichar *aToFileName);
1115 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1116 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1117 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1118 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1119 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1120 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1121 nsresult SetMarginInTwips(nsMargin *aMargin);
1122 nsresult GetMarginInTwips(nsMargin *aMargin);
1127 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419)
1130 interface nsIWebBrowserPrint : nsISupports
1132 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1133 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1134 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1135 nsresult GetDoingPrint(PRBool *aDoingPrint);
1136 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1137 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1138 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1139 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1140 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1141 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1142 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1143 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1144 nsIWebProgressListener *aWPListener);
1145 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1147 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1148 nsresult ExitPrintPreview();
1153 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)
1156 interface nsIFile : nsISupports
1158 nsresult Append(const nsAString *node);
1159 nsresult AppendNative(const nsAString *node);
1160 nsresult Normalize();
1161 nsresult Create(PRUint32 type, PRUint32 permission);
1162 nsresult GetLeafName(nsAString *aLeafName);
1163 nsresult SetLeafName(const nsAString *aLeafName);
1164 nsresult GetNativeLeafName(nsAString *aLeafName);
1165 nsresult SetNativeLeafName(const nsAString *aLeafName);
1166 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1167 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1168 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1169 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1170 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1171 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1172 nsresult Remove(PRBool recursive);
1173 nsresult GetPermissions(PRUint32 *aPermissions);
1174 nsresult SetPermissions(PRUint32 pPermissions);
1175 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1176 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1177 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1178 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1179 nsresult GetFileSize(PRInt64 *aFileSize);
1180 nsresult SetFileSize(PRInt64 aFileSize);
1181 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1182 nsresult GetTarget(nsAString *aTarget);
1183 nsresult GetNativeTarget(nsACString *aNativeTarget);
1184 nsresult GetPath(nsAString *aPath);
1185 nsresult GetNativePath(nsACString *aNativePath);
1186 nsresult Exists(PRBool *_retval);
1187 nsresult IsWritable(PRBool *_retval);
1188 nsresult IsReadable(PRBool *_retval);
1189 nsresult IsExecutable(PRBool *_retval);
1190 nsresult IsHidden(PRBool *_retval);
1191 nsresult IsDirectory(PRBool *_retval);
1192 nsresult IsFile(PRBool *_retval);
1193 nsresult IsSymlink(PRBool *_retval);
1194 nsresult IsSpecial(PRBool *_retval);
1195 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1196 nsresult Clone(nsIFile **_retval);
1197 nsresult Equals(nsIFile *inFile, PRBool *_retval);
1198 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1199 nsresult GetParent(nsIFile **aParent);
1200 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1205 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40)
1208 interface nsIProtocolHandler : nsISupports
1210 nsresult GetScheme(nsACString *aScheme);
1211 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
1212 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
1213 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
1214 nsIURI *aBaseURI, nsIURI **_retval);
1215 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
1216 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
1221 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7)
1224 interface nsIExternalProtocolHandler : nsIProtocolHandler
1226 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
1231 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e)
1234 interface nsIIOService : nsISupports
1236 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1237 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1238 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1240 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1241 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1242 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1243 nsIChannel **_retval);
1244 nsresult GetOffline(PRBool *aOffline);
1245 nsresult SetOffline(PRBool aOffline);
1246 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1247 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1252 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a)
1255 interface nsIWebBrowserFocus : nsISupports
1257 nsresult Activate();
1258 nsresult Deactivate();
1259 nsresult SetFocusAtFirstElement();
1260 nsresult SetFocusAtLastElement();
1261 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1262 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1263 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1264 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1269 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c)
1272 interface nsIWebBrowserChrome : nsISupports
1274 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1275 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1276 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1277 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1278 nsresult SetChromeFlags(PRUint32 aChromeFlags);
1279 nsresult DestroyBrowserWindow();
1280 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1281 nsresult ShowAsModal();
1282 nsresult IsWindowModal(PRBool *_retval);
1283 nsresult ExitModalEventLoop(nsresult aStatus);
1288 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4)
1291 interface nsIDOMEventListener : nsISupports
1293 nsresult HandleEvent(nsIDOMEvent *event);
1298 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4)
1301 interface nsIDOMEventTarget : nsISupports
1303 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1304 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1305 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1310 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32)
1313 interface nsIDOMEvent : nsISupports
1315 nsresult GetType(nsAString *aType);
1316 nsresult GetTarget(nsIDOMEventTarget **aTarget);
1317 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1318 nsresult GetEventPhase(PRUint16 *aEventPhase);
1319 nsresult GetBubbles(PRBool *aBubbles);
1320 nsresult GetCancelable(PRBool *aCancelable);
1321 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1322 nsresult StopPropagation();
1323 nsresult PreventDefault();
1324 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1327 cpp_quote("#define CONTEXT_NONE 0x00");
1328 cpp_quote("#define CONTEXT_LINK 0x01");
1329 cpp_quote("#define CONTEXT_IMAGE 0x02");
1330 cpp_quote("#define CONTEXT_DOCUMENT 0x04");
1331 cpp_quote("#define CONTEXT_TEXT 0x08");
1332 cpp_quote("#define CONTEXT_INPUT 0x10");
1333 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20");
1337 uuid(3478b6b0-3875-11d4-94ef-0020183bf181)
1340 interface nsIContextMenuListener : nsISupports
1342 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1347 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32)
1350 interface nsIDOMUIEvent : nsIDOMEvent
1352 nsresult GetView(nsIDOMAbstractView **aView);
1353 nsresult GetDetail(PRInt32 *aDetail);
1354 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1355 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
1360 uuid(ff751edc-8b02-aae7-0010-8301838a3123)
1363 interface nsIDOMMouseEvent : nsIDOMUIEvent
1365 nsresult GetScreenX(PRInt32 *aScreenX);
1366 nsresult GetScreenY(PRInt32 *aScreenY);
1367 nsresult GetClientX(PRInt32 *aClientX);
1368 nsresult GetClientY(PRInt32 *aClientY);
1369 nsresult GetCtrlKey(PRBool *aCtrlKey);
1370 nsresult GetShiftKey(PRBool *aShiftKey);
1371 nsresult GetAltKey(PRBool *aAltKey);
1372 nsresult GetMetaKey(PRBool *aMetaKey);
1373 nsresult GetButton(PRUint16 *aButton);
1374 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
1375 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1376 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
1377 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
1378 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
1379 nsIDOMEventTarget *relatedTargetArg);
1384 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123)
1387 interface nsIDOMKeyEvent : nsIDOMUIEvent
1389 nsresult GetCharCode(PRUint32 *aCharCode);
1390 nsresult GetKeyCode(PRUint32 *aKeyCode);
1391 nsresult GetAltKey(PRBool *aAltKey);
1392 nsresult GetCtrlKey(PRBool *aCtrlKey);
1393 nsresult GetShiftKey(PRBool *aShiftKey);
1394 nsresult GetMetaKey(PRBool *aMetaKey);
1395 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
1396 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
1397 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
1398 PRUint32 charCodeArg);
1403 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743)
1406 interface nsIEmbeddingSiteWindow : nsISupports
1408 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
1409 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1410 nsresult SetFocus();
1411 nsresult GetVisibility(PRBool *aVisibility);
1412 nsresult SetVisibility(PRBool aVisibility);
1413 nsresult GetTitle(PRUnichar **aTitle);
1414 nsresult SetTitle(const PRUnichar *aTitle);
1415 nsresult GetSiteWindow(void **aSiteWindow);
1420 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392)
1423 interface nsIComponentRegistrar : nsISupports
1425 nsresult AutoRegister(nsIFile *aSpec);
1426 nsresult AutoUnregister(nsIFile *aSpec);
1427 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1428 const char *aContractID, nsIFactory *aFactory);
1429 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1430 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1431 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1433 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1434 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1435 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1436 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1437 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1438 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1439 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1444 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5)
1447 interface nsIPromptService : nsISupports
1449 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1450 const PRUnichar *aText);
1451 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1452 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
1453 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1454 const PRUnichar *aText, PRBool *_retval);
1455 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1456 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
1458 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1459 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
1460 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
1461 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
1462 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1463 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
1464 PRBool *aCheckState, PRBool *_retval);
1465 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1466 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
1467 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
1468 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1469 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
1470 PRBool *aCheckState, PRBool *_retval);
1471 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1472 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
1473 PRInt32 *aOutSelection, PRBool *_retval);
1478 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee)
1481 interface nsITooltipTextProvider : nsISupports
1483 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
1488 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9)
1491 interface nsIProfile : nsISupports
1493 nsresult GetProfileCount(PRInt32 *aProfileCount);
1494 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
1495 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
1496 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
1497 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
1498 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
1499 nsresult CreateNewProfile(const PRUnichar *profileName,
1500 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
1501 PRBool useExistingDir);
1502 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
1503 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
1504 nsresult CloneProfile(const PRUnichar *profileName);
1509 uuid(30465632-a777-44cc-90f9-8145475ef999)
1512 interface nsIWindowCreator : nsISupports
1514 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1515 nsIWebBrowserChrome **_retval);
1520 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc)
1523 interface nsIWindowCreator2 : nsIWindowCreator
1525 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1526 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
1527 nsIWebBrowserChrome **_retval);
1532 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b)
1535 interface nsIWindowWatcher : nsISupports
1537 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
1538 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
1539 nsresult RegisterNotification(nsIObserver *aObserver);
1540 nsresult UnregisterNotification(nsIObserver *aObserver);
1541 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
1542 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
1543 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
1544 nsresult SetWindowCreator(nsIWindowCreator *creator);
1545 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
1546 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
1547 nsIDOMWindow **_retval);
1548 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
1549 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
1554 uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b)
1557 interface nsIEditingSession : nsISupports
1559 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
1560 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
1561 PRBool doAfterUriLoad);
1562 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
1563 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
1564 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
1565 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
1566 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
1571 uuid(83f892cf-7ed3-490e-967a-62640f3158e1)
1574 interface nsICommandParams : nsISupports
1576 nsresult GetValueType(const char *name, PRInt16 *_retval);
1577 nsresult GetBooleanValue(const char *name, PRBool *_retval);
1578 nsresult GetLongValue(const char *name, PRInt32 *_retval);
1579 nsresult GetDoubleValue(const char *name, double *_retval);
1580 nsresult GetStringValue(const char *name, nsAString *_retval);
1581 nsresult GetCStringValue(const char *name, char **_retval);
1582 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
1583 nsresult SetBooleanValue(const char *name, PRBool value);
1584 nsresult SetLongValue(const char *name, PRInt32 value);
1585 nsresult SetDoubleValue(const char *name, double value);
1586 nsresult SetStringValue(const char *name, const nsAString *value);
1587 nsresult SetCStringValue(const char *name, const char *value);
1588 nsresult SetISupportsValue(const char *name, nsISupports *value);
1589 nsresult RemoveValue(const char *name);
1590 nsresult HasMoreElements(PRBool *_retval);
1592 nsresult GetNext(char **_retval);
1597 uuid(080d2001-f91e-11d4-a73c-f9242928207c)
1600 interface nsICommandManager : nsISupports
1602 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
1603 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
1604 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1605 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1606 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
1607 nsICommandParams *aCommandParams);
1608 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
1609 nsIDOMWindow *aTargetWindow);
1614 uuid(d650439a-ca29-410d-a906-b0557fb62fcd)
1617 interface nsIContentSerializer : nsISupports
1619 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying);
1620 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
1621 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
1622 PRInt32 aEndOffset, nsAString *aStr);
1623 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
1624 PRInt32 aEndOffset, nsAString *aStr);
1625 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
1627 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
1628 nsresult AppendElementStart(nsIDOMElement *aElement, PRBool aHasChildren, nsAString *aStr);
1629 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
1630 nsresult Flush(nsAString *aStr);
1631 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
1636 * This is a private Wine interface that is implemented by our implementation
1637 * of nsIURI to store its owner.
1641 uuid(5088272e-900b-11da-c687-000fea57f21a)
1644 interface nsIWineURI : nsIURI
1646 typedef struct NSContainer NSContainer;
1648 nsresult GetNSContainer(NSContainer **aNSContainer);
1649 nsresult SetNSContainer(NSContainer *aNSContainer);
1650 nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
1651 nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
1652 nsresult GetWineURL(LPCWSTR *aURL);
1653 nsresult SetWineURL(LPCWSTR aURL);