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