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.1.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 WCHAR PRUnichar;
46 typedef ULONG PRUint32;
48 typedef WORD PRUint16;
49 typedef INT16 PRInt16;
52 typedef LONGLONG PRInt64;
53 typedef ULONGLONG PRUint64;
54 typedef PRUint64 DOMTimeStamp;
55 typedef PRUint32 nsLoadFlags;
71 typedef nsCStringContainer nsACString;
72 typedef nsStringContainer nsAString;
74 interface nsIWebBrowserChrome;
75 interface nsILoadGroup;
77 interface nsIDOMDocument;
78 interface nsIDOMEvent;
80 interface nsISelectionController;
81 interface nsITransactionManager;
82 interface nsITransaction;
83 interface nsIInlineSpellChecker;
84 interface nsIOutputStream;
85 interface nsIEditorObserver;
86 interface nsIEditActionListener;
87 interface nsIDocumentStateListener;
88 interface nsIDOMCSSStyleSheet;
89 interface nsIDOMDocumentView;
90 interface nsIDocumentObserver;
91 interface nsIDOMWindow;
97 uuid(00000000-0000-0000-c000-000000000046),
100 interface nsISupports
102 nsresult QueryInterface(nsIIDRef riid, void **result);
107 /* Currently we don't need a full declaration of these interfaces */
108 typedef nsISupports nsISHistory;
109 typedef nsISupports nsIWidget;
110 typedef nsISupports nsIHttpHeaderVisitor;
111 typedef nsISupports nsIDOMBarProp;
112 typedef nsISupports nsIPrompt;
113 typedef nsISupports nsIAuthPrompt;
114 typedef nsISupports nsIDOMNamedNodeMap;
115 typedef nsISupports nsIDOMAttr;
116 typedef nsISupports nsIDOMDocumentType;
117 typedef nsISupports nsIDOMDOMImplementation;
118 typedef nsISupports nsIDOMCDATASection;
119 typedef nsISupports nsIDOMProcessingInstruction;
120 typedef nsISupports nsIDOMEntityReference;
121 typedef nsISupports nsIWebProgressListener;
122 typedef nsISupports nsIDOMCSSValue;
123 typedef nsISupports nsIPrintSession;
124 typedef nsISupports nsIControllerCommandTable;
125 typedef nsISupports nsIPrincipal;
126 typedef nsISupports nsIAtom;
127 typedef nsISupports nsISupportsArray;
128 typedef nsISupports nsIContentFilter;
129 typedef nsISupports nsIDOMMediaList;
130 typedef nsISupports nsIDOMHTMLTableCaptionElement;
131 typedef nsISupports nsIDOMHTMLTableSectionElement;
132 typedef nsISupports nsIDOMClientRectList;
133 typedef nsISupports nsIDOMLocation;
134 typedef nsISupports nsINode;
135 typedef nsISupports nsIStyleSheet;
136 typedef nsISupports nsIStyleRule;
137 typedef nsISupports nsIVariant;
138 typedef nsISupports nsIDOMUserDataHandler;
139 typedef nsISupports nsIDocShellLoadInfo;
140 typedef nsISupports nsISHEntry;
141 typedef nsISupports nsIPresShell;
142 typedef nsISupports nsIContentViewer;
143 typedef nsISupports nsIDocumentCharsetInfo;
144 typedef nsISupports nsILayoutHistoryState;
145 typedef nsISupports nsISecureBrowserUI;
146 typedef nsISupports nsIDOMStorage;
147 typedef nsISupports nsIDOMDOMTokenList;
148 typedef nsISupports nsITransferable;
149 typedef nsISupports nsIDOMHTMLHeadElement;
150 typedef nsISupports nsIDOMFileList;
151 typedef nsISupports nsIControllers;
155 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
158 interface nsIServiceManager : nsISupports
160 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
161 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
162 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
163 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
168 uuid(00000001-0000-0000-c000-000000000046),
171 interface nsIFactory : nsISupports
173 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
174 nsresult LockFactory(PRBool lock);
179 uuid(db242e01-e4d9-11d2-9dde-000064657374),
182 interface nsIObserver : nsISupports
184 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
189 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
192 interface nsIComponentManager : nsISupports
194 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, void **result);
195 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, void **result);
196 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
198 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
199 nsIIDRef aIID, void **result);
204 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
207 interface nsIMemory : nsISupports
209 void *Alloc(/*size_t*/ int size);
210 void *Realloc(void *_ptr, /*size_t*/ int newSize);
211 void Free(void *_ptr);
212 nsresult HeapMinimize(PRBool immediate);
213 nsresult IsLowMemory(PRBool *_retval);
218 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
221 interface nsIWeakReference : nsISupports
223 nsresult QueryReferent(const nsIID *riid, void **result);
228 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
231 interface nsISupportsWeakReference : nsISupports
233 nsresult GetWeakReference(nsIWeakReference **_retval);
238 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
241 interface nsIInterfaceRequestor : nsISupports
243 nsresult GetInterface(const nsIID *riid, void **result);
248 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
251 interface nsIRunnable : nsISupports
258 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
261 interface nsISimpleEnumerator : nsISupports
263 nsresult HasMoreElements(PRBool *_retval);
264 nsresult GetNext(nsISupports **_retval);
269 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
272 interface nsIInputStream : nsISupports
275 nsresult Available(PRUint32 *_retval);
276 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
277 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
278 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
279 PRUint32 aCount, PRUint32 *aWriteCount),
280 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
281 nsresult IsNonBlocking(PRBool *_retval);
286 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
289 interface nsIURI : nsISupports
291 nsresult GetSpec(nsACString *aSpec);
292 nsresult SetSpec(const nsACString *aSpec);
293 nsresult GetPrePath(nsACString *aPrePath);
294 nsresult GetScheme(nsACString *aScheme);
295 nsresult SetScheme(const nsACString *aScheme);
296 nsresult GetUserPass(nsACString *aUserPass);
297 nsresult SetUserPass(const nsACString *aUserPass);
298 nsresult GetUsername(nsACString *aUsername);
299 nsresult SetUsername(const nsACString *aUsername);
300 nsresult GetPassword(nsACString *aPassword);
301 nsresult SetPassword(const nsACString *aPassword);
302 nsresult GetHostPort(nsACString *aHostPort);
303 nsresult SetHostPort(const nsACString *aHostPort);
304 nsresult GetHost(nsACString *aHost);
305 nsresult SetHost(const nsACString *aHost);
306 nsresult GetPort(PRInt32 *aPort);
307 nsresult SetPort(PRInt32 aPort);
308 nsresult GetPath(nsACString *aPath);
309 nsresult SetPath(const nsACString *aPath);
310 nsresult Equals(nsIURI *other, PRBool *_retval);
311 nsresult SchemeIs(const char *scheme, PRBool *_retval);
312 nsresult Clone(nsIURI **_retval);
313 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
314 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
315 nsresult GetAsciiHost(nsACString *aAsciiHost);
316 nsresult GetOriginCharset(nsACString *aOriginCharset);
321 uuid(d6116970-8034-11d3-9399-00104ba0fd40),
324 interface nsIURL : nsIURI
326 nsresult GetFilePath(nsACString *aFilePath);
327 nsresult SetFilePath(const nsACString *aFilePath);
328 nsresult GetParam(nsACString *aParam);
329 nsresult SetParam(const nsACString *aParam);
330 nsresult GetQuery(nsACString *aQuery);
331 nsresult SetQuery(const nsACString *aQuery);
332 nsresult GetRef(nsACString *aRef);
333 nsresult SetRef(const nsACString *aRef);
334 nsresult GetDirectory(nsACString *aDirectory);
335 nsresult SetDirectory(const nsACString *aDirectory);
336 nsresult GetFileName(nsACString *aFileName);
337 nsresult SetFileName(const nsACString *aFileName);
338 nsresult GetFileBaseName(nsACString *aFileBaseName);
339 nsresult SetFileBaseName(const nsACString *aFileBaseName);
340 nsresult GetFileExtension(nsACString *aFileExtension);
341 nsresult SetFileExtension(const nsACString *aFileExtension);
342 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
343 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
348 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
351 interface nsIRequest : nsISupports
353 nsresult GetName(nsACString *aName);
354 nsresult IsPending(PRBool *_retval);
355 nsresult GetStatus(nsresult *aStatus);
356 nsresult Cancel(nsresult aStatus);
359 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
360 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
361 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
362 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
367 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
370 interface nsIRequestObserver : nsISupports
372 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
373 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
378 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
381 interface nsIStreamListener : nsIRequestObserver
383 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
384 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
389 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
392 interface nsILoadGroup : nsIRequest
394 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
395 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
396 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
397 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
398 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
399 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
400 nsresult GetRequests(nsISimpleEnumerator **aRequests);
401 nsresult GetActiveCount(PRUint32 *aActiveCount);
402 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
403 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
408 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
411 interface nsIChannel : nsIRequest
413 nsresult GetOriginalURI(nsIURI **aOriginalURI);
414 nsresult SetOriginalURI(nsIURI *aOriginalURI);
415 nsresult GetURI(nsIURI **aURI);
416 nsresult GetOwner(nsISupports **aOwner);
417 nsresult SetOwner(nsISupports *aOwner);
418 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
419 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
420 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
421 nsresult GetContentType(nsACString *aContentType);
422 nsresult SetContentType(const nsACString *aContentType);
423 nsresult GetContentCharset(nsACString *aContentCharset);
424 nsresult SetContentCharset(const nsACString *aContentCharset);
425 nsresult GetContentLength(PRInt32 *aContentLength);
426 nsresult SetContentLength(PRInt32 aContentLength);
427 nsresult Open(nsIInputStream **_retval);
428 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
433 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
436 interface nsIHttpChannel : nsIChannel
438 nsresult GetRequestMethod(nsACString *aRequestMethod);
439 nsresult SetRequestMethod(const nsACString *aRequestMethod);
440 nsresult GetReferrer(nsIURI **aReferrer);
441 nsresult SetReferrer(nsIURI *aReferrer);
442 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
443 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
444 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
445 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
446 nsresult SetAllowPipelining(PRBool aAllowPipelining);
447 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
448 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
449 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
450 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
451 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
452 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
453 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
454 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
455 nsresult IsNoStoreResponse(PRBool *_retval);
456 nsresult IsNoCacheResponse(PRBool *_retval);
461 uuid(91dbb42a-dffc-4f47-8b27-9579c0d92c3f),
464 interface nsIHttpChannelInternal : nsISupports
466 nsresult GetDocumentURI(nsIURI **aDocumentURI);
467 nsresult SetDocumentURI(nsIURI *aDocumentURI);
468 nsresult GetRequestVersion(PRUint32 *major, PRUint32 *minor);
469 nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
470 nsresult SetCookie(const char *aCookieHeader);
471 nsresult SetupFallbackChannel(const char *aFallbackKey);
472 nsresult GetForceAllowThirdPartyCookie(PRBool *aForceAllowThirdPartyCookie);
473 nsresult SetForceAllowThirdPartyCookie(PRBool aForceAllowThirdPartyCookie);
474 nsresult GetCanceled(PRBool *aCanceled);
479 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
482 interface nsIUploadChannel : nsISupports
484 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
485 PRInt32 aContentLength);
486 nsresult GetUploadStream(nsIInputStream **aUploadStream);
491 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
494 interface nsIDOMCSSRule : nsISupports
496 nsresult GetType(PRUint16 *aType);
497 nsresult GetCssText(nsAString *aCssText);
498 nsresult SetCssText(const nsAString *aCssText);
499 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
500 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
505 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
508 interface nsIDOMCSSStyleDeclaration : nsISupports
510 nsresult GetCssText(nsAString *aCssText);
511 nsresult SetCssText(const nsAString *aCssText);
512 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
513 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
514 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
515 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
516 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
517 const nsAString *priority);
518 nsresult GetLength(PRUint32 *aLength);
519 nsresult Item(PRUint32 index, nsAString *_retval);
520 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
525 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
528 interface nsIDOMCSSRuleList : nsISupports
530 nsresult GetLength(PRUint32 *aLength);
531 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
536 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
539 interface nsIDOMStyleSheet : nsISupports
541 nsresult GetType(nsAString *aType);
542 nsresult GetDisabled(PRBool *aDisabled);
543 nsresult SetDisabled(PRBool aDisabled);
544 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
545 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
546 nsresult GetHref(nsAString *aHref);
547 nsresult GetTitle(nsAString *aTitle);
548 nsresult GetMedia(nsIDOMMediaList **aMedia);
553 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
556 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
558 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
559 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
560 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
561 nsresult DeleteRule(PRUint32 index);
566 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
569 interface nsIDOMStyleSheetList : nsISupports
571 nsresult GetLength(PRUint32 *aLength);
572 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
577 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
580 interface nsIDOMNodeList : nsISupports
582 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
583 nsresult GetLength(PRUint32 *aLength);
588 uuid(29fb2a18-1dd2-11b2-8dd9-a6fd5d5ad12f),
591 interface nsIDOM3Node : nsISupports
599 IMPLEMENTATION_SPECIFIC = 32
602 nsresult GetBaseURI(nsAString *aBaseURI);
603 nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
604 nsresult GetTextContent(nsAString *aTextContent);
605 nsresult SetTextContent(const nsAString *aTextContent);
606 nsresult IsSameNode(nsIDOMNode *other, PRBool *_retval);
607 nsresult LookupPrefix(const nsAString *namespaceURI, PRBool *_retval);
608 nsresult IsDefaultNamespace(const nsAString *namespaceURI, PRBool *_retval);
609 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString _retval);
610 nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval);
611 nsresult GetFeature(const nsAString *feature, const nsAString *version, nsISupports **_retval);
612 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
613 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
618 uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
621 interface nsIDOMNode : nsISupports
627 CDATA_SELECTION_NODE = 4,
628 ENTITY_REFERENCE_NODE = 5,
630 PROCESSING_INSTRUCTION_NODE = 7,
633 DOCUMENT_TYPE_NODE = 10,
634 DOCUMENT_FRAGMENT_NODE = 11,
638 nsresult GetNodeName(nsAString *aNodeName);
639 nsresult GetNodeValue(nsAString *aNodeValue);
640 nsresult SetNodeValue(const nsAString *aNodeValue);
641 nsresult GetNodeType(PRUint16 *aNodeType);
642 nsresult GetParentNode(nsIDOMNode **aParentNode);
643 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
644 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
645 nsresult GetLastChild(nsIDOMNode **aLastChild);
646 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
647 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
648 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
649 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
650 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
651 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
652 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
653 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
654 nsresult HasChildNodes(PRBool *_retval);
655 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
656 nsresult Normalize();
657 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
658 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
659 nsresult GetPrefix(nsAString *aPrefix);
660 nsresult SetPrefix(const nsAString *aPrefix);
661 nsresult GetLocalName(nsAString *aLocalName);
662 nsresult HasAttributes(PRBool *_retval);
667 uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
670 interface nsIDOMElement : nsIDOMNode
672 nsresult GetTagName(nsAString *aTagName);
673 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
674 nsresult SetAttribute(const nsAString *name, const nsAString *value);
675 nsresult RemoveAttribute(const nsAString *name);
676 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
677 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
678 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
679 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
680 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
682 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
683 const nsAString *value);
684 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
685 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
686 nsIDOMAttr **_retval);
687 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
688 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
689 nsIDOMNodeList **_retval);
690 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
691 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
697 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
700 interface nsIDOMElementCSSInlineStyle : nsISupports
702 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
707 uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
710 interface nsIDOMClientRect : nsISupports
712 nsresult GetLeft(float *aLeft);
713 nsresult GetTop(float *aTop);
714 nsresult GetRight(float *aRight);
715 nsresult GetBottom(float *aBottom);
716 nsresult GetWidth(float *aWidth);
717 nsresult GetHeight(float *aHeight);
722 uuid(d894b5d4-44f3-422a-a220-7763c12d4a94),
725 interface nsIDOMNSElement : nsISupports
727 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
728 nsresult GetClientRects(nsIDOMClientRectList **_retval);
729 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
730 nsresult GetScrollTop(PRInt32 *aScrollTop);
731 nsresult SetScrollTop(PRInt32 aScrollTop);
732 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
733 nsresult SetScrollLeft(PRInt32 aScrollLeft);
734 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
735 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
736 nsresult GetClientTop(PRInt32 *aClientTop);
737 nsresult GetClientLeft(PRInt32 *aClientLeft);
738 nsresult GetClientHeight(PRInt32 *aClientHeight);
739 nsresult GetClientWidth(PRInt32 *aClientWidth);
740 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
741 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
742 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
743 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
744 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
745 nsresult GetChildren(nsIDOMNodeList **aChildren);
746 nsresult GetClassList(nsIDOMDOMTokenList **aClassList);
747 nsresult SetCapture(PRBool retargetToElement);
748 nsresult ReleaseCapture();
749 nsresult MozMatchesSelector(const nsAString *selector, PRBool *_retval);
752 cpp_quote("#undef GetClassName")
756 uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
759 interface nsIDOMHTMLElement : nsIDOMElement
761 nsresult GetId(nsAString *aId);
762 nsresult SetId(const nsAString *aId);
763 nsresult GetTitle(nsAString *aTitle);
764 nsresult SetTitle(const nsAString *aTitle);
765 nsresult GetLang(nsAString *aLang);
766 nsresult SetLang(const nsAString *aLang);
767 nsresult GetDir(nsAString *aDir);
768 nsresult SetDir(const nsAString *aDir);
769 nsresult GetClassName(nsAString *aClassName);
770 nsresult SetClassName(const nsAString *aClassName);
775 uuid(f0ffe1d2-9615-492b-aae1-05428ebc2a70),
778 interface nsIDOMNSHTMLElement : nsISupports
780 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
781 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
782 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
783 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
784 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
785 nsresult GetInnerHTML(nsAString *aInnerHTML);
786 nsresult SetInnerHTML(const nsAString *aInnerHTML);
787 nsresult GetHidden(PRBool *aHidden);
788 nsresult SetHidden(PRBool aHidden);
789 nsresult GetTabIndex(PRInt32 *aTabIndex);
790 nsresult SetTabIndex(PRInt32 aTabIndex);
791 nsresult GetContentEditable(nsAString *aContentEditable);
792 nsresult SetContentEditable(const nsAString *aContentEditable);
793 nsresult GetIsContentEditable(PRBool *aIsContentEditable);
794 nsresult GetDraggable(PRBool *aDraggable);
795 nsresult SetDraggable(PRBool aDraggable);
798 nsresult ScrollIntoView(PRBool top, PRUint8 _argc);
799 nsresult GetSpellcheck(PRBool *aSpellcheck);
800 nsresult SetSpellcheck(PRBool aSpellcheck);
805 uuid(a6cf9083-15b3-11d2-932e-00805f8add32),
808 interface nsIDOMHTMLCollection : nsISupports
810 nsresult GetLength(PRUint32 *aLength);
811 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
812 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
817 uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
820 interface nsIDOMCharacterData : nsIDOMNode
822 nsresult GetData(nsAString *aData);
823 nsresult SetData(const nsAString *aData);
824 nsresult GetLength(PRUint32 *aLength);
825 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
826 nsresult AppendData(const nsAString *arg);
827 nsresult InsertData(PRUint32 offset, const nsAString *arg);
828 nsresult DeleteData(PRUint32 offset, PRUint32 count);
829 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
834 uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
837 interface nsIDOMText : nsIDOMCharacterData
839 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
844 uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
847 interface nsIDOMComment : nsIDOMCharacterData
853 uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
856 interface nsIDOMDocumentFragment : nsIDOMNode
862 uuid(f51ebade-8b1a-11d3-aae7-0010830123b4),
865 interface nsIDOMAbstractView : nsISupports
867 nsresult GetDocument(nsIDOMDocumentView **aDocument);
872 uuid(0b9341f3-95d4-4fa4-adcd-e119e0db2889),
875 interface nsIDOMViewCSS : nsIDOMAbstractView
877 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
882 uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
885 interface nsIDOMDocument : nsIDOMNode
887 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
888 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
889 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
890 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
891 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
892 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
893 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
894 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
895 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
896 nsIDOMProcessingInstruction **_retval);
897 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
898 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
899 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
900 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
901 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
902 nsIDOMElement **_retval);
903 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
904 nsIDOMAttr **_retval);
905 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
906 nsIDOMNodeList **_retval);
907 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
912 uuid(7485b35e-d215-42a0-8a67-896f86c8afd9),
915 interface nsIDOMNSDocument : nsISupports
917 nsresult GetCharacterSet(nsAString *aCharacterSet);
918 nsresult GetDir(nsAString *aDir);
919 nsresult SetDir(const nsAString *aDir);
920 nsresult GetLocation(nsIDOMLocation **aLocation);
921 nsresult GetTitle(nsAString *aTitle);
922 nsresult SetTitle(const nsAString *aTitle);
923 nsresult GetContentType(nsAString *aContentType);
924 nsresult GetReadyState(nsAString *aReadyState);
925 nsresult GetLastModified(nsAString *aLastModified);
926 nsresult GetReferrer(nsAString *aReferrer);
927 nsresult HasFocus(PRBool *_retval);
928 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
929 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
930 nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
931 nsresult ReleaseCapture();
932 nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
934 /* Wine extensions */
935 nsresult WineAddObserver(nsIDocumentObserver *aObserver);
936 nsresult WineRemoveObserver(nsIDocumentObserver *aObserver);
937 nsresult WineAddScriptRunner(nsIRunnable *aRunnable);
942 uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
945 interface nsIDOMHTMLDocument : nsIDOMDocument
947 nsresult GetTitle(nsAString *aTitle);
948 nsresult SetTitle(const nsAString *aTitle);
949 nsresult GetReferrer(nsAString *aReferrer);
950 nsresult GetDomain(nsAString *aDomain);
951 nsresult GetURL(nsAString *aURL);
952 nsresult GetBody(nsIDOMHTMLElement **aBody);
953 nsresult SetBody(nsIDOMHTMLElement *aBody);
954 nsresult GetImages(nsIDOMHTMLCollection **aImages);
955 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
956 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
957 nsresult GetForms(nsIDOMHTMLCollection **aForms);
958 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
959 nsresult GetCookie(nsAString *aCookie);
960 nsresult SetCookie(const nsAString *aCookie);
963 nsresult Write(const nsAString *text);
964 nsresult Writeln(const nsAString *text);
965 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
970 uuid(95cd5ad4-ae8a-4f0e-b168-35e03d5e0b9a),
973 interface nsIDOMNSHTMLDocument : nsISupports
975 nsresult GetWidth(PRInt32 *aWidth);
976 nsresult GetHeight(PRInt32 *aHeight);
977 nsresult GetAlinkColor(nsAString *aAlinkColor);
978 nsresult SetAlinkColor(const nsAString *aAlinkColor);
979 nsresult GetLinkColor(nsAString *aLinkColor);
980 nsresult SetLinkColor(const nsAString *aLinkColor);
981 nsresult GetVlinkColor(nsAString *aVlinkColor);
982 nsresult SetVlinkColor(const nsAString *aVlinkColor);
983 nsresult GetBgColor(nsAString *aBgColor);
984 nsresult SetBgColor(const nsAString *aBgColor);
985 nsresult GetFgColor(nsAString *aFgColor);
986 nsresult SetFgColor(const nsAString *aFgColor);
987 nsresult GetDomain(nsAString *aDomain);
988 nsresult SetDomain(const nsAString *aDomain);
989 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
990 nsresult GetSelection(nsAString *_retval);
991 nsresult Open(nsACString *aContentType, PRBool aReplace, nsIDOMDocument **_retval);
993 nsresult CaptureEvents(PRInt32 eventFlags);
994 nsresult ReleaseEvents(PRInt32 eventFlags);
995 nsresult RouteEvent(nsIDOMEvent *evt);
996 nsresult GetCompatMode(nsAString *aCompatMode);
997 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
998 nsresult GetDesignMode(nsAString *aDesignMode);
999 nsresult SetDesignMode(const nsAString *aDesignMode);
1000 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
1001 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
1002 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
1003 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
1004 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
1005 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
1006 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
1007 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1008 nsresult GetHead(nsIDOMHTMLHeadElement *_retval);
1013 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
1016 interface nsIDOMDocumentStyle : nsISupports
1018 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1023 uuid(1acdb2ba-1dd2-11b2-95bc-9542495d2569),
1026 interface nsIDOMDocumentView : nsISupports
1028 nsresult GetDefaultView(nsIDOMAbstractView **aDefaultView);
1033 uuid(46b91d66-28e2-11d4-ab1e-0010830123b4),
1036 interface nsIDOMDocumentEvent : nsISupports
1038 cpp_quote("#undef CreateEvent")
1039 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1044 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
1047 interface nsIDOMRange : nsISupports
1056 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1057 nsresult GetStartOffset(PRInt32 *aStartOffset);
1058 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1059 nsresult GetEndOffset(PRInt32 *aEndOffset);
1060 nsresult GetCollapsed(PRBool *aCollapsed);
1061 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1062 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1063 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1064 nsresult SetStartBefore(nsIDOMNode *refNode);
1065 nsresult SetStartAfter(nsIDOMNode *refNode);
1066 nsresult SetEndBefore(nsIDOMNode *refNode);
1067 nsresult SetEndAfter(nsIDOMNode *refNode);
1068 nsresult Collapse(PRBool toStart);
1069 nsresult SelectNode(nsIDOMNode *refNode);
1070 nsresult SelectNodeContents(nsIDOMNode *refNode);
1071 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1072 nsresult DeleteContents();
1073 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1074 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1075 nsresult InsertNode(nsIDOMNode *newNode);
1076 nsresult SurroundContents(nsIDOMNode *newParent);
1077 nsresult CloneRange(nsIDOMRange **_retval);
1078 nsresult ToString(nsAString *_retval);
1084 uuid(fed93d11-f24d-41d8-ae55-4197927999bb),
1087 interface nsIDOMNSRange : nsISupports
1089 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1090 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1091 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1092 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1093 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1099 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1102 interface nsIDOMDocumentRange : nsISupports
1104 nsresult CreateRange(nsIDOMRange **_retval);
1109 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1112 interface nsISelection : nsISupports
1114 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1115 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1116 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1117 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1118 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1119 nsresult GetRangeCount(PRInt32 *aRangeCount);
1120 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1121 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1122 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1123 nsresult CollapseToStart();
1124 nsresult CollapseToEnd();
1125 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1126 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1127 nsresult AddRange(nsIDOMRange *range);
1128 nsresult RemoveRange(nsIDOMRange *range);
1129 nsresult RemoveAllRanges();
1130 nsresult DeleteFromDocument();
1131 nsresult SelectionLanguageChange(PRBool langRTL);
1132 nsresult ToString(PRUnichar **_retval);
1137 uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1140 interface nsIDOMWindowCollection : nsISupports
1142 nsresult GetLength(PRUint32 *aLength);
1143 nsresult Item(PRUint32 index, nsIDOMWindow **_retval);
1144 nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1149 uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1152 interface nsIDOMWindow : nsISupports
1154 nsresult GetDocument(nsIDOMDocument **aDocument);
1155 nsresult GetParent(nsIDOMWindow **aParent);
1156 nsresult GetTop(nsIDOMWindow **aTop);
1157 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1158 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1159 nsresult GetName(nsAString *aName);
1160 nsresult SetName(const nsAString *aName);
1161 nsresult GetTextZoom(float *aTextZoom);
1162 nsresult SetTextZoom(float aTextZoom);
1163 nsresult GetScrollX(PRInt32 *aScrollX);
1164 nsresult GetScrollY(PRInt32 *aScrollY);
1165 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1166 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1167 nsresult GetSelection(nsISelection **_retval);
1168 nsresult ScrollByLines(PRInt32 numLines);
1169 nsresult ScrollByPages(PRInt32 numPages);
1170 nsresult SizeToContent();
1175 uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1178 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1180 nsresult GetALink(nsAString *aALink);
1181 nsresult SetALink(const nsAString *aALink);
1182 nsresult GetBackground(nsAString *aBackground);
1183 nsresult SetBackground(const nsAString *aBackground);
1184 nsresult GetBgColor(nsAString *aBgColor);
1185 nsresult SetBgColor(const nsAString *aBgColor);
1186 nsresult GetLink(nsAString *aLink);
1187 nsresult SetLink(const nsAString *aLink);
1188 nsresult GetText(nsAString *aText);
1189 nsresult SetText(const nsAString *aText);
1190 nsresult GetVLink(nsAString *aVLink);
1191 nsresult SetVLink(const nsAString *aVLink);
1196 uuid(a6cf908f-15b3-11d2-932e-00805f8add32),
1199 interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
1201 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1202 nsresult GetLength(PRInt32 *aLength);
1203 nsresult GetName(nsAString *aName);
1204 nsresult SetName(const nsAString *aName);
1205 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1206 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1207 nsresult GetAction(nsAString *aAction);
1208 nsresult SetAction(const nsAString *aAction);
1209 nsresult GetEnctype(nsAString *aEnctype);
1210 nsresult SetEnctype(const nsAString *aEnctype);
1211 nsresult GetMethod(nsAString *aMethod);
1212 nsresult SetMethod(const nsAString *aMethod);
1213 nsresult GetTarget(nsAString *aTarget);
1214 nsresult SetTarget(const nsAString *aTarget);
1221 uuid(2480b6f0-094e-484f-8717-0c204ed23e69),
1224 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1226 nsresult GetAccept(nsAString *aAccept);
1227 nsresult SetAccept(const nsAString *aAccept);
1228 nsresult GetAlt(nsAString *aAlt);
1229 nsresult SetAlt(const nsAString *aAlt);
1230 nsresult GetAutofocus(PRBool *aAutofocus);
1231 nsresult SetAutofocus(PRBool aAutofocus);
1232 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1233 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1234 nsresult GetChecked(PRBool *aChecked);
1235 nsresult SetChecked(PRBool aChecked);
1236 nsresult GetDisabled(PRBool *aDisabled);
1237 nsresult SetDisabled(PRBool aDisabled);
1238 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1239 nsresult GetFiles(nsIDOMFileList **aFiles);
1240 nsresult GetIndeterminate(PRBool *aIndeterminate);
1241 nsresult SetIndeterminate(PRBool aIndeterminate);
1242 nsresult GetMaxLength(PRInt32 *aMaxLength);
1243 nsresult SetMaxLength(PRInt32 aMaxLength);
1244 nsresult GetMultiple(PRBool *aMultiple);
1245 nsresult SetMultiple(PRBool aMultiple);
1246 nsresult GetName(nsAString *aName);
1247 nsresult SetName(const nsAString *aName);
1248 nsresult GetPlaceholder(nsAString *aPlaceholder);
1249 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1250 nsresult GetReadOnly(PRBool *aReadOnly);
1251 nsresult SetReadOnly(PRBool aReadOnly);
1252 nsresult GetAccessKey(nsAString *aAccessKey);
1253 nsresult SetAccessKey(const nsAString *aAccessKey);
1254 nsresult GetAlign(nsAString *aAlign);
1255 nsresult SetAlign(const nsAString *aAlign);
1256 nsresult GetSize(PRUint32 *aSize);
1257 nsresult SetSize(PRUint32 aSize);
1258 nsresult GetSrc(nsAString *aSrc);
1259 nsresult SetSrc(const nsAString *aSrc);
1260 nsresult GetType(nsAString *aType);
1261 nsresult SetType(const nsAString *aType);
1262 nsresult GetDefaultValue(nsAString *aDefaultValue);
1263 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1264 nsresult GetValue(nsAString *aValue);
1265 nsresult SetValue(const nsAString *aValue);
1267 nsresult GetSelectionStart(PRInt32 *aSelectionStart);
1268 nsresult SetSelectionStart(PRInt32 aSelectionStart);
1269 nsresult GetSelectionEnd(PRInt32 *aSelectionEnd);
1270 nsresult SetSelectionEnd(PRInt32 aSelectionEnd);
1271 nsresult SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd);
1272 nsresult GetTabIndex(PRInt32 *aTabIndex);
1273 nsresult SetTabIndex(PRInt32 aTabIndex);
1274 nsresult GetUseMap(nsAString *aUseMap);
1275 nsresult SetUseMap(const nsAString *aUseMap);
1276 nsresult GetControllers(nsIControllers **aControllers);
1277 nsresult GetTextLength(PRInt32 *aTextLength);
1278 nsresult MozGetFileNameArray(PRUint32 *aLength, PRUnichar ***aFileNames);
1279 nsresult MozSetFileNameArray(const PRUnichar **aFileNames, PRUint32 aLength);
1280 nsresult MozIsTextField(PRBool aExcludePassword, PRBool *_retval);
1288 uuid(611d00f5-1eb8-4571-b995-2a2019d2d11c),
1291 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1293 nsresult GetDisabled(PRBool *aDisabled);
1294 nsresult SetDisabled(PRBool aDisabled);
1295 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1296 nsresult GetLabel(nsAString *aLabel);
1297 nsresult SetLabel(const nsAString *aLabel);
1298 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1299 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1300 nsresult GetSelected(PRBool *aSelected);
1301 nsresult SetSelected(PRBool aSelected);
1302 nsresult GetValue(nsAString *aValue);
1303 nsresult SetValue(const nsAString *aValue);
1304 nsresult GetText(nsAString *aText);
1305 nsresult SetText(const nsAString *aText);
1306 nsresult GetIndex(PRInt32 *aIndex);
1311 uuid(bce0213c-f70f-488f-b93f-688acca55d63),
1314 interface nsIDOMHTMLOptionsCollection : nsISupports
1316 nsresult GetLength(PRUint32 *aLength);
1317 nsresult SetLength(PRUint32 aLength);
1318 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1319 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1324 uuid(110a4b15-e0a2-48d7-8e59-d8d94ef510ad),
1327 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1329 nsresult GetAutofocus(PRBool *aAutofocus);
1330 nsresult SetAutofocus(PRBool aAutofocus);
1331 nsresult GetDisabled(PRBool *aDisabled);
1332 nsresult SetDisabled(PRBool aDisabled);
1333 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1334 nsresult GetMultiple(PRBool *aMultiple);
1335 nsresult SetMultiple(PRBool aMultiple);
1336 nsresult GetName(nsAString *aName);
1337 nsresult SetName(const nsAString *aName);
1338 nsresult GetSize(PRInt32 *aSize);
1339 nsresult SetSize(PRInt32 aSize);
1340 nsresult GetType(nsAString *aType);
1341 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1342 nsresult GetLength(PRUint32 *aLength);
1343 nsresult SetLength(PRUint32 aLength);
1344 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1345 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1346 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1347 nsresult Remove(PRInt32 index);
1348 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1349 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1350 nsresult GetValue(nsAString *aValue);
1351 nsresult SetValue(const nsAString *aValue);
1352 nsresult GetTabIndex(PRInt32 *aTabIndex);
1353 nsresult SetTabIndex(PRInt32 aTabIndex);
1360 uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1363 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1365 nsresult GetDefaultValue(nsAString *aDefaultValue);
1366 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1367 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1368 nsresult GetAccessKey(nsAString *aAccessKey);
1369 nsresult SetAccessKey(const nsAString *aAccessKey);
1370 nsresult GetCols(PRInt32 *aCols);
1371 nsresult SetCols(PRInt32 aCols);
1372 nsresult GetDisabled(PRBool *aDisabled);
1373 nsresult SetDisabled(PRBool aDisabled);
1374 nsresult GetName(nsAString *aName);
1375 nsresult SetName(const nsAString *aName);
1376 nsresult GetReadOnly(PRBool *aReadOnly);
1377 nsresult SetReadOnly(PRBool aReadOnly);
1378 nsresult GetRows(PRInt32 *aRows);
1379 nsresult SetRows(PRInt32 aRows);
1380 nsresult GetTabIndex(PRInt32 *aTabIndex);
1381 nsresult SetTabIndex(PRInt32 aTabIndex);
1382 nsresult GetType(nsAString *aType);
1383 nsresult GetValue(nsAString *aValue);
1384 nsresult SetValue(const nsAString *aValue);
1392 uuid(4af8568c-375c-42fd-a82f-b25a7c03fc3e),
1395 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1397 nsresult GetSrc(nsAString *aSrc);
1398 nsresult SetSrc(const nsAString *aSrc);
1399 nsresult GetAsync(PRBool *aAsync);
1400 nsresult SetAsync(PRBool aAsync);
1401 nsresult GetDefer(PRBool *aDefer);
1402 nsresult SetDefer(PRBool aDefer);
1403 nsresult GetType(nsAString *aType);
1404 nsresult SetType(const nsAString *aType);
1405 nsresult GetCharset(nsAString *aCharset);
1406 nsresult SetCharset(const nsAString *aCharset);
1407 nsresult GetText(nsAString *aText);
1408 nsresult SetText(const nsAString *aText);
1409 nsresult GetHtmlFor(nsAString *aHtmlFor);
1410 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1411 nsresult GetEvent(nsAString *aEvent);
1412 nsresult SetEvent(const nsAString *aEvent);
1417 uuid(3fc9c313-49b9-4315-b39f-7166cf362e10),
1420 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1422 nsresult GetAlt(nsAString *aAlt);
1423 nsresult SetAlt(const nsAString *aAlt);
1424 nsresult GetSrc(nsAString *aSrc);
1425 nsresult SetSrc(const nsAString *aSrc);
1426 nsresult GetUseMap(nsAString *aUseMap);
1427 nsresult SetUseMap(const nsAString *aUseMap);
1428 nsresult GetIsMap(PRBool *aIsMap);
1429 nsresult SetIsMap(PRBool aIsMap);
1430 nsresult GetWidth(PRInt32 *aWidth);
1431 nsresult SetWidth(PRInt32 aWidth);
1432 nsresult GetHeight(PRInt32 *aHeight);
1433 nsresult SetHeight(PRInt32 aHeight);
1434 nsresult GetNaturalWidth(PRInt32 *aNaturalWidth);
1435 nsresult GetNaturalHeight(PRInt32 *aNaturalHeight);
1436 nsresult GetComplete(PRBool *aComplete);
1437 nsresult GetName(nsAString *aName);
1438 nsresult SetName(const nsAString *aName);
1439 nsresult GetAlign(nsAString *aAlign);
1440 nsresult SetAlign(const nsAString *aAlign);
1441 nsresult GetBorder(nsAString *aBorder);
1442 nsresult SetBorder(const nsAString *aBorder);
1443 nsresult GetHspace(PRInt32 *aHspace);
1444 nsresult SetHspace(PRInt32 aHspace);
1445 nsresult GetLongDesc(nsAString *aLongDesc);
1446 nsresult SetLongDesc(const nsAString *aLongDesc);
1447 nsresult GetVspace(PRInt32 *aVspace);
1448 nsresult SetVspace(PRInt32 aVspace);
1449 nsresult GetLowsrc(nsAString *aLowsrc);
1450 nsresult SetLowsrc(const nsAString *aLowsrc);
1451 nsresult GetX(PRInt32 *aX);
1452 nsresult GetY(PRInt32 *aY);
1457 uuid(4e237175-3628-4dc8-892f-5270edc3c71a),
1460 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1462 nsresult GetHref(nsAString *aHref);
1463 nsresult SetHref(const nsAString *aHref);
1464 nsresult GetTarget(nsAString *aTarget);
1465 nsresult SetTarget(const nsAString *aTarget);
1466 nsresult GetPing(nsAString *aPing);
1467 nsresult SetPing(const nsAString *aPing);
1468 nsresult GetRel(nsAString *aRel);
1469 nsresult SetRel(const nsAString *aRel);
1470 nsresult GetHreflang(nsAString *aHreflang);
1471 nsresult SetHreflang(const nsAString *aHreflang);
1472 nsresult GetType(nsAString *aType);
1473 nsresult SetType(const nsAString *aType);
1474 nsresult GetText(nsAString *aText);
1475 nsresult SetText(const nsAString *aText);
1476 nsresult GetProtocol(nsAString *aProtocol);
1477 nsresult SetProtocol(const nsAString *aProtocol);
1478 nsresult GetHost(nsAString *aHost);
1479 nsresult SetHost(const nsAString *aHost);
1480 nsresult GetHostname(nsAString *aHostname);
1481 nsresult SetHostname(const nsAString *aHostname);
1482 nsresult GetPort(nsAString *aPort);
1483 nsresult SetPort(const nsAString *aPort);
1484 nsresult GetPathname(nsAString *aPathname);
1485 nsresult SetPathname(const nsAString *aPathname);
1486 nsresult GetSearch(nsAString *aSearch);
1487 nsresult SetSearch(const nsAString *aSearch);
1488 nsresult GetHash(nsAString *aHash);
1489 nsresult SetHash(const nsAString *aHash);
1490 nsresult GetAccessKey(nsAString *aAccessKey);
1491 nsresult SetAccessKey(const nsAString *aAccessKey);
1492 nsresult GetCharset(nsAString *aCharset);
1493 nsresult SetCharset(const nsAString *aCharset);
1494 nsresult GetCoords(nsAString *aCoords);
1495 nsresult SetCoords(const nsAString *aCoords);
1496 nsresult GetName(nsAString *aName);
1497 nsresult SetName(const nsAString *aName);
1498 nsresult GetRev(nsAString *aRev);
1499 nsresult SetRev(const nsAString *aRev);
1500 nsresult GetShape(nsAString *aShape);
1501 nsresult SetShape(const nsAString *aShape);
1502 nsresult GetTabIndex(PRInt32 *aTabIndex);
1503 nsresult SetTabIndex(PRInt32 aTabIndex);
1504 nsresult ToString(nsAString *_retval);
1511 uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
1514 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1516 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1517 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1518 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1519 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1520 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1521 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1522 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1523 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1524 nsresult GetAlign(nsAString *aAlign);
1525 nsresult SetAlign(const nsAString *aAlign);
1526 nsresult GetBgColor(nsAString *aBgColor);
1527 nsresult SetBgColor(const nsAString *aBgColor);
1528 nsresult GetBorder(nsAString *aBorder);
1529 nsresult SetBorder(const nsAString *aBorder);
1530 nsresult GetCellPadding(nsAString *aCellPadding);
1531 nsresult SetCellPadding(const nsAString *aCellPadding);
1532 nsresult GetCellSpacing(nsAString *aCellSpacing);
1533 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1534 nsresult GetFrame(nsAString *aFrame);
1535 nsresult SetFrame(const nsAString *aFrame);
1536 nsresult GetRules(nsAString *aRules);
1537 nsresult SetRules(const nsAString *aRules);
1538 nsresult GetSummary(nsAString *aSummary);
1539 nsresult SetSummary(const nsAString *aSummary);
1540 nsresult GetWidth(nsAString *aWidth);
1541 nsresult SetWidth(const nsAString *aWidth);
1542 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1543 nsresult DeleteTHead();
1544 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1545 nsresult DeleteTFoot();
1546 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1547 nsresult DeleteCaption();
1548 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1549 nsresult DeleteRow(PRInt32 index);
1554 uuid(a6cf90b6-15b3-11d2-932e-00805f8add32),
1557 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1559 nsresult GetRowIndex(PRInt32 *aRowIndex);
1560 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1561 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1562 nsresult GetAlign(nsAString *aAlign);
1563 nsresult SetAlign(const nsAString *aAlign);
1564 nsresult GetBgColor(nsAString *aBgColor);
1565 nsresult SetBgColor(const nsAString *aBgColor);
1566 nsresult GetCh(nsAString *aCh);
1567 nsresult SetCh(const nsAString *aCh);
1568 nsresult GetChOff(nsAString *aChOff);
1569 nsresult SetChOff(const nsAString *aChOff);
1570 nsresult GetVAlign(nsAString *aVAlign);
1571 nsresult SetVAlign(const nsAString *aVAlign);
1572 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1573 nsresult DeleteCell(PRInt32 index);
1578 uuid(a6cf90ba-15b3-11d2-932e-00805f8add32),
1581 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1583 nsresult GetAlign(nsAString *aAlign);
1584 nsresult SetAlign(const nsAString *aAlign);
1585 nsresult GetFrameBorder(nsAString *aFrameBorder);
1586 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1587 nsresult GetHeight(nsAString *aHeight);
1588 nsresult SetHeight(const nsAString *aHeight);
1589 nsresult GetLongDesc(nsAString *aLongDesc);
1590 nsresult SetLongDesc(const nsAString *aLongDesc);
1591 nsresult GetMarginHeight(nsAString *aMarginHeight);
1592 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1593 nsresult GetMarginWidth(nsAString *aMarginWidth);
1594 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1595 nsresult GetName(nsAString *aName);
1596 nsresult SetName(const nsAString *aName);
1597 nsresult GetScrolling(nsAString *aScrolling);
1598 nsresult SetScrolling(const nsAString *aScrolling);
1599 nsresult GetSrc(nsAString *aSrc);
1600 nsresult SetSrc(const nsAString *aSrc);
1601 nsresult GetWidth(nsAString *aWidth);
1602 nsresult SetWidth(const nsAString *aWidth);
1603 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1608 uuid(a6cf90b9-15b3-11d2-932e-00805f8add32),
1611 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
1613 nsresult GetFrameBorder(nsAString *aFrameBorder);
1614 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1615 nsresult GetLongDesc(nsAString *aLongDesc);
1616 nsresult SetLongDesc(const nsAString *aLongDesc);
1617 nsresult GetMarginHeight(nsAString *aMarginHeight);
1618 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1619 nsresult GetMarginWidth(nsAString *aMarginWidth);
1620 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1621 nsresult GetName(nsAString *aName);
1622 nsresult SetName(const nsAString *aName);
1623 nsresult GetNoResize(PRBool *aNoResize);
1624 nsresult SetNoResize(PRBool aNoResize);
1625 nsresult GetScrolling(nsAString *aScrolling);
1626 nsresult SetScrolling(const nsAString *aScrolling);
1627 nsresult GetSrc(nsAString *aSrc);
1628 nsresult SetSrc(const nsAString *aSrc);
1629 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1634 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1637 interface nsIURIContentListener : nsISupports
1639 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1640 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1641 nsIStreamListener **aContentHandler, PRBool *_retval);
1642 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1643 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1644 char **aDesiredContentType, PRBool *_retval);
1645 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1646 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1647 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1648 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1653 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1656 interface nsITooltipListener : nsISupports
1658 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1659 nsresult OnHideTooltip();
1664 uuid(33e9d001-caab-4ba9-8961-54902f197202),
1667 interface nsIWebBrowser : nsISupports
1669 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1670 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1671 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1672 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1673 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1674 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1675 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1676 nsresult GetIsActive(PRBool *aIsActive);
1677 nsresult SetIsActive(PRBool aIsActive);
1680 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1681 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1685 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1688 interface nsIWebBrowserSetup : nsISupports
1690 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1693 typedef void* nativeWindow;
1697 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1700 interface nsIBaseWindow : nsISupports
1702 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1703 PRInt32 y, PRInt32 cx, PRInt32 cy);
1706 nsresult SetPosition(PRInt32 x, PRInt32 y);
1707 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1708 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1709 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1710 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1711 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1712 nsresult Repaint(PRBool force);
1713 nsresult GetParentWidget(nsIWidget **aParentWidget);
1714 nsresult SetParentWidget(nsIWidget *aParentWidget);
1715 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1716 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1717 nsresult GetVisibility(PRBool *aVisibility);
1718 nsresult SetVisibility(PRBool aVisibility);
1719 nsresult GetEnabled(PRBool *aEnabled);
1720 nsresult SetEnabled(PRBool aEnabled);
1721 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1722 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1723 nsresult GetMainWidget(nsIWidget **aMainWidget);
1724 nsresult SetFocus();
1725 nsresult GetTitle(PRUnichar **aTitle);
1726 nsresult SetTitle(const PRUnichar *aTitle);
1729 cpp_quote("#define LOAD_FLAGS_NONE 0x00000")
1730 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x80000")
1734 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1737 interface nsIWebNavigation : nsISupports
1739 nsresult GetCanGoBack(PRBool *aCanGoBack);
1740 nsresult GetCanGoForward(PRBool *aCanGoForward);
1742 nsresult GoForward();
1743 nsresult GotoIndex(PRInt32 index);
1744 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1745 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1746 nsresult Reload(PRUint32 aReloadFlags);
1747 nsresult Stop(PRUint32 aStopFlags);
1748 nsresult GetDocument(nsIDOMDocument **aDocument);
1749 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1750 nsresult GetReferringURI(nsIURI **aReferringURI);
1751 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1752 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1757 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
1760 interface nsIWebProgress : nsISupports
1762 nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
1763 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
1764 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
1765 nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
1770 uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1773 interface nsIPrintSettings : nsISupports
1775 typedef struct { char dummy; } nsIntMargin;
1777 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1778 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1779 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1780 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1781 nsresult Clone(nsIPrintSettings **_retval);
1782 nsresult Assign(nsIPrintSettings *aPS);
1783 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1784 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1785 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1786 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1787 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1788 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1789 nsresult GetEdgeTop(double *aEdgeTop);
1790 nsresult SetEdgeTop(double aEdgeTop);
1791 nsresult GetEdgeLeft(double *aEdgeLeft);
1792 nsresult SetEdgeLeft(double aEdgeLeft);
1793 nsresult GetEdgeBottom(double *aEdgeBottom);
1794 nsresult SetEdgeBottom(double aEdgeBottom);
1795 nsresult GetEdgeRight(double *aEdgeRight);
1796 nsresult SetEdgeRight(double aEdgeRight);
1797 nsresult GetMarginTop(double *aMarginTop);
1798 nsresult SetMarginTop(double aMarginTop);
1799 nsresult GetMarginLeft(double *aMarginLeft);
1800 nsresult SetMarginLeft(double aMarginLeft);
1801 nsresult GetMarginBottom(double *aMarginBottom);
1802 nsresult SetMarginBottom(double aMarginBottom);
1803 nsresult GetMarginRight(double *aMarginRight);
1804 nsresult SetMarginRight(double aMarginRight);
1805 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1806 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1807 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1808 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1809 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1810 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1811 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1812 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1813 nsresult GetScaling(double *aScaling);
1814 nsresult SetScaling(double aScaling);
1815 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1816 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1817 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1818 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1819 nsresult GetPrintRange(PRInt16 *aPrintRange);
1820 nsresult SetPrintRange(PRInt16 aPrintRange);
1821 nsresult GetTitle(PRUnichar **aTitle);
1822 nsresult SetTitle(const PRUnichar *aTitle);
1823 nsresult GetDocURL(PRUnichar **aDocURL);
1824 nsresult SetDocURL(const PRUnichar *aDocURL);
1825 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1826 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1827 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1828 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1829 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1830 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1831 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1832 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1833 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1834 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1835 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1836 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1837 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1838 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1839 nsresult GetIsCancelled(PRBool *aIsCancelled);
1840 nsresult SetIsCancelled(PRBool aIsCancelled);
1841 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1842 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1843 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1844 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1845 nsresult GetPrintSilent(PRBool *aPrintSilent);
1846 nsresult SetPrintSilent(PRBool aPrintSilent);
1847 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1848 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1849 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1850 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1851 nsresult GetPaperName(PRUnichar **aPaperName);
1852 nsresult SetPaperName(const PRUnichar *aPaperName);
1853 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1854 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1855 nsresult GetPaperData(PRInt16 *aPaperData);
1856 nsresult SetPaperData(PRInt16 aPaperData);
1857 nsresult GetPaperWidth(double *aPaperWidth);
1858 nsresult SetPaperWidth(double aPaperWidth);
1859 nsresult GetPaperHeight(double *aPaperHeight);
1860 nsresult SetPaperHeight(double aPaperHeight);
1861 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1862 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1863 nsresult GetPlexName(PRUnichar **aPlexName);
1864 nsresult SetPlexName(const PRUnichar *aPlexName);
1865 nsresult GetColorspace(PRUnichar **aColorspace);
1866 nsresult SetColorspace(const PRUnichar *aColorspace);
1867 nsresult GetResolutionName(PRUnichar **aResolutionName);
1868 nsresult SetResolutionName(const PRUnichar aResolutionName);
1869 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1870 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1871 nsresult GetPrintReversed(PRBool *aPrintReversed);
1872 nsresult SetPrintReversed(PRBool aPrintReversed);
1873 nsresult GetPrintInColor(PRBool *aPrintInColor);
1874 nsresult SetPrintInColor(PRBool aPrintInColor);
1875 nsresult GetOrientation(PRInt32 *aOrientation);
1876 nsresult SetOrientation(PRInt32 aOrientation);
1877 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1878 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1879 nsresult GetNumCopies(PRInt32 *aNumCopies);
1880 nsresult SetNumCopies(PRInt32 aNumCopies);
1881 nsresult GetPrinterName(PRUnichar **aPrinterName);
1882 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1883 nsresult GetPrintToFile(PRBool *aPrintToFile);
1884 nsresult SetPrintToFile(PRBool aPrintToFile);
1885 nsresult GetToFileName(PRUnichar **aToFileName);
1886 nsresult SetToFileName(const PRUnichar *aToFileName);
1887 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1888 nsresult SetOutputFormat(PRInt16 aOutputFormat);
1889 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1890 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1891 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1892 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1893 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1894 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1895 nsresult SetMarginInTwips(nsIntMargin *aMargin);
1896 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
1897 nsresult GetMarginInTwips(nsIntMargin *aMargin);
1898 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
1899 nsresult SetupSilentPrinting();
1900 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1901 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1906 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1909 interface nsIWebBrowserPrint : nsISupports
1911 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1912 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1913 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1914 nsresult GetDoingPrint(PRBool *aDoingPrint);
1915 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1916 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1917 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1918 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1919 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1920 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1921 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1922 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1923 nsIWebProgressListener *aWPListener);
1924 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1926 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1927 nsresult ExitPrintPreview();
1932 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1935 interface nsIScrollable : nsISupports
1938 ScrollOrientation_X = 1,
1939 ScrollOrientation_Y = 2
1944 Scrollbar_Never = 2,
1945 Scrollbar_Always = 3
1948 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1949 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1950 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1951 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1952 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1953 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1954 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1955 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1956 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1957 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1962 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1965 interface nsIFile : nsISupports
1967 nsresult Append(const nsAString *node);
1968 nsresult AppendNative(const nsAString *node);
1969 nsresult Normalize();
1970 nsresult Create(PRUint32 type, PRUint32 permission);
1971 nsresult GetLeafName(nsAString *aLeafName);
1972 nsresult SetLeafName(const nsAString *aLeafName);
1973 nsresult GetNativeLeafName(nsAString *aLeafName);
1974 nsresult SetNativeLeafName(const nsAString *aLeafName);
1975 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1976 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1977 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1978 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1979 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1980 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1981 nsresult Remove(PRBool recursive);
1982 nsresult GetPermissions(PRUint32 *aPermissions);
1983 nsresult SetPermissions(PRUint32 pPermissions);
1984 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1985 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1986 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1987 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1988 nsresult GetLastModifiedTimeOfLink(PRInt64 *aLastModifiedTimeOfLink);
1989 nsresult SetLastModifiedTimeOfLink(PRInt64 aLastModifiedTimeOfLink);
1990 nsresult GetFileSize(PRInt64 *aFileSize);
1991 nsresult SetFileSize(PRInt64 aFileSize);
1992 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1993 nsresult GetTarget(nsAString *aTarget);
1994 nsresult GetNativeTarget(nsACString *aNativeTarget);
1995 nsresult GetPath(nsAString *aPath);
1996 nsresult GetNativePath(nsACString *aNativePath);
1997 nsresult Exists(PRBool *_retval);
1998 nsresult IsWritable(PRBool *_retval);
1999 nsresult IsReadable(PRBool *_retval);
2000 nsresult IsExecutable(PRBool *_retval);
2001 nsresult IsHidden(PRBool *_retval);
2002 nsresult IsDirectory(PRBool *_retval);
2003 nsresult IsFile(PRBool *_retval);
2004 nsresult IsSymlink(PRBool *_retval);
2005 nsresult IsSpecial(PRBool *_retval);
2006 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2007 nsresult Clone(nsIFile **_retval);
2008 nsresult Equals(nsIFile *inFile, PRBool *_retval);
2009 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
2010 nsresult GetParent(nsIFile **aParent);
2011 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2016 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
2019 interface nsIPrefBranch : nsISupports
2021 nsresult GetRoot(char **aRoot);
2022 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2023 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
2024 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
2025 nsresult GetCharPref(const char *aPrefName, char **_retval);
2026 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2027 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2028 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2029 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2030 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2031 nsresult ClearUserPref(const char *aPrefName);
2032 nsresult LockPref(const char *aPrefName);
2033 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
2034 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
2035 nsresult UnlockPref(const char *aPrefName);
2036 nsresult DeleteBranch(const char *aStartingAt);
2037 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2038 nsresult ResetBranch(const char *aStartingAt);
2043 uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2046 interface nsIDirectoryServiceProvider : nsISupports
2048 nsresult GetFile(const char *prop, PRBool *persistent, nsIFile **_retval);
2053 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2056 interface nsIProtocolHandler : nsISupports
2058 nsresult GetScheme(nsACString *aScheme);
2059 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2060 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2061 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2062 nsIURI *aBaseURI, nsIURI **_retval);
2063 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2064 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
2069 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2072 interface nsIExternalProtocolHandler : nsIProtocolHandler
2074 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
2079 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2082 interface nsIIOService : nsISupports
2084 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2085 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2086 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2088 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2089 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2090 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2091 nsIChannel **_retval);
2092 nsresult GetOffline(PRBool *aOffline);
2093 nsresult SetOffline(PRBool aOffline);
2094 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
2095 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
2100 uuid(ca68c485-9db3-4c12-82a6-4fab7948e2d5),
2103 interface nsINetUtil : nsISupports
2105 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2106 PRBool *aHadCharset, nsACString *_retval);
2107 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
2108 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
2109 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2110 nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
2111 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2112 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2113 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2114 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2115 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
2120 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2123 interface nsIWebBrowserFocus : nsISupports
2125 nsresult Activate();
2126 nsresult Deactivate();
2127 nsresult SetFocusAtFirstElement();
2128 nsresult SetFocusAtLastElement();
2129 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2130 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2131 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2132 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2137 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2140 interface nsIWebBrowserChrome : nsISupports
2142 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2143 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2144 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2145 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2146 nsresult SetChromeFlags(PRUint32 aChromeFlags);
2147 nsresult DestroyBrowserWindow();
2148 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2149 nsresult ShowAsModal();
2150 nsresult IsWindowModal(PRBool *_retval);
2151 nsresult ExitModalEventLoop(nsresult aStatus);
2156 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2159 interface nsIDOMEventListener : nsISupports
2161 nsresult HandleEvent(nsIDOMEvent *event);
2166 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
2169 interface nsIDOMEventTarget : nsISupports
2171 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2172 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2173 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
2178 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
2181 interface nsIDOMEvent : nsISupports
2183 nsresult GetType(nsAString *aType);
2184 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2185 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2186 nsresult GetEventPhase(PRUint16 *aEventPhase);
2187 nsresult GetBubbles(PRBool *aBubbles);
2188 nsresult GetCancelable(PRBool *aCancelable);
2189 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2190 nsresult StopPropagation();
2191 nsresult PreventDefault();
2192 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
2195 cpp_quote("#define CONTEXT_NONE 0x00")
2196 cpp_quote("#define CONTEXT_LINK 0x01")
2197 cpp_quote("#define CONTEXT_IMAGE 0x02")
2198 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2199 cpp_quote("#define CONTEXT_TEXT 0x08")
2200 cpp_quote("#define CONTEXT_INPUT 0x10")
2201 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2205 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2208 interface nsIContextMenuListener : nsISupports
2210 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2215 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
2218 interface nsIDOMUIEvent : nsIDOMEvent
2220 nsresult GetView(nsIDOMAbstractView **aView);
2221 nsresult GetDetail(PRInt32 *aDetail);
2222 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2223 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2228 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2231 interface nsIDOMMouseEvent : nsIDOMUIEvent
2233 nsresult GetScreenX(PRInt32 *aScreenX);
2234 nsresult GetScreenY(PRInt32 *aScreenY);
2235 nsresult GetClientX(PRInt32 *aClientX);
2236 nsresult GetClientY(PRInt32 *aClientY);
2237 nsresult GetCtrlKey(PRBool *aCtrlKey);
2238 nsresult GetShiftKey(PRBool *aShiftKey);
2239 nsresult GetAltKey(PRBool *aAltKey);
2240 nsresult GetMetaKey(PRBool *aMetaKey);
2241 nsresult GetButton(PRUint16 *aButton);
2242 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2243 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2244 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2245 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2246 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2247 nsIDOMEventTarget *relatedTargetArg);
2252 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2255 interface nsIDOMKeyEvent : nsIDOMUIEvent
2257 nsresult GetCharCode(PRUint32 *aCharCode);
2258 nsresult GetKeyCode(PRUint32 *aKeyCode);
2259 nsresult GetAltKey(PRBool *aAltKey);
2260 nsresult GetCtrlKey(PRBool *aCtrlKey);
2261 nsresult GetShiftKey(PRBool *aShiftKey);
2262 nsresult GetMetaKey(PRBool *aMetaKey);
2263 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2264 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2265 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2266 PRUint32 charCodeArg);
2271 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2274 interface nsIEmbeddingSiteWindow : nsISupports
2276 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2277 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2278 nsresult SetFocus();
2279 nsresult GetVisibility(PRBool *aVisibility);
2280 nsresult SetVisibility(PRBool aVisibility);
2281 nsresult GetTitle(PRUnichar **aTitle);
2282 nsresult SetTitle(const PRUnichar *aTitle);
2283 nsresult GetSiteWindow(void **aSiteWindow);
2288 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2291 interface nsIComponentRegistrar : nsISupports
2293 nsresult AutoRegister(nsIFile *aSpec);
2294 nsresult AutoUnregister(nsIFile *aSpec);
2295 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2296 const char *aContractID, nsIFactory *aFactory);
2297 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2298 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2299 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2301 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2302 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2303 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2304 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2305 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2306 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2307 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2312 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2315 interface nsIPromptService : nsISupports
2317 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2318 const PRUnichar *aText);
2319 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2320 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2321 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2322 const PRUnichar *aText, PRBool *_retval);
2323 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2324 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2326 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2327 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2328 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2329 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2330 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2331 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2332 PRBool *aCheckState, PRBool *_retval);
2333 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2334 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2335 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2336 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2337 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2338 PRBool *aCheckState, PRBool *_retval);
2339 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2340 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2341 PRInt32 *aOutSelection, PRBool *_retval);
2346 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2349 interface nsITooltipTextProvider : nsISupports
2351 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2356 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2359 interface nsIProfile : nsISupports
2361 nsresult GetProfileCount(PRInt32 *aProfileCount);
2362 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2363 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2364 nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
2365 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2366 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2367 nsresult CreateNewProfile(const PRUnichar *profileName,
2368 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2369 PRBool useExistingDir);
2370 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2371 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2372 nsresult CloneProfile(const PRUnichar *profileName);
2377 uuid(30465632-a777-44cc-90f9-8145475ef999),
2380 interface nsIWindowCreator : nsISupports
2382 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2383 nsIWebBrowserChrome **_retval);
2388 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2391 interface nsIWindowCreator2 : nsIWindowCreator
2393 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2394 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2395 nsIWebBrowserChrome **_retval);
2400 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2403 interface nsIWindowWatcher : nsISupports
2405 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2406 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2407 nsresult RegisterNotification(nsIObserver *aObserver);
2408 nsresult UnregisterNotification(nsIObserver *aObserver);
2409 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2410 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2411 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2412 nsresult SetWindowCreator(nsIWindowCreator *creator);
2413 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2414 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2415 nsIDOMWindow **_retval);
2416 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2417 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2422 uuid(24f3f4da-18a4-448d-876d-7360fefac029),
2425 interface nsIEditingSession : nsISupports
2427 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2428 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2429 PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2430 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2431 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2432 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2433 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2434 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2435 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2436 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2437 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2438 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2439 nsresult GetJsAndPluginsDisabled(PRBool *aJsAndPluginsDisabled);
2444 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2447 interface nsICommandParams : nsISupports
2449 nsresult GetValueType(const char *name, PRInt16 *_retval);
2450 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2451 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2452 nsresult GetDoubleValue(const char *name, double *_retval);
2453 nsresult GetStringValue(const char *name, nsAString *_retval);
2454 nsresult GetCStringValue(const char *name, char **_retval);
2455 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2456 nsresult SetBooleanValue(const char *name, PRBool value);
2457 nsresult SetLongValue(const char *name, PRInt32 value);
2458 nsresult SetDoubleValue(const char *name, double value);
2459 nsresult SetStringValue(const char *name, const nsAString *value);
2460 nsresult SetCStringValue(const char *name, const char *value);
2461 nsresult SetISupportsValue(const char *name, nsISupports *value);
2462 nsresult RemoveValue(const char *name);
2463 nsresult HasMoreElements(PRBool *_retval);
2465 nsresult GetNext(char **_retval);
2470 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2473 interface nsICommandManager : nsISupports
2475 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2476 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2477 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2478 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2479 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2480 nsICommandParams *aCommandParams);
2481 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2482 nsIDOMWindow *aTargetWindow);
2487 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2490 interface nsIControllerContext : nsISupports
2492 nsresult Init(nsIControllerCommandTable *aCommandTable);
2493 nsresult SetCommandContext(nsISupports *aCommandContext);
2498 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2501 interface nsIController : nsISupports
2503 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2504 nsresult SupportsCommand(const char *command, PRBool *_retval);
2505 nsresult DoCommand(const char *command);
2506 nsresult OnEvent(const char *eventName);
2511 uuid(dd254504-e273-4923-9ec1-d8421a6635f1),
2514 interface nsIContent : nsISupports
2516 /* This is not a real interface declaration. It's too internal for us. */
2521 uuid(b2274bc3-4a1c-4e64-8de4-3bc650288438),
2524 interface nsIDocument : nsISupports
2526 /* This is not a real interface declaration. It's too internal for us. */
2531 uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
2534 interface nsIContentSerializer : nsISupports
2536 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2537 PRBool aIsWholeDocument);
2538 nsresult AppendText(nsIContent *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2539 nsresult AppendCDATASection(nsIContent *aCDATASection, PRInt32 aStartOffset,
2540 PRInt32 aEndOffset, nsAString *aStr);
2541 nsresult AppendProcessingInstruction(nsIContent* aPI, PRInt32 aStartOffset,
2542 PRInt32 aEndOffset, nsAString *aStr);
2543 nsresult AppendComment(nsIContent *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2545 nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
2546 nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
2548 nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
2549 nsresult Flush(nsAString *aStr);
2550 nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
2555 uuid(972e54e1-dec3-4e3f-87ec-408a7dbcfd92),
2558 interface nsIEditor : nsISupports
2560 typedef void *nsIPresShellPtr;
2561 typedef void *nsIContentPtr;
2563 nsresult GetSelection([out] nsISelection *_retval);
2564 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2565 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2566 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2567 nsresult PostCreate();
2568 nsresult PreDestroy();
2569 nsresult GetFlags([out] PRUint32 *_retval);
2570 nsresult SetFlags([in] PRUint32 val);
2571 nsresult GetContentsMIMEType([out] char **_retval);
2572 nsresult SetContentsMIMEType([in] const char *val);
2573 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2574 nsresult GetDocument([out] nsIDOMDocument **_retval);
2575 nsresult GetRootElement([out] nsIDOMElement **_retval);
2576 nsresult GetSelectionController([out] nsISelectionController **_retval);
2577 nsresult DeleteSelection([in] PRInt16 action);
2578 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2579 nsresult GetDocumentModified([out] PRBool *_retval);
2580 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2581 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2582 nsresult ResetModificationCount();
2583 nsresult GetModificationCount([out] PRInt32 *_retval);
2584 nsresult IncrementModificationCount([in] PRInt32 aModCount);
2585 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2586 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2587 nsresult DoTransaction([in] nsITransaction *txn);
2588 nsresult EnableUndo([in] PRBool enable);
2589 nsresult Undo([in] PRUint32 count);
2590 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2591 nsresult Redo([in] PRUint32 count);
2592 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2593 nsresult BeginTransaction();
2594 nsresult EndTransaction();
2595 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2596 nsresult EndPlaceHolderTransaction();
2597 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2598 nsresult SetShouldTxnSetSelection([in] PRBool should);
2599 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2600 nsresult SyncRealTimeSpell();
2601 nsresult SetSpellcheckUserOverride(PRBool enable);
2603 nsresult CanCut([out] PRBool *_retval);
2605 nsresult CanCopy([out] PRBool *_retval);
2606 nsresult Paste([in] PRInt32 aSelectionType);
2607 nsresult PasteTransferable(nsITransferable *aTransferable);
2608 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2609 nsresult CanPasteTransferable(nsITransferable *aTransferable, PRBool *_retval);
2610 nsresult SelectAll();
2611 nsresult BeginningOfDocument();
2612 nsresult EndOfDocument();
2613 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2614 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2615 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2616 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2617 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2618 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2619 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2620 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2621 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2622 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2623 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2624 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2625 nsresult DeleteNode([in] nsIDOMNode *child);
2626 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2627 nsresult SwitchTextDirection();
2628 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2629 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2630 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2631 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2632 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2633 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2634 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2635 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2636 nsresult DumpContentTree();
2637 nsresult DebugDumpContent();
2638 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2639 PRBool IsModifiableNode(nsIDOMNode *aNode);
2644 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2647 interface nsIHTMLEditor : nsISupports
2649 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2650 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2651 nsresult RemoveAllDefaultProperties();
2652 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2653 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2654 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2655 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2656 nsresult RemoveAllInlineProperties();
2657 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2658 nsresult IncreaseFontSize();
2659 nsresult DecreaseFontSize();
2660 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2661 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2662 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2663 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2664 nsresult InsertHTML([in] nsAString *aInputString);
2665 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2666 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2667 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);
2668 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2669 nsresult SetDocumentTitle([in] nsAString *aTitle);
2670 nsresult UpdateBaseURL();
2671 nsresult SelectElement([in] nsIDOMElement *aElement);
2672 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2673 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2674 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2675 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2676 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2677 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2678 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2679 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2680 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2681 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2682 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2683 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2684 nsresult RemoveList([in] nsAString *aListType);
2685 nsresult Indent([in] nsAString *aIndent);
2686 nsresult Align([in] nsAString *aAlign);
2687 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2688 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2689 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2690 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2691 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2692 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2693 nsresult SetBackgroundColor([in] nsAString *aColor);
2694 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2695 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2696 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2697 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2698 nsresult SetIsCSSEnabled([in] PRBool prb);
2699 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2700 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2701 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2702 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2703 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2704 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2705 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2706 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2711 uuid(bf6db598-3833-400b-9e53-ec220cb2496c),
2714 interface nsIDocShell : nsISupports
2716 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
2717 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
2718 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
2719 nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
2720 const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
2721 nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
2722 nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, PRBool aReplace);
2723 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
2724 nsresult PrepareForNewContentModel();
2725 nsresult SetCurrentURI(nsIURI *aURI);
2726 nsresult FirePageHideNotification(PRBool isUnload);
2727 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
2728 nsresult GetPresShell(nsIPresShell **aPresShell);
2729 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
2730 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
2731 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
2732 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
2733 nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
2734 nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
2735 nsresult GetAllowPlugins(PRBool *aAllowPlugins);
2736 nsresult SetAllowPlugins(PRBool aAllowPlugins);
2737 nsresult GetAllowJavascript(PRBool *aAllowJavascript);
2738 nsresult SetAllowJavascript(PRBool aAllowJavascript);
2739 nsresult GetAllowMetaRedirects(PRBool *aAllowMetaRedirects);
2740 nsresult SetAllowMetaRedirects(PRBool aAllowMetaRedirects);
2741 nsresult GetAllowSubframes(PRBool *aAllowSubframes);
2742 nsresult SetAllowSubframes(PRBool aAllowSubframes);
2743 nsresult GetAllowImages(PRBool *aAllowImages);
2744 nsresult SetAllowImages(PRBool aAllowImages);
2745 nsresult GetAllowDNSPrefetch(PRBool *aAllowDNSPrefetch);
2746 nsresult SetAllowDNSPrefetch(PRBool aAllowDNSPrefetch);
2747 nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
2748 nsresult GetAppType(PRUint32 *aAppType);
2749 nsresult SetAppType(PRUint32 aAppType);
2750 nsresult GetAllowAuth(PRBool *aAllowAuth);
2751 nsresult SetAllowAuth(PRBool aAllowAuth);
2752 nsresult GetZoom(float *aZoom);
2753 nsresult SetZoom(float aZoom);
2754 nsresult GetMarginWidth(PRInt32 *aMarginWidth);
2755 nsresult SetMarginWidth(PRInt32 aMarginWidth);
2756 nsresult GetMarginHeight(PRInt32 *aMarginHeight);
2757 nsresult SetMarginHeight(PRInt32 aMarginHeight);
2758 nsresult TabToTreeOwner(PRBool forward, PRBool *tookFocus);
2759 nsresult GetBusyFlags(PRUint32 *aBusyFlags);
2760 nsresult GetLoadType(PRUint32 *aLoadType);
2761 nsresult SetLoadType(PRUint32 aLoadType);
2762 nsresult IsBeingDestroyed(PRBool *_retval);
2763 nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
2764 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
2765 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
2766 nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
2767 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
2768 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
2769 nsresult SuspendRefreshURIs();
2770 nsresult ResumeRefreshURIs();
2771 nsresult BeginRestore(nsIContentViewer *viewer, PRBool top);
2772 nsresult FinishRestore();
2773 nsresult GetRestoringDocument(PRBool *aRestoringDocument);
2774 nsresult GetUseErrorPages(PRBool *aUseErrorPages);
2775 nsresult SetUseErrorPages(PRBool aUseErrorPages);
2776 nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
2777 nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
2778 nsresult HistoryPurged(PRInt32 numEntries);
2779 nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
2780 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
2781 PRBool create, nsIDOMStorage **_retval);
2782 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
2783 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
2784 nsresult SetChildOffset(PRUint32 offset);
2785 nsresult GetIsInUnload(PRBool *aIsInUnload);
2786 nsresult GetChannelIsUnsafe(PRBool *aChannelIsUnsafe);
2787 void DetachEditorFromWindow();
2788 nsresult GetIsOffScreenBrowser(PRBool *aIsOffScreenBrowser);
2789 nsresult SetIsOffScreenBrowser(PRBool aIsOffScreenBrowser);
2790 nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
2791 nsresult GetCanExecuteScripts(PRBool *aCanExecuteScripts);
2792 nsresult GetIsActive(PRBool *aIsActive);
2793 nsresult SetIsActive(PRBool aIsActive);
2798 uuid(85eea794-ed8e-4e1b-a128-d09300ae51aa),
2801 interface nsIMutationObserver : nsISupports
2803 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2804 void /*CharacterDataChangeInfo*/ *aInfo);
2805 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2806 void /*CharacterDataChangeInfo*/ *aInfo);
2807 void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2808 nsIAtom *aAttribute, PRInt32 aModType);
2809 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2810 nsIAtom *aAttribute, PRInt32 aModType);
2811 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent* aFirstNewContent,
2812 PRInt32 aNewIndexInContainer);
2813 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2814 PRInt32 aIndexInContainer);
2815 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2816 PRInt32 aIndexInContainer, nsIContent *aPreviousSibling);
2817 void NodeWillBeDestroyed(const nsINode *aNode);
2818 void ParentChainChanged(nsIContent *aContent);
2823 uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2826 interface nsIDocumentObserver : nsIMutationObserver
2828 typedef int nsUpdateType;
2830 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2831 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2832 void BeginLoad(nsIDocument *aDocument);
2833 void EndLoad(nsIDocument *aDocument);
2834 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2835 PRInt32 aStateMask);
2836 void DocumentStatesChanged(nsIDocument* aDocument, PRInt32 aStateMask);
2837 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2838 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2839 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2840 PRBool aApplicable);
2841 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2842 nsIStyleRule *aNewStyleRule);
2843 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2844 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2845 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2846 void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified);