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;
92 interface nsIDOMWindow;
98 uuid(00000000-0000-0000-c000-000000000046),
101 interface nsISupports
103 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
108 /* Currently we don't need a full declaration of these interfaces */
109 typedef nsISupports nsISHistory;
110 typedef nsISupports nsIWidget;
111 typedef nsISupports nsIHttpHeaderVisitor;
112 typedef nsISupports nsIDOMBarProp;
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 nsIDocument;
139 typedef nsISupports nsIContent;
140 typedef nsISupports nsINode;
141 typedef nsISupports nsIStyleSheet;
142 typedef nsISupports nsIStyleRule;
143 typedef nsISupports nsIVariant;
144 typedef nsISupports nsIDOMUserDataHandler;
148 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
152 interface nsIServiceManager : nsISupports
154 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
155 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
156 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
157 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
162 uuid(00000001-0000-0000-c000-000000000046),
166 interface nsIFactory : nsISupports
168 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
169 nsresult LockFactory(PRBool lock);
174 uuid(db242e01-e4d9-11d2-9dde-000064657374),
178 interface nsIObserver : nsISupports
180 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
185 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
189 interface nsIComponentManager : nsISupports
191 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
192 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
193 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
195 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
196 nsIIDRef aIID, nsQIResult result);
201 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
205 interface nsIMemory : nsISupports
207 void *Alloc(/*size_t*/ int size);
208 void *Realloc(void *_ptr, /*size_t*/ int newSize);
209 void Free(void *_ptr);
210 nsresult HeapMinimize(PRBool immediate);
211 nsresult IsLowMemory(PRBool *_retval);
216 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
220 interface nsIWeakReference : nsISupports
222 nsresult QueryReferent(const nsIID *riid, void **result);
227 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
231 interface nsISupportsWeakReference : nsISupports
233 nsresult GetWeakReference(nsIWeakReference **_retval);
238 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
242 interface nsIInterfaceRequestor : nsISupports
244 nsresult GetInterface(const nsIID *riid, void **result);
249 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
253 interface nsIRunnable : nsISupports
260 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
264 interface nsISimpleEnumerator : nsISupports
266 nsresult HasMoreElements(PRBool *_retval);
267 nsresult GetNext(nsISupports **_retval);
272 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
276 interface nsIInputStream : nsISupports
279 nsresult Available(PRUint32 *_retval);
280 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
281 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
282 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
283 PRUint32 aCount, PRUint32 *aWriteCount),
284 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
285 nsresult IsNonBlocking(PRBool *_retval);
290 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
294 interface nsIURI : nsISupports
296 nsresult GetSpec(nsACString *aSpec);
297 nsresult SetSpec(const nsACString *aSpec);
298 nsresult GetPrePath(nsACString *aPrePath);
299 nsresult GetScheme(nsACString *aScheme);
300 nsresult SetScheme(const nsACString *aScheme);
301 nsresult GetUserPass(nsACString *aUserPass);
302 nsresult SetUserPass(const nsACString *aUserPass);
303 nsresult GetUsername(nsACString *aUsername);
304 nsresult SetUsername(const nsACString *aUsername);
305 nsresult GetPassword(nsACString *aPassword);
306 nsresult SetPassword(const nsACString *aPassword);
307 nsresult GetHostPort(nsACString *aHostPort);
308 nsresult SetHostPort(const nsACString *aHostPort);
309 nsresult GetHost(nsACString *aHost);
310 nsresult SetHost(const nsACString *aHost);
311 nsresult GetPort(PRInt32 *aPort);
312 nsresult SetPort(PRInt32 aPort);
313 nsresult GetPath(nsACString *aPath);
314 nsresult SetPath(const nsACString *aPath);
315 nsresult Equals(nsIURI *other, PRBool *_retval);
316 nsresult SchemeIs(const char *scheme, PRBool *_retval);
317 nsresult Clone(nsIURI **_retval);
318 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
319 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
320 nsresult GetAsciiHost(nsACString *aAsciiHost);
321 nsresult GetOriginCharset(nsACString *aOriginCharset);
326 uuid(d6116970-8034-11d3-9399-00104ba0fd40),
330 interface nsIURL : nsIURI
332 nsresult GetFilePath(nsACString *aFilePath);
333 nsresult SetFilePath(const nsACString *aFilePath);
334 nsresult GetParam(nsACString *aParam);
335 nsresult SetParam(const nsACString *aParam);
336 nsresult GetQuery(nsACString *aQuery);
337 nsresult SetQuery(const nsACString *aQuery);
338 nsresult GetRef(nsACString *aRef);
339 nsresult SetRef(const nsACString *aRef);
340 nsresult GetDirectory(nsACString *aDirectory);
341 nsresult SetDirectory(const nsACString *aDirectory);
342 nsresult GetFileName(nsACString *aFileName);
343 nsresult SetFileName(const nsACString *aFileName);
344 nsresult GetFileBaseName(nsACString *aFileBaseName);
345 nsresult SetFileBaseName(const nsACString *aFileBaseName);
346 nsresult GetFileExtension(nsACString *aFileExtension);
347 nsresult SetFileExtension(const nsACString *aFileExtension);
348 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
349 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
354 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
358 interface nsIRequest : nsISupports
360 nsresult GetName(nsACString *aName);
361 nsresult IsPending(PRBool *_retval);
362 nsresult GetStatus(nsresult *aStatus);
363 nsresult Cancel(nsresult aStatus);
366 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
367 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
368 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
369 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
374 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
378 interface nsIRequestObserver : nsISupports
380 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
381 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
386 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
390 interface nsIStreamListener : nsIRequestObserver
392 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
393 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
398 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
402 interface nsILoadGroup : nsIRequest
404 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
405 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
406 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
407 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
408 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
409 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
410 nsresult GetRequests(nsISimpleEnumerator **aRequests);
411 nsresult GetActiveCount(PRUint32 *aActiveCount);
412 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
413 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
418 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
422 interface nsIChannel : nsIRequest
424 nsresult GetOriginalURI(nsIURI **aOriginalURI);
425 nsresult SetOriginalURI(nsIURI *aOriginalURI);
426 nsresult GetURI(nsIURI **aURI);
427 nsresult GetOwner(nsISupports **aOwner);
428 nsresult SetOwner(nsISupports *aOwner);
429 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
430 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
431 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
432 nsresult GetContentType(nsACString *aContentType);
433 nsresult SetContentType(const nsACString *aContentType);
434 nsresult GetContentCharset(nsACString *aContentCharset);
435 nsresult SetContentCharset(const nsACString *aContentCharset);
436 nsresult GetContentLength(PRInt32 *aContentLength);
437 nsresult SetContentLength(PRInt32 aContentLength);
438 nsresult Open(nsIInputStream **_retval);
439 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
444 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
448 interface nsIHttpChannel : nsIChannel
450 nsresult GetRequestMethod(nsACString *aRequestMethod);
451 nsresult SetRequestMethod(const nsACString *aRequestMethod);
452 nsresult GetReferrer(nsIURI **aReferrer);
453 nsresult SetReferrer(nsIURI *aReferrer);
454 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
455 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
456 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
457 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
458 nsresult SetAllowPipelining(PRBool aAllowPipelining);
459 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
460 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
461 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
462 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
463 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
464 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
465 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
466 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
467 nsresult IsNoStoreResponse(PRBool *_retval);
468 nsresult IsNoCacheResponse(PRBool *_retval);
473 uuid(0eb66361-faaa-4e52-8c7e-6c25f11f8e3c),
477 interface nsIHttpChannelInternal : nsISupports
479 nsresult GetDocumentURI(nsIURI **aDocumentURI);
480 nsresult SetDocumentURI(nsIURI *aDocumentURI);
481 nsresult GetRequestVersion(PRUint32 *major, PRUint32 *minor);
482 nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
483 nsresult SetCookie(const char *aCookieHeader);
484 nsresult SetupFallbackChannel(const char *aFallbackKey);
485 nsresult GetForceAllowThirdPartyCookie(PRBool *aForceAllowThirdPartyCookie);
486 nsresult SetForceAllowThirdPartyCookie(PRBool aForceAllowThirdPartyCookie);
491 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
495 interface nsIUploadChannel : nsISupports
497 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
498 PRInt32 aContentLength);
499 nsresult GetUploadStream(nsIInputStream **aUploadStream);
504 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
508 interface nsIDOMCSSRule : nsISupports
510 nsresult GetType(PRUint16 *aType);
511 nsresult GetCssText(nsAString *aCssText);
512 nsresult SetCssText(const nsAString *aCssText);
513 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
514 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
519 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
523 interface nsIDOMCSSStyleDeclaration : nsISupports
525 nsresult GetCssText(nsAString *aCssText);
526 nsresult SetCssText(const nsAString *aCssText);
527 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
528 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
529 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
530 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
531 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
532 const nsAString *priority);
533 nsresult GetLength(PRUint32 *aLength);
534 nsresult Item(PRUint32 index, nsAString *_retval);
535 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
540 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
544 interface nsIDOMCSSRuleList : nsISupports
546 nsresult GetLength(PRUint32 *aLength);
547 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
552 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
556 interface nsIDOMStyleSheet : nsISupports
558 nsresult GetType(nsAString *aType);
559 nsresult GetDisabled(PRBool *aDisabled);
560 nsresult SetDisabled(PRBool aDisabled);
561 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
562 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
563 nsresult GetHref(nsAString *aHref);
564 nsresult GetTitle(nsAString *aTitle);
565 nsresult GetMedia(nsIDOMMediaList **aMedia);
570 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
574 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
576 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
577 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
578 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
579 nsresult DeleteRule(PRUint32 index);
584 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
588 interface nsIDOMStyleSheetList : nsISupports
590 nsresult GetLength(PRUint32 *aLength);
591 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
596 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
600 interface nsIDOMNodeList : nsISupports
602 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
603 nsresult GetLength(PRUint32 *aLength);
608 uuid(29fb2a18-1dd2-11b2-8dd9-a6fd5d5ad12f),
612 interface nsIDOM3Node : nsISupports
620 IMPLEMENTATION_SPECIFIC = 32
623 nsresult GetBaseURI(nsAString *aBaseURI);
624 nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
625 nsresult GetTextContent(nsAString *aTextContent);
626 nsresult SetTextContent(const nsAString *aTextContent);
627 nsresult IsSameNode(nsIDOMNode *other, PRBool *_retval);
628 nsresult LookupPrefix(const nsAString *namespaceURI, PRBool *_retval);
629 nsresult IsDefaultNamespace(const nsAString *namespaceURI, PRBool *_retval);
630 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString _retval);
631 nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval);
632 nsresult GetFeature(const nsAString *feature, const nsAString *version, nsISupports **_retval);
633 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
634 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
639 uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
643 interface nsIDOMNode : nsISupports
649 CDATA_SELECTION_NODE = 4,
650 ENTITY_REFERENCE_NODE = 5,
652 PROCESSING_INSTRUCTION_NODE = 7,
655 DOCUMENT_TYPE_NODE = 10,
656 DOCUMENT_FRAGMENT_NODE = 11,
660 nsresult GetNodeName(nsAString *aNodeName);
661 nsresult GetNodeValue(nsAString *aNodeValue);
662 nsresult SetNodeValue(const nsAString *aNodeValue);
663 nsresult GetNodeType(PRUint16 *aNodeType);
664 nsresult GetParentNode(nsIDOMNode **aParentNode);
665 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
666 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
667 nsresult GetLastChild(nsIDOMNode **aLastChild);
668 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
669 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
670 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
671 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
672 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
673 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
674 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
675 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
676 nsresult HasChildNodes(PRBool *_retval);
677 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
678 nsresult Normalize();
679 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
680 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
681 nsresult GetPrefix(nsAString *aPrefix);
682 nsresult SetPrefix(const nsAString *aPrefix);
683 nsresult GetLocalName(nsAString *aLocalName);
684 nsresult HasAttributes(PRBool *_retval);
689 uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
693 interface nsIDOMElement : nsIDOMNode
695 nsresult GetTagName(nsAString *aTagName);
696 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
697 nsresult SetAttribute(const nsAString *name, const nsAString *value);
698 nsresult RemoveAttribute(const nsAString *name);
699 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
700 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
701 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
702 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
703 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
705 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
706 const nsAString *value);
707 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
708 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
709 nsIDOMAttr **_retval);
710 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
711 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
712 nsIDOMNodeList **_retval);
713 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
714 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
720 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
724 interface nsIDOMElementCSSInlineStyle : nsISupports
726 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
731 uuid(f0aef489-18c5-4de6-99d5-58b3758b098c),
735 interface nsIDOMNSElement : nsISupports
737 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
738 nsresult GetClientRects(nsIDOMClientRectList **_retval);
739 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
740 nsresult GetScrollTop(PRInt32 *aScrollTop);
741 nsresult SetScrollTop(PRInt32 aScrollTop);
742 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
743 nsresult SetScrollLeft(PRInt32 aScrollLeft);
744 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
745 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
746 nsresult GetClientTop(PRInt32 *aClientTop);
747 nsresult GetClientLeft(PRInt32 *aClientLeft);
748 nsresult GetClientHeight(PRInt32 *aClientHeight);
749 nsresult GetClientWidth(PRInt32 *aClientWidth);
750 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
751 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
752 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
753 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
754 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
755 nsresult GetChildren(nsIDOMNodeList **aChildren);
758 cpp_quote("#undef GetClassName")
762 uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
766 interface nsIDOMHTMLElement : nsIDOMElement
768 nsresult GetId(nsAString *aId);
769 nsresult SetId(const nsAString *aId);
770 nsresult GetTitle(nsAString *aTitle);
771 nsresult SetTitle(const nsAString *aTitle);
772 nsresult GetLang(nsAString *aLang);
773 nsresult SetLang(const nsAString *aLang);
774 nsresult GetDir(nsAString *aDir);
775 nsresult SetDir(const nsAString *aDir);
776 nsresult GetClassName(nsAString *aClassName);
777 nsresult SetClassName(const nsAString *aClassName);
782 uuid(7f142f9a-fba7-4949-93d6-cf08a974ac51),
786 interface nsIDOMNSHTMLElement : nsISupports
788 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
789 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
790 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
791 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
792 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
793 nsresult GetInnerHTML(nsAString *aInnerHTML);
794 nsresult SetInnerHTML(const nsAString *aInnerHTML);
795 nsresult GetTabIndex(PRInt32 *aTabIndex);
796 nsresult SetTabIndex(PRInt32 aTabIndex);
797 nsresult GetContentEditable(nsAString *aContentEditable);
798 nsresult SetContentEditable(const nsAString *aContentEditable);
801 nsresult ScrollIntoView(PRBool top);
802 nsresult GetSpellcheck(PRBool *aSpellcheck);
803 nsresult SetSpellcheck(PRBool aSpellcheck);
808 uuid(a6cf9083-15b3-11d2-932e-00805f8add32),
812 interface nsIDOMHTMLCollection : nsISupports
814 nsresult GetLength(PRUint32 *aLength);
815 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
816 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
821 uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
825 interface nsIDOMCharacterData : nsIDOMNode
827 nsresult GetData(nsAString *aData);
828 nsresult SetData(const nsAString *aData);
829 nsresult GetLength(PRUint32 *aLength);
830 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
831 nsresult AppendData(const nsAString *arg);
832 nsresult InsertData(PRUint32 offset, const nsAString *arg);
833 nsresult DeleteData(PRUint32 offset, PRUint32 count);
834 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
839 uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
843 interface nsIDOMText : nsIDOMCharacterData
845 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
850 uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
854 interface nsIDOMComment : nsIDOMCharacterData
860 uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
864 interface nsIDOMDocumentFragment : nsIDOMNode
870 uuid(f51ebade-8b1a-11d3-aae7-0010830123b4),
874 interface nsIDOMAbstractView : nsISupports
876 nsresult GetDocument(nsIDOMDocumentView **aDocument);
881 uuid(0b9341f3-95d4-4fa4-adcd-e119e0db2889),
885 interface nsIDOMViewCSS : nsIDOMAbstractView
887 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
892 uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
896 interface nsIDOMDocument : nsIDOMNode
898 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
899 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
900 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
901 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
902 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
903 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
904 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
905 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
906 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
907 nsIDOMProcessingInstruction **_retval);
908 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
909 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
910 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
911 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
912 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
913 nsIDOMElement **_retval);
914 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
915 nsIDOMAttr **_retval);
916 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
917 nsIDOMNodeList **_retval);
918 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
923 uuid(09a439ad-4079-46d5-a050-4d7015d1a108),
927 interface nsIDOMNSDocument : nsISupports
929 nsresult GetCharacterSet(nsAString *aCharacterSet);
930 nsresult GetDir(nsAString *aDir);
931 nsresult SetDir(const nsAString *aDir);
932 nsresult GetLocation(nsIDOMLocation **aLocation);
933 nsresult GetTitle(nsAString *aTitle);
934 nsresult SetTitle(const nsAString *aTitle);
935 nsresult GetContentType(nsAString *aContentType);
936 nsresult GetReadyState(nsAString *aReadyState);
937 nsresult GetLastModified(nsAString *aLastModified);
938 nsresult GetReferrer(nsAString *aReferrer);
939 nsresult HasFocus(PRBool *_retval);
940 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
941 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
942 nsresult ElementFromPoint(PRInt32 x, PRInt32 y, nsIDOMElement **_retval);
944 /* Wine extensions */
945 nsresult WineAddObserver(nsIDocumentObserver *aObserver);
946 nsresult WineRemoveObserver(nsIDocumentObserver *aObserver);
947 nsresult WineAddScriptRunner(nsIRunnable *aRunnable);
952 uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
956 interface nsIDOMHTMLDocument : nsIDOMDocument
958 nsresult GetTitle(nsAString *aTitle);
959 nsresult SetTitle(const nsAString *aTitle);
960 nsresult GetReferrer(nsAString *aReferrer);
961 nsresult GetDomain(nsAString *aDomain);
962 nsresult GetURL(nsAString *aURL);
963 nsresult GetBody(nsIDOMHTMLElement **aBody);
964 nsresult SetBody(nsIDOMHTMLElement *aBody);
965 nsresult GetImages(nsIDOMHTMLCollection **aImages);
966 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
967 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
968 nsresult GetForms(nsIDOMHTMLCollection **aForms);
969 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
970 nsresult GetCookie(nsAString *aCookie);
971 nsresult SetCookie(const nsAString *aCookie);
974 nsresult Write(const nsAString *text);
975 nsresult Writeln(const nsAString *text);
976 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
981 uuid(79beb289-3644-4b54-9432-9fb993945629),
985 interface nsIDOMNSHTMLDocument : nsISupports
987 nsresult GetWidth(PRInt32 *aWidth);
988 nsresult GetHeight(PRInt32 *aHeight);
989 nsresult GetAlinkColor(nsAString *aAlinkColor);
990 nsresult SetAlinkColor(const nsAString *aAlinkColor);
991 nsresult GetLinkColor(nsAString *aLinkColor);
992 nsresult SetLinkColor(const nsAString *aLinkColor);
993 nsresult GetVlinkColor(nsAString *aVlinkColor);
994 nsresult SetVlinkColor(const nsAString *aVlinkColor);
995 nsresult GetBgColor(nsAString *aBgColor);
996 nsresult SetBgColor(const nsAString *aBgColor);
997 nsresult GetFgColor(nsAString *aFgColor);
998 nsresult SetFgColor(const nsAString *aFgColor);
999 nsresult GetDomain(nsAString *aDomain);
1000 nsresult SetDomain(const nsAString *aDomain);
1001 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
1002 nsresult GetSelection(nsAString *_retval);
1003 nsresult Open(nsACString *aContentType, PRBool aReplace, nsIDOMDocument **_retval);
1007 nsresult CaptureEvents(PRInt32 eventFlags);
1008 nsresult ReleaseEvents(PRInt32 eventFlags);
1009 nsresult RouteEvent(nsIDOMEvent *evt);
1010 nsresult GetCompatMode(nsAString *aCompatMode);
1011 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1012 nsresult GetDesignMode(nsAString *aDesignMode);
1013 nsresult SetDesignMode(const nsAString *aDesignMode);
1014 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
1015 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
1016 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
1017 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
1018 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
1019 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
1020 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
1021 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1026 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
1030 interface nsIDOMDocumentStyle : nsISupports
1032 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1037 uuid(1acdb2ba-1dd2-11b2-95bc-9542495d2569),
1041 interface nsIDOMDocumentView : nsISupports
1043 nsresult GetDefaultView(nsIDOMAbstractView **aDefaultView);
1048 uuid(46b91d66-28e2-11d4-ab1e-0010830123b4),
1052 interface nsIDOMDocumentEvent : nsISupports
1054 cpp_quote("#undef CreateEvent")
1055 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1060 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
1064 interface nsIDOMRange : nsISupports
1073 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1074 nsresult GetStartOffset(PRInt32 *aStartOffset);
1075 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1076 nsresult GetEndOffset(PRInt32 *aEndOffset);
1077 nsresult GetCollapsed(PRBool *aCollapsed);
1078 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1079 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1080 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1081 nsresult SetStartBefore(nsIDOMNode *refNode);
1082 nsresult SetStartAfter(nsIDOMNode *refNode);
1083 nsresult SetEndBefore(nsIDOMNode *refNode);
1084 nsresult SetEndAfter(nsIDOMNode *refNode);
1085 nsresult Collapse(PRBool toStart);
1086 nsresult SelectNode(nsIDOMNode *refNode);
1087 nsresult SelectNodeContents(nsIDOMNode *refNode);
1088 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1089 nsresult DeleteContents();
1090 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1091 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1092 nsresult InsertNode(nsIDOMNode *newNode);
1093 nsresult SurroundContents(nsIDOMNode *newParent);
1094 nsresult CloneRange(nsIDOMRange **_retval);
1095 nsresult ToString(nsAString *_retval);
1101 uuid(59188642-23b4-41d6-bde1-302c3906d1f0),
1105 interface nsIDOMNSRange : nsISupports
1107 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1108 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1109 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1115 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1119 interface nsIDOMDocumentRange : nsISupports
1121 nsresult CreateRange(nsIDOMRange **_retval);
1126 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1130 interface nsISelection : nsISupports
1132 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1133 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1134 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1135 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1136 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1137 nsresult GetRangeCount(PRInt32 *aRangeCount);
1138 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1139 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1140 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1141 nsresult CollapseToStart();
1142 nsresult CollapseToEnd();
1143 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1144 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1145 nsresult AddRange(nsIDOMRange *range);
1146 nsresult RemoveRange(nsIDOMRange *range);
1147 nsresult RemoveAllRanges();
1148 nsresult DeleteFromDocument();
1149 nsresult SelectionLanguageChange(PRBool langRTL);
1150 nsresult ToString(PRUnichar **_retval);
1155 uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1159 interface nsIDOMWindowCollection : nsISupports
1161 nsresult GetLength(PRUint32 *aLength);
1162 nsresult Item(PRUint32 index, nsIDOMWindow **_retval);
1163 nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1168 uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1172 interface nsIDOMWindow : nsISupports
1174 nsresult GetDocument(nsIDOMDocument **aDocument);
1175 nsresult GetParent(nsIDOMWindow **aParent);
1176 nsresult GetTop(nsIDOMWindow **aTop);
1177 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1178 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1179 nsresult GetName(nsAString *aName);
1180 nsresult SetName(const nsAString *aName);
1181 nsresult GetTextZoom(float *aTextZoom);
1182 nsresult SetTextZoom(float aTextZoom);
1183 nsresult GetScrollX(PRInt32 *aScrollX);
1184 nsresult GetScrollY(PRInt32 *aScrollY);
1185 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1186 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1187 nsresult GetSelection(nsISelection **_retval);
1188 nsresult ScrollByLines(PRInt32 numLines);
1189 nsresult ScrollByPages(PRInt32 numPages);
1190 nsresult SizeToContent();
1195 uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1199 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1201 nsresult GetALink(nsAString *aALink);
1202 nsresult SetALink(const nsAString *aALink);
1203 nsresult GetBackground(nsAString *aBackground);
1204 nsresult SetBackground(const nsAString *aBackground);
1205 nsresult GetBgColor(nsAString *aBgColor);
1206 nsresult SetBgColor(const nsAString *aBgColor);
1207 nsresult GetLink(nsAString *aLink);
1208 nsresult SetLink(const nsAString *aLink);
1209 nsresult GetText(nsAString *aText);
1210 nsresult SetText(const nsAString *aText);
1211 nsresult GetVLink(nsAString *aVLink);
1212 nsresult SetVLink(const nsAString *aVLink);
1217 uuid(a6cf9093-15b3-11d2-932e-00805f8add32),
1221 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1223 nsresult GetDefaultValue(nsAString *aDefaultValue);
1224 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1225 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1226 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1227 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1228 nsresult GetAccept(nsAString *aAccept);
1229 nsresult SetAccept(const nsAString *aAccept);
1230 nsresult GetAccessKey(nsAString *aAccessKey);
1231 nsresult SetAccessKey(const nsAString *aAccessKey);
1232 nsresult GetAlign(nsAString *aAlign);
1233 nsresult SetAlign(const nsAString *aAlign);
1234 nsresult GetAlt(nsAString *aAlt);
1235 nsresult SetAlt(const nsAString *aAlt);
1236 nsresult GetChecked(PRBool *aChecked);
1237 nsresult SetChecked(PRBool aChecked);
1238 nsresult GetDisabled(PRBool *aDisabled);
1239 nsresult SetDisabled(PRBool aDisabled);
1240 nsresult GetMaxLength(PRInt32 *aMaxLength);
1241 nsresult SetMaxLength(PRInt32 aMaxLength);
1242 nsresult GetName(nsAString *aName);
1243 nsresult SetName(const nsAString *aName);
1244 nsresult GetReadOnly(PRBool *aReadOnly);
1245 nsresult SetReadOnly(PRBool aReadOnly);
1246 nsresult GetSize(PRUint32 *aSize);
1247 nsresult SetSize(PRUint32 aSize);
1248 nsresult GetSrc(nsAString *aSrc);
1249 nsresult SetSrc(const nsAString *aSrc);
1250 nsresult GetTabIndex(PRInt32 *aTabIndex);
1251 nsresult SetTabIndex(PRInt32 aTabIndex);
1252 nsresult GetType(nsAString *aType);
1253 nsresult SetType(const nsAString *aType);
1254 nsresult GetUseMap(nsAString *aUseMap);
1255 nsresult SetUseMap(const nsAString *aUseMap);
1256 nsresult GetValue(nsAString *aValue);
1257 nsresult SetValue(const nsAString *aValue);
1266 uuid(a6cf9092-15b3-11d2-932e-00805f8add32),
1270 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1272 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1273 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1274 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1275 nsresult GetText(nsAString *aText);
1276 nsresult GetIndex(PRInt32 *aIndex);
1277 nsresult GetDisabled(PRBool *aDisabled);
1278 nsresult SetDisabled(PRBool aDisabled);
1279 nsresult GetLabel(nsAString *aLabel);
1280 nsresult SetLabel(const nsAString *aLabel);
1281 nsresult GetSelected(PRBool *aSelected);
1282 nsresult SetSelected(PRBool aSelected);
1283 nsresult GetValue(nsAString *aValue);
1284 nsresult SetValue(const nsAString *aValue);
1289 uuid(a6cf9090-15b3-11d2-932e-00805f8add32),
1293 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1295 nsresult GetType(nsAString *aType);
1296 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1297 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1298 nsresult GetValue(nsAString *aValue);
1299 nsresult SetValue(const nsAString *aValue);
1300 nsresult GetLength(PRUint32 *aLength);
1301 nsresult SetLength(PRUint32 aLength);
1302 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1303 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1304 nsresult GetDisabled(PRBool *aDisabled);
1305 nsresult SetDisabled(PRBool aDisabled);
1306 nsresult GetMultiple(PRBool *aMultiple);
1307 nsresult SetMultiple(PRBool aMultiple);
1308 nsresult GetName(nsAString *aName);
1309 nsresult SetName(const nsAString *aName);
1310 nsresult GetSize(PRInt32 *aSize);
1311 nsresult SetSize(PRInt32 aSize);
1312 nsresult GetTabIndex(PRInt32 *aTabIndex);
1313 nsresult SetTabIndex(PRInt32 aTabIndex);
1314 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1315 nsresult Remove(PRInt32 index);
1322 uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1326 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1328 nsresult GetDefaultValue(nsAString *aDefaultValue);
1329 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1330 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1331 nsresult GetAccessKey(nsAString *aAccessKey);
1332 nsresult SetAccessKey(const nsAString *aAccessKey);
1333 nsresult GetCols(PRInt32 *aCols);
1334 nsresult SetCols(PRInt32 aCols);
1335 nsresult GetDisabled(PRBool *aDisabled);
1336 nsresult SetDisabled(PRBool aDisabled);
1337 nsresult GetName(nsAString *aName);
1338 nsresult SetName(const nsAString *aName);
1339 nsresult GetReadOnly(PRBool *aReadOnly);
1340 nsresult SetReadOnly(PRBool aReadOnly);
1341 nsresult GetRows(PRInt32 *aRows);
1342 nsresult SetRows(PRInt32 aRows);
1343 nsresult GetTabIndex(PRInt32 *aTabIndex);
1344 nsresult SetTabIndex(PRInt32 aTabIndex);
1345 nsresult GetType(nsAString *aType);
1346 nsresult GetValue(nsAString *aValue);
1347 nsresult SetValue(const nsAString *aValue);
1355 uuid(a6cf90b1-15b3-11d2-932e-00805f8add32),
1359 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1361 nsresult GetText(nsAString *aText);
1362 nsresult SetText(const nsAString *aText);
1363 nsresult GetHtmlFor(nsAString *aHtmlFor);
1364 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1365 nsresult GetEvent(nsAString *aEvent);
1366 nsresult SetEvent(const nsAString *aEvent);
1367 nsresult GetCharset(nsAString *aCharset);
1368 nsresult SetCharset(const nsAString *aCharset);
1369 nsresult GetDefer(PRBool *aDefer);
1370 nsresult SetDefer(PRBool aDefer);
1371 nsresult GetSrc(nsAString *aSrc);
1372 nsresult SetSrc(const nsAString *aSrc);
1373 nsresult GetType(nsAString *aType);
1374 nsresult SetType(const nsAString *aType);
1379 uuid(a6cf90ab-15b3-11d2-932e-00805f8add32),
1383 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1385 nsresult GetName(nsAString *aName);
1386 nsresult SetName(const nsAString *aName);
1387 nsresult GetAlign(nsAString *aAlign);
1388 nsresult SetAlign(const nsAString *aAlign);
1389 nsresult GetAlt(nsAString *aAlt);
1390 nsresult SetAlt(const nsAString *aAlt);
1391 nsresult GetBorder(nsAString *aBorder);
1392 nsresult SetBorder(const nsAString *aBorder);
1393 nsresult GetHeight(PRInt32 *aHeight);
1394 nsresult SetHeight(PRInt32 aHeight);
1395 nsresult GetHspace(PRInt32 *aHspace);
1396 nsresult SetHspace(PRInt32 aHspace);
1397 nsresult GetIsMap(PRBool *aIsMap);
1398 nsresult SetIsMap(PRBool aIsMap);
1399 nsresult GetLongDesc(nsAString *aLongDesc);
1400 nsresult SetLongDesc(const nsAString *aLongDesc);
1401 nsresult GetSrc(nsAString *aSrc);
1402 nsresult SetSrc(const nsAString *aSrc);
1403 nsresult GetUseMap(nsAString *aUseMap);
1404 nsresult SetUseMap(const nsAString *aUseMap);
1405 nsresult GetVspace(PRInt32 *aVspace);
1406 nsresult SetVspace(PRInt32 aVspace);
1407 nsresult GetWidth(PRInt32 *aWidth);
1408 nsresult SetWidth(PRInt32 aWidth);
1413 uuid(a6cf90aa-15b3-11d2-932e-00805f8add32),
1417 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1419 nsresult GetAccessKey(nsAString *aAccessKey);
1420 nsresult SetAccessKey(const nsAString *aAccessKey);
1421 nsresult GetCharset(nsAString *aCharset);
1422 nsresult SetCharset(const nsAString *aCharset);
1423 nsresult GetCoords(nsAString *aCoords);
1424 nsresult SetCoords(const nsAString *aCoords);
1425 nsresult GetHref(nsAString *aHref);
1426 nsresult SetHref(const nsAString *aHref);
1427 nsresult GetHreflang(nsAString *aHreflang);
1428 nsresult SetHreflang(const nsAString *aHreflang);
1429 nsresult GetName(nsAString *aName);
1430 nsresult SetName(const nsAString *aName);
1431 nsresult GetRel(nsAString *aRel);
1432 nsresult SetRel(const nsAString *aRel);
1433 nsresult GetRev(nsAString *aRev);
1434 nsresult SetRev(const nsAString *aRev);
1435 nsresult GetShape(nsAString *aShape);
1436 nsresult SetShape(const nsAString *aShape);
1437 nsresult GetTabIndex(PRInt32 *aTabIndex);
1438 nsresult SetTabIndex(PRInt32 aTabIndex);
1439 nsresult GetTarget(nsAString *aTarget);
1440 nsresult SetTarget(const nsAString *aTarget);
1441 nsresult GetType(nsAString *aType);
1442 nsresult SetType(const nsAString *aType);
1449 uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
1453 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1455 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1456 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1457 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1458 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1459 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1460 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1461 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1462 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1463 nsresult GetAlign(nsAString *aAlign);
1464 nsresult SetAlign(const nsAString *aAlign);
1465 nsresult GetBgColor(nsAString *aBgColor);
1466 nsresult SetBgColor(const nsAString *aBgColor);
1467 nsresult GetBorder(nsAString *aBorder);
1468 nsresult SetBorder(const nsAString *aBorder);
1469 nsresult GetCellPadding(nsAString *aCellPadding);
1470 nsresult SetCellPadding(const nsAString *aCellPadding);
1471 nsresult GetCellSpacing(nsAString *aCellSpacing);
1472 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1473 nsresult GetFrame(nsAString *aFrame);
1474 nsresult SetFrame(const nsAString *aFrame);
1475 nsresult GetRules(nsAString *aRules);
1476 nsresult SetRules(const nsAString *aRules);
1477 nsresult GetSummary(nsAString *aSummary);
1478 nsresult SetSummary(const nsAString *aSummary);
1479 nsresult GetWidth(nsAString *aWidth);
1480 nsresult SetWidth(const nsAString *aWidth);
1481 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1482 nsresult DeleteTHead();
1483 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1484 nsresult DeleteTFoot();
1485 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1486 nsresult DeleteCaption();
1487 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1488 nsresult DeleteRow(PRInt32 index);
1493 uuid(a6cf90b6-15b3-11d2-932e-00805f8add32),
1497 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1499 nsresult GetRowIndex(PRInt32 *aRowIndex);
1500 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1501 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1502 nsresult GetAlign(nsAString *aAlign);
1503 nsresult SetAlign(const nsAString *aAlign);
1504 nsresult GetBgColor(nsAString *aBgColor);
1505 nsresult SetBgColor(const nsAString *aBgColor);
1506 nsresult GetCh(nsAString *aCh);
1507 nsresult SetCh(const nsAString *aCh);
1508 nsresult GetChOff(nsAString *aChOff);
1509 nsresult SetChOff(const nsAString *aChOff);
1510 nsresult GetVAlign(nsAString *aVAlign);
1511 nsresult SetVAlign(const nsAString *aVAlign);
1512 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1513 nsresult DeleteCell(PRInt32 index);
1518 uuid(a6cf90ba-15b3-11d2-932e-00805f8add32),
1522 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1524 nsresult GetAlign(nsAString *aAlign);
1525 nsresult SetAlign(const nsAString *aAlign);
1526 nsresult GetFrameBorder(nsAString *aFrameBorder);
1527 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1528 nsresult GetHeight(nsAString *aHeight);
1529 nsresult SetHeight(const nsAString *aHeight);
1530 nsresult GetLongDesc(nsAString *aLongDesc);
1531 nsresult SetLongDesc(const nsAString *aLongDesc);
1532 nsresult GetMarginHeight(nsAString *aMarginHeight);
1533 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1534 nsresult GetMarginWidth(nsAString *aMarginWidth);
1535 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1536 nsresult GetName(nsAString *aName);
1537 nsresult SetName(const nsAString *aName);
1538 nsresult GetScrolling(nsAString *aScrolling);
1539 nsresult SetScrolling(const nsAString *aScrolling);
1540 nsresult GetSrc(nsAString *aSrc);
1541 nsresult SetSrc(const nsAString *aSrc);
1542 nsresult GetWidth(nsAString *aWidth);
1543 nsresult SetWidth(const nsAString *aWidth);
1544 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1549 uuid(a6cf90b9-15b3-11d2-932e-00805f8add32),
1553 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
1555 nsresult GetFrameBorder(nsAString *aFrameBorder);
1556 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1557 nsresult GetLongDesc(nsAString *aLongDesc);
1558 nsresult SetLongDesc(const nsAString *aLongDesc);
1559 nsresult GetMarginHeight(nsAString *aMarginHeight);
1560 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1561 nsresult GetMarginWidth(nsAString *aMarginWidth);
1562 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1563 nsresult GetName(nsAString *aName);
1564 nsresult SetName(const nsAString *aName);
1565 nsresult GetNoResize(PRBool *aNoResize);
1566 nsresult SetNoResize(PRBool aNoResize);
1567 nsresult GetScrolling(nsAString *aScrolling);
1568 nsresult SetScrolling(const nsAString *aScrolling);
1569 nsresult GetSrc(nsAString *aSrc);
1570 nsresult SetSrc(const nsAString *aSrc);
1571 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1576 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1580 interface nsIURIContentListener : nsISupports
1582 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1583 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1584 nsIStreamListener **aContentHandler, PRBool *_retval);
1585 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1586 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1587 char **aDesiredContentType, PRBool *_retval);
1588 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1589 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1590 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1591 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1596 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1600 interface nsITooltipListener : nsISupports
1602 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1603 nsresult OnHideTooltip();
1608 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c),
1612 interface nsIWebBrowser : nsISupports
1614 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1615 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1616 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1617 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1618 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1619 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1620 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1623 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1624 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1628 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1632 interface nsIWebBrowserSetup : nsISupports
1634 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1637 typedef void* nativeWindow;
1641 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1645 interface nsIBaseWindow : nsISupports
1647 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1648 PRInt32 y, PRInt32 cx, PRInt32 cy);
1651 nsresult SetPosition(PRInt32 x, PRInt32 y);
1652 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1653 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1654 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1655 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1656 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1657 nsresult Repaint(PRBool force);
1658 nsresult GetParentWidget(nsIWidget **aParentWidget);
1659 nsresult SetParentWidget(nsIWidget *aParentWidget);
1660 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1661 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1662 nsresult GetVisibility(PRBool *aVisibility);
1663 nsresult SetVisibility(PRBool aVisibility);
1664 nsresult GetEnabled(PRBool *aEnabled);
1665 nsresult SetEnabled(PRBool aEnabled);
1666 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1667 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1668 nsresult GetMainWidget(nsIWidget **aMainWidget);
1669 nsresult SetFocus();
1670 nsresult GetTitle(PRUnichar **aTitle);
1671 nsresult SetTitle(const PRUnichar *aTitle);
1674 cpp_quote("#define LOAD_FLAGS_NONE 0")
1678 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1682 interface nsIWebNavigation : nsISupports
1684 nsresult GetCanGoBack(PRBool *aCanGoBack);
1685 nsresult GetCanGoForward(PRBool *aCanGoForward);
1687 nsresult GoForward();
1688 nsresult GotoIndex(PRInt32 index);
1689 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1690 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1691 nsresult Reload(PRUint32 aReloadFlags);
1692 nsresult Stop(PRUint32 aStopFlags);
1693 nsresult GetDocument(nsIDOMDocument **aDocument);
1694 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1695 nsresult GetReferringURI(nsIURI **aReferringURI);
1696 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1697 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1702 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
1706 interface nsIWebProgress : nsISupports
1708 nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
1709 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
1710 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
1711 nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
1716 uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1720 interface nsIPrintSettings : nsISupports
1722 typedef struct { char dummy; } nsIntMargin;
1724 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1725 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1726 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1727 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1728 nsresult Clone(nsIPrintSettings **_retval);
1729 nsresult Assign(nsIPrintSettings *aPS);
1730 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1731 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1732 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1733 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1734 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1735 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1736 nsresult GetEdgeTop(double *aEdgeTop);
1737 nsresult SetEdgeTop(double aEdgeTop);
1738 nsresult GetEdgeLeft(double *aEdgeLeft);
1739 nsresult SetEdgeLeft(double aEdgeLeft);
1740 nsresult GetEdgeBottom(double *aEdgeBottom);
1741 nsresult SetEdgeBottom(double aEdgeBottom);
1742 nsresult GetEdgeRight(double *aEdgeRight);
1743 nsresult SetEdgeRight(double aEdgeRight);
1744 nsresult GetMarginTop(double *aMarginTop);
1745 nsresult SetMarginTop(double aMarginTop);
1746 nsresult GetMarginLeft(double *aMarginLeft);
1747 nsresult SetMarginLeft(double aMarginLeft);
1748 nsresult GetMarginBottom(double *aMarginBottom);
1749 nsresult SetMarginBottom(double aMarginBottom);
1750 nsresult GetMarginRight(double *aMarginRight);
1751 nsresult SetMarginRight(double aMarginRight);
1752 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1753 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1754 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1755 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1756 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1757 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1758 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1759 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1760 nsresult GetScaling(double *aScaling);
1761 nsresult SetScaling(double aScaling);
1762 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1763 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1764 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1765 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1766 nsresult GetPrintRange(PRInt16 *aPrintRange);
1767 nsresult SetPrintRange(PRInt16 aPrintRange);
1768 nsresult GetTitle(PRUnichar **aTitle);
1769 nsresult SetTitle(const PRUnichar *aTitle);
1770 nsresult GetDocURL(PRUnichar **aDocURL);
1771 nsresult SetDocURL(const PRUnichar *aDocURL);
1772 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1773 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1774 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1775 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1776 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1777 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1778 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1779 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1780 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1781 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1782 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1783 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1784 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1785 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1786 nsresult GetIsCancelled(PRBool *aIsCancelled);
1787 nsresult SetIsCancelled(PRBool aIsCancelled);
1788 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1789 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1790 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1791 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1792 nsresult GetPrintSilent(PRBool *aPrintSilent);
1793 nsresult SetPrintSilent(PRBool aPrintSilent);
1794 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1795 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1796 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1797 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1798 nsresult GetPaperName(PRUnichar **aPaperName);
1799 nsresult SetPaperName(const PRUnichar *aPaperName);
1800 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1801 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1802 nsresult GetPaperData(PRInt16 *aPaperData);
1803 nsresult SetPaperData(PRInt16 aPaperData);
1804 nsresult GetPaperWidth(double *aPaperWidth);
1805 nsresult SetPaperWidth(double aPaperWidth);
1806 nsresult GetPaperHeight(double *aPaperHeight);
1807 nsresult SetPaperHeight(double aPaperHeight);
1808 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1809 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1810 nsresult GetPlexName(PRUnichar **aPlexName);
1811 nsresult SetPlexName(const PRUnichar *aPlexName);
1812 nsresult GetColorspace(PRUnichar **aColorspace);
1813 nsresult SetColorspace(const PRUnichar *aColorspace);
1814 nsresult GetResolutionName(PRUnichar **aResolutionName);
1815 nsresult SetResolutionName(const PRUnichar aResolutionName);
1816 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1817 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1818 nsresult GetPrintReversed(PRBool *aPrintReversed);
1819 nsresult SetPrintReversed(PRBool aPrintReversed);
1820 nsresult GetPrintInColor(PRBool *aPrintInColor);
1821 nsresult SetPrintInColor(PRBool aPrintInColor);
1822 nsresult GetOrientation(PRInt32 *aOrientation);
1823 nsresult SetOrientation(PRInt32 aOrientation);
1824 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1825 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1826 nsresult GetNumCopies(PRInt32 *aNumCopies);
1827 nsresult SetNumCopies(PRInt32 aNumCopies);
1828 nsresult GetPrinterName(PRUnichar **aPrinterName);
1829 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1830 nsresult GetPrintToFile(PRBool *aPrintToFile);
1831 nsresult SetPrintToFile(PRBool aPrintToFile);
1832 nsresult GetToFileName(PRUnichar **aToFileName);
1833 nsresult SetToFileName(const PRUnichar *aToFileName);
1834 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1835 nsresult SetOutputFormat(PRInt16 aOutputFormat);
1836 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1837 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1838 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1839 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1840 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1841 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1842 nsresult SetMarginInTwips(nsIntMargin *aMargin);
1843 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
1844 nsresult GetMarginInTwips(nsIntMargin *aMargin);
1845 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
1846 nsresult SetupSilentPrinting();
1847 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1848 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1853 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1857 interface nsIWebBrowserPrint : nsISupports
1859 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1860 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1861 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1862 nsresult GetDoingPrint(PRBool *aDoingPrint);
1863 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1864 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1865 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1866 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1867 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1868 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1869 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1870 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1871 nsIWebProgressListener *aWPListener);
1872 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1874 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1875 nsresult ExitPrintPreview();
1880 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1884 interface nsIScrollable : nsISupports
1887 ScrollOrientation_X = 1,
1888 ScrollOrientation_Y = 2
1893 Scrollbar_Never = 2,
1894 Scrollbar_Always = 3
1897 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1898 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1899 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1900 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1901 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1902 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1903 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1904 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1905 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1906 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1911 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1915 interface nsIFile : nsISupports
1917 nsresult Append(const nsAString *node);
1918 nsresult AppendNative(const nsAString *node);
1919 nsresult Normalize();
1920 nsresult Create(PRUint32 type, PRUint32 permission);
1921 nsresult GetLeafName(nsAString *aLeafName);
1922 nsresult SetLeafName(const nsAString *aLeafName);
1923 nsresult GetNativeLeafName(nsAString *aLeafName);
1924 nsresult SetNativeLeafName(const nsAString *aLeafName);
1925 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1926 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1927 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1928 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1929 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1930 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1931 nsresult Remove(PRBool recursive);
1932 nsresult GetPermissions(PRUint32 *aPermissions);
1933 nsresult SetPermissions(PRUint32 pPermissions);
1934 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1935 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1936 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1937 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1938 nsresult GetFileSize(PRInt64 *aFileSize);
1939 nsresult SetFileSize(PRInt64 aFileSize);
1940 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1941 nsresult GetTarget(nsAString *aTarget);
1942 nsresult GetNativeTarget(nsACString *aNativeTarget);
1943 nsresult GetPath(nsAString *aPath);
1944 nsresult GetNativePath(nsACString *aNativePath);
1945 nsresult Exists(PRBool *_retval);
1946 nsresult IsWritable(PRBool *_retval);
1947 nsresult IsReadable(PRBool *_retval);
1948 nsresult IsExecutable(PRBool *_retval);
1949 nsresult IsHidden(PRBool *_retval);
1950 nsresult IsDirectory(PRBool *_retval);
1951 nsresult IsFile(PRBool *_retval);
1952 nsresult IsSymlink(PRBool *_retval);
1953 nsresult IsSpecial(PRBool *_retval);
1954 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1955 nsresult Clone(nsIFile **_retval);
1956 nsresult Equals(nsIFile *inFile, PRBool *_retval);
1957 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1958 nsresult GetParent(nsIFile **aParent);
1959 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1964 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
1968 interface nsIPrefBranch : nsISupports
1970 nsresult GetRoot(char **aRoot);
1971 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
1972 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
1973 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
1974 nsresult GetCharPref(const char *aPrefName, char **_retval);
1975 nsresult SetCharPref(const char *aPrefName, const char *aValue);
1976 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
1977 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
1978 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
1979 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
1980 nsresult ClearUserPref(const char *aPrefName);
1981 nsresult LockPref(const char *aPrefName);
1982 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
1983 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
1984 nsresult UnlockPref(const char *aPrefName);
1985 nsresult DeleteBranch(const char *aStartingAt);
1986 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
1987 nsresult ResetBranch(const char *aStartingAt);
1992 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
1996 interface nsIProtocolHandler : nsISupports
1998 nsresult GetScheme(nsACString *aScheme);
1999 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2000 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2001 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2002 nsIURI *aBaseURI, nsIURI **_retval);
2003 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2004 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
2009 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2013 interface nsIExternalProtocolHandler : nsIProtocolHandler
2015 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
2020 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2024 interface nsIIOService : nsISupports
2026 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2027 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2028 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2030 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2031 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2032 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2033 nsIChannel **_retval);
2034 nsresult GetOffline(PRBool *aOffline);
2035 nsresult SetOffline(PRBool aOffline);
2036 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
2037 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
2042 uuid(a50d5516-5c0a-4f08-b427-703ca0c44ac3),
2046 interface nsINetUtil : nsISupports
2048 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2049 PRBool *aHadCharset, nsACString *_retval);
2050 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
2051 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
2052 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2053 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2054 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2055 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2056 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2057 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
2062 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2066 interface nsIWebBrowserFocus : nsISupports
2068 nsresult Activate();
2069 nsresult Deactivate();
2070 nsresult SetFocusAtFirstElement();
2071 nsresult SetFocusAtLastElement();
2072 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2073 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2074 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2075 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2080 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2084 interface nsIWebBrowserChrome : nsISupports
2086 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2087 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2088 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2089 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2090 nsresult SetChromeFlags(PRUint32 aChromeFlags);
2091 nsresult DestroyBrowserWindow();
2092 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2093 nsresult ShowAsModal();
2094 nsresult IsWindowModal(PRBool *_retval);
2095 nsresult ExitModalEventLoop(nsresult aStatus);
2100 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2104 interface nsIDOMEventListener : nsISupports
2106 nsresult HandleEvent(nsIDOMEvent *event);
2111 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
2115 interface nsIDOMEventTarget : nsISupports
2117 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2118 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2119 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
2124 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
2128 interface nsIDOMEvent : nsISupports
2130 nsresult GetType(nsAString *aType);
2131 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2132 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2133 nsresult GetEventPhase(PRUint16 *aEventPhase);
2134 nsresult GetBubbles(PRBool *aBubbles);
2135 nsresult GetCancelable(PRBool *aCancelable);
2136 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2137 nsresult StopPropagation();
2138 nsresult PreventDefault();
2139 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
2142 cpp_quote("#define CONTEXT_NONE 0x00")
2143 cpp_quote("#define CONTEXT_LINK 0x01")
2144 cpp_quote("#define CONTEXT_IMAGE 0x02")
2145 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2146 cpp_quote("#define CONTEXT_TEXT 0x08")
2147 cpp_quote("#define CONTEXT_INPUT 0x10")
2148 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2152 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2156 interface nsIContextMenuListener : nsISupports
2158 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2163 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
2167 interface nsIDOMUIEvent : nsIDOMEvent
2169 nsresult GetView(nsIDOMAbstractView **aView);
2170 nsresult GetDetail(PRInt32 *aDetail);
2171 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2172 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2177 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2181 interface nsIDOMMouseEvent : nsIDOMUIEvent
2183 nsresult GetScreenX(PRInt32 *aScreenX);
2184 nsresult GetScreenY(PRInt32 *aScreenY);
2185 nsresult GetClientX(PRInt32 *aClientX);
2186 nsresult GetClientY(PRInt32 *aClientY);
2187 nsresult GetCtrlKey(PRBool *aCtrlKey);
2188 nsresult GetShiftKey(PRBool *aShiftKey);
2189 nsresult GetAltKey(PRBool *aAltKey);
2190 nsresult GetMetaKey(PRBool *aMetaKey);
2191 nsresult GetButton(PRUint16 *aButton);
2192 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
2193 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2194 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2195 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2196 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2197 nsIDOMEventTarget *relatedTargetArg);
2202 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2206 interface nsIDOMKeyEvent : nsIDOMUIEvent
2208 nsresult GetCharCode(PRUint32 *aCharCode);
2209 nsresult GetKeyCode(PRUint32 *aKeyCode);
2210 nsresult GetAltKey(PRBool *aAltKey);
2211 nsresult GetCtrlKey(PRBool *aCtrlKey);
2212 nsresult GetShiftKey(PRBool *aShiftKey);
2213 nsresult GetMetaKey(PRBool *aMetaKey);
2214 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2215 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2216 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2217 PRUint32 charCodeArg);
2222 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2226 interface nsIEmbeddingSiteWindow : nsISupports
2228 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2229 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2230 nsresult SetFocus();
2231 nsresult GetVisibility(PRBool *aVisibility);
2232 nsresult SetVisibility(PRBool aVisibility);
2233 nsresult GetTitle(PRUnichar **aTitle);
2234 nsresult SetTitle(const PRUnichar *aTitle);
2235 nsresult GetSiteWindow(void **aSiteWindow);
2240 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2244 interface nsIComponentRegistrar : nsISupports
2246 nsresult AutoRegister(nsIFile *aSpec);
2247 nsresult AutoUnregister(nsIFile *aSpec);
2248 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2249 const char *aContractID, nsIFactory *aFactory);
2250 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2251 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2252 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2254 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2255 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2256 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2257 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2258 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2259 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2260 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2265 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2269 interface nsIPromptService : nsISupports
2271 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2272 const PRUnichar *aText);
2273 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2274 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2275 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2276 const PRUnichar *aText, PRBool *_retval);
2277 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2278 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2280 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2281 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2282 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2283 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2284 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2285 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2286 PRBool *aCheckState, PRBool *_retval);
2287 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2288 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2289 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2290 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2291 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2292 PRBool *aCheckState, PRBool *_retval);
2293 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2294 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2295 PRInt32 *aOutSelection, PRBool *_retval);
2300 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2304 interface nsITooltipTextProvider : nsISupports
2306 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2311 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2315 interface nsIProfile : nsISupports
2317 nsresult GetProfileCount(PRInt32 *aProfileCount);
2318 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2319 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2320 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
2321 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2322 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2323 nsresult CreateNewProfile(const PRUnichar *profileName,
2324 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2325 PRBool useExistingDir);
2326 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2327 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2328 nsresult CloneProfile(const PRUnichar *profileName);
2333 uuid(30465632-a777-44cc-90f9-8145475ef999),
2337 interface nsIWindowCreator : nsISupports
2339 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2340 nsIWebBrowserChrome **_retval);
2345 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2349 interface nsIWindowCreator2 : nsIWindowCreator
2351 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2352 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2353 nsIWebBrowserChrome **_retval);
2358 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2362 interface nsIWindowWatcher : nsISupports
2364 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2365 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2366 nsresult RegisterNotification(nsIObserver *aObserver);
2367 nsresult UnregisterNotification(nsIObserver *aObserver);
2368 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2369 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2370 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2371 nsresult SetWindowCreator(nsIWindowCreator *creator);
2372 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2373 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2374 nsIDOMWindow **_retval);
2375 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2376 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2381 uuid(274cd32e-3675-47e1-9d8a-fc6504ded9ce),
2385 interface nsIEditingSession : nsISupports
2387 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2388 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2389 PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2390 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2391 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2392 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2393 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2394 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2395 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2396 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2397 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2398 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2403 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2407 interface nsICommandParams : nsISupports
2409 nsresult GetValueType(const char *name, PRInt16 *_retval);
2410 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2411 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2412 nsresult GetDoubleValue(const char *name, double *_retval);
2413 nsresult GetStringValue(const char *name, nsAString *_retval);
2414 nsresult GetCStringValue(const char *name, char **_retval);
2415 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2416 nsresult SetBooleanValue(const char *name, PRBool value);
2417 nsresult SetLongValue(const char *name, PRInt32 value);
2418 nsresult SetDoubleValue(const char *name, double value);
2419 nsresult SetStringValue(const char *name, const nsAString *value);
2420 nsresult SetCStringValue(const char *name, const char *value);
2421 nsresult SetISupportsValue(const char *name, nsISupports *value);
2422 nsresult RemoveValue(const char *name);
2423 nsresult HasMoreElements(PRBool *_retval);
2425 nsresult GetNext(char **_retval);
2430 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2434 interface nsICommandManager : nsISupports
2436 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2437 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2438 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2439 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2440 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2441 nsICommandParams *aCommandParams);
2442 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2443 nsIDOMWindow *aTargetWindow);
2448 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2452 interface nsIControllerContext : nsISupports
2454 nsresult Init(nsIControllerCommandTable *aCommandTable);
2455 nsresult SetCommandContext(nsISupports *aCommandContext);
2460 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2464 interface nsIController : nsISupports
2466 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2467 nsresult SupportsCommand(const char *command, PRBool *_retval);
2468 nsresult DoCommand(const char *command);
2469 nsresult OnEvent(const char *eventName);
2474 uuid(34769de0-30d0-4cef-894a-fcd8bb27c4b4),
2478 interface nsIContentSerializer : nsISupports
2480 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2481 PRBool aIsWholeDocument);
2482 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2483 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
2484 PRInt32 aEndOffset, nsAString *aStr);
2485 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
2486 PRInt32 aEndOffset, nsAString *aStr);
2487 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2489 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
2490 nsresult AppendElementStart(nsIDOMElement *aElement, nsIDOMElement *aOriginalElement,
2492 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
2493 nsresult Flush(nsAString *aStr);
2494 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
2499 uuid(96b60ba0-634a-41e4-928e-78ab0b3c4b46),
2503 interface nsIEditor : nsISupports
2505 typedef void *nsIPresShellPtr;
2506 typedef void *nsIContentPtr;
2508 nsresult GetSelection([out] nsISelection *_retval);
2509 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2510 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2511 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2512 nsresult PostCreate();
2513 nsresult PreDestroy();
2514 nsresult GetFlags([out] PRUint32 *_retval);
2515 nsresult SetFlags([in] PRUint32 val);
2516 nsresult GetContentsMIMEType([out] char **_retval);
2517 nsresult SetContentsMIMEType([in] const char *val);
2518 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2519 nsresult GetDocument([out] nsIDOMDocument **_retval);
2520 nsresult GetRootElement([out] nsIDOMElement **_retval);
2521 nsresult GetSelectionController([out] nsISelectionController **_retval);
2522 nsresult DeleteSelection([in] PRInt16 action);
2523 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2524 nsresult GetDocumentModified([out] PRBool *_retval);
2525 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2526 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2527 nsresult ResetModificationCount();
2528 nsresult GetModificationCount([out] PRInt32 *_retval);
2529 nsresult IncrementModificationCount([in] PRInt32 aModCount);
2530 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2531 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2532 nsresult DoTransaction([in] nsITransaction *txn);
2533 nsresult EnableUndo([in] PRBool enable);
2534 nsresult Undo([in] PRUint32 count);
2535 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2536 nsresult Redo([in] PRUint32 count);
2537 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2538 nsresult BeginTransaction();
2539 nsresult EndTransaction();
2540 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2541 nsresult EndPlaceHolderTransaction();
2542 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2543 nsresult SetShouldTxnSetSelection([in] PRBool should);
2544 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2545 nsresult SyncRealTimeSpell();
2546 nsresult SetSpellcheckUserOverride(PRBool enable);
2548 nsresult CanCut([out] PRBool *_retval);
2550 nsresult CanCopy([out] PRBool *_retval);
2551 nsresult Paste([in] PRInt32 aSelectionType);
2552 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2553 nsresult SelectAll();
2554 nsresult BeginningOfDocument();
2555 nsresult EndOfDocument();
2556 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2557 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2558 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2559 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2560 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2561 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2562 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2563 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2564 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2565 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2566 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2567 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2568 nsresult DeleteNode([in] nsIDOMNode *child);
2569 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2570 nsresult SwitchTextDirection();
2571 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2572 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2573 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2574 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2575 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2576 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2577 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2578 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2579 nsresult DumpContentTree();
2580 nsresult DebugDumpContent();
2581 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2582 PRBool IsModifiableNode(nsIDOMNode *aNode);
2587 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2591 interface nsIHTMLEditor : nsISupports
2593 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2594 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2595 nsresult RemoveAllDefaultProperties();
2596 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2597 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2598 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2599 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2600 nsresult RemoveAllInlineProperties();
2601 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2602 nsresult IncreaseFontSize();
2603 nsresult DecreaseFontSize();
2604 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2605 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2606 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2607 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2608 nsresult InsertHTML([in] nsAString *aInputString);
2609 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2610 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2611 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);
2612 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2613 nsresult SetDocumentTitle([in] nsAString *aTitle);
2614 nsresult UpdateBaseURL();
2615 nsresult SelectElement([in] nsIDOMElement *aElement);
2616 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2617 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2618 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2619 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2620 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2621 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2622 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2623 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2624 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2625 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2626 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2627 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2628 nsresult RemoveList([in] nsAString *aListType);
2629 nsresult Indent([in] nsAString *aIndent);
2630 nsresult Align([in] nsAString *aAlign);
2631 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2632 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2633 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2634 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2635 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2636 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2637 nsresult SetBackgroundColor([in] nsAString *aColor);
2638 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2639 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2640 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2641 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2642 nsresult SetIsCSSEnabled([in] PRBool prb);
2643 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2644 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2645 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2646 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2647 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2648 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2649 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2650 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2655 uuid(365d600b-868a-452a-8de8-f46fad8fee53),
2659 interface nsIMutationObserver : nsISupports
2661 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2662 void /*CharacterDataChangeInfo*/ *aInfo);
2663 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2664 void /*CharacterDataChangeInfo*/ *aInfo);
2665 void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2666 nsIAtom *aAttribute, PRInt32 aModType);
2667 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2668 nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask);
2669 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer);
2670 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2671 PRInt32 aIndexInContainer);
2672 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2673 PRInt32 aIndexInContainer);
2674 void NodeWillBeDestroyed(const nsINode *aNode);
2675 void ParentChainChanged(nsIContent *aContent);
2680 uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2684 interface nsIDocumentObserver : nsIMutationObserver
2686 typedef int nsUpdateType;
2688 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2689 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2690 void BeginLoad(nsIDocument *aDocument);
2691 void EndLoad(nsIDocument *aDocument);
2692 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2693 PRInt32 aStateMask);
2694 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2695 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2696 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2697 PRBool aApplicable);
2698 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2699 nsIStyleRule *aNewStyleRule);
2700 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2701 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2702 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2703 void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified);
2708 * This is a private Wine interface that is implemented by our implementation
2709 * of nsIURI to store its owner.
2713 uuid(5088272e-900b-11da-c687-000fea57f21a),
2717 interface nsIWineURI : nsIURL
2719 typedef struct NSContainer NSContainer;
2720 typedef struct HTMLWindow HTMLWindow;
2722 nsresult GetNSContainer(NSContainer **aNSContainer);
2723 nsresult SetNSContainer(NSContainer *aNSContainer);
2724 nsresult GetWindow(HTMLWindow **aHTMLWindow);
2725 nsresult SetWindow(HTMLWindow *aHTMLWindow);
2726 nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
2727 nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
2728 nsresult GetWineURL(LPCWSTR *aURL);
2729 nsresult SetWineURL(LPCWSTR aURL);