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 nsIDOMBarProp;
111 typedef nsISupports nsIPrompt;
112 typedef nsISupports nsIAuthPrompt;
113 typedef nsISupports nsIDOMNamedNodeMap;
114 typedef nsISupports nsIDOMAttr;
115 typedef nsISupports nsIDOMDocumentType;
116 typedef nsISupports nsIDOMDOMImplementation;
117 typedef nsISupports nsIDOMCDATASection;
118 typedef nsISupports nsIDOMProcessingInstruction;
119 typedef nsISupports nsIDOMEntityReference;
120 typedef nsISupports nsIWebProgressListener;
121 typedef nsISupports nsIDOMCSSValue;
122 typedef nsISupports nsIPrintSession;
123 typedef nsISupports nsIControllerCommandTable;
124 typedef nsISupports nsIPrincipal;
125 typedef nsISupports nsIAtom;
126 typedef nsISupports nsISupportsArray;
127 typedef nsISupports nsIContentFilter;
128 typedef nsISupports nsIDOMMediaList;
129 typedef nsISupports nsIDOMHTMLTableCaptionElement;
130 typedef nsISupports nsIDOMHTMLTableSectionElement;
131 typedef nsISupports nsIDOMClientRectList;
132 typedef nsISupports nsIDOMLocation;
133 typedef nsISupports nsINode;
134 typedef nsISupports nsIStyleSheet;
135 typedef nsISupports nsIStyleRule;
136 typedef nsISupports nsIVariant;
137 typedef nsISupports nsIDOMUserDataHandler;
138 typedef nsISupports nsIDocShellLoadInfo;
139 typedef nsISupports nsISHEntry;
140 typedef nsISupports nsIPresShell;
141 typedef nsISupports nsIContentViewer;
142 typedef nsISupports nsIDocumentCharsetInfo;
143 typedef nsISupports nsILayoutHistoryState;
144 typedef nsISupports nsISecureBrowserUI;
145 typedef nsISupports nsIDOMStorage;
146 typedef nsISupports nsIDOMDOMTokenList;
147 typedef nsISupports nsITransferable;
148 typedef nsISupports nsIDOMHTMLHeadElement;
149 typedef nsISupports nsIDOMFileList;
150 typedef nsISupports nsIControllers;
154 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
157 interface nsIServiceManager : nsISupports
159 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
160 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
161 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
162 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
167 uuid(00000001-0000-0000-c000-000000000046),
170 interface nsIFactory : nsISupports
172 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
173 nsresult LockFactory(PRBool lock);
178 uuid(db242e01-e4d9-11d2-9dde-000064657374),
181 interface nsIObserver : nsISupports
183 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
188 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
191 interface nsIComponentManager : nsISupports
193 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, void **result);
194 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, void **result);
195 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
197 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
198 nsIIDRef aIID, void **result);
203 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
206 interface nsIMemory : nsISupports
208 void *Alloc(/*size_t*/ int size);
209 void *Realloc(void *_ptr, /*size_t*/ int newSize);
210 void Free(void *_ptr);
211 nsresult HeapMinimize(PRBool immediate);
212 nsresult IsLowMemory(PRBool *_retval);
217 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
220 interface nsIWeakReference : nsISupports
222 nsresult QueryReferent(const nsIID *riid, void **result);
227 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
230 interface nsISupportsWeakReference : nsISupports
232 nsresult GetWeakReference(nsIWeakReference **_retval);
237 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
240 interface nsIInterfaceRequestor : nsISupports
242 nsresult GetInterface(const nsIID *riid, void **result);
247 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
250 interface nsIRunnable : nsISupports
257 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
260 interface nsISimpleEnumerator : nsISupports
262 nsresult HasMoreElements(PRBool *_retval);
263 nsresult GetNext(nsISupports **_retval);
268 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
271 interface nsIInputStream : nsISupports
274 nsresult Available(PRUint32 *_retval);
275 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
276 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
277 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
278 PRUint32 aCount, PRUint32 *aWriteCount),
279 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
280 nsresult IsNonBlocking(PRBool *_retval);
285 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
288 interface nsIURI : nsISupports
290 nsresult GetSpec(nsACString *aSpec);
291 nsresult SetSpec(const nsACString *aSpec);
292 nsresult GetPrePath(nsACString *aPrePath);
293 nsresult GetScheme(nsACString *aScheme);
294 nsresult SetScheme(const nsACString *aScheme);
295 nsresult GetUserPass(nsACString *aUserPass);
296 nsresult SetUserPass(const nsACString *aUserPass);
297 nsresult GetUsername(nsACString *aUsername);
298 nsresult SetUsername(const nsACString *aUsername);
299 nsresult GetPassword(nsACString *aPassword);
300 nsresult SetPassword(const nsACString *aPassword);
301 nsresult GetHostPort(nsACString *aHostPort);
302 nsresult SetHostPort(const nsACString *aHostPort);
303 nsresult GetHost(nsACString *aHost);
304 nsresult SetHost(const nsACString *aHost);
305 nsresult GetPort(PRInt32 *aPort);
306 nsresult SetPort(PRInt32 aPort);
307 nsresult GetPath(nsACString *aPath);
308 nsresult SetPath(const nsACString *aPath);
309 nsresult Equals(nsIURI *other, PRBool *_retval);
310 nsresult SchemeIs(const char *scheme, PRBool *_retval);
311 nsresult Clone(nsIURI **_retval);
312 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
313 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
314 nsresult GetAsciiHost(nsACString *aAsciiHost);
315 nsresult GetOriginCharset(nsACString *aOriginCharset);
320 uuid(d6116970-8034-11d3-9399-00104ba0fd40),
323 interface nsIURL : nsIURI
325 nsresult GetFilePath(nsACString *aFilePath);
326 nsresult SetFilePath(const nsACString *aFilePath);
327 nsresult GetParam(nsACString *aParam);
328 nsresult SetParam(const nsACString *aParam);
329 nsresult GetQuery(nsACString *aQuery);
330 nsresult SetQuery(const nsACString *aQuery);
331 nsresult GetRef(nsACString *aRef);
332 nsresult SetRef(const nsACString *aRef);
333 nsresult GetDirectory(nsACString *aDirectory);
334 nsresult SetDirectory(const nsACString *aDirectory);
335 nsresult GetFileName(nsACString *aFileName);
336 nsresult SetFileName(const nsACString *aFileName);
337 nsresult GetFileBaseName(nsACString *aFileBaseName);
338 nsresult SetFileBaseName(const nsACString *aFileBaseName);
339 nsresult GetFileExtension(nsACString *aFileExtension);
340 nsresult SetFileExtension(const nsACString *aFileExtension);
341 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
342 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
347 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
350 interface nsIRequest : nsISupports
352 nsresult GetName(nsACString *aName);
353 nsresult IsPending(PRBool *_retval);
354 nsresult GetStatus(nsresult *aStatus);
355 nsresult Cancel(nsresult aStatus);
358 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
359 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
360 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
361 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
366 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
369 interface nsIRequestObserver : nsISupports
371 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
372 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
377 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
380 interface nsIStreamListener : nsIRequestObserver
382 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
383 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
388 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
391 interface nsILoadGroup : nsIRequest
393 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
394 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
395 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
396 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
397 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
398 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
399 nsresult GetRequests(nsISimpleEnumerator **aRequests);
400 nsresult GetActiveCount(PRUint32 *aActiveCount);
401 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
402 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
407 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
410 interface nsIChannel : nsIRequest
412 nsresult GetOriginalURI(nsIURI **aOriginalURI);
413 nsresult SetOriginalURI(nsIURI *aOriginalURI);
414 nsresult GetURI(nsIURI **aURI);
415 nsresult GetOwner(nsISupports **aOwner);
416 nsresult SetOwner(nsISupports *aOwner);
417 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
418 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
419 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
420 nsresult GetContentType(nsACString *aContentType);
421 nsresult SetContentType(const nsACString *aContentType);
422 nsresult GetContentCharset(nsACString *aContentCharset);
423 nsresult SetContentCharset(const nsACString *aContentCharset);
424 nsresult GetContentLength(PRInt32 *aContentLength);
425 nsresult SetContentLength(PRInt32 aContentLength);
426 nsresult Open(nsIInputStream **_retval);
427 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
432 uuid(0cf40717-d7c1-4a94-8c1e-d6c9734101bb),
435 interface nsIHttpHeaderVisitor : nsISupports
437 nsresult VisitHeader(const nsACString *aHeader, const nsACString *aValue);
442 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
445 interface nsIHttpChannel : nsIChannel
447 nsresult GetRequestMethod(nsACString *aRequestMethod);
448 nsresult SetRequestMethod(const nsACString *aRequestMethod);
449 nsresult GetReferrer(nsIURI **aReferrer);
450 nsresult SetReferrer(nsIURI *aReferrer);
451 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
452 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
453 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
454 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
455 nsresult SetAllowPipelining(PRBool aAllowPipelining);
456 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
457 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
458 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
459 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
460 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
461 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
462 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
463 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
464 nsresult IsNoStoreResponse(PRBool *_retval);
465 nsresult IsNoCacheResponse(PRBool *_retval);
470 uuid(91dbb42a-dffc-4f47-8b27-9579c0d92c3f),
473 interface nsIHttpChannelInternal : nsISupports
475 nsresult GetDocumentURI(nsIURI **aDocumentURI);
476 nsresult SetDocumentURI(nsIURI *aDocumentURI);
477 nsresult GetRequestVersion(PRUint32 *major, PRUint32 *minor);
478 nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
479 nsresult SetCookie(const char *aCookieHeader);
480 nsresult SetupFallbackChannel(const char *aFallbackKey);
481 nsresult GetForceAllowThirdPartyCookie(PRBool *aForceAllowThirdPartyCookie);
482 nsresult SetForceAllowThirdPartyCookie(PRBool aForceAllowThirdPartyCookie);
483 nsresult GetCanceled(PRBool *aCanceled);
488 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
491 interface nsIUploadChannel : nsISupports
493 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
494 PRInt32 aContentLength);
495 nsresult GetUploadStream(nsIInputStream **aUploadStream);
500 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
503 interface nsIDOMCSSRule : nsISupports
505 nsresult GetType(PRUint16 *aType);
506 nsresult GetCssText(nsAString *aCssText);
507 nsresult SetCssText(const nsAString *aCssText);
508 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
509 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
514 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
517 interface nsIDOMCSSStyleDeclaration : nsISupports
519 nsresult GetCssText(nsAString *aCssText);
520 nsresult SetCssText(const nsAString *aCssText);
521 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
522 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
523 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
524 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
525 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
526 const nsAString *priority);
527 nsresult GetLength(PRUint32 *aLength);
528 nsresult Item(PRUint32 index, nsAString *_retval);
529 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
534 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
537 interface nsIDOMCSSRuleList : nsISupports
539 nsresult GetLength(PRUint32 *aLength);
540 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
545 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
548 interface nsIDOMStyleSheet : nsISupports
550 nsresult GetType(nsAString *aType);
551 nsresult GetDisabled(PRBool *aDisabled);
552 nsresult SetDisabled(PRBool aDisabled);
553 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
554 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
555 nsresult GetHref(nsAString *aHref);
556 nsresult GetTitle(nsAString *aTitle);
557 nsresult GetMedia(nsIDOMMediaList **aMedia);
562 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
565 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
567 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
568 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
569 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
570 nsresult DeleteRule(PRUint32 index);
575 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
578 interface nsIDOMStyleSheetList : nsISupports
580 nsresult GetLength(PRUint32 *aLength);
581 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
586 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
589 interface nsIDOMNodeList : nsISupports
591 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
592 nsresult GetLength(PRUint32 *aLength);
597 uuid(29fb2a18-1dd2-11b2-8dd9-a6fd5d5ad12f),
600 interface nsIDOM3Node : nsISupports
608 IMPLEMENTATION_SPECIFIC = 32
611 nsresult GetBaseURI(nsAString *aBaseURI);
612 nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
613 nsresult GetTextContent(nsAString *aTextContent);
614 nsresult SetTextContent(const nsAString *aTextContent);
615 nsresult IsSameNode(nsIDOMNode *other, PRBool *_retval);
616 nsresult LookupPrefix(const nsAString *namespaceURI, PRBool *_retval);
617 nsresult IsDefaultNamespace(const nsAString *namespaceURI, PRBool *_retval);
618 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString _retval);
619 nsresult IsEqualNode(nsIDOMNode *arg, PRBool *_retval);
620 nsresult GetFeature(const nsAString *feature, const nsAString *version, nsISupports **_retval);
621 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
622 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
627 uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
630 interface nsIDOMNode : nsISupports
636 CDATA_SELECTION_NODE = 4,
637 ENTITY_REFERENCE_NODE = 5,
639 PROCESSING_INSTRUCTION_NODE = 7,
642 DOCUMENT_TYPE_NODE = 10,
643 DOCUMENT_FRAGMENT_NODE = 11,
647 nsresult GetNodeName(nsAString *aNodeName);
648 nsresult GetNodeValue(nsAString *aNodeValue);
649 nsresult SetNodeValue(const nsAString *aNodeValue);
650 nsresult GetNodeType(PRUint16 *aNodeType);
651 nsresult GetParentNode(nsIDOMNode **aParentNode);
652 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
653 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
654 nsresult GetLastChild(nsIDOMNode **aLastChild);
655 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
656 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
657 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
658 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
659 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
660 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
661 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
662 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
663 nsresult HasChildNodes(PRBool *_retval);
664 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
665 nsresult Normalize();
666 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
667 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
668 nsresult GetPrefix(nsAString *aPrefix);
669 nsresult SetPrefix(const nsAString *aPrefix);
670 nsresult GetLocalName(nsAString *aLocalName);
671 nsresult HasAttributes(PRBool *_retval);
676 uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
679 interface nsIDOMElement : nsIDOMNode
681 nsresult GetTagName(nsAString *aTagName);
682 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
683 nsresult SetAttribute(const nsAString *name, const nsAString *value);
684 nsresult RemoveAttribute(const nsAString *name);
685 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
686 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
687 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
688 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
689 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
691 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
692 const nsAString *value);
693 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
694 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
695 nsIDOMAttr **_retval);
696 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
697 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
698 nsIDOMNodeList **_retval);
699 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
700 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
706 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
709 interface nsIDOMElementCSSInlineStyle : nsISupports
711 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
716 uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
719 interface nsIDOMClientRect : nsISupports
721 nsresult GetLeft(float *aLeft);
722 nsresult GetTop(float *aTop);
723 nsresult GetRight(float *aRight);
724 nsresult GetBottom(float *aBottom);
725 nsresult GetWidth(float *aWidth);
726 nsresult GetHeight(float *aHeight);
731 uuid(d894b5d4-44f3-422a-a220-7763c12d4a94),
734 interface nsIDOMNSElement : nsISupports
736 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
737 nsresult GetClientRects(nsIDOMClientRectList **_retval);
738 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
739 nsresult GetScrollTop(PRInt32 *aScrollTop);
740 nsresult SetScrollTop(PRInt32 aScrollTop);
741 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
742 nsresult SetScrollLeft(PRInt32 aScrollLeft);
743 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
744 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
745 nsresult GetClientTop(PRInt32 *aClientTop);
746 nsresult GetClientLeft(PRInt32 *aClientLeft);
747 nsresult GetClientHeight(PRInt32 *aClientHeight);
748 nsresult GetClientWidth(PRInt32 *aClientWidth);
749 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
750 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
751 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
752 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
753 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
754 nsresult GetChildren(nsIDOMNodeList **aChildren);
755 nsresult GetClassList(nsIDOMDOMTokenList **aClassList);
756 nsresult SetCapture(PRBool retargetToElement);
757 nsresult ReleaseCapture();
758 nsresult MozMatchesSelector(const nsAString *selector, PRBool *_retval);
761 cpp_quote("#undef GetClassName")
765 uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
768 interface nsIDOMHTMLElement : nsIDOMElement
770 nsresult GetId(nsAString *aId);
771 nsresult SetId(const nsAString *aId);
772 nsresult GetTitle(nsAString *aTitle);
773 nsresult SetTitle(const nsAString *aTitle);
774 nsresult GetLang(nsAString *aLang);
775 nsresult SetLang(const nsAString *aLang);
776 nsresult GetDir(nsAString *aDir);
777 nsresult SetDir(const nsAString *aDir);
778 nsresult GetClassName(nsAString *aClassName);
779 nsresult SetClassName(const nsAString *aClassName);
784 uuid(f0ffe1d2-9615-492b-aae1-05428ebc2a70),
787 interface nsIDOMNSHTMLElement : nsISupports
789 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
790 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
791 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
792 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
793 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
794 nsresult GetInnerHTML(nsAString *aInnerHTML);
795 nsresult SetInnerHTML(const nsAString *aInnerHTML);
796 nsresult GetHidden(PRBool *aHidden);
797 nsresult SetHidden(PRBool aHidden);
798 nsresult GetTabIndex(PRInt32 *aTabIndex);
799 nsresult SetTabIndex(PRInt32 aTabIndex);
800 nsresult GetContentEditable(nsAString *aContentEditable);
801 nsresult SetContentEditable(const nsAString *aContentEditable);
802 nsresult GetIsContentEditable(PRBool *aIsContentEditable);
803 nsresult GetDraggable(PRBool *aDraggable);
804 nsresult SetDraggable(PRBool aDraggable);
807 nsresult ScrollIntoView(PRBool top, PRUint8 _argc);
808 nsresult GetSpellcheck(PRBool *aSpellcheck);
809 nsresult SetSpellcheck(PRBool aSpellcheck);
814 uuid(a6cf9083-15b3-11d2-932e-00805f8add32),
817 interface nsIDOMHTMLCollection : nsISupports
819 nsresult GetLength(PRUint32 *aLength);
820 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
821 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
826 uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
829 interface nsIDOMCharacterData : nsIDOMNode
831 nsresult GetData(nsAString *aData);
832 nsresult SetData(const nsAString *aData);
833 nsresult GetLength(PRUint32 *aLength);
834 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
835 nsresult AppendData(const nsAString *arg);
836 nsresult InsertData(PRUint32 offset, const nsAString *arg);
837 nsresult DeleteData(PRUint32 offset, PRUint32 count);
838 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
843 uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
846 interface nsIDOMText : nsIDOMCharacterData
848 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
853 uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
856 interface nsIDOMComment : nsIDOMCharacterData
862 uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
865 interface nsIDOMDocumentFragment : nsIDOMNode
871 uuid(f51ebade-8b1a-11d3-aae7-0010830123b4),
874 interface nsIDOMAbstractView : nsISupports
876 nsresult GetDocument(nsIDOMDocumentView **aDocument);
881 uuid(0b9341f3-95d4-4fa4-adcd-e119e0db2889),
884 interface nsIDOMViewCSS : nsIDOMAbstractView
886 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
891 uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
894 interface nsIDOMDocument : nsIDOMNode
896 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
897 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
898 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
899 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
900 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
901 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
902 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
903 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
904 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
905 nsIDOMProcessingInstruction **_retval);
906 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
907 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
908 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
909 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
910 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
911 nsIDOMElement **_retval);
912 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
913 nsIDOMAttr **_retval);
914 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
915 nsIDOMNodeList **_retval);
916 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
921 uuid(7485b35e-d215-42a0-8a67-896f86c8afd9),
924 interface nsIDOMNSDocument : nsISupports
926 nsresult GetCharacterSet(nsAString *aCharacterSet);
927 nsresult GetDir(nsAString *aDir);
928 nsresult SetDir(const nsAString *aDir);
929 nsresult GetLocation(nsIDOMLocation **aLocation);
930 nsresult GetTitle(nsAString *aTitle);
931 nsresult SetTitle(const nsAString *aTitle);
932 nsresult GetContentType(nsAString *aContentType);
933 nsresult GetReadyState(nsAString *aReadyState);
934 nsresult GetLastModified(nsAString *aLastModified);
935 nsresult GetReferrer(nsAString *aReferrer);
936 nsresult HasFocus(PRBool *_retval);
937 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
938 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
939 nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
940 nsresult ReleaseCapture();
941 nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
943 /* Wine extensions */
944 nsresult WineAddObserver(nsIDocumentObserver *aObserver);
945 nsresult WineRemoveObserver(nsIDocumentObserver *aObserver);
946 nsresult WineAddScriptRunner(nsIRunnable *aRunnable);
951 uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
954 interface nsIDOMHTMLDocument : nsIDOMDocument
956 nsresult GetTitle(nsAString *aTitle);
957 nsresult SetTitle(const nsAString *aTitle);
958 nsresult GetReferrer(nsAString *aReferrer);
959 nsresult GetDomain(nsAString *aDomain);
960 nsresult GetURL(nsAString *aURL);
961 nsresult GetBody(nsIDOMHTMLElement **aBody);
962 nsresult SetBody(nsIDOMHTMLElement *aBody);
963 nsresult GetImages(nsIDOMHTMLCollection **aImages);
964 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
965 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
966 nsresult GetForms(nsIDOMHTMLCollection **aForms);
967 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
968 nsresult GetCookie(nsAString *aCookie);
969 nsresult SetCookie(const nsAString *aCookie);
972 nsresult Write(const nsAString *text);
973 nsresult Writeln(const nsAString *text);
974 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
979 uuid(95cd5ad4-ae8a-4f0e-b168-35e03d5e0b9a),
982 interface nsIDOMNSHTMLDocument : nsISupports
984 nsresult GetWidth(PRInt32 *aWidth);
985 nsresult GetHeight(PRInt32 *aHeight);
986 nsresult GetAlinkColor(nsAString *aAlinkColor);
987 nsresult SetAlinkColor(const nsAString *aAlinkColor);
988 nsresult GetLinkColor(nsAString *aLinkColor);
989 nsresult SetLinkColor(const nsAString *aLinkColor);
990 nsresult GetVlinkColor(nsAString *aVlinkColor);
991 nsresult SetVlinkColor(const nsAString *aVlinkColor);
992 nsresult GetBgColor(nsAString *aBgColor);
993 nsresult SetBgColor(const nsAString *aBgColor);
994 nsresult GetFgColor(nsAString *aFgColor);
995 nsresult SetFgColor(const nsAString *aFgColor);
996 nsresult GetDomain(nsAString *aDomain);
997 nsresult SetDomain(const nsAString *aDomain);
998 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
999 nsresult GetSelection(nsAString *_retval);
1000 nsresult Open(nsACString *aContentType, PRBool aReplace, nsIDOMDocument **_retval);
1002 nsresult CaptureEvents(PRInt32 eventFlags);
1003 nsresult ReleaseEvents(PRInt32 eventFlags);
1004 nsresult RouteEvent(nsIDOMEvent *evt);
1005 nsresult GetCompatMode(nsAString *aCompatMode);
1006 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1007 nsresult GetDesignMode(nsAString *aDesignMode);
1008 nsresult SetDesignMode(const nsAString *aDesignMode);
1009 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
1010 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
1011 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
1012 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
1013 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
1014 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
1015 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
1016 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1017 nsresult GetHead(nsIDOMHTMLHeadElement *_retval);
1022 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
1025 interface nsIDOMDocumentStyle : nsISupports
1027 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1032 uuid(1acdb2ba-1dd2-11b2-95bc-9542495d2569),
1035 interface nsIDOMDocumentView : nsISupports
1037 nsresult GetDefaultView(nsIDOMAbstractView **aDefaultView);
1042 uuid(46b91d66-28e2-11d4-ab1e-0010830123b4),
1045 interface nsIDOMDocumentEvent : nsISupports
1047 cpp_quote("#undef CreateEvent")
1048 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1053 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
1056 interface nsIDOMRange : nsISupports
1065 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1066 nsresult GetStartOffset(PRInt32 *aStartOffset);
1067 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1068 nsresult GetEndOffset(PRInt32 *aEndOffset);
1069 nsresult GetCollapsed(PRBool *aCollapsed);
1070 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1071 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1072 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1073 nsresult SetStartBefore(nsIDOMNode *refNode);
1074 nsresult SetStartAfter(nsIDOMNode *refNode);
1075 nsresult SetEndBefore(nsIDOMNode *refNode);
1076 nsresult SetEndAfter(nsIDOMNode *refNode);
1077 nsresult Collapse(PRBool toStart);
1078 nsresult SelectNode(nsIDOMNode *refNode);
1079 nsresult SelectNodeContents(nsIDOMNode *refNode);
1080 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1081 nsresult DeleteContents();
1082 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1083 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1084 nsresult InsertNode(nsIDOMNode *newNode);
1085 nsresult SurroundContents(nsIDOMNode *newParent);
1086 nsresult CloneRange(nsIDOMRange **_retval);
1087 nsresult ToString(nsAString *_retval);
1093 uuid(fed93d11-f24d-41d8-ae55-4197927999bb),
1096 interface nsIDOMNSRange : nsISupports
1098 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1099 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1100 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1101 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1102 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1108 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1111 interface nsIDOMDocumentRange : nsISupports
1113 nsresult CreateRange(nsIDOMRange **_retval);
1118 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1121 interface nsISelection : nsISupports
1123 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1124 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1125 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1126 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1127 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1128 nsresult GetRangeCount(PRInt32 *aRangeCount);
1129 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1130 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1131 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1132 nsresult CollapseToStart();
1133 nsresult CollapseToEnd();
1134 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1135 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1136 nsresult AddRange(nsIDOMRange *range);
1137 nsresult RemoveRange(nsIDOMRange *range);
1138 nsresult RemoveAllRanges();
1139 nsresult DeleteFromDocument();
1140 nsresult SelectionLanguageChange(PRBool langRTL);
1141 nsresult ToString(PRUnichar **_retval);
1146 uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1149 interface nsIDOMWindowCollection : nsISupports
1151 nsresult GetLength(PRUint32 *aLength);
1152 nsresult Item(PRUint32 index, nsIDOMWindow **_retval);
1153 nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1158 uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1161 interface nsIDOMWindow : nsISupports
1163 nsresult GetDocument(nsIDOMDocument **aDocument);
1164 nsresult GetParent(nsIDOMWindow **aParent);
1165 nsresult GetTop(nsIDOMWindow **aTop);
1166 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1167 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1168 nsresult GetName(nsAString *aName);
1169 nsresult SetName(const nsAString *aName);
1170 nsresult GetTextZoom(float *aTextZoom);
1171 nsresult SetTextZoom(float aTextZoom);
1172 nsresult GetScrollX(PRInt32 *aScrollX);
1173 nsresult GetScrollY(PRInt32 *aScrollY);
1174 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1175 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1176 nsresult GetSelection(nsISelection **_retval);
1177 nsresult ScrollByLines(PRInt32 numLines);
1178 nsresult ScrollByPages(PRInt32 numPages);
1179 nsresult SizeToContent();
1184 uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1187 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1189 nsresult GetALink(nsAString *aALink);
1190 nsresult SetALink(const nsAString *aALink);
1191 nsresult GetBackground(nsAString *aBackground);
1192 nsresult SetBackground(const nsAString *aBackground);
1193 nsresult GetBgColor(nsAString *aBgColor);
1194 nsresult SetBgColor(const nsAString *aBgColor);
1195 nsresult GetLink(nsAString *aLink);
1196 nsresult SetLink(const nsAString *aLink);
1197 nsresult GetText(nsAString *aText);
1198 nsresult SetText(const nsAString *aText);
1199 nsresult GetVLink(nsAString *aVLink);
1200 nsresult SetVLink(const nsAString *aVLink);
1205 uuid(a6cf908f-15b3-11d2-932e-00805f8add32),
1208 interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
1210 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1211 nsresult GetLength(PRInt32 *aLength);
1212 nsresult GetName(nsAString *aName);
1213 nsresult SetName(const nsAString *aName);
1214 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1215 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1216 nsresult GetAction(nsAString *aAction);
1217 nsresult SetAction(const nsAString *aAction);
1218 nsresult GetEnctype(nsAString *aEnctype);
1219 nsresult SetEnctype(const nsAString *aEnctype);
1220 nsresult GetMethod(nsAString *aMethod);
1221 nsresult SetMethod(const nsAString *aMethod);
1222 nsresult GetTarget(nsAString *aTarget);
1223 nsresult SetTarget(const nsAString *aTarget);
1230 uuid(2480b6f0-094e-484f-8717-0c204ed23e69),
1233 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1235 nsresult GetAccept(nsAString *aAccept);
1236 nsresult SetAccept(const nsAString *aAccept);
1237 nsresult GetAlt(nsAString *aAlt);
1238 nsresult SetAlt(const nsAString *aAlt);
1239 nsresult GetAutofocus(PRBool *aAutofocus);
1240 nsresult SetAutofocus(PRBool aAutofocus);
1241 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1242 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1243 nsresult GetChecked(PRBool *aChecked);
1244 nsresult SetChecked(PRBool aChecked);
1245 nsresult GetDisabled(PRBool *aDisabled);
1246 nsresult SetDisabled(PRBool aDisabled);
1247 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1248 nsresult GetFiles(nsIDOMFileList **aFiles);
1249 nsresult GetIndeterminate(PRBool *aIndeterminate);
1250 nsresult SetIndeterminate(PRBool aIndeterminate);
1251 nsresult GetMaxLength(PRInt32 *aMaxLength);
1252 nsresult SetMaxLength(PRInt32 aMaxLength);
1253 nsresult GetMultiple(PRBool *aMultiple);
1254 nsresult SetMultiple(PRBool aMultiple);
1255 nsresult GetName(nsAString *aName);
1256 nsresult SetName(const nsAString *aName);
1257 nsresult GetPlaceholder(nsAString *aPlaceholder);
1258 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1259 nsresult GetReadOnly(PRBool *aReadOnly);
1260 nsresult SetReadOnly(PRBool aReadOnly);
1261 nsresult GetAccessKey(nsAString *aAccessKey);
1262 nsresult SetAccessKey(const nsAString *aAccessKey);
1263 nsresult GetAlign(nsAString *aAlign);
1264 nsresult SetAlign(const nsAString *aAlign);
1265 nsresult GetSize(PRUint32 *aSize);
1266 nsresult SetSize(PRUint32 aSize);
1267 nsresult GetSrc(nsAString *aSrc);
1268 nsresult SetSrc(const nsAString *aSrc);
1269 nsresult GetType(nsAString *aType);
1270 nsresult SetType(const nsAString *aType);
1271 nsresult GetDefaultValue(nsAString *aDefaultValue);
1272 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1273 nsresult GetValue(nsAString *aValue);
1274 nsresult SetValue(const nsAString *aValue);
1276 nsresult GetSelectionStart(PRInt32 *aSelectionStart);
1277 nsresult SetSelectionStart(PRInt32 aSelectionStart);
1278 nsresult GetSelectionEnd(PRInt32 *aSelectionEnd);
1279 nsresult SetSelectionEnd(PRInt32 aSelectionEnd);
1280 nsresult SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd);
1281 nsresult GetTabIndex(PRInt32 *aTabIndex);
1282 nsresult SetTabIndex(PRInt32 aTabIndex);
1283 nsresult GetUseMap(nsAString *aUseMap);
1284 nsresult SetUseMap(const nsAString *aUseMap);
1285 nsresult GetControllers(nsIControllers **aControllers);
1286 nsresult GetTextLength(PRInt32 *aTextLength);
1287 nsresult MozGetFileNameArray(PRUint32 *aLength, PRUnichar ***aFileNames);
1288 nsresult MozSetFileNameArray(const PRUnichar **aFileNames, PRUint32 aLength);
1289 nsresult MozIsTextField(PRBool aExcludePassword, PRBool *_retval);
1297 uuid(611d00f5-1eb8-4571-b995-2a2019d2d11c),
1300 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1302 nsresult GetDisabled(PRBool *aDisabled);
1303 nsresult SetDisabled(PRBool aDisabled);
1304 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1305 nsresult GetLabel(nsAString *aLabel);
1306 nsresult SetLabel(const nsAString *aLabel);
1307 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1308 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1309 nsresult GetSelected(PRBool *aSelected);
1310 nsresult SetSelected(PRBool aSelected);
1311 nsresult GetValue(nsAString *aValue);
1312 nsresult SetValue(const nsAString *aValue);
1313 nsresult GetText(nsAString *aText);
1314 nsresult SetText(const nsAString *aText);
1315 nsresult GetIndex(PRInt32 *aIndex);
1320 uuid(bce0213c-f70f-488f-b93f-688acca55d63),
1323 interface nsIDOMHTMLOptionsCollection : nsISupports
1325 nsresult GetLength(PRUint32 *aLength);
1326 nsresult SetLength(PRUint32 aLength);
1327 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1328 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1333 uuid(110a4b15-e0a2-48d7-8e59-d8d94ef510ad),
1336 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1338 nsresult GetAutofocus(PRBool *aAutofocus);
1339 nsresult SetAutofocus(PRBool aAutofocus);
1340 nsresult GetDisabled(PRBool *aDisabled);
1341 nsresult SetDisabled(PRBool aDisabled);
1342 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1343 nsresult GetMultiple(PRBool *aMultiple);
1344 nsresult SetMultiple(PRBool aMultiple);
1345 nsresult GetName(nsAString *aName);
1346 nsresult SetName(const nsAString *aName);
1347 nsresult GetSize(PRInt32 *aSize);
1348 nsresult SetSize(PRInt32 aSize);
1349 nsresult GetType(nsAString *aType);
1350 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1351 nsresult GetLength(PRUint32 *aLength);
1352 nsresult SetLength(PRUint32 aLength);
1353 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1354 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1355 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1356 nsresult Remove(PRInt32 index);
1357 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1358 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1359 nsresult GetValue(nsAString *aValue);
1360 nsresult SetValue(const nsAString *aValue);
1361 nsresult GetTabIndex(PRInt32 *aTabIndex);
1362 nsresult SetTabIndex(PRInt32 aTabIndex);
1369 uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1372 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1374 nsresult GetDefaultValue(nsAString *aDefaultValue);
1375 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1376 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1377 nsresult GetAccessKey(nsAString *aAccessKey);
1378 nsresult SetAccessKey(const nsAString *aAccessKey);
1379 nsresult GetCols(PRInt32 *aCols);
1380 nsresult SetCols(PRInt32 aCols);
1381 nsresult GetDisabled(PRBool *aDisabled);
1382 nsresult SetDisabled(PRBool aDisabled);
1383 nsresult GetName(nsAString *aName);
1384 nsresult SetName(const nsAString *aName);
1385 nsresult GetReadOnly(PRBool *aReadOnly);
1386 nsresult SetReadOnly(PRBool aReadOnly);
1387 nsresult GetRows(PRInt32 *aRows);
1388 nsresult SetRows(PRInt32 aRows);
1389 nsresult GetTabIndex(PRInt32 *aTabIndex);
1390 nsresult SetTabIndex(PRInt32 aTabIndex);
1391 nsresult GetType(nsAString *aType);
1392 nsresult GetValue(nsAString *aValue);
1393 nsresult SetValue(const nsAString *aValue);
1401 uuid(4af8568c-375c-42fd-a82f-b25a7c03fc3e),
1404 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1406 nsresult GetSrc(nsAString *aSrc);
1407 nsresult SetSrc(const nsAString *aSrc);
1408 nsresult GetAsync(PRBool *aAsync);
1409 nsresult SetAsync(PRBool aAsync);
1410 nsresult GetDefer(PRBool *aDefer);
1411 nsresult SetDefer(PRBool aDefer);
1412 nsresult GetType(nsAString *aType);
1413 nsresult SetType(const nsAString *aType);
1414 nsresult GetCharset(nsAString *aCharset);
1415 nsresult SetCharset(const nsAString *aCharset);
1416 nsresult GetText(nsAString *aText);
1417 nsresult SetText(const nsAString *aText);
1418 nsresult GetHtmlFor(nsAString *aHtmlFor);
1419 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1420 nsresult GetEvent(nsAString *aEvent);
1421 nsresult SetEvent(const nsAString *aEvent);
1426 uuid(3fc9c313-49b9-4315-b39f-7166cf362e10),
1429 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1431 nsresult GetAlt(nsAString *aAlt);
1432 nsresult SetAlt(const nsAString *aAlt);
1433 nsresult GetSrc(nsAString *aSrc);
1434 nsresult SetSrc(const nsAString *aSrc);
1435 nsresult GetUseMap(nsAString *aUseMap);
1436 nsresult SetUseMap(const nsAString *aUseMap);
1437 nsresult GetIsMap(PRBool *aIsMap);
1438 nsresult SetIsMap(PRBool aIsMap);
1439 nsresult GetWidth(PRInt32 *aWidth);
1440 nsresult SetWidth(PRInt32 aWidth);
1441 nsresult GetHeight(PRInt32 *aHeight);
1442 nsresult SetHeight(PRInt32 aHeight);
1443 nsresult GetNaturalWidth(PRInt32 *aNaturalWidth);
1444 nsresult GetNaturalHeight(PRInt32 *aNaturalHeight);
1445 nsresult GetComplete(PRBool *aComplete);
1446 nsresult GetName(nsAString *aName);
1447 nsresult SetName(const nsAString *aName);
1448 nsresult GetAlign(nsAString *aAlign);
1449 nsresult SetAlign(const nsAString *aAlign);
1450 nsresult GetBorder(nsAString *aBorder);
1451 nsresult SetBorder(const nsAString *aBorder);
1452 nsresult GetHspace(PRInt32 *aHspace);
1453 nsresult SetHspace(PRInt32 aHspace);
1454 nsresult GetLongDesc(nsAString *aLongDesc);
1455 nsresult SetLongDesc(const nsAString *aLongDesc);
1456 nsresult GetVspace(PRInt32 *aVspace);
1457 nsresult SetVspace(PRInt32 aVspace);
1458 nsresult GetLowsrc(nsAString *aLowsrc);
1459 nsresult SetLowsrc(const nsAString *aLowsrc);
1460 nsresult GetX(PRInt32 *aX);
1461 nsresult GetY(PRInt32 *aY);
1466 uuid(4e237175-3628-4dc8-892f-5270edc3c71a),
1469 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1471 nsresult GetHref(nsAString *aHref);
1472 nsresult SetHref(const nsAString *aHref);
1473 nsresult GetTarget(nsAString *aTarget);
1474 nsresult SetTarget(const nsAString *aTarget);
1475 nsresult GetPing(nsAString *aPing);
1476 nsresult SetPing(const nsAString *aPing);
1477 nsresult GetRel(nsAString *aRel);
1478 nsresult SetRel(const nsAString *aRel);
1479 nsresult GetHreflang(nsAString *aHreflang);
1480 nsresult SetHreflang(const nsAString *aHreflang);
1481 nsresult GetType(nsAString *aType);
1482 nsresult SetType(const nsAString *aType);
1483 nsresult GetText(nsAString *aText);
1484 nsresult SetText(const nsAString *aText);
1485 nsresult GetProtocol(nsAString *aProtocol);
1486 nsresult SetProtocol(const nsAString *aProtocol);
1487 nsresult GetHost(nsAString *aHost);
1488 nsresult SetHost(const nsAString *aHost);
1489 nsresult GetHostname(nsAString *aHostname);
1490 nsresult SetHostname(const nsAString *aHostname);
1491 nsresult GetPort(nsAString *aPort);
1492 nsresult SetPort(const nsAString *aPort);
1493 nsresult GetPathname(nsAString *aPathname);
1494 nsresult SetPathname(const nsAString *aPathname);
1495 nsresult GetSearch(nsAString *aSearch);
1496 nsresult SetSearch(const nsAString *aSearch);
1497 nsresult GetHash(nsAString *aHash);
1498 nsresult SetHash(const nsAString *aHash);
1499 nsresult GetAccessKey(nsAString *aAccessKey);
1500 nsresult SetAccessKey(const nsAString *aAccessKey);
1501 nsresult GetCharset(nsAString *aCharset);
1502 nsresult SetCharset(const nsAString *aCharset);
1503 nsresult GetCoords(nsAString *aCoords);
1504 nsresult SetCoords(const nsAString *aCoords);
1505 nsresult GetName(nsAString *aName);
1506 nsresult SetName(const nsAString *aName);
1507 nsresult GetRev(nsAString *aRev);
1508 nsresult SetRev(const nsAString *aRev);
1509 nsresult GetShape(nsAString *aShape);
1510 nsresult SetShape(const nsAString *aShape);
1511 nsresult GetTabIndex(PRInt32 *aTabIndex);
1512 nsresult SetTabIndex(PRInt32 aTabIndex);
1513 nsresult ToString(nsAString *_retval);
1520 uuid(a6cf90b2-15b3-11d2-932e-00805f8add32),
1523 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1525 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1526 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1527 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1528 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1529 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1530 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1531 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1532 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1533 nsresult GetAlign(nsAString *aAlign);
1534 nsresult SetAlign(const nsAString *aAlign);
1535 nsresult GetBgColor(nsAString *aBgColor);
1536 nsresult SetBgColor(const nsAString *aBgColor);
1537 nsresult GetBorder(nsAString *aBorder);
1538 nsresult SetBorder(const nsAString *aBorder);
1539 nsresult GetCellPadding(nsAString *aCellPadding);
1540 nsresult SetCellPadding(const nsAString *aCellPadding);
1541 nsresult GetCellSpacing(nsAString *aCellSpacing);
1542 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1543 nsresult GetFrame(nsAString *aFrame);
1544 nsresult SetFrame(const nsAString *aFrame);
1545 nsresult GetRules(nsAString *aRules);
1546 nsresult SetRules(const nsAString *aRules);
1547 nsresult GetSummary(nsAString *aSummary);
1548 nsresult SetSummary(const nsAString *aSummary);
1549 nsresult GetWidth(nsAString *aWidth);
1550 nsresult SetWidth(const nsAString *aWidth);
1551 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1552 nsresult DeleteTHead();
1553 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1554 nsresult DeleteTFoot();
1555 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1556 nsresult DeleteCaption();
1557 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1558 nsresult DeleteRow(PRInt32 index);
1563 uuid(a6cf90b6-15b3-11d2-932e-00805f8add32),
1566 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1568 nsresult GetRowIndex(PRInt32 *aRowIndex);
1569 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1570 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1571 nsresult GetAlign(nsAString *aAlign);
1572 nsresult SetAlign(const nsAString *aAlign);
1573 nsresult GetBgColor(nsAString *aBgColor);
1574 nsresult SetBgColor(const nsAString *aBgColor);
1575 nsresult GetCh(nsAString *aCh);
1576 nsresult SetCh(const nsAString *aCh);
1577 nsresult GetChOff(nsAString *aChOff);
1578 nsresult SetChOff(const nsAString *aChOff);
1579 nsresult GetVAlign(nsAString *aVAlign);
1580 nsresult SetVAlign(const nsAString *aVAlign);
1581 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1582 nsresult DeleteCell(PRInt32 index);
1587 uuid(a6cf90ba-15b3-11d2-932e-00805f8add32),
1590 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1592 nsresult GetAlign(nsAString *aAlign);
1593 nsresult SetAlign(const nsAString *aAlign);
1594 nsresult GetFrameBorder(nsAString *aFrameBorder);
1595 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1596 nsresult GetHeight(nsAString *aHeight);
1597 nsresult SetHeight(const nsAString *aHeight);
1598 nsresult GetLongDesc(nsAString *aLongDesc);
1599 nsresult SetLongDesc(const nsAString *aLongDesc);
1600 nsresult GetMarginHeight(nsAString *aMarginHeight);
1601 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1602 nsresult GetMarginWidth(nsAString *aMarginWidth);
1603 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1604 nsresult GetName(nsAString *aName);
1605 nsresult SetName(const nsAString *aName);
1606 nsresult GetScrolling(nsAString *aScrolling);
1607 nsresult SetScrolling(const nsAString *aScrolling);
1608 nsresult GetSrc(nsAString *aSrc);
1609 nsresult SetSrc(const nsAString *aSrc);
1610 nsresult GetWidth(nsAString *aWidth);
1611 nsresult SetWidth(const nsAString *aWidth);
1612 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1617 uuid(a6cf90b9-15b3-11d2-932e-00805f8add32),
1620 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
1622 nsresult GetFrameBorder(nsAString *aFrameBorder);
1623 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1624 nsresult GetLongDesc(nsAString *aLongDesc);
1625 nsresult SetLongDesc(const nsAString *aLongDesc);
1626 nsresult GetMarginHeight(nsAString *aMarginHeight);
1627 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1628 nsresult GetMarginWidth(nsAString *aMarginWidth);
1629 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1630 nsresult GetName(nsAString *aName);
1631 nsresult SetName(const nsAString *aName);
1632 nsresult GetNoResize(PRBool *aNoResize);
1633 nsresult SetNoResize(PRBool aNoResize);
1634 nsresult GetScrolling(nsAString *aScrolling);
1635 nsresult SetScrolling(const nsAString *aScrolling);
1636 nsresult GetSrc(nsAString *aSrc);
1637 nsresult SetSrc(const nsAString *aSrc);
1638 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1643 uuid(a6cf90ac-15b3-11d2-932e-00805f8add32),
1646 interface nsIDOMHTMLObjectElement : nsIDOMHTMLElement
1648 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1649 nsresult GetCode(nsAString *aCode);
1650 nsresult SetCode(const nsAString *aCode);
1651 nsresult GetAlign(nsAString *aAlign);
1652 nsresult SetAlign(const nsAString *aAlign);
1653 nsresult GetArchive(nsAString *aArchive);
1654 nsresult SetArchive(const nsAString *aArchive);
1655 nsresult GetBorder(nsAString *aBorder);
1656 nsresult SetBorder(const nsAString *aBorder);
1657 nsresult GetCodeBase(nsAString *aCodeBase);
1658 nsresult SetCodeBase(const nsAString *aCodeBase);
1659 nsresult GetCodeType(nsAString *aCodeType);
1660 nsresult SetCodeType(const nsAString *aCodeType);
1661 nsresult GetData(nsAString *aData);
1662 nsresult SetData(const nsAString *aData);
1663 nsresult GetDeclare(PRBool *aDeclare);
1664 nsresult SetDeclare(PRBool aDeclare);
1665 nsresult GetHeight(nsAString *aHeight);
1666 nsresult SetHeight(const nsAString *aHeight);
1667 nsresult GetHspace(PRInt32 *aHspace);
1668 nsresult SetHspace(PRInt32 aHspace);
1669 nsresult GetName(nsAString *aName);
1670 nsresult SetName(const nsAString *aName);
1671 nsresult GetStandby(nsAString *aStandby);
1672 nsresult SetStandby(const nsAString *aStandby);
1673 nsresult GetTabIndex(PRInt32 *aTabIndex);
1674 nsresult SetTabIndex(PRInt32 aTabIndex);
1675 nsresult GetType(nsAString *aType);
1676 nsresult SetType(const nsAString *aType);
1677 nsresult GetUseMap(nsAString *aUseMap);
1678 nsresult SetUseMap(const nsAString *aUseMap);
1679 nsresult GetVspace(PRInt32 *aVspace);
1680 nsresult SetVspace(PRInt32 aVspace);
1681 nsresult GetWidth(nsAString *aWidth);
1682 nsresult SetWidth(const nsAString *aWidth);
1683 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1688 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1691 interface nsIURIContentListener : nsISupports
1693 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1694 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1695 nsIStreamListener **aContentHandler, PRBool *_retval);
1696 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1697 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1698 char **aDesiredContentType, PRBool *_retval);
1699 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1700 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1701 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1702 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1707 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1710 interface nsITooltipListener : nsISupports
1712 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1713 nsresult OnHideTooltip();
1718 uuid(33e9d001-caab-4ba9-8961-54902f197202),
1721 interface nsIWebBrowser : nsISupports
1723 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1724 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1725 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1726 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1727 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1728 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1729 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1730 nsresult GetIsActive(PRBool *aIsActive);
1731 nsresult SetIsActive(PRBool aIsActive);
1734 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1735 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1739 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1742 interface nsIWebBrowserSetup : nsISupports
1744 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1747 typedef void* nativeWindow;
1751 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1754 interface nsIBaseWindow : nsISupports
1756 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1757 PRInt32 y, PRInt32 cx, PRInt32 cy);
1760 nsresult SetPosition(PRInt32 x, PRInt32 y);
1761 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1762 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1763 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1764 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1765 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1766 nsresult Repaint(PRBool force);
1767 nsresult GetParentWidget(nsIWidget **aParentWidget);
1768 nsresult SetParentWidget(nsIWidget *aParentWidget);
1769 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1770 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1771 nsresult GetVisibility(PRBool *aVisibility);
1772 nsresult SetVisibility(PRBool aVisibility);
1773 nsresult GetEnabled(PRBool *aEnabled);
1774 nsresult SetEnabled(PRBool aEnabled);
1775 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1776 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1777 nsresult GetMainWidget(nsIWidget **aMainWidget);
1778 nsresult SetFocus();
1779 nsresult GetTitle(PRUnichar **aTitle);
1780 nsresult SetTitle(const PRUnichar *aTitle);
1783 cpp_quote("#define LOAD_FLAGS_NONE 0x00000")
1784 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x80000")
1788 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1791 interface nsIWebNavigation : nsISupports
1793 nsresult GetCanGoBack(PRBool *aCanGoBack);
1794 nsresult GetCanGoForward(PRBool *aCanGoForward);
1796 nsresult GoForward();
1797 nsresult GotoIndex(PRInt32 index);
1798 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1799 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1800 nsresult Reload(PRUint32 aReloadFlags);
1801 nsresult Stop(PRUint32 aStopFlags);
1802 nsresult GetDocument(nsIDOMDocument **aDocument);
1803 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1804 nsresult GetReferringURI(nsIURI **aReferringURI);
1805 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1806 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1811 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
1814 interface nsIWebProgress : nsISupports
1816 nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
1817 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
1818 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
1819 nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
1824 uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1827 interface nsIPrintSettings : nsISupports
1829 typedef struct { char dummy; } nsIntMargin;
1831 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1832 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1833 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1834 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1835 nsresult Clone(nsIPrintSettings **_retval);
1836 nsresult Assign(nsIPrintSettings *aPS);
1837 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1838 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1839 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1840 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1841 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1842 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1843 nsresult GetEdgeTop(double *aEdgeTop);
1844 nsresult SetEdgeTop(double aEdgeTop);
1845 nsresult GetEdgeLeft(double *aEdgeLeft);
1846 nsresult SetEdgeLeft(double aEdgeLeft);
1847 nsresult GetEdgeBottom(double *aEdgeBottom);
1848 nsresult SetEdgeBottom(double aEdgeBottom);
1849 nsresult GetEdgeRight(double *aEdgeRight);
1850 nsresult SetEdgeRight(double aEdgeRight);
1851 nsresult GetMarginTop(double *aMarginTop);
1852 nsresult SetMarginTop(double aMarginTop);
1853 nsresult GetMarginLeft(double *aMarginLeft);
1854 nsresult SetMarginLeft(double aMarginLeft);
1855 nsresult GetMarginBottom(double *aMarginBottom);
1856 nsresult SetMarginBottom(double aMarginBottom);
1857 nsresult GetMarginRight(double *aMarginRight);
1858 nsresult SetMarginRight(double aMarginRight);
1859 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1860 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1861 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1862 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1863 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1864 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1865 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1866 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1867 nsresult GetScaling(double *aScaling);
1868 nsresult SetScaling(double aScaling);
1869 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1870 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1871 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1872 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1873 nsresult GetPrintRange(PRInt16 *aPrintRange);
1874 nsresult SetPrintRange(PRInt16 aPrintRange);
1875 nsresult GetTitle(PRUnichar **aTitle);
1876 nsresult SetTitle(const PRUnichar *aTitle);
1877 nsresult GetDocURL(PRUnichar **aDocURL);
1878 nsresult SetDocURL(const PRUnichar *aDocURL);
1879 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1880 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1881 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1882 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1883 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1884 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1885 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1886 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1887 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1888 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1889 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1890 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1891 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1892 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1893 nsresult GetIsCancelled(PRBool *aIsCancelled);
1894 nsresult SetIsCancelled(PRBool aIsCancelled);
1895 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1896 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1897 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1898 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1899 nsresult GetPrintSilent(PRBool *aPrintSilent);
1900 nsresult SetPrintSilent(PRBool aPrintSilent);
1901 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1902 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1903 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1904 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1905 nsresult GetPaperName(PRUnichar **aPaperName);
1906 nsresult SetPaperName(const PRUnichar *aPaperName);
1907 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1908 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1909 nsresult GetPaperData(PRInt16 *aPaperData);
1910 nsresult SetPaperData(PRInt16 aPaperData);
1911 nsresult GetPaperWidth(double *aPaperWidth);
1912 nsresult SetPaperWidth(double aPaperWidth);
1913 nsresult GetPaperHeight(double *aPaperHeight);
1914 nsresult SetPaperHeight(double aPaperHeight);
1915 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1916 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1917 nsresult GetPlexName(PRUnichar **aPlexName);
1918 nsresult SetPlexName(const PRUnichar *aPlexName);
1919 nsresult GetColorspace(PRUnichar **aColorspace);
1920 nsresult SetColorspace(const PRUnichar *aColorspace);
1921 nsresult GetResolutionName(PRUnichar **aResolutionName);
1922 nsresult SetResolutionName(const PRUnichar aResolutionName);
1923 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1924 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1925 nsresult GetPrintReversed(PRBool *aPrintReversed);
1926 nsresult SetPrintReversed(PRBool aPrintReversed);
1927 nsresult GetPrintInColor(PRBool *aPrintInColor);
1928 nsresult SetPrintInColor(PRBool aPrintInColor);
1929 nsresult GetOrientation(PRInt32 *aOrientation);
1930 nsresult SetOrientation(PRInt32 aOrientation);
1931 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1932 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1933 nsresult GetNumCopies(PRInt32 *aNumCopies);
1934 nsresult SetNumCopies(PRInt32 aNumCopies);
1935 nsresult GetPrinterName(PRUnichar **aPrinterName);
1936 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1937 nsresult GetPrintToFile(PRBool *aPrintToFile);
1938 nsresult SetPrintToFile(PRBool aPrintToFile);
1939 nsresult GetToFileName(PRUnichar **aToFileName);
1940 nsresult SetToFileName(const PRUnichar *aToFileName);
1941 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1942 nsresult SetOutputFormat(PRInt16 aOutputFormat);
1943 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1944 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1945 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1946 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1947 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1948 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1949 nsresult SetMarginInTwips(nsIntMargin *aMargin);
1950 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
1951 nsresult GetMarginInTwips(nsIntMargin *aMargin);
1952 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
1953 nsresult SetupSilentPrinting();
1954 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1955 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1960 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1963 interface nsIWebBrowserPrint : nsISupports
1965 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1966 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1967 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1968 nsresult GetDoingPrint(PRBool *aDoingPrint);
1969 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1970 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1971 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1972 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1973 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1974 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1975 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1976 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1977 nsIWebProgressListener *aWPListener);
1978 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1980 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1981 nsresult ExitPrintPreview();
1986 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1989 interface nsIScrollable : nsISupports
1992 ScrollOrientation_X = 1,
1993 ScrollOrientation_Y = 2
1998 Scrollbar_Never = 2,
1999 Scrollbar_Always = 3
2002 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
2003 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
2004 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
2005 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
2006 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
2007 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
2008 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
2009 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
2010 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
2011 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
2016 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
2019 interface nsIFile : nsISupports
2021 nsresult Append(const nsAString *node);
2022 nsresult AppendNative(const nsAString *node);
2023 nsresult Normalize();
2024 nsresult Create(PRUint32 type, PRUint32 permission);
2025 nsresult GetLeafName(nsAString *aLeafName);
2026 nsresult SetLeafName(const nsAString *aLeafName);
2027 nsresult GetNativeLeafName(nsAString *aLeafName);
2028 nsresult SetNativeLeafName(const nsAString *aLeafName);
2029 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
2030 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
2031 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
2032 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
2033 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
2034 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
2035 nsresult Remove(PRBool recursive);
2036 nsresult GetPermissions(PRUint32 *aPermissions);
2037 nsresult SetPermissions(PRUint32 pPermissions);
2038 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
2039 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
2040 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
2041 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
2042 nsresult GetLastModifiedTimeOfLink(PRInt64 *aLastModifiedTimeOfLink);
2043 nsresult SetLastModifiedTimeOfLink(PRInt64 aLastModifiedTimeOfLink);
2044 nsresult GetFileSize(PRInt64 *aFileSize);
2045 nsresult SetFileSize(PRInt64 aFileSize);
2046 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
2047 nsresult GetTarget(nsAString *aTarget);
2048 nsresult GetNativeTarget(nsACString *aNativeTarget);
2049 nsresult GetPath(nsAString *aPath);
2050 nsresult GetNativePath(nsACString *aNativePath);
2051 nsresult Exists(PRBool *_retval);
2052 nsresult IsWritable(PRBool *_retval);
2053 nsresult IsReadable(PRBool *_retval);
2054 nsresult IsExecutable(PRBool *_retval);
2055 nsresult IsHidden(PRBool *_retval);
2056 nsresult IsDirectory(PRBool *_retval);
2057 nsresult IsFile(PRBool *_retval);
2058 nsresult IsSymlink(PRBool *_retval);
2059 nsresult IsSpecial(PRBool *_retval);
2060 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2061 nsresult Clone(nsIFile **_retval);
2062 nsresult Equals(nsIFile *inFile, PRBool *_retval);
2063 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
2064 nsresult GetParent(nsIFile **aParent);
2065 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2070 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
2073 interface nsIPrefBranch : nsISupports
2075 nsresult GetRoot(char **aRoot);
2076 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2077 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
2078 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
2079 nsresult GetCharPref(const char *aPrefName, char **_retval);
2080 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2081 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2082 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2083 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2084 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2085 nsresult ClearUserPref(const char *aPrefName);
2086 nsresult LockPref(const char *aPrefName);
2087 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
2088 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
2089 nsresult UnlockPref(const char *aPrefName);
2090 nsresult DeleteBranch(const char *aStartingAt);
2091 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2092 nsresult ResetBranch(const char *aStartingAt);
2097 uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2100 interface nsIDirectoryServiceProvider : nsISupports
2102 nsresult GetFile(const char *prop, PRBool *persistent, nsIFile **_retval);
2107 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2110 interface nsIProtocolHandler : nsISupports
2112 nsresult GetScheme(nsACString *aScheme);
2113 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2114 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2115 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2116 nsIURI *aBaseURI, nsIURI **_retval);
2117 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2118 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
2123 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2126 interface nsIExternalProtocolHandler : nsIProtocolHandler
2128 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
2133 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2136 interface nsIIOService : nsISupports
2138 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2139 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2140 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2142 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2143 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2144 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2145 nsIChannel **_retval);
2146 nsresult GetOffline(PRBool *aOffline);
2147 nsresult SetOffline(PRBool aOffline);
2148 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
2149 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
2154 uuid(ca68c485-9db3-4c12-82a6-4fab7948e2d5),
2157 interface nsINetUtil : nsISupports
2159 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2160 PRBool *aHadCharset, nsACString *_retval);
2161 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
2162 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
2163 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2164 nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
2165 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2166 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2167 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2168 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2169 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
2174 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2177 interface nsIWebBrowserFocus : nsISupports
2179 nsresult Activate();
2180 nsresult Deactivate();
2181 nsresult SetFocusAtFirstElement();
2182 nsresult SetFocusAtLastElement();
2183 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2184 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2185 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2186 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2191 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2194 interface nsIWebBrowserChrome : nsISupports
2196 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2197 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2198 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2199 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2200 nsresult SetChromeFlags(PRUint32 aChromeFlags);
2201 nsresult DestroyBrowserWindow();
2202 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2203 nsresult ShowAsModal();
2204 nsresult IsWindowModal(PRBool *_retval);
2205 nsresult ExitModalEventLoop(nsresult aStatus);
2210 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2213 interface nsIDOMEventListener : nsISupports
2215 nsresult HandleEvent(nsIDOMEvent *event);
2220 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
2223 interface nsIDOMEventTarget : nsISupports
2225 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2226 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2227 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
2232 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
2235 interface nsIDOMEvent : nsISupports
2237 nsresult GetType(nsAString *aType);
2238 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2239 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2240 nsresult GetEventPhase(PRUint16 *aEventPhase);
2241 nsresult GetBubbles(PRBool *aBubbles);
2242 nsresult GetCancelable(PRBool *aCancelable);
2243 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2244 nsresult StopPropagation();
2245 nsresult PreventDefault();
2246 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
2249 cpp_quote("#define CONTEXT_NONE 0x00")
2250 cpp_quote("#define CONTEXT_LINK 0x01")
2251 cpp_quote("#define CONTEXT_IMAGE 0x02")
2252 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2253 cpp_quote("#define CONTEXT_TEXT 0x08")
2254 cpp_quote("#define CONTEXT_INPUT 0x10")
2255 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2259 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2262 interface nsIContextMenuListener : nsISupports
2264 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2269 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
2272 interface nsIDOMUIEvent : nsIDOMEvent
2274 nsresult GetView(nsIDOMAbstractView **aView);
2275 nsresult GetDetail(PRInt32 *aDetail);
2276 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2277 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2282 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2285 interface nsIDOMMouseEvent : nsIDOMUIEvent
2287 nsresult GetScreenX(PRInt32 *aScreenX);
2288 nsresult GetScreenY(PRInt32 *aScreenY);
2289 nsresult GetClientX(PRInt32 *aClientX);
2290 nsresult GetClientY(PRInt32 *aClientY);
2291 nsresult GetCtrlKey(PRBool *aCtrlKey);
2292 nsresult GetShiftKey(PRBool *aShiftKey);
2293 nsresult GetAltKey(PRBool *aAltKey);
2294 nsresult GetMetaKey(PRBool *aMetaKey);
2295 nsresult GetButton(PRUint16 *aButton);
2296 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2297 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2298 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2299 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2300 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2301 nsIDOMEventTarget *relatedTargetArg);
2306 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2309 interface nsIDOMKeyEvent : nsIDOMUIEvent
2311 nsresult GetCharCode(PRUint32 *aCharCode);
2312 nsresult GetKeyCode(PRUint32 *aKeyCode);
2313 nsresult GetAltKey(PRBool *aAltKey);
2314 nsresult GetCtrlKey(PRBool *aCtrlKey);
2315 nsresult GetShiftKey(PRBool *aShiftKey);
2316 nsresult GetMetaKey(PRBool *aMetaKey);
2317 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2318 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2319 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2320 PRUint32 charCodeArg);
2325 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2328 interface nsIEmbeddingSiteWindow : nsISupports
2330 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2331 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2332 nsresult SetFocus();
2333 nsresult GetVisibility(PRBool *aVisibility);
2334 nsresult SetVisibility(PRBool aVisibility);
2335 nsresult GetTitle(PRUnichar **aTitle);
2336 nsresult SetTitle(const PRUnichar *aTitle);
2337 nsresult GetSiteWindow(void **aSiteWindow);
2342 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2345 interface nsIComponentRegistrar : nsISupports
2347 nsresult AutoRegister(nsIFile *aSpec);
2348 nsresult AutoUnregister(nsIFile *aSpec);
2349 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2350 const char *aContractID, nsIFactory *aFactory);
2351 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2352 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2353 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2355 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2356 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2357 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2358 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2359 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2360 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2361 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2366 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2369 interface nsIPromptService : nsISupports
2371 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2372 const PRUnichar *aText);
2373 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2374 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2375 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2376 const PRUnichar *aText, PRBool *_retval);
2377 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2378 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2380 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2381 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2382 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2383 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2384 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2385 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2386 PRBool *aCheckState, PRBool *_retval);
2387 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2388 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2389 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2390 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2391 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2392 PRBool *aCheckState, PRBool *_retval);
2393 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2394 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2395 PRInt32 *aOutSelection, PRBool *_retval);
2400 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2403 interface nsITooltipTextProvider : nsISupports
2405 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2410 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2413 interface nsIProfile : nsISupports
2415 nsresult GetProfileCount(PRInt32 *aProfileCount);
2416 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2417 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2418 nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
2419 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2420 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2421 nsresult CreateNewProfile(const PRUnichar *profileName,
2422 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2423 PRBool useExistingDir);
2424 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2425 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2426 nsresult CloneProfile(const PRUnichar *profileName);
2431 uuid(30465632-a777-44cc-90f9-8145475ef999),
2434 interface nsIWindowCreator : nsISupports
2436 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2437 nsIWebBrowserChrome **_retval);
2442 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2445 interface nsIWindowCreator2 : nsIWindowCreator
2447 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2448 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2449 nsIWebBrowserChrome **_retval);
2454 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2457 interface nsIWindowWatcher : nsISupports
2459 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2460 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2461 nsresult RegisterNotification(nsIObserver *aObserver);
2462 nsresult UnregisterNotification(nsIObserver *aObserver);
2463 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2464 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2465 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2466 nsresult SetWindowCreator(nsIWindowCreator *creator);
2467 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2468 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2469 nsIDOMWindow **_retval);
2470 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2471 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2476 uuid(24f3f4da-18a4-448d-876d-7360fefac029),
2479 interface nsIEditingSession : nsISupports
2481 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2482 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2483 PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2484 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2485 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2486 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2487 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2488 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2489 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2490 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2491 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2492 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2493 nsresult GetJsAndPluginsDisabled(PRBool *aJsAndPluginsDisabled);
2498 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2501 interface nsICommandParams : nsISupports
2503 nsresult GetValueType(const char *name, PRInt16 *_retval);
2504 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2505 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2506 nsresult GetDoubleValue(const char *name, double *_retval);
2507 nsresult GetStringValue(const char *name, nsAString *_retval);
2508 nsresult GetCStringValue(const char *name, char **_retval);
2509 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2510 nsresult SetBooleanValue(const char *name, PRBool value);
2511 nsresult SetLongValue(const char *name, PRInt32 value);
2512 nsresult SetDoubleValue(const char *name, double value);
2513 nsresult SetStringValue(const char *name, const nsAString *value);
2514 nsresult SetCStringValue(const char *name, const char *value);
2515 nsresult SetISupportsValue(const char *name, nsISupports *value);
2516 nsresult RemoveValue(const char *name);
2517 nsresult HasMoreElements(PRBool *_retval);
2519 nsresult GetNext(char **_retval);
2524 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2527 interface nsICommandManager : nsISupports
2529 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2530 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2531 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2532 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2533 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2534 nsICommandParams *aCommandParams);
2535 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2536 nsIDOMWindow *aTargetWindow);
2541 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2544 interface nsIControllerContext : nsISupports
2546 nsresult Init(nsIControllerCommandTable *aCommandTable);
2547 nsresult SetCommandContext(nsISupports *aCommandContext);
2552 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2555 interface nsIController : nsISupports
2557 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2558 nsresult SupportsCommand(const char *command, PRBool *_retval);
2559 nsresult DoCommand(const char *command);
2560 nsresult OnEvent(const char *eventName);
2565 uuid(dd254504-e273-4923-9ec1-d8421a6635f1),
2568 interface nsIContent : nsISupports
2570 /* This is not a real interface declaration. It's too internal for us. */
2575 uuid(b2274bc3-4a1c-4e64-8de4-3bc650288438),
2578 interface nsIDocument : nsISupports
2580 /* This is not a real interface declaration. It's too internal for us. */
2585 uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
2588 interface nsIContentSerializer : nsISupports
2590 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2591 PRBool aIsWholeDocument);
2592 nsresult AppendText(nsIContent *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2593 nsresult AppendCDATASection(nsIContent *aCDATASection, PRInt32 aStartOffset,
2594 PRInt32 aEndOffset, nsAString *aStr);
2595 nsresult AppendProcessingInstruction(nsIContent* aPI, PRInt32 aStartOffset,
2596 PRInt32 aEndOffset, nsAString *aStr);
2597 nsresult AppendComment(nsIContent *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2599 nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
2600 nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
2602 nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
2603 nsresult Flush(nsAString *aStr);
2604 nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
2609 uuid(972e54e1-dec3-4e3f-87ec-408a7dbcfd92),
2612 interface nsIEditor : nsISupports
2614 typedef void *nsIPresShellPtr;
2615 typedef void *nsIContentPtr;
2617 nsresult GetSelection([out] nsISelection *_retval);
2618 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2619 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2620 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2621 nsresult PostCreate();
2622 nsresult PreDestroy();
2623 nsresult GetFlags([out] PRUint32 *_retval);
2624 nsresult SetFlags([in] PRUint32 val);
2625 nsresult GetContentsMIMEType([out] char **_retval);
2626 nsresult SetContentsMIMEType([in] const char *val);
2627 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2628 nsresult GetDocument([out] nsIDOMDocument **_retval);
2629 nsresult GetRootElement([out] nsIDOMElement **_retval);
2630 nsresult GetSelectionController([out] nsISelectionController **_retval);
2631 nsresult DeleteSelection([in] PRInt16 action);
2632 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2633 nsresult GetDocumentModified([out] PRBool *_retval);
2634 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2635 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2636 nsresult ResetModificationCount();
2637 nsresult GetModificationCount([out] PRInt32 *_retval);
2638 nsresult IncrementModificationCount([in] PRInt32 aModCount);
2639 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2640 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2641 nsresult DoTransaction([in] nsITransaction *txn);
2642 nsresult EnableUndo([in] PRBool enable);
2643 nsresult Undo([in] PRUint32 count);
2644 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2645 nsresult Redo([in] PRUint32 count);
2646 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2647 nsresult BeginTransaction();
2648 nsresult EndTransaction();
2649 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2650 nsresult EndPlaceHolderTransaction();
2651 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2652 nsresult SetShouldTxnSetSelection([in] PRBool should);
2653 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2654 nsresult SyncRealTimeSpell();
2655 nsresult SetSpellcheckUserOverride(PRBool enable);
2657 nsresult CanCut([out] PRBool *_retval);
2659 nsresult CanCopy([out] PRBool *_retval);
2660 nsresult Paste([in] PRInt32 aSelectionType);
2661 nsresult PasteTransferable(nsITransferable *aTransferable);
2662 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2663 nsresult CanPasteTransferable(nsITransferable *aTransferable, PRBool *_retval);
2664 nsresult SelectAll();
2665 nsresult BeginningOfDocument();
2666 nsresult EndOfDocument();
2667 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2668 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2669 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2670 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2671 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2672 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2673 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2674 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2675 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2676 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2677 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2678 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2679 nsresult DeleteNode([in] nsIDOMNode *child);
2680 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2681 nsresult SwitchTextDirection();
2682 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2683 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2684 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2685 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2686 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2687 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2688 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2689 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2690 nsresult DumpContentTree();
2691 nsresult DebugDumpContent();
2692 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2693 PRBool IsModifiableNode(nsIDOMNode *aNode);
2698 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2701 interface nsIHTMLEditor : nsISupports
2703 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2704 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2705 nsresult RemoveAllDefaultProperties();
2706 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2707 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2708 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2709 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2710 nsresult RemoveAllInlineProperties();
2711 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2712 nsresult IncreaseFontSize();
2713 nsresult DecreaseFontSize();
2714 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2715 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2716 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2717 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2718 nsresult InsertHTML([in] nsAString *aInputString);
2719 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2720 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2721 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);
2722 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2723 nsresult SetDocumentTitle([in] nsAString *aTitle);
2724 nsresult UpdateBaseURL();
2725 nsresult SelectElement([in] nsIDOMElement *aElement);
2726 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2727 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2728 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2729 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2730 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2731 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2732 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2733 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2734 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2735 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2736 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2737 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2738 nsresult RemoveList([in] nsAString *aListType);
2739 nsresult Indent([in] nsAString *aIndent);
2740 nsresult Align([in] nsAString *aAlign);
2741 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2742 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2743 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2744 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2745 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2746 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2747 nsresult SetBackgroundColor([in] nsAString *aColor);
2748 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2749 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2750 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2751 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2752 nsresult SetIsCSSEnabled([in] PRBool prb);
2753 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2754 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2755 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2756 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2757 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2758 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2759 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2760 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2765 uuid(bf6db598-3833-400b-9e53-ec220cb2496c),
2768 interface nsIDocShell : nsISupports
2770 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
2771 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
2772 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
2773 nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
2774 const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
2775 nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
2776 nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, PRBool aReplace);
2777 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
2778 nsresult PrepareForNewContentModel();
2779 nsresult SetCurrentURI(nsIURI *aURI);
2780 nsresult FirePageHideNotification(PRBool isUnload);
2781 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
2782 nsresult GetPresShell(nsIPresShell **aPresShell);
2783 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
2784 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
2785 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
2786 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
2787 nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
2788 nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
2789 nsresult GetAllowPlugins(PRBool *aAllowPlugins);
2790 nsresult SetAllowPlugins(PRBool aAllowPlugins);
2791 nsresult GetAllowJavascript(PRBool *aAllowJavascript);
2792 nsresult SetAllowJavascript(PRBool aAllowJavascript);
2793 nsresult GetAllowMetaRedirects(PRBool *aAllowMetaRedirects);
2794 nsresult SetAllowMetaRedirects(PRBool aAllowMetaRedirects);
2795 nsresult GetAllowSubframes(PRBool *aAllowSubframes);
2796 nsresult SetAllowSubframes(PRBool aAllowSubframes);
2797 nsresult GetAllowImages(PRBool *aAllowImages);
2798 nsresult SetAllowImages(PRBool aAllowImages);
2799 nsresult GetAllowDNSPrefetch(PRBool *aAllowDNSPrefetch);
2800 nsresult SetAllowDNSPrefetch(PRBool aAllowDNSPrefetch);
2801 nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
2802 nsresult GetAppType(PRUint32 *aAppType);
2803 nsresult SetAppType(PRUint32 aAppType);
2804 nsresult GetAllowAuth(PRBool *aAllowAuth);
2805 nsresult SetAllowAuth(PRBool aAllowAuth);
2806 nsresult GetZoom(float *aZoom);
2807 nsresult SetZoom(float aZoom);
2808 nsresult GetMarginWidth(PRInt32 *aMarginWidth);
2809 nsresult SetMarginWidth(PRInt32 aMarginWidth);
2810 nsresult GetMarginHeight(PRInt32 *aMarginHeight);
2811 nsresult SetMarginHeight(PRInt32 aMarginHeight);
2812 nsresult TabToTreeOwner(PRBool forward, PRBool *tookFocus);
2813 nsresult GetBusyFlags(PRUint32 *aBusyFlags);
2814 nsresult GetLoadType(PRUint32 *aLoadType);
2815 nsresult SetLoadType(PRUint32 aLoadType);
2816 nsresult IsBeingDestroyed(PRBool *_retval);
2817 nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
2818 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
2819 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
2820 nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
2821 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
2822 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
2823 nsresult SuspendRefreshURIs();
2824 nsresult ResumeRefreshURIs();
2825 nsresult BeginRestore(nsIContentViewer *viewer, PRBool top);
2826 nsresult FinishRestore();
2827 nsresult GetRestoringDocument(PRBool *aRestoringDocument);
2828 nsresult GetUseErrorPages(PRBool *aUseErrorPages);
2829 nsresult SetUseErrorPages(PRBool aUseErrorPages);
2830 nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
2831 nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
2832 nsresult HistoryPurged(PRInt32 numEntries);
2833 nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
2834 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
2835 PRBool create, nsIDOMStorage **_retval);
2836 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
2837 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
2838 nsresult SetChildOffset(PRUint32 offset);
2839 nsresult GetIsInUnload(PRBool *aIsInUnload);
2840 nsresult GetChannelIsUnsafe(PRBool *aChannelIsUnsafe);
2841 void DetachEditorFromWindow();
2842 nsresult GetIsOffScreenBrowser(PRBool *aIsOffScreenBrowser);
2843 nsresult SetIsOffScreenBrowser(PRBool aIsOffScreenBrowser);
2844 nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
2845 nsresult GetCanExecuteScripts(PRBool *aCanExecuteScripts);
2846 nsresult GetIsActive(PRBool *aIsActive);
2847 nsresult SetIsActive(PRBool aIsActive);
2852 uuid(85eea794-ed8e-4e1b-a128-d09300ae51aa),
2855 interface nsIMutationObserver : nsISupports
2857 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2858 void /*CharacterDataChangeInfo*/ *aInfo);
2859 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2860 void /*CharacterDataChangeInfo*/ *aInfo);
2861 void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2862 nsIAtom *aAttribute, PRInt32 aModType);
2863 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2864 nsIAtom *aAttribute, PRInt32 aModType);
2865 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent* aFirstNewContent,
2866 PRInt32 aNewIndexInContainer);
2867 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2868 PRInt32 aIndexInContainer);
2869 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2870 PRInt32 aIndexInContainer, nsIContent *aPreviousSibling);
2871 void NodeWillBeDestroyed(const nsINode *aNode);
2872 void ParentChainChanged(nsIContent *aContent);
2877 uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2880 interface nsIDocumentObserver : nsIMutationObserver
2882 typedef int nsUpdateType;
2884 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2885 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2886 void BeginLoad(nsIDocument *aDocument);
2887 void EndLoad(nsIDocument *aDocument);
2888 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2889 PRInt32 aStateMask);
2890 void DocumentStatesChanged(nsIDocument* aDocument, PRInt32 aStateMask);
2891 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2892 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2893 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2894 PRBool aApplicable);
2895 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2896 nsIStyleRule *aNewStyleRule);
2897 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2898 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2899 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2900 void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified);