2 * Copyright 2005-2007 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 a typical idl file. Interfaces in this file are XPCOM
22 * interfaces (NOT MSCOM!), but we generate the header file with WIDL
23 * compatible with XPCOM, usable in C code.
26 cpp_quote("#define GECKO_VERSION \"1.0.0\"")
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
31 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
32 cpp_quote("#undef GetForm")
33 cpp_quote("#undef SetPort")
36 typedef HRESULT nsresult;
37 typedef ULONG nsrefcnt;
42 typedef REFIID nsIIDRef;
43 typedef nsIIDRef nsCIDRef;
45 typedef void** nsQIResult;
46 typedef WCHAR PRUnichar;
47 typedef ULONG PRUint32;
49 typedef WORD PRUint16;
50 typedef INT16 PRInt16;
53 typedef LARGE_INTEGER PRInt64;
54 typedef ULARGE_INTEGER PRUint64;
55 typedef PRUint64 DOMTimeStamp;
56 typedef PRUint32 nsLoadFlags;
72 typedef nsCStringContainer nsACString;
73 typedef nsStringContainer nsAString;
75 interface nsIWebBrowserChrome;
76 interface nsILoadGroup;
78 interface nsIDOMDocument;
79 interface nsIDOMEvent;
81 interface nsISelectionController;
82 interface nsITransactionManager;
83 interface nsITransaction;
84 interface nsIInlineSpellChecker;
85 interface nsIOutputStream;
86 interface nsIEditorObserver;
87 interface nsIEditActionListener;
88 interface nsIDocumentStateListener;
89 interface nsIDOMCSSStyleSheet;
90 interface nsIDOMDocumentView;
91 interface nsIDocumentObserver;
97 uuid(00000000-0000-0000-c000-000000000046),
100 interface nsISupports
102 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
107 /* Currently we don't need a full declaration of these interfaces */
108 typedef nsISupports nsISHistory;
109 typedef nsISupports nsIWidget;
110 typedef nsISupports nsIHttpHeaderVisitor;
111 typedef nsISupports nsIDOMBarProp;
112 typedef nsISupports nsIDOMWindowCollection;
113 typedef nsISupports nsIPrompt;
114 typedef nsISupports nsIAuthPrompt;
115 typedef nsISupports nsIDOMNamedNodeMap;
116 typedef nsISupports nsIDOMAttr;
117 typedef nsISupports nsIDOMDocumentType;
118 typedef nsISupports nsIDOMDOMImplementation;
119 typedef nsISupports nsIDOMCDATASection;
120 typedef nsISupports nsIDOMProcessingInstruction;
121 typedef nsISupports nsIDOMEntityReference;
122 typedef nsISupports nsIDOMHTMLFormElement;
123 typedef nsISupports nsIDOMHTMLOptionsCollection;
124 typedef nsISupports nsIWebProgressListener;
125 typedef nsISupports nsIDOMCSSValue;
126 typedef nsISupports nsIPrintSession;
127 typedef nsISupports nsIControllerCommandTable;
128 typedef nsISupports nsIPrincipal;
129 typedef nsISupports nsIAtom;
130 typedef nsISupports nsISupportsArray;
131 typedef nsISupports nsIContentFilter;
132 typedef nsISupports nsIDOMMediaList;
133 typedef nsISupports nsIDOMHTMLTableCaptionElement;
134 typedef nsISupports nsIDOMHTMLTableSectionElement;
135 typedef nsISupports nsIDOMClientRectList;
136 typedef nsISupports nsIDOMClientRect;
137 typedef nsISupports nsIDOMLocation;
138 typedef nsISupports nsIBoxObject;
139 typedef nsISupports nsIDocument;
140 typedef nsISupports nsIContent;
141 typedef nsISupports nsINode;
142 typedef nsISupports nsIStyleSheet;
143 typedef nsISupports nsIStyleRule;
147 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
151 interface nsIServiceManager : nsISupports
153 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
154 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
155 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
156 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
161 uuid(00000001-0000-0000-c000-000000000046),
165 interface nsIFactory : nsISupports
167 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
168 nsresult LockFactory(PRBool lock);
173 uuid(db242e01-e4d9-11d2-9dde-000064657374),
177 interface nsIObserver : nsISupports
179 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
184 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
188 interface nsIComponentManager : nsISupports
190 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
191 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
192 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
194 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
195 nsIIDRef aIID, nsQIResult result);
200 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
204 interface nsIMemory : nsISupports
206 void *Alloc(/*size_t*/ int size);
207 void *Realloc(void *_ptr, /*size_t*/ int newSize);
208 void Free(void *_ptr);
209 nsresult HeapMinimize(PRBool immediate);
210 nsresult IsLowMemory(PRBool *_retval);
215 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
219 interface nsIWeakReference : nsISupports
221 nsresult QueryReferent(const nsIID *riid, void **result);
226 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
230 interface nsISupportsWeakReference : nsISupports
232 nsresult GetWeakReference(nsIWeakReference **_retval);
237 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
241 interface nsIInterfaceRequestor : nsISupports
243 nsresult GetInterface(const nsIID *riid, void **result);
248 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
252 interface nsIRunnable : nsISupports
259 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
263 interface nsISimpleEnumerator : nsISupports
265 nsresult HasMoreElements(PRBool *_retval);
266 nsresult GetNext(nsISupports **_retval);
271 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
275 interface nsIInputStream : nsISupports
278 nsresult Available(PRUint32 *_retval);
279 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
280 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
281 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
282 PRUint32 aCount, PRUint32 *aWriteCount),
283 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
284 nsresult IsNonBlocking(PRBool *_retval);
289 uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53),
293 interface nsIStringInputStream : nsIInputStream
295 nsresult SetData(const char *data, PRInt32 dataLen);
296 nsresult AdoptData(char *data, PRInt32 dataLen);
297 nsresult ShareData(const char *data, PRInt32 dataLen);
302 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
306 interface nsIURI : nsISupports
308 nsresult GetSpec(nsACString *aSpec);
309 nsresult SetSpec(const nsACString *aSpec);
310 nsresult GetPrePath(nsACString *aPrePath);
311 nsresult GetScheme(nsACString *aScheme);
312 nsresult SetScheme(const nsACString *aScheme);
313 nsresult GetUserPass(nsACString *aUserPass);
314 nsresult SetUserPass(const nsACString *aUserPass);
315 nsresult GetUsername(nsACString *aUsername);
316 nsresult SetUsername(const nsACString *aUsername);
317 nsresult GetPassword(nsACString *aPassword);
318 nsresult SetPassword(const nsACString *aPassword);
319 nsresult GetHostPort(nsACString *aHostPort);
320 nsresult SetHostPort(const nsACString *aHostPort);
321 nsresult GetHost(nsACString *aHost);
322 nsresult SetHost(const nsACString *aHost);
323 nsresult GetPort(PRInt32 *aPort);
324 nsresult SetPort(PRInt32 aPort);
325 nsresult GetPath(nsACString *aPath);
326 nsresult SetPath(const nsACString *aPath);
327 nsresult Equals(nsIURI *other, PRBool *_retval);
328 nsresult SchemeIs(const char *scheme, PRBool *_retval);
329 nsresult Clone(nsIURI **_retval);
330 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
331 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
332 nsresult GetAsciiHost(nsACString *aAsciiHost);
333 nsresult GetOriginCharset(nsACString *aOriginCharset);
338 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
342 interface nsIRequest : nsISupports
344 nsresult GetName(nsACString *aName);
345 nsresult IsPending(PRBool *_retval);
346 nsresult GetStatus(nsresult *aStatus);
347 nsresult Cancel(nsresult aStatus);
350 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
351 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
352 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
353 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
358 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
362 interface nsIRequestObserver : nsISupports
364 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
365 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
370 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
374 interface nsIStreamListener : nsIRequestObserver
376 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
377 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
382 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
386 interface nsILoadGroup : nsIRequest
388 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
389 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
390 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
391 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
392 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
393 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
394 nsresult GetRequests(nsISimpleEnumerator **aRequests);
395 nsresult GetActiveCount(PRUint32 *aActiveCount);
396 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
397 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
402 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
406 interface nsIChannel : nsIRequest
408 nsresult GetOriginalURI(nsIURI **aOriginalURI);
409 nsresult SetOriginalURI(nsIURI *aOriginalURI);
410 nsresult GetURI(nsIURI **aURI);
411 nsresult GetOwner(nsISupports **aOwner);
412 nsresult SetOwner(nsISupports *aOwner);
413 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
414 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
415 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
416 nsresult GetContentType(nsACString *aContentType);
417 nsresult SetContentType(const nsACString *aContentType);
418 nsresult GetContentCharset(nsACString *aContentCharset);
419 nsresult SetContentCharset(const nsACString *aContentCharset);
420 nsresult GetContentLength(PRInt32 *aContentLength);
421 nsresult SetContentLength(PRInt32 aContentLength);
422 nsresult Open(nsIInputStream **_retval);
423 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
428 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
432 interface nsIHttpChannel : nsIChannel
434 nsresult GetRequestMethod(nsACString *aRequestMethod);
435 nsresult SetRequestMethod(const nsACString *aRequestMethod);
436 nsresult GetReferrer(nsIURI **aReferrer);
437 nsresult SetReferrer(nsIURI *aReferrer);
438 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
439 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
440 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
441 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
442 nsresult SetAllowPipelining(PRBool aAllowPipelining);
443 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
444 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
445 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
446 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
447 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
448 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
449 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
450 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
451 nsresult IsNoStoreResponse(PRBool *_retval);
452 nsresult IsNoCacheResponse(PRBool *_retval);
457 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
461 interface nsIUploadChannel : nsISupports
463 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
464 PRInt32 aContentLength);
465 nsresult GetUploadStream(nsIInputStream **aUploadStream);
470 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
474 interface nsIDOMCSSRule : nsISupports
476 nsresult GetType(PRUint16 *aType);
477 nsresult GetCssText(nsAString *aCssText);
478 nsresult SetCssText(const nsAString *aCssText);
479 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
480 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
485 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
489 interface nsIDOMCSSStyleDeclaration : nsISupports
491 nsresult GetCssText(nsAString *aCssText);
492 nsresult SetCssText(const nsAString *aCssText);
493 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
494 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
495 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
496 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
497 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
498 const nsAString *priority);
499 nsresult GetLength(PRUint32 *aLength);
500 nsresult Item(PRUint32 index, nsAString *_retval);
501 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
506 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
510 interface nsIDOMCSSRuleList : nsISupports
512 nsresult GetLength(PRUint32 *aLength);
513 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
518 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
522 interface nsIDOMStyleSheet : nsISupports
524 nsresult GetType(nsAString *aType);
525 nsresult GetDisabled(PRBool *aDisabled);
526 nsresult SetDisabled(PRBool aDisabled);
527 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
528 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
529 nsresult GetHref(nsAString *aHref);
530 nsresult GetTitle(nsAString *aTitle);
531 nsresult GetMedia(nsIDOMMediaList **aMedia);
536 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
540 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
542 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
543 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
544 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
545 nsresult DeleteRule(PRUint32 index);
550 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
554 interface nsIDOMStyleSheetList : nsISupports
556 nsresult GetLength(PRUint32 *aLength);
557 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
562 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
566 interface nsIDOMNodeList : nsISupports
568 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
569 nsresult GetLength(PRUint32 *aLength);
574 uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
578 interface nsIDOMNode : nsISupports
584 CDATA_SELECTION_NODE = 4,
585 ENTITY_REFERENCE_NODE = 5,
587 PROCESSING_INSTRUCTION_NODE = 7,
590 DOCUMENT_TYPE_NODE = 10,
591 DOCUMENT_FRAGMENT_NODE = 11,
595 nsresult GetNodeName(nsAString *aNodeName);
596 nsresult GetNodeValue(nsAString *aNodeValue);
597 nsresult SetNodeValue(const nsAString *aNodeValue);
598 nsresult GetNodeType(PRUint16 *aNodeType);
599 nsresult GetParentNode(nsIDOMNode **aParentNode);
600 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
601 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
602 nsresult GetLastChild(nsIDOMNode **aLastChild);
603 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
604 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
605 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
606 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
607 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
608 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
609 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
610 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
611 nsresult HasChildNodes(PRBool *_retval);
612 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
613 nsresult Normalize();
614 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
615 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
616 nsresult GetPrefix(nsAString *aPrefix);
617 nsresult SetPrefix(const nsAString *aPrefix);
618 nsresult GetLocalName(nsAString *aLocalName);
619 nsresult HasAttributes(PRBool *_retval);
624 uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
628 interface nsIDOMElement : nsIDOMNode
630 nsresult GetTagName(nsAString *aTagName);
631 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
632 nsresult SetAttribute(const nsAString *name, const nsAString *value);
633 nsresult RemoveAttribute(const nsAString *name);
634 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
635 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
636 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
637 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
638 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
640 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
641 const nsAString *value);
642 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
643 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
644 nsIDOMAttr **_retval);
645 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
646 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
647 nsIDOMNodeList **_retval);
648 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
649 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
655 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
659 interface nsIDOMElementCSSInlineStyle : nsISupports
661 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
666 uuid(f0aef489-18c5-4de6-99d5-58b3758b098c),
670 interface nsIDOMNSElement : nsISupports
672 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
673 nsresult GetClientRects(nsIDOMClientRectList **_retval);
674 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
675 nsresult GetScrollTop(PRInt32 *aScrollTop);
676 nsresult SetScrollTop(PRInt32 aScrollTop);
677 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
678 nsresult SetScrollLeft(PRInt32 aScrollLeft);
679 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
680 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
681 nsresult GetClientTop(PRInt32 *aClientTop);
682 nsresult GetClientLeft(PRInt32 *aClientLeft);
683 nsresult GetClientHeight(PRInt32 *aClientHeight);
684 nsresult GetClientWidth(PRInt32 *aClientWidth);
685 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
686 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
687 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
688 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
689 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
690 nsresult GetChildren(nsIDOMNodeList **aChildren);
693 cpp_quote("#undef GetClassName")
697 uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
701 interface nsIDOMHTMLElement : nsIDOMElement
703 nsresult GetId(nsAString *aId);
704 nsresult SetId(const nsAString *aId);
705 nsresult GetTitle(nsAString *aTitle);
706 nsresult SetTitle(const nsAString *aTitle);
707 nsresult GetLang(nsAString *aLang);
708 nsresult SetLang(const nsAString *aLang);
709 nsresult GetDir(nsAString *aDir);
710 nsresult SetDir(const nsAString *aDir);
711 nsresult GetClassName(nsAString *aClassName);
712 nsresult SetClassName(const nsAString *aClassName);
717 uuid(7f142f9a-fba7-4949-93d6-cf08a974ac51),
721 interface nsIDOMNSHTMLElement : nsISupports
723 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
724 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
725 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
726 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
727 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
728 nsresult GetInnerHTML(nsAString *aInnerHTML);
729 nsresult SetInnerHTML(const nsAString *aInnerHTML);
730 nsresult GetTabIndex(PRInt32 *aTabIndex);
731 nsresult SetTabIndex(PRInt32 aTabIndex);
732 nsresult GetContentEditable(nsAString *aContentEditable);
733 nsresult SetContentEditable(const nsAString *aContentEditable);
736 nsresult ScrollIntoView(PRBool top);
737 nsresult GetSpellcheck(PRBool *aSpellcheck);
738 nsresult SetSpellcheck(PRBool aSpellcheck);
743 uuid(a6cf9083-15b3-11d2-932e-00805f8add32),
747 interface nsIDOMHTMLCollection : nsISupports
749 nsresult GetLength(PRUint32 *aLength);
750 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
751 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
756 uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
760 interface nsIDOMCharacterData : nsIDOMNode
762 nsresult GetData(nsAString *aData);
763 nsresult SetData(const nsAString *aData);
764 nsresult GetLength(PRUint32 *aLength);
765 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
766 nsresult AppendData(const nsAString *arg);
767 nsresult InsertData(PRUint32 offset, const nsAString *arg);
768 nsresult DeleteData(PRUint32 offset, PRUint32 count);
769 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
774 uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
778 interface nsIDOMText : nsIDOMCharacterData
780 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
785 uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
789 interface nsIDOMComment : nsIDOMCharacterData
795 uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
799 interface nsIDOMDocumentFragment : nsIDOMNode
805 uuid(f51ebade-8b1a-11d3-aae7-0010830123b4),
809 interface nsIDOMAbstractView : nsISupports
811 nsresult GetDocument(nsIDOMDocumentView **aDocument);
816 uuid(0b9341f3-95d4-4fa4-adcd-e119e0db2889),
820 interface nsIDOMViewCSS : nsIDOMAbstractView
822 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
827 uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
831 interface nsIDOMDocument : nsIDOMNode
833 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
834 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
835 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
836 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
837 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
838 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
839 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
840 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
841 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
842 nsIDOMProcessingInstruction **_retval);
843 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
844 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
845 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
846 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
847 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
848 nsIDOMElement **_retval);
849 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
850 nsIDOMAttr **_retval);
851 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
852 nsIDOMNodeList **_retval);
853 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
858 uuid(09a439ad-4079-46d5-a050-4d7015d1a108),
862 interface nsIDOMNSDocument : nsISupports
864 nsresult GetCharacterSet(nsAString *aCharacterSet);
865 nsresult GetDir(nsAString *aDir);
866 nsresult SetDir(const nsAString *aDir);
867 nsresult GetLocation(nsIDOMLocation **aLocation);
868 nsresult GetTitle(nsAString *aTitle);
869 nsresult SetTitle(const nsAString *aTitle);
870 nsresult GetContentType(nsAString *aContentType);
871 nsresult GetReadyState(nsAString *aReadyState);
872 nsresult GetLastModified(nsAString *aLastModified);
873 nsresult GetReferrer(nsAString *aReferrer);
874 nsresult HasFocus(PRBool *_retval);
875 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
876 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
877 nsresult ElementFromPoint(PRInt32 x, PRInt32 y, nsIDOMElement **_retval);
879 /* Wine extensions */
880 nsresult WineAddObserver(nsIDocumentObserver *aObserver);
881 nsresult WineRemoveObserver(nsIDocumentObserver *aObserver);
882 nsresult WineAddScriptRunner(nsIRunnable *aRunnable);
887 uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
891 interface nsIDOMHTMLDocument : nsIDOMDocument
893 nsresult GetTitle(nsAString *aTitle);
894 nsresult SetTitle(const nsAString *aTitle);
895 nsresult GetReferrer(nsAString *aReferrer);
896 nsresult GetDomain(nsAString *aDomain);
897 nsresult GetURL(nsAString *aURL);
898 nsresult GetBody(nsIDOMHTMLElement **aBody);
899 nsresult SetBody(nsIDOMHTMLElement *aBody);
900 nsresult GetImages(nsIDOMHTMLCollection **aImages);
901 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
902 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
903 nsresult GetForms(nsIDOMHTMLCollection **aForms);
904 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
905 nsresult GetCookie(nsAString *aCookie);
906 nsresult SetCookie(const nsAString *aCookie);
909 nsresult Write(const nsAString *text);
910 nsresult Writeln(const nsAString *text);
911 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
916 uuid(79beb289-3644-4b54-9432-9fb993945629),
920 interface nsIDOMNSHTMLDocument : nsISupports
922 nsresult GetWidth(PRInt32 *aWidth);
923 nsresult GetHeight(PRInt32 *aHeight);
924 nsresult GetAlinkColor(nsAString *aAlinkColor);
925 nsresult SetAlinkColor(const nsAString *aAlinkColor);
926 nsresult GetLinkColor(nsAString *aLinkColor);
927 nsresult SetLinkColor(const nsAString *aLinkColor);
928 nsresult GetVlinkColor(nsAString *aVlinkColor);
929 nsresult SetVlinkColor(const nsAString *aVlinkColor);
930 nsresult GetBgColor(nsAString *aBgColor);
931 nsresult SetBgColor(const nsAString *aBgColor);
932 nsresult GetFgColor(nsAString *aFgColor);
933 nsresult SetFgColor(const nsAString *aFgColor);
934 nsresult GetDomain(nsAString *aDomain);
935 nsresult SetDomain(const nsAString *aDomain);
936 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
937 nsresult GetSelection(nsAString *_retval);
938 nsresult Open(nsACString *aContentType, PRBool aReplace, nsIDOMDocument **_retval);
942 nsresult CaptureEvents(PRInt32 eventFlags);
943 nsresult ReleaseEvents(PRInt32 eventFlags);
944 nsresult RouteEvent(nsIDOMEvent *evt);
945 nsresult GetCompatMode(nsAString *aCompatMode);
946 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
947 nsresult GetDesignMode(nsAString *aDesignMode);
948 nsresult SetDesignMode(const nsAString *aDesignMode);
949 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
950 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
951 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
952 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
953 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
954 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
955 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
956 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
961 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
965 interface nsIDOMDocumentStyle : nsISupports
967 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
972 uuid(1acdb2ba-1dd2-11b2-95bc-9542495d2569),
976 interface nsIDOMDocumentView : nsISupports
978 nsresult GetDefaultView(nsIDOMAbstractView **aDefaultView);
983 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
987 interface nsIDOMRange : nsISupports
996 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
997 nsresult GetStartOffset(PRInt32 *aStartOffset);
998 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
999 nsresult GetEndOffset(PRInt32 *aEndOffset);
1000 nsresult GetCollapsed(PRBool *aCollapsed);
1001 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1002 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1003 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1004 nsresult SetStartBefore(nsIDOMNode *refNode);
1005 nsresult SetStartAfter(nsIDOMNode *refNode);
1006 nsresult SetEndBefore(nsIDOMNode *refNode);
1007 nsresult SetEndAfter(nsIDOMNode *refNode);
1008 nsresult Collapse(PRBool toStart);
1009 nsresult SelectNode(nsIDOMNode *refNode);
1010 nsresult SelectNodeContents(nsIDOMNode *refNode);
1011 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1012 nsresult DeleteContents();
1013 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1014 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1015 nsresult InsertNode(nsIDOMNode *newNode);
1016 nsresult SurroundContents(nsIDOMNode *newParent);
1017 nsresult CloneRange(nsIDOMRange **_retval);
1018 nsresult ToString(nsAString *_retval);
1024 uuid(59188642-23b4-41d6-bde1-302c3906d1f0),
1028 interface nsIDOMNSRange : nsISupports
1030 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1031 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1032 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1038 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1042 interface nsIDOMDocumentRange : nsISupports
1044 nsresult CreateRange(nsIDOMRange **_retval);
1049 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1053 interface nsISelection : nsISupports
1055 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1056 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1057 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1058 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1059 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1060 nsresult GetRangeCount(PRInt32 *aRangeCount);
1061 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1062 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1063 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1064 nsresult CollapseToStart();
1065 nsresult CollapseToEnd();
1066 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1067 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1068 nsresult AddRange(nsIDOMRange *range);
1069 nsresult RemoveRange(nsIDOMRange *range);
1070 nsresult RemoveAllRanges();
1071 nsresult DeleteFromDocument();
1072 nsresult SelectionLanguageChange(PRBool langRTL);
1073 nsresult ToString(PRUnichar **_retval);
1078 uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1082 interface nsIDOMWindow : nsISupports
1084 nsresult GetDocument(nsIDOMDocument **aDocument);
1085 nsresult GetParent(nsIDOMWindow **aParent);
1086 nsresult GetTop(nsIDOMWindow **aTop);
1087 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1088 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1089 nsresult GetName(nsAString *aName);
1090 nsresult SetName(const nsAString *aName);
1091 nsresult GetTextZoom(float *aTextZoom);
1092 nsresult SetTextZoom(float aTextZoom);
1093 nsresult GetScrollX(PRInt32 *aScrollX);
1094 nsresult GetScrollY(PRInt32 *aScrollY);
1095 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1096 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1097 nsresult GetSelection(nsISelection **_retval);
1098 nsresult ScrollByLines(PRInt32 numLines);
1099 nsresult ScrollByPages(PRInt32 numPages);
1100 nsresult SizeToContent();
1105 uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1109 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1111 nsresult GetALink(nsAString *aALink);
1112 nsresult SetALink(const nsAString *aALink);
1113 nsresult GetBackground(nsAString *aBackground);
1114 nsresult SetBackground(const nsAString *aBackground);
1115 nsresult GetBgColor(nsAString *aBgColor);
1116 nsresult SetBgColor(const nsAString *aBgColor);
1117 nsresult GetLink(nsAString *aLink);
1118 nsresult SetLink(const nsAString *aLink);
1119 nsresult GetText(nsAString *aText);
1120 nsresult SetText(const nsAString *aText);
1121 nsresult GetVLink(nsAString *aVLink);
1122 nsresult SetVLink(const nsAString *aVLink);
1127 uuid(a6cf9093-15b3-11d2-932e-00805f8add32),
1131 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1133 nsresult GetDefaultValue(nsAString *aDefaultValue);
1134 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1135 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1136 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1137 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1138 nsresult GetAccept(nsAString *aAccept);
1139 nsresult SetAccept(const nsAString *aAccept);
1140 nsresult GetAccessKey(nsAString *aAccessKey);
1141 nsresult SetAccessKey(const nsAString *aAccessKey);
1142 nsresult GetAlign(nsAString *aAlign);
1143 nsresult SetAlign(const nsAString *aAlign);
1144 nsresult GetAlt(nsAString *aAlt);
1145 nsresult SetAlt(const nsAString *aAlt);
1146 nsresult GetChecked(PRBool *aChecked);
1147 nsresult SetChecked(PRBool aChecked);
1148 nsresult GetDisabled(PRBool *aDisabled);
1149 nsresult SetDisabled(PRBool aDisabled);
1150 nsresult GetMaxLength(PRInt32 *aMaxLength);
1151 nsresult SetMaxLength(PRInt32 aMaxLength);
1152 nsresult GetName(nsAString *aName);
1153 nsresult SetName(const nsAString *aName);
1154 nsresult GetReadOnly(PRBool *aReadOnly);
1155 nsresult SetReadOnly(PRBool aReadOnly);
1156 nsresult GetSize(PRUint32 *aSize);
1157 nsresult SetSize(PRUint32 aSize);
1158 nsresult GetSrc(nsAString *aSrc);
1159 nsresult SetSrc(const nsAString *aSrc);
1160 nsresult GetTabIndex(PRInt32 *aTabIndex);
1161 nsresult SetTabIndex(PRInt32 aTabIndex);
1162 nsresult GetType(nsAString *aType);
1163 nsresult SetType(const nsAString *aType);
1164 nsresult GetUseMap(nsAString *aUseMap);
1165 nsresult SetUseMap(const nsAString *aUseMap);
1166 nsresult GetValue(nsAString *aValue);
1167 nsresult SetValue(const nsAString *aValue);
1176 uuid(a6cf9092-15b3-11d2-932e-00805f8add32),
1180 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1182 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1183 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1184 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1185 nsresult GetText(nsAString *aText);
1186 nsresult GetIndex(PRInt32 *aIndex);
1187 nsresult GetDisabled(PRBool *aDisabled);
1188 nsresult SetDisabled(PRBool aDisabled);
1189 nsresult GetLabel(nsAString *aLabel);
1190 nsresult SetLabel(const nsAString *aLabel);
1191 nsresult GetSelected(PRBool *aSelected);
1192 nsresult SetSelected(PRBool aSelected);
1193 nsresult GetValue(nsAString *aValue);
1194 nsresult SetValue(const nsAString *aValue);
1199 uuid(a6cf9090-15b3-11d2-932e-00805f8add32),
1203 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1205 nsresult GetType(nsAString *aType);
1206 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1207 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1208 nsresult GetValue(nsAString *aValue);
1209 nsresult SetValue(const nsAString *aValue);
1210 nsresult GetLength(PRUint32 *aLength);
1211 nsresult SetLength(PRUint32 aLength);
1212 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1213 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1214 nsresult GetDisabled(PRBool *aDisabled);
1215 nsresult SetDisabled(PRBool aDisabled);
1216 nsresult GetMultiple(PRBool *aMultiple);
1217 nsresult SetMultiple(PRBool aMultiple);
1218 nsresult GetName(nsAString *aName);
1219 nsresult SetName(const nsAString *aName);
1220 nsresult GetSize(PRInt32 *aSize);
1221 nsresult SetSize(PRInt32 aSize);
1222 nsresult GetTabIndex(PRInt32 *aTabIndex);
1223 nsresult SetTabIndex(PRInt32 aTabIndex);
1224 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1225 nsresult Remove(PRInt32 index);
1232 uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1236 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1238 nsresult GetDefaultValue(nsAString *aDefaultValue);
1239 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1240 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1241 nsresult GetAccessKey(nsAString *aAccessKey);
1242 nsresult SetAccessKey(const nsAString *aAccessKey);
1243 nsresult GetCols(PRInt32 *aCols);
1244 nsresult SetCols(PRInt32 aCols);
1245 nsresult GetDisabled(PRBool *aDisabled);
1246 nsresult SetDisabled(PRBool aDisabled);
1247 nsresult GetName(nsAString *aName);
1248 nsresult SetName(const nsAString *aName);
1249 nsresult GetReadOnly(PRBool *aReadOnly);
1250 nsresult SetReadOnly(PRBool aReadOnly);
1251 nsresult GetRows(PRInt32 *aRows);
1252 nsresult SetRows(PRInt32 aRows);
1253 nsresult GetTabIndex(PRInt32 *aTabIndex);
1254 nsresult SetTabIndex(PRInt32 aTabIndex);
1255 nsresult GetType(nsAString *aType);
1256 nsresult GetValue(nsAString *aValue);
1257 nsresult SetValue(const nsAString *aValue);
1265 uuid(a6cf90b1-15b3-11d2-932e-00805f8add32),
1269 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1271 nsresult GetText(nsAString *aText);
1272 nsresult SetText(const nsAString *aText);
1273 nsresult GetHtmlFor(nsAString *aHtmlFor);
1274 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1275 nsresult GetEvent(nsAString *aEvent);
1276 nsresult SetEvent(const nsAString *aEvent);
1277 nsresult GetCharset(nsAString *aCharset);
1278 nsresult SetCharset(const nsAString *aCharset);
1279 nsresult GetDefer(PRBool *aDefer);
1280 nsresult SetDefer(PRBool aDefer);
1281 nsresult GetSrc(nsAString *aSrc);
1282 nsresult SetSrc(const nsAString *aSrc);
1283 nsresult GetType(nsAString *aType);
1284 nsresult SetType(const nsAString *aType);
1289 uuid(a6cf90ab-15b3-11d2-932e-00805f8add32),
1293 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1295 nsresult GetName(nsAString *aName);
1296 nsresult SetName(const nsAString *aName);
1297 nsresult GetAlign(nsAString *aAlign);
1298 nsresult SetAlign(const nsAString *aAlign);
1299 nsresult GetAlt(nsAString *aAlt);
1300 nsresult SetAlt(const nsAString *aAlt);
1301 nsresult GetBorder(nsAString *aBorder);
1302 nsresult SetBorder(const nsAString *aBorder);
1303 nsresult GetHeight(PRInt32 *aHeight);
1304 nsresult SetHeight(PRInt32 aHeight);
1305 nsresult GetHspace(PRInt32 *aHspace);
1306 nsresult SetHspace(PRInt32 aHspace);
1307 nsresult GetIsMap(PRBool *aIsMap);
1308 nsresult SetIsMap(PRBool aIsMap);
1309 nsresult GetLongDesc(nsAString *aLongDesc);
1310 nsresult SetLongDesc(const nsAString *aLongDesc);
1311 nsresult GetSrc(nsAString *aSrc);
1312 nsresult SetSrc(const nsAString *aSrc);
1313 nsresult GetUseMap(nsAString *aUseMap);
1314 nsresult SetUseMap(const nsAString *aUseMap);
1315 nsresult GetVspace(PRInt32 *aVspace);
1316 nsresult SetVspace(PRInt32 aVspace);
1317 nsresult GetWidth(PRInt32 *aWidth);
1318 nsresult SetWidth(PRInt32 aWidth);
1323 uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
1327 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1329 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1330 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1331 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1332 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1333 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1334 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1335 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1336 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1337 nsresult GetAlign(nsAString *aAlign);
1338 nsresult SetAlign(const nsAString *aAlign);
1339 nsresult GetBgColor(nsAString *aBgColor);
1340 nsresult SetBgColor(const nsAString *aBgColor);
1341 nsresult GetBorder(nsAString *aBorder);
1342 nsresult SetBorder(const nsAString *aBorder);
1343 nsresult GetCellPadding(nsAString *aCellPadding);
1344 nsresult SetCellPadding(const nsAString *aCellPadding);
1345 nsresult GetCellSpacing(nsAString *aCellSpacing);
1346 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1347 nsresult GetFrame(nsAString *aFrame);
1348 nsresult SetFrame(const nsAString *aFrame);
1349 nsresult GetRules(nsAString *aRules);
1350 nsresult SetRules(const nsAString *aRules);
1351 nsresult GetSummary(nsAString *aSummary);
1352 nsresult SetSummary(const nsAString *aSummary);
1353 nsresult GetWidth(nsAString *aWidth);
1354 nsresult SetWidth(const nsAString *aWidth);
1355 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1356 nsresult DeleteTHead();
1357 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1358 nsresult DeleteTFoot();
1359 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1360 nsresult DeleteCaption();
1361 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1362 nsresult DeleteRow(PRInt32 index);
1367 uuid(a6cf90b6-15b3-11d2-932e-00805f8add32),
1371 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1373 nsresult GetRowIndex(PRInt32 *aRowIndex);
1374 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1375 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1376 nsresult GetAlign(nsAString *aAlign);
1377 nsresult SetAlign(const nsAString *aAlign);
1378 nsresult GetBgColor(nsAString *aBgColor);
1379 nsresult SetBgColor(const nsAString *aBgColor);
1380 nsresult GetCh(nsAString *aCh);
1381 nsresult SetCh(const nsAString *aCh);
1382 nsresult GetChOff(nsAString *aChOff);
1383 nsresult SetChOff(const nsAString *aChOff);
1384 nsresult GetVAlign(nsAString *aVAlign);
1385 nsresult SetVAlign(const nsAString *aVAlign);
1386 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1387 nsresult DeleteCell(PRInt32 index);
1392 uuid(a6cf90ba-15b3-11d2-932e-00805f8add32),
1396 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1398 nsresult GetAlign(nsAString *aAlign);
1399 nsresult SetAlign(const nsAString *aAlign);
1400 nsresult GetFrameBorder(nsAString *aFrameBorder);
1401 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1402 nsresult GetHeight(nsAString *aHeight);
1403 nsresult SetHeight(const nsAString *aHeight);
1404 nsresult GetLongDesc(nsAString *aLongDesc);
1405 nsresult SetLongDesc(const nsAString *aLongDesc);
1406 nsresult GetMarginHeight(nsAString *aMarginHeight);
1407 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1408 nsresult GetMarginWidth(nsAString *aMarginWidth);
1409 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1410 nsresult GetName(nsAString *aName);
1411 nsresult SetName(const nsAString *aName);
1412 nsresult GetScrolling(nsAString *aScrolling);
1413 nsresult SetScrolling(const nsAString *aScrolling);
1414 nsresult GetSrc(nsAString *aSrc);
1415 nsresult SetSrc(const nsAString *aSrc);
1416 nsresult GetWidth(nsAString *aWidth);
1417 nsresult SetWidth(const nsAString *aWidth);
1418 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1423 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1427 interface nsIURIContentListener : nsISupports
1429 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1430 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1431 nsIStreamListener **aContentHandler, PRBool *_retval);
1432 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1433 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1434 char **aDesiredContentType, PRBool *_retval);
1435 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1436 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1437 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1438 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1443 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1447 interface nsITooltipListener : nsISupports
1449 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1450 nsresult OnHideTooltip();
1455 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c),
1459 interface nsIWebBrowser : nsISupports
1461 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1462 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1463 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1464 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1465 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1466 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1467 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1470 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1471 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1475 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1479 interface nsIWebBrowserSetup : nsISupports
1481 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1484 typedef void* nativeWindow;
1488 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1492 interface nsIBaseWindow : nsISupports
1494 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1495 PRInt32 y, PRInt32 cx, PRInt32 cy);
1498 nsresult SetPosition(PRInt32 x, PRInt32 y);
1499 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1500 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1501 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1502 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1503 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1504 nsresult Repaint(PRBool force);
1505 nsresult GetParentWidget(nsIWidget **aParentWidget);
1506 nsresult SetParentWidget(nsIWidget *aParentWidget);
1507 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1508 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1509 nsresult GetVisibility(PRBool *aVisibility);
1510 nsresult SetVisibility(PRBool aVisibility);
1511 nsresult GetEnabled(PRBool *aEnabled);
1512 nsresult SetEnabled(PRBool aEnabled);
1513 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1514 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1515 nsresult GetMainWidget(nsIWidget **aMainWidget);
1516 nsresult SetFocus();
1517 nsresult GetTitle(PRUnichar **aTitle);
1518 nsresult SetTitle(const PRUnichar *aTitle);
1521 cpp_quote("#define LOAD_FLAGS_NONE 0")
1525 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1529 interface nsIWebNavigation : nsISupports
1531 nsresult GetCanGoBack(PRBool *aCanGoBack);
1532 nsresult GetCanGoForward(PRBool *aCanGoForward);
1534 nsresult GoForward();
1535 nsresult GotoIndex(PRInt32 index);
1536 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1537 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1538 nsresult Reload(PRUint32 aReloadFlags);
1539 nsresult Stop(PRUint32 aStopFlags);
1540 nsresult GetDocument(nsIDOMDocument **aDocument);
1541 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1542 nsresult GetReferringURI(nsIURI **aReferringURI);
1543 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1544 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1549 uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1553 interface nsIPrintSettings : nsISupports
1555 typedef struct { char dummy; } nsIntMargin;
1557 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1558 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1559 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1560 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1561 nsresult Clone(nsIPrintSettings **_retval);
1562 nsresult Assign(nsIPrintSettings *aPS);
1563 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1564 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1565 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1566 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1567 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1568 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1569 nsresult GetEdgeTop(double *aEdgeTop);
1570 nsresult SetEdgeTop(double aEdgeTop);
1571 nsresult GetEdgeLeft(double *aEdgeLeft);
1572 nsresult SetEdgeLeft(double aEdgeLeft);
1573 nsresult GetEdgeBottom(double *aEdgeBottom);
1574 nsresult SetEdgeBottom(double aEdgeBottom);
1575 nsresult GetEdgeRight(double *aEdgeRight);
1576 nsresult SetEdgeRight(double aEdgeRight);
1577 nsresult GetMarginTop(double *aMarginTop);
1578 nsresult SetMarginTop(double aMarginTop);
1579 nsresult GetMarginLeft(double *aMarginLeft);
1580 nsresult SetMarginLeft(double aMarginLeft);
1581 nsresult GetMarginBottom(double *aMarginBottom);
1582 nsresult SetMarginBottom(double aMarginBottom);
1583 nsresult GetMarginRight(double *aMarginRight);
1584 nsresult SetMarginRight(double aMarginRight);
1585 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1586 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1587 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1588 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1589 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1590 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1591 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1592 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1593 nsresult GetScaling(double *aScaling);
1594 nsresult SetScaling(double aScaling);
1595 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1596 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1597 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1598 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1599 nsresult GetPrintRange(PRInt16 *aPrintRange);
1600 nsresult SetPrintRange(PRInt16 aPrintRange);
1601 nsresult GetTitle(PRUnichar **aTitle);
1602 nsresult SetTitle(const PRUnichar *aTitle);
1603 nsresult GetDocURL(PRUnichar **aDocURL);
1604 nsresult SetDocURL(const PRUnichar *aDocURL);
1605 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1606 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1607 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1608 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1609 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1610 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1611 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1612 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1613 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1614 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1615 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1616 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1617 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1618 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1619 nsresult GetIsCancelled(PRBool *aIsCancelled);
1620 nsresult SetIsCancelled(PRBool aIsCancelled);
1621 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1622 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1623 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1624 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1625 nsresult GetPrintSilent(PRBool *aPrintSilent);
1626 nsresult SetPrintSilent(PRBool aPrintSilent);
1627 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1628 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1629 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1630 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1631 nsresult GetPaperName(PRUnichar **aPaperName);
1632 nsresult SetPaperName(const PRUnichar *aPaperName);
1633 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1634 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1635 nsresult GetPaperData(PRInt16 *aPaperData);
1636 nsresult SetPaperData(PRInt16 aPaperData);
1637 nsresult GetPaperWidth(double *aPaperWidth);
1638 nsresult SetPaperWidth(double aPaperWidth);
1639 nsresult GetPaperHeight(double *aPaperHeight);
1640 nsresult SetPaperHeight(double aPaperHeight);
1641 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1642 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1643 nsresult GetPlexName(PRUnichar **aPlexName);
1644 nsresult SetPlexName(const PRUnichar *aPlexName);
1645 nsresult GetColorspace(PRUnichar **aColorspace);
1646 nsresult SetColorspace(const PRUnichar *aColorspace);
1647 nsresult GetResolutionName(PRUnichar **aResolutionName);
1648 nsresult SetResolutionName(const PRUnichar aResolutionName);
1649 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1650 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1651 nsresult GetPrintReversed(PRBool *aPrintReversed);
1652 nsresult SetPrintReversed(PRBool aPrintReversed);
1653 nsresult GetPrintInColor(PRBool *aPrintInColor);
1654 nsresult SetPrintInColor(PRBool aPrintInColor);
1655 nsresult GetOrientation(PRInt32 *aOrientation);
1656 nsresult SetOrientation(PRInt32 aOrientation);
1657 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1658 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1659 nsresult GetNumCopies(PRInt32 *aNumCopies);
1660 nsresult SetNumCopies(PRInt32 aNumCopies);
1661 nsresult GetPrinterName(PRUnichar **aPrinterName);
1662 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1663 nsresult GetPrintToFile(PRBool *aPrintToFile);
1664 nsresult SetPrintToFile(PRBool aPrintToFile);
1665 nsresult GetToFileName(PRUnichar **aToFileName);
1666 nsresult SetToFileName(const PRUnichar *aToFileName);
1667 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1668 nsresult SetOutputFormat(PRInt16 aOutputFormat);
1669 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1670 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1671 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1672 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1673 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1674 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1675 nsresult SetMarginInTwips(nsIntMargin *aMargin);
1676 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
1677 nsresult GetMarginInTwips(nsIntMargin *aMargin);
1678 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
1679 nsresult SetupSilentPrinting();
1680 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1681 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1686 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1690 interface nsIWebBrowserPrint : nsISupports
1692 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1693 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1694 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1695 nsresult GetDoingPrint(PRBool *aDoingPrint);
1696 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1697 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1698 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1699 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1700 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1701 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1702 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1703 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1704 nsIWebProgressListener *aWPListener);
1705 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1707 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1708 nsresult ExitPrintPreview();
1713 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1717 interface nsIScrollable : nsISupports
1720 ScrollOrientation_X = 1,
1721 ScrollOrientation_Y = 2
1726 Scrollbar_Never = 2,
1727 Scrollbar_Always = 3
1730 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1731 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1732 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1733 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1734 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1735 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1736 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1737 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1738 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1739 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1744 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1748 interface nsIFile : nsISupports
1750 nsresult Append(const nsAString *node);
1751 nsresult AppendNative(const nsAString *node);
1752 nsresult Normalize();
1753 nsresult Create(PRUint32 type, PRUint32 permission);
1754 nsresult GetLeafName(nsAString *aLeafName);
1755 nsresult SetLeafName(const nsAString *aLeafName);
1756 nsresult GetNativeLeafName(nsAString *aLeafName);
1757 nsresult SetNativeLeafName(const nsAString *aLeafName);
1758 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1759 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1760 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1761 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1762 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1763 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1764 nsresult Remove(PRBool recursive);
1765 nsresult GetPermissions(PRUint32 *aPermissions);
1766 nsresult SetPermissions(PRUint32 pPermissions);
1767 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1768 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1769 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1770 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1771 nsresult GetFileSize(PRInt64 *aFileSize);
1772 nsresult SetFileSize(PRInt64 aFileSize);
1773 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1774 nsresult GetTarget(nsAString *aTarget);
1775 nsresult GetNativeTarget(nsACString *aNativeTarget);
1776 nsresult GetPath(nsAString *aPath);
1777 nsresult GetNativePath(nsACString *aNativePath);
1778 nsresult Exists(PRBool *_retval);
1779 nsresult IsWritable(PRBool *_retval);
1780 nsresult IsReadable(PRBool *_retval);
1781 nsresult IsExecutable(PRBool *_retval);
1782 nsresult IsHidden(PRBool *_retval);
1783 nsresult IsDirectory(PRBool *_retval);
1784 nsresult IsFile(PRBool *_retval);
1785 nsresult IsSymlink(PRBool *_retval);
1786 nsresult IsSpecial(PRBool *_retval);
1787 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1788 nsresult Clone(nsIFile **_retval);
1789 nsresult Equals(nsIFile *inFile, PRBool *_retval);
1790 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1791 nsresult GetParent(nsIFile **aParent);
1792 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1797 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
1801 interface nsIPrefBranch : nsISupports
1803 nsresult GetRoot(char **aRoot);
1804 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
1805 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
1806 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
1807 nsresult GetCharPref(const char *aPrefName, char **_retval);
1808 nsresult SetCharPref(const char *aPrefName, const char *aValue);
1809 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
1810 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
1811 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
1812 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
1813 nsresult ClearUserPref(const char *aPrefName);
1814 nsresult LockPref(const char *aPrefName);
1815 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
1816 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
1817 nsresult UnlockPref(const char *aPrefName);
1818 nsresult DeleteBranch(const char *aStartingAt);
1819 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
1820 nsresult ResetBranch(const char *aStartingAt);
1825 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
1829 interface nsIProtocolHandler : nsISupports
1831 nsresult GetScheme(nsACString *aScheme);
1832 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
1833 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
1834 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
1835 nsIURI *aBaseURI, nsIURI **_retval);
1836 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
1837 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
1842 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
1846 interface nsIExternalProtocolHandler : nsIProtocolHandler
1848 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
1853 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
1857 interface nsIIOService : nsISupports
1859 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1860 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1861 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1863 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1864 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1865 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1866 nsIChannel **_retval);
1867 nsresult GetOffline(PRBool *aOffline);
1868 nsresult SetOffline(PRBool aOffline);
1869 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1870 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1875 uuid(a50d5516-5c0a-4f08-b427-703ca0c44ac3),
1879 interface nsINetUtil : nsISupports
1881 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
1882 PRBool *aHadCharset, nsACString *_retval);
1883 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
1884 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
1885 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
1886 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
1887 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
1888 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
1889 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
1890 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
1895 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
1899 interface nsIWebBrowserFocus : nsISupports
1901 nsresult Activate();
1902 nsresult Deactivate();
1903 nsresult SetFocusAtFirstElement();
1904 nsresult SetFocusAtLastElement();
1905 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1906 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1907 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1908 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1913 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
1917 interface nsIWebBrowserChrome : nsISupports
1919 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1920 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1921 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1922 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1923 nsresult SetChromeFlags(PRUint32 aChromeFlags);
1924 nsresult DestroyBrowserWindow();
1925 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1926 nsresult ShowAsModal();
1927 nsresult IsWindowModal(PRBool *_retval);
1928 nsresult ExitModalEventLoop(nsresult aStatus);
1933 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
1937 interface nsIDOMEventListener : nsISupports
1939 nsresult HandleEvent(nsIDOMEvent *event);
1944 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
1948 interface nsIDOMEventTarget : nsISupports
1950 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1951 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1952 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1957 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
1961 interface nsIDOMEvent : nsISupports
1963 nsresult GetType(nsAString *aType);
1964 nsresult GetTarget(nsIDOMEventTarget **aTarget);
1965 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1966 nsresult GetEventPhase(PRUint16 *aEventPhase);
1967 nsresult GetBubbles(PRBool *aBubbles);
1968 nsresult GetCancelable(PRBool *aCancelable);
1969 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1970 nsresult StopPropagation();
1971 nsresult PreventDefault();
1972 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1975 cpp_quote("#define CONTEXT_NONE 0x00")
1976 cpp_quote("#define CONTEXT_LINK 0x01")
1977 cpp_quote("#define CONTEXT_IMAGE 0x02")
1978 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
1979 cpp_quote("#define CONTEXT_TEXT 0x08")
1980 cpp_quote("#define CONTEXT_INPUT 0x10")
1981 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
1985 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
1989 interface nsIContextMenuListener : nsISupports
1991 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1996 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
2000 interface nsIDOMUIEvent : nsIDOMEvent
2002 nsresult GetView(nsIDOMAbstractView **aView);
2003 nsresult GetDetail(PRInt32 *aDetail);
2004 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2005 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2010 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2014 interface nsIDOMMouseEvent : nsIDOMUIEvent
2016 nsresult GetScreenX(PRInt32 *aScreenX);
2017 nsresult GetScreenY(PRInt32 *aScreenY);
2018 nsresult GetClientX(PRInt32 *aClientX);
2019 nsresult GetClientY(PRInt32 *aClientY);
2020 nsresult GetCtrlKey(PRBool *aCtrlKey);
2021 nsresult GetShiftKey(PRBool *aShiftKey);
2022 nsresult GetAltKey(PRBool *aAltKey);
2023 nsresult GetMetaKey(PRBool *aMetaKey);
2024 nsresult GetButton(PRUint16 *aButton);
2025 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
2026 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2027 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2028 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2029 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2030 nsIDOMEventTarget *relatedTargetArg);
2035 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2039 interface nsIDOMKeyEvent : nsIDOMUIEvent
2041 nsresult GetCharCode(PRUint32 *aCharCode);
2042 nsresult GetKeyCode(PRUint32 *aKeyCode);
2043 nsresult GetAltKey(PRBool *aAltKey);
2044 nsresult GetCtrlKey(PRBool *aCtrlKey);
2045 nsresult GetShiftKey(PRBool *aShiftKey);
2046 nsresult GetMetaKey(PRBool *aMetaKey);
2047 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2048 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2049 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2050 PRUint32 charCodeArg);
2055 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2059 interface nsIEmbeddingSiteWindow : nsISupports
2061 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2062 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2063 nsresult SetFocus();
2064 nsresult GetVisibility(PRBool *aVisibility);
2065 nsresult SetVisibility(PRBool aVisibility);
2066 nsresult GetTitle(PRUnichar **aTitle);
2067 nsresult SetTitle(const PRUnichar *aTitle);
2068 nsresult GetSiteWindow(void **aSiteWindow);
2073 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2077 interface nsIComponentRegistrar : nsISupports
2079 nsresult AutoRegister(nsIFile *aSpec);
2080 nsresult AutoUnregister(nsIFile *aSpec);
2081 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2082 const char *aContractID, nsIFactory *aFactory);
2083 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2084 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2085 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2087 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2088 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2089 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2090 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2091 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2092 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2093 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2098 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2102 interface nsIPromptService : nsISupports
2104 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2105 const PRUnichar *aText);
2106 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2107 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2108 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2109 const PRUnichar *aText, PRBool *_retval);
2110 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2111 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2113 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2114 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2115 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2116 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2117 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2118 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2119 PRBool *aCheckState, PRBool *_retval);
2120 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2121 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2122 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2123 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2124 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2125 PRBool *aCheckState, PRBool *_retval);
2126 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2127 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2128 PRInt32 *aOutSelection, PRBool *_retval);
2133 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2137 interface nsITooltipTextProvider : nsISupports
2139 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2144 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2148 interface nsIProfile : nsISupports
2150 nsresult GetProfileCount(PRInt32 *aProfileCount);
2151 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2152 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2153 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
2154 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2155 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2156 nsresult CreateNewProfile(const PRUnichar *profileName,
2157 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2158 PRBool useExistingDir);
2159 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2160 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2161 nsresult CloneProfile(const PRUnichar *profileName);
2166 uuid(30465632-a777-44cc-90f9-8145475ef999),
2170 interface nsIWindowCreator : nsISupports
2172 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2173 nsIWebBrowserChrome **_retval);
2178 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2182 interface nsIWindowCreator2 : nsIWindowCreator
2184 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2185 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2186 nsIWebBrowserChrome **_retval);
2191 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2195 interface nsIWindowWatcher : nsISupports
2197 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2198 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2199 nsresult RegisterNotification(nsIObserver *aObserver);
2200 nsresult UnregisterNotification(nsIObserver *aObserver);
2201 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2202 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2203 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2204 nsresult SetWindowCreator(nsIWindowCreator *creator);
2205 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2206 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2207 nsIDOMWindow **_retval);
2208 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2209 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2214 uuid(274cd32e-3675-47e1-9d8a-fc6504ded9ce),
2218 interface nsIEditingSession : nsISupports
2220 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2221 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2222 PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2223 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2224 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2225 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2226 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2227 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2228 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2229 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2230 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2231 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2236 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2240 interface nsICommandParams : nsISupports
2242 nsresult GetValueType(const char *name, PRInt16 *_retval);
2243 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2244 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2245 nsresult GetDoubleValue(const char *name, double *_retval);
2246 nsresult GetStringValue(const char *name, nsAString *_retval);
2247 nsresult GetCStringValue(const char *name, char **_retval);
2248 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2249 nsresult SetBooleanValue(const char *name, PRBool value);
2250 nsresult SetLongValue(const char *name, PRInt32 value);
2251 nsresult SetDoubleValue(const char *name, double value);
2252 nsresult SetStringValue(const char *name, const nsAString *value);
2253 nsresult SetCStringValue(const char *name, const char *value);
2254 nsresult SetISupportsValue(const char *name, nsISupports *value);
2255 nsresult RemoveValue(const char *name);
2256 nsresult HasMoreElements(PRBool *_retval);
2258 nsresult GetNext(char **_retval);
2263 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2267 interface nsICommandManager : nsISupports
2269 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2270 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2271 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2272 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2273 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2274 nsICommandParams *aCommandParams);
2275 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2276 nsIDOMWindow *aTargetWindow);
2281 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2285 interface nsIControllerContext : nsISupports
2287 nsresult Init(nsIControllerCommandTable *aCommandTable);
2288 nsresult SetCommandContext(nsISupports *aCommandContext);
2293 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2297 interface nsIController : nsISupports
2299 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2300 nsresult SupportsCommand(const char *command, PRBool *_retval);
2301 nsresult DoCommand(const char *command);
2302 nsresult OnEvent(const char *eventName);
2307 uuid(34769de0-30d0-4cef-894a-fcd8bb27c4b4),
2311 interface nsIContentSerializer : nsISupports
2313 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2314 PRBool aIsWholeDocument);
2315 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2316 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
2317 PRInt32 aEndOffset, nsAString *aStr);
2318 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
2319 PRInt32 aEndOffset, nsAString *aStr);
2320 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2322 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
2323 nsresult AppendElementStart(nsIDOMElement *aElement, nsIDOMElement *aOriginalElement,
2325 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
2326 nsresult Flush(nsAString *aStr);
2327 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
2332 uuid(96b60ba0-634a-41e4-928e-78ab0b3c4b46),
2336 interface nsIEditor : nsISupports
2338 typedef void *nsIPresShellPtr;
2339 typedef void *nsIContentPtr;
2341 nsresult GetSelection([out] nsISelection *_retval);
2342 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2343 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2344 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2345 nsresult PostCreate();
2346 nsresult PreDestroy();
2347 nsresult GetFlags([out] PRUint32 *_retval);
2348 nsresult SetFlags([in] PRUint32 val);
2349 nsresult GetContentsMIMEType([out] char **_retval);
2350 nsresult SetContentsMIMEType([in] const char *val);
2351 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2352 nsresult GetDocument([out] nsIDOMDocument **_retval);
2353 nsresult GetRootElement([out] nsIDOMElement **_retval);
2354 nsresult GetSelectionController([out] nsISelectionController **_retval);
2355 nsresult DeleteSelection([in] PRInt16 action);
2356 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2357 nsresult GetDocumentModified([out] PRBool *_retval);
2358 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2359 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2360 nsresult ResetModificationCount();
2361 nsresult GetModificationCount([out] PRInt32 *_retval);
2362 nsresult IncrementModificationCount([in] PRInt32 aModCount);
2363 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2364 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2365 nsresult DoTransaction([in] nsITransaction *txn);
2366 nsresult EnableUndo([in] PRBool enable);
2367 nsresult Undo([in] PRUint32 count);
2368 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2369 nsresult Redo([in] PRUint32 count);
2370 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2371 nsresult BeginTransaction();
2372 nsresult EndTransaction();
2373 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2374 nsresult EndPlaceHolderTransaction();
2375 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2376 nsresult SetShouldTxnSetSelection([in] PRBool should);
2377 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2378 nsresult SyncRealTimeSpell();
2379 nsresult SetSpellcheckUserOverride(PRBool enable);
2381 nsresult CanCut([out] PRBool *_retval);
2383 nsresult CanCopy([out] PRBool *_retval);
2384 nsresult Paste([in] PRInt32 aSelectionType);
2385 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2386 nsresult SelectAll();
2387 nsresult BeginningOfDocument();
2388 nsresult EndOfDocument();
2389 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2390 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2391 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2392 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2393 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2394 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2395 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2396 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2397 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2398 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2399 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2400 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2401 nsresult DeleteNode([in] nsIDOMNode *child);
2402 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2403 nsresult SwitchTextDirection();
2404 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2405 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2406 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2407 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2408 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2409 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2410 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2411 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2412 nsresult DumpContentTree();
2413 nsresult DebugDumpContent();
2414 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2415 PRBool IsModifiableNode(nsIDOMNode *aNode);
2420 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2424 interface nsIHTMLEditor : nsISupports
2426 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2427 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2428 nsresult RemoveAllDefaultProperties();
2429 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2430 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2431 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2432 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2433 nsresult RemoveAllInlineProperties();
2434 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2435 nsresult IncreaseFontSize();
2436 nsresult DecreaseFontSize();
2437 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2438 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2439 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2440 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2441 nsresult InsertHTML([in] nsAString *aInputString);
2442 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2443 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2444 nsresult InsertHTMLWithContext([in] nsAString *aInputString, [in] nsAString *aContextStr, [in] nsAString *aInfoStr, [in] nsAString *aFlavor, [in] nsIDOMDocument *aSourceDoc, [in] nsIDOMNode *aDestinationNode, [in] PRInt32 aDestinationOffset, [in] PRBool aDeleteSelection);
2445 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2446 nsresult SetDocumentTitle([in] nsAString *aTitle);
2447 nsresult UpdateBaseURL();
2448 nsresult SelectElement([in] nsIDOMElement *aElement);
2449 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2450 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2451 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2452 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2453 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2454 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2455 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2456 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2457 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2458 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2459 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2460 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2461 nsresult RemoveList([in] nsAString *aListType);
2462 nsresult Indent([in] nsAString *aIndent);
2463 nsresult Align([in] nsAString *aAlign);
2464 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2465 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2466 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2467 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2468 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2469 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2470 nsresult SetBackgroundColor([in] nsAString *aColor);
2471 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2472 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2473 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2474 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2475 nsresult SetIsCSSEnabled([in] PRBool prb);
2476 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2477 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2478 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2479 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2480 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2481 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2482 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2483 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2488 uuid(365d600b-868a-452a-8de8-f46fad8fee53),
2492 interface nsIMutationObserver : nsISupports
2494 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2495 void /*CharacterDataChangeInfo*/ *aInfo);
2496 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2497 void /*CharacterDataChangeInfo*/ *aInfo);
2498 void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2499 nsIAtom *aAttribute, PRInt32 aModType);
2500 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2501 nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask);
2502 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer);
2503 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2504 PRInt32 aIndexInContainer);
2505 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2506 PRInt32 aIndexInContainer);
2507 void NodeWillBeDestroyed(const nsINode *aNode);
2508 void ParentChainChanged(nsIContent *aContent);
2513 uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2517 interface nsIDocumentObserver : nsIMutationObserver
2519 typedef int nsUpdateType;
2521 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2522 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2523 void BeginLoad(nsIDocument *aDocument);
2524 void EndLoad(nsIDocument *aDocument);
2525 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2526 PRInt32 aStateMask);
2527 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2528 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2529 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2530 PRBool aApplicable);
2531 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2532 nsIStyleRule *aNewStyleRule);
2533 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2534 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2535 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2536 void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified);
2541 * This is a private Wine interface that is implemented by our implementation
2542 * of nsIURI to store its owner.
2546 uuid(5088272e-900b-11da-c687-000fea57f21a),
2550 interface nsIWineURI : nsIURI
2552 typedef struct NSContainer NSContainer;
2554 nsresult GetNSContainer(NSContainer **aNSContainer);
2555 nsresult SetNSContainer(NSContainer *aNSContainer);
2556 nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
2557 nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
2558 nsresult GetWineURL(LPCWSTR *aURL);
2559 nsresult SetWineURL(LPCWSTR aURL);