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(a6cf90ad-15b3-11d2-932e-00805f8add32),
1693 interface nsIDOMHTMLParamElement : nsIDOMHTMLElement
1695 nsresult GetName(nsAString *aName);
1696 nsresult SetName(const nsAString *aName);
1697 nsresult GetType(nsAString *aType);
1698 nsresult SetType(const nsAString *aType);
1699 nsresult GetValue(nsAString *aValue);
1700 nsresult SetValue(const nsAString *aValue);
1701 nsresult GetValueType(nsAString *aValueType);
1702 nsresult SetValueType(const nsAString *aValueType);
1707 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1710 interface nsIURIContentListener : nsISupports
1712 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1713 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1714 nsIStreamListener **aContentHandler, PRBool *_retval);
1715 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1716 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1717 char **aDesiredContentType, PRBool *_retval);
1718 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1719 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1720 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1721 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1726 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1729 interface nsITooltipListener : nsISupports
1731 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1732 nsresult OnHideTooltip();
1737 uuid(33e9d001-caab-4ba9-8961-54902f197202),
1740 interface nsIWebBrowser : nsISupports
1742 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1743 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1744 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1745 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1746 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1747 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1748 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1749 nsresult GetIsActive(PRBool *aIsActive);
1750 nsresult SetIsActive(PRBool aIsActive);
1753 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1754 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1758 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1761 interface nsIWebBrowserSetup : nsISupports
1763 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1766 typedef void* nativeWindow;
1770 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1773 interface nsIBaseWindow : nsISupports
1775 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1776 PRInt32 y, PRInt32 cx, PRInt32 cy);
1779 nsresult SetPosition(PRInt32 x, PRInt32 y);
1780 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1781 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1782 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1783 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1784 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1785 nsresult Repaint(PRBool force);
1786 nsresult GetParentWidget(nsIWidget **aParentWidget);
1787 nsresult SetParentWidget(nsIWidget *aParentWidget);
1788 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1789 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1790 nsresult GetVisibility(PRBool *aVisibility);
1791 nsresult SetVisibility(PRBool aVisibility);
1792 nsresult GetEnabled(PRBool *aEnabled);
1793 nsresult SetEnabled(PRBool aEnabled);
1794 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1795 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1796 nsresult GetMainWidget(nsIWidget **aMainWidget);
1797 nsresult SetFocus();
1798 nsresult GetTitle(PRUnichar **aTitle);
1799 nsresult SetTitle(const PRUnichar *aTitle);
1802 cpp_quote("#define LOAD_FLAGS_NONE 0x00000")
1803 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x80000")
1807 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1810 interface nsIWebNavigation : nsISupports
1812 nsresult GetCanGoBack(PRBool *aCanGoBack);
1813 nsresult GetCanGoForward(PRBool *aCanGoForward);
1815 nsresult GoForward();
1816 nsresult GotoIndex(PRInt32 index);
1817 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1818 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1819 nsresult Reload(PRUint32 aReloadFlags);
1820 nsresult Stop(PRUint32 aStopFlags);
1821 nsresult GetDocument(nsIDOMDocument **aDocument);
1822 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1823 nsresult GetReferringURI(nsIURI **aReferringURI);
1824 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1825 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1830 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
1833 interface nsIWebProgress : nsISupports
1835 nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
1836 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
1837 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
1838 nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);
1843 uuid(343700dd-078b-42b6-a809-b9c1d7e951d0),
1846 interface nsIPrintSettings : nsISupports
1848 typedef struct { char dummy; } nsIntMargin;
1850 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1851 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1852 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1853 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
1854 nsresult Clone(nsIPrintSettings **_retval);
1855 nsresult Assign(nsIPrintSettings *aPS);
1856 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1857 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1858 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1859 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1860 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1861 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1862 nsresult GetEdgeTop(double *aEdgeTop);
1863 nsresult SetEdgeTop(double aEdgeTop);
1864 nsresult GetEdgeLeft(double *aEdgeLeft);
1865 nsresult SetEdgeLeft(double aEdgeLeft);
1866 nsresult GetEdgeBottom(double *aEdgeBottom);
1867 nsresult SetEdgeBottom(double aEdgeBottom);
1868 nsresult GetEdgeRight(double *aEdgeRight);
1869 nsresult SetEdgeRight(double aEdgeRight);
1870 nsresult GetMarginTop(double *aMarginTop);
1871 nsresult SetMarginTop(double aMarginTop);
1872 nsresult GetMarginLeft(double *aMarginLeft);
1873 nsresult SetMarginLeft(double aMarginLeft);
1874 nsresult GetMarginBottom(double *aMarginBottom);
1875 nsresult SetMarginBottom(double aMarginBottom);
1876 nsresult GetMarginRight(double *aMarginRight);
1877 nsresult SetMarginRight(double aMarginRight);
1878 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
1879 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
1880 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
1881 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
1882 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
1883 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
1884 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
1885 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
1886 nsresult GetScaling(double *aScaling);
1887 nsresult SetScaling(double aScaling);
1888 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1889 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1890 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1891 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1892 nsresult GetPrintRange(PRInt16 *aPrintRange);
1893 nsresult SetPrintRange(PRInt16 aPrintRange);
1894 nsresult GetTitle(PRUnichar **aTitle);
1895 nsresult SetTitle(const PRUnichar *aTitle);
1896 nsresult GetDocURL(PRUnichar **aDocURL);
1897 nsresult SetDocURL(const PRUnichar *aDocURL);
1898 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1899 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1900 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1901 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1902 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1903 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1904 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1905 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1906 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1907 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1908 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1909 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1910 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1911 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1912 nsresult GetIsCancelled(PRBool *aIsCancelled);
1913 nsresult SetIsCancelled(PRBool aIsCancelled);
1914 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1915 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1916 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1917 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1918 nsresult GetPrintSilent(PRBool *aPrintSilent);
1919 nsresult SetPrintSilent(PRBool aPrintSilent);
1920 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1921 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1922 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1923 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1924 nsresult GetPaperName(PRUnichar **aPaperName);
1925 nsresult SetPaperName(const PRUnichar *aPaperName);
1926 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1927 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1928 nsresult GetPaperData(PRInt16 *aPaperData);
1929 nsresult SetPaperData(PRInt16 aPaperData);
1930 nsresult GetPaperWidth(double *aPaperWidth);
1931 nsresult SetPaperWidth(double aPaperWidth);
1932 nsresult GetPaperHeight(double *aPaperHeight);
1933 nsresult SetPaperHeight(double aPaperHeight);
1934 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1935 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1936 nsresult GetPlexName(PRUnichar **aPlexName);
1937 nsresult SetPlexName(const PRUnichar *aPlexName);
1938 nsresult GetColorspace(PRUnichar **aColorspace);
1939 nsresult SetColorspace(const PRUnichar *aColorspace);
1940 nsresult GetResolutionName(PRUnichar **aResolutionName);
1941 nsresult SetResolutionName(const PRUnichar aResolutionName);
1942 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1943 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1944 nsresult GetPrintReversed(PRBool *aPrintReversed);
1945 nsresult SetPrintReversed(PRBool aPrintReversed);
1946 nsresult GetPrintInColor(PRBool *aPrintInColor);
1947 nsresult SetPrintInColor(PRBool aPrintInColor);
1948 nsresult GetOrientation(PRInt32 *aOrientation);
1949 nsresult SetOrientation(PRInt32 aOrientation);
1950 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1951 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1952 nsresult GetNumCopies(PRInt32 *aNumCopies);
1953 nsresult SetNumCopies(PRInt32 aNumCopies);
1954 nsresult GetPrinterName(PRUnichar **aPrinterName);
1955 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1956 nsresult GetPrintToFile(PRBool *aPrintToFile);
1957 nsresult SetPrintToFile(PRBool aPrintToFile);
1958 nsresult GetToFileName(PRUnichar **aToFileName);
1959 nsresult SetToFileName(const PRUnichar *aToFileName);
1960 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
1961 nsresult SetOutputFormat(PRInt16 aOutputFormat);
1962 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1963 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1964 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1965 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1966 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1967 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1968 nsresult SetMarginInTwips(nsIntMargin *aMargin);
1969 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
1970 nsresult GetMarginInTwips(nsIntMargin *aMargin);
1971 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
1972 nsresult SetupSilentPrinting();
1973 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1974 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
1979 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1982 interface nsIWebBrowserPrint : nsISupports
1984 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1985 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1986 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1987 nsresult GetDoingPrint(PRBool *aDoingPrint);
1988 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1989 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1990 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1991 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1992 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1993 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1994 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1995 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1996 nsIWebProgressListener *aWPListener);
1997 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1999 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
2000 nsresult ExitPrintPreview();
2005 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
2008 interface nsIScrollable : nsISupports
2011 ScrollOrientation_X = 1,
2012 ScrollOrientation_Y = 2
2017 Scrollbar_Never = 2,
2018 Scrollbar_Always = 3
2021 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
2022 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
2023 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
2024 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
2025 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
2026 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
2027 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
2028 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
2029 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
2030 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
2035 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
2038 interface nsIFile : nsISupports
2040 nsresult Append(const nsAString *node);
2041 nsresult AppendNative(const nsAString *node);
2042 nsresult Normalize();
2043 nsresult Create(PRUint32 type, PRUint32 permission);
2044 nsresult GetLeafName(nsAString *aLeafName);
2045 nsresult SetLeafName(const nsAString *aLeafName);
2046 nsresult GetNativeLeafName(nsAString *aLeafName);
2047 nsresult SetNativeLeafName(const nsAString *aLeafName);
2048 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
2049 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
2050 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
2051 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
2052 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
2053 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
2054 nsresult Remove(PRBool recursive);
2055 nsresult GetPermissions(PRUint32 *aPermissions);
2056 nsresult SetPermissions(PRUint32 pPermissions);
2057 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
2058 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
2059 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
2060 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
2061 nsresult GetLastModifiedTimeOfLink(PRInt64 *aLastModifiedTimeOfLink);
2062 nsresult SetLastModifiedTimeOfLink(PRInt64 aLastModifiedTimeOfLink);
2063 nsresult GetFileSize(PRInt64 *aFileSize);
2064 nsresult SetFileSize(PRInt64 aFileSize);
2065 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
2066 nsresult GetTarget(nsAString *aTarget);
2067 nsresult GetNativeTarget(nsACString *aNativeTarget);
2068 nsresult GetPath(nsAString *aPath);
2069 nsresult GetNativePath(nsACString *aNativePath);
2070 nsresult Exists(PRBool *_retval);
2071 nsresult IsWritable(PRBool *_retval);
2072 nsresult IsReadable(PRBool *_retval);
2073 nsresult IsExecutable(PRBool *_retval);
2074 nsresult IsHidden(PRBool *_retval);
2075 nsresult IsDirectory(PRBool *_retval);
2076 nsresult IsFile(PRBool *_retval);
2077 nsresult IsSymlink(PRBool *_retval);
2078 nsresult IsSpecial(PRBool *_retval);
2079 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2080 nsresult Clone(nsIFile **_retval);
2081 nsresult Equals(nsIFile *inFile, PRBool *_retval);
2082 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
2083 nsresult GetParent(nsIFile **aParent);
2084 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2089 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
2092 interface nsIPrefBranch : nsISupports
2094 nsresult GetRoot(char **aRoot);
2095 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2096 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
2097 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
2098 nsresult GetCharPref(const char *aPrefName, char **_retval);
2099 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2100 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2101 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2102 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2103 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2104 nsresult ClearUserPref(const char *aPrefName);
2105 nsresult LockPref(const char *aPrefName);
2106 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
2107 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
2108 nsresult UnlockPref(const char *aPrefName);
2109 nsresult DeleteBranch(const char *aStartingAt);
2110 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2111 nsresult ResetBranch(const char *aStartingAt);
2116 uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2119 interface nsIDirectoryServiceProvider : nsISupports
2121 nsresult GetFile(const char *prop, PRBool *persistent, nsIFile **_retval);
2126 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2129 interface nsIProtocolHandler : nsISupports
2131 nsresult GetScheme(nsACString *aScheme);
2132 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2133 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2134 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2135 nsIURI *aBaseURI, nsIURI **_retval);
2136 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2137 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
2142 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2145 interface nsIExternalProtocolHandler : nsIProtocolHandler
2147 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
2152 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2155 interface nsIIOService : nsISupports
2157 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2158 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2159 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2161 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2162 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2163 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2164 nsIChannel **_retval);
2165 nsresult GetOffline(PRBool *aOffline);
2166 nsresult SetOffline(PRBool aOffline);
2167 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
2168 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
2173 uuid(ca68c485-9db3-4c12-82a6-4fab7948e2d5),
2176 interface nsINetUtil : nsISupports
2178 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2179 PRBool *aHadCharset, nsACString *_retval);
2180 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, PRBool *_retval);
2181 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, PRBool *_retval);
2182 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2183 nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
2184 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2185 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2186 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2187 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2188 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, PRBool *_retval);
2193 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2196 interface nsIWebBrowserFocus : nsISupports
2198 nsresult Activate();
2199 nsresult Deactivate();
2200 nsresult SetFocusAtFirstElement();
2201 nsresult SetFocusAtLastElement();
2202 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2203 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2204 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2205 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2210 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2213 interface nsIWebBrowserChrome : nsISupports
2215 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2216 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2217 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2218 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2219 nsresult SetChromeFlags(PRUint32 aChromeFlags);
2220 nsresult DestroyBrowserWindow();
2221 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2222 nsresult ShowAsModal();
2223 nsresult IsWindowModal(PRBool *_retval);
2224 nsresult ExitModalEventLoop(nsresult aStatus);
2229 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2232 interface nsIDOMEventListener : nsISupports
2234 nsresult HandleEvent(nsIDOMEvent *event);
2239 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
2242 interface nsIDOMEventTarget : nsISupports
2244 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2245 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
2246 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
2251 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
2254 interface nsIDOMEvent : nsISupports
2256 nsresult GetType(nsAString *aType);
2257 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2258 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2259 nsresult GetEventPhase(PRUint16 *aEventPhase);
2260 nsresult GetBubbles(PRBool *aBubbles);
2261 nsresult GetCancelable(PRBool *aCancelable);
2262 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2263 nsresult StopPropagation();
2264 nsresult PreventDefault();
2265 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
2268 cpp_quote("#define CONTEXT_NONE 0x00")
2269 cpp_quote("#define CONTEXT_LINK 0x01")
2270 cpp_quote("#define CONTEXT_IMAGE 0x02")
2271 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2272 cpp_quote("#define CONTEXT_TEXT 0x08")
2273 cpp_quote("#define CONTEXT_INPUT 0x10")
2274 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2278 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2281 interface nsIContextMenuListener : nsISupports
2283 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2288 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
2291 interface nsIDOMUIEvent : nsIDOMEvent
2293 nsresult GetView(nsIDOMAbstractView **aView);
2294 nsresult GetDetail(PRInt32 *aDetail);
2295 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2296 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
2301 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
2304 interface nsIDOMMouseEvent : nsIDOMUIEvent
2306 nsresult GetScreenX(PRInt32 *aScreenX);
2307 nsresult GetScreenY(PRInt32 *aScreenY);
2308 nsresult GetClientX(PRInt32 *aClientX);
2309 nsresult GetClientY(PRInt32 *aClientY);
2310 nsresult GetCtrlKey(PRBool *aCtrlKey);
2311 nsresult GetShiftKey(PRBool *aShiftKey);
2312 nsresult GetAltKey(PRBool *aAltKey);
2313 nsresult GetMetaKey(PRBool *aMetaKey);
2314 nsresult GetButton(PRUint16 *aButton);
2315 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2316 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
2317 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2318 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
2319 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
2320 nsIDOMEventTarget *relatedTargetArg);
2325 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
2328 interface nsIDOMKeyEvent : nsIDOMUIEvent
2330 nsresult GetCharCode(PRUint32 *aCharCode);
2331 nsresult GetKeyCode(PRUint32 *aKeyCode);
2332 nsresult GetAltKey(PRBool *aAltKey);
2333 nsresult GetCtrlKey(PRBool *aCtrlKey);
2334 nsresult GetShiftKey(PRBool *aShiftKey);
2335 nsresult GetMetaKey(PRBool *aMetaKey);
2336 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
2337 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
2338 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
2339 PRUint32 charCodeArg);
2344 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2347 interface nsIEmbeddingSiteWindow : nsISupports
2349 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2350 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2351 nsresult SetFocus();
2352 nsresult GetVisibility(PRBool *aVisibility);
2353 nsresult SetVisibility(PRBool aVisibility);
2354 nsresult GetTitle(PRUnichar **aTitle);
2355 nsresult SetTitle(const PRUnichar *aTitle);
2356 nsresult GetSiteWindow(void **aSiteWindow);
2361 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2364 interface nsIComponentRegistrar : nsISupports
2366 nsresult AutoRegister(nsIFile *aSpec);
2367 nsresult AutoUnregister(nsIFile *aSpec);
2368 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2369 const char *aContractID, nsIFactory *aFactory);
2370 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2371 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2372 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2374 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2375 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
2376 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
2377 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2378 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2379 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2380 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2385 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2388 interface nsIPromptService : nsISupports
2390 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2391 const PRUnichar *aText);
2392 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2393 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
2394 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2395 const PRUnichar *aText, PRBool *_retval);
2396 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2397 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
2399 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2400 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2401 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2402 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
2403 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2404 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2405 PRBool *aCheckState, PRBool *_retval);
2406 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2407 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2408 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2409 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2410 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2411 PRBool *aCheckState, PRBool *_retval);
2412 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2413 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2414 PRInt32 *aOutSelection, PRBool *_retval);
2419 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2422 interface nsITooltipTextProvider : nsISupports
2424 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2429 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2432 interface nsIProfile : nsISupports
2434 nsresult GetProfileCount(PRInt32 *aProfileCount);
2435 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2436 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2437 nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
2438 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2439 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2440 nsresult CreateNewProfile(const PRUnichar *profileName,
2441 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2442 PRBool useExistingDir);
2443 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2444 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2445 nsresult CloneProfile(const PRUnichar *profileName);
2450 uuid(30465632-a777-44cc-90f9-8145475ef999),
2453 interface nsIWindowCreator : nsISupports
2455 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2456 nsIWebBrowserChrome **_retval);
2461 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2464 interface nsIWindowCreator2 : nsIWindowCreator
2466 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2467 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2468 nsIWebBrowserChrome **_retval);
2473 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2476 interface nsIWindowWatcher : nsISupports
2478 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2479 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2480 nsresult RegisterNotification(nsIObserver *aObserver);
2481 nsresult UnregisterNotification(nsIObserver *aObserver);
2482 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2483 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2484 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2485 nsresult SetWindowCreator(nsIWindowCreator *creator);
2486 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2487 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2488 nsIDOMWindow **_retval);
2489 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2490 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2495 uuid(24f3f4da-18a4-448d-876d-7360fefac029),
2498 interface nsIEditingSession : nsISupports
2500 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2501 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2502 PRBool doAfterUriLoad, PRBool aMakeWholeDocumentEditable, PRBool aInteractive);
2503 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2504 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2505 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2506 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2507 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2508 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2509 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2510 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2511 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2512 nsresult GetJsAndPluginsDisabled(PRBool *aJsAndPluginsDisabled);
2517 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2520 interface nsICommandParams : nsISupports
2522 nsresult GetValueType(const char *name, PRInt16 *_retval);
2523 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2524 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2525 nsresult GetDoubleValue(const char *name, double *_retval);
2526 nsresult GetStringValue(const char *name, nsAString *_retval);
2527 nsresult GetCStringValue(const char *name, char **_retval);
2528 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2529 nsresult SetBooleanValue(const char *name, PRBool value);
2530 nsresult SetLongValue(const char *name, PRInt32 value);
2531 nsresult SetDoubleValue(const char *name, double value);
2532 nsresult SetStringValue(const char *name, const nsAString *value);
2533 nsresult SetCStringValue(const char *name, const char *value);
2534 nsresult SetISupportsValue(const char *name, nsISupports *value);
2535 nsresult RemoveValue(const char *name);
2536 nsresult HasMoreElements(PRBool *_retval);
2538 nsresult GetNext(char **_retval);
2543 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2546 interface nsICommandManager : nsISupports
2548 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2549 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2550 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2551 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2552 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2553 nsICommandParams *aCommandParams);
2554 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2555 nsIDOMWindow *aTargetWindow);
2560 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2563 interface nsIControllerContext : nsISupports
2565 nsresult Init(nsIControllerCommandTable *aCommandTable);
2566 nsresult SetCommandContext(nsISupports *aCommandContext);
2571 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2574 interface nsIController : nsISupports
2576 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2577 nsresult SupportsCommand(const char *command, PRBool *_retval);
2578 nsresult DoCommand(const char *command);
2579 nsresult OnEvent(const char *eventName);
2584 uuid(dd254504-e273-4923-9ec1-d8421a6635f1),
2587 interface nsIContent : nsISupports
2589 /* This is not a real interface declaration. It's too internal for us. */
2594 uuid(b2274bc3-4a1c-4e64-8de4-3bc650288438),
2597 interface nsIDocument : nsISupports
2599 /* This is not a real interface declaration. It's too internal for us. */
2604 uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
2607 interface nsIContentSerializer : nsISupports
2609 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying,
2610 PRBool aIsWholeDocument);
2611 nsresult AppendText(nsIContent *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2612 nsresult AppendCDATASection(nsIContent *aCDATASection, PRInt32 aStartOffset,
2613 PRInt32 aEndOffset, nsAString *aStr);
2614 nsresult AppendProcessingInstruction(nsIContent* aPI, PRInt32 aStartOffset,
2615 PRInt32 aEndOffset, nsAString *aStr);
2616 nsresult AppendComment(nsIContent *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2618 nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
2619 nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
2621 nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
2622 nsresult Flush(nsAString *aStr);
2623 nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
2628 uuid(972e54e1-dec3-4e3f-87ec-408a7dbcfd92),
2631 interface nsIEditor : nsISupports
2633 typedef void *nsIPresShellPtr;
2634 typedef void *nsIContentPtr;
2636 nsresult GetSelection([out] nsISelection *_retval);
2637 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2638 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2639 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2640 nsresult PostCreate();
2641 nsresult PreDestroy();
2642 nsresult GetFlags([out] PRUint32 *_retval);
2643 nsresult SetFlags([in] PRUint32 val);
2644 nsresult GetContentsMIMEType([out] char **_retval);
2645 nsresult SetContentsMIMEType([in] const char *val);
2646 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2647 nsresult GetDocument([out] nsIDOMDocument **_retval);
2648 nsresult GetRootElement([out] nsIDOMElement **_retval);
2649 nsresult GetSelectionController([out] nsISelectionController **_retval);
2650 nsresult DeleteSelection([in] PRInt16 action);
2651 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2652 nsresult GetDocumentModified([out] PRBool *_retval);
2653 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2654 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2655 nsresult ResetModificationCount();
2656 nsresult GetModificationCount([out] PRInt32 *_retval);
2657 nsresult IncrementModificationCount([in] PRInt32 aModCount);
2658 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2659 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
2660 nsresult DoTransaction([in] nsITransaction *txn);
2661 nsresult EnableUndo([in] PRBool enable);
2662 nsresult Undo([in] PRUint32 count);
2663 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2664 nsresult Redo([in] PRUint32 count);
2665 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2666 nsresult BeginTransaction();
2667 nsresult EndTransaction();
2668 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2669 nsresult EndPlaceHolderTransaction();
2670 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2671 nsresult SetShouldTxnSetSelection([in] PRBool should);
2672 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2673 nsresult SyncRealTimeSpell();
2674 nsresult SetSpellcheckUserOverride(PRBool enable);
2676 nsresult CanCut([out] PRBool *_retval);
2678 nsresult CanCopy([out] PRBool *_retval);
2679 nsresult Paste([in] PRInt32 aSelectionType);
2680 nsresult PasteTransferable(nsITransferable *aTransferable);
2681 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2682 nsresult CanPasteTransferable(nsITransferable *aTransferable, PRBool *_retval);
2683 nsresult SelectAll();
2684 nsresult BeginningOfDocument();
2685 nsresult EndOfDocument();
2686 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2687 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2688 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2689 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2690 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2691 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2692 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2693 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2694 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2695 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2696 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2697 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2698 nsresult DeleteNode([in] nsIDOMNode *child);
2699 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2700 nsresult SwitchTextDirection();
2701 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2702 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2703 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2704 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2705 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2706 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2707 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2708 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2709 nsresult DumpContentTree();
2710 nsresult DebugDumpContent();
2711 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2712 PRBool IsModifiableNode(nsIDOMNode *aNode);
2717 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2720 interface nsIHTMLEditor : nsISupports
2722 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2723 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2724 nsresult RemoveAllDefaultProperties();
2725 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2726 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2727 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2728 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2729 nsresult RemoveAllInlineProperties();
2730 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2731 nsresult IncreaseFontSize();
2732 nsresult DecreaseFontSize();
2733 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2734 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2735 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2736 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2737 nsresult InsertHTML([in] nsAString *aInputString);
2738 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2739 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2740 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);
2741 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2742 nsresult SetDocumentTitle([in] nsAString *aTitle);
2743 nsresult UpdateBaseURL();
2744 nsresult SelectElement([in] nsIDOMElement *aElement);
2745 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2746 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2747 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2748 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2749 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2750 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2751 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2752 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2753 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2754 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2755 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2756 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2757 nsresult RemoveList([in] nsAString *aListType);
2758 nsresult Indent([in] nsAString *aIndent);
2759 nsresult Align([in] nsAString *aAlign);
2760 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2761 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2762 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2763 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2764 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2765 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2766 nsresult SetBackgroundColor([in] nsAString *aColor);
2767 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2768 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2769 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2770 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2771 nsresult SetIsCSSEnabled([in] PRBool prb);
2772 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2773 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2774 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2775 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2776 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2777 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2778 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2779 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2784 uuid(bf6db598-3833-400b-9e53-ec220cb2496c),
2787 interface nsIDocShell : nsISupports
2789 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, PRBool firstParty);
2790 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
2791 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
2792 nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
2793 const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
2794 nsISHEntry *aSHEntry, PRBool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
2795 nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, PRBool aReplace);
2796 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
2797 nsresult PrepareForNewContentModel();
2798 nsresult SetCurrentURI(nsIURI *aURI);
2799 nsresult FirePageHideNotification(PRBool isUnload);
2800 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
2801 nsresult GetPresShell(nsIPresShell **aPresShell);
2802 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
2803 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
2804 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
2805 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
2806 nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
2807 nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
2808 nsresult GetAllowPlugins(PRBool *aAllowPlugins);
2809 nsresult SetAllowPlugins(PRBool aAllowPlugins);
2810 nsresult GetAllowJavascript(PRBool *aAllowJavascript);
2811 nsresult SetAllowJavascript(PRBool aAllowJavascript);
2812 nsresult GetAllowMetaRedirects(PRBool *aAllowMetaRedirects);
2813 nsresult SetAllowMetaRedirects(PRBool aAllowMetaRedirects);
2814 nsresult GetAllowSubframes(PRBool *aAllowSubframes);
2815 nsresult SetAllowSubframes(PRBool aAllowSubframes);
2816 nsresult GetAllowImages(PRBool *aAllowImages);
2817 nsresult SetAllowImages(PRBool aAllowImages);
2818 nsresult GetAllowDNSPrefetch(PRBool *aAllowDNSPrefetch);
2819 nsresult SetAllowDNSPrefetch(PRBool aAllowDNSPrefetch);
2820 nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
2821 nsresult GetAppType(PRUint32 *aAppType);
2822 nsresult SetAppType(PRUint32 aAppType);
2823 nsresult GetAllowAuth(PRBool *aAllowAuth);
2824 nsresult SetAllowAuth(PRBool aAllowAuth);
2825 nsresult GetZoom(float *aZoom);
2826 nsresult SetZoom(float aZoom);
2827 nsresult GetMarginWidth(PRInt32 *aMarginWidth);
2828 nsresult SetMarginWidth(PRInt32 aMarginWidth);
2829 nsresult GetMarginHeight(PRInt32 *aMarginHeight);
2830 nsresult SetMarginHeight(PRInt32 aMarginHeight);
2831 nsresult TabToTreeOwner(PRBool forward, PRBool *tookFocus);
2832 nsresult GetBusyFlags(PRUint32 *aBusyFlags);
2833 nsresult GetLoadType(PRUint32 *aLoadType);
2834 nsresult SetLoadType(PRUint32 aLoadType);
2835 nsresult IsBeingDestroyed(PRBool *_retval);
2836 nsresult GetIsExecutingOnLoadHandler(PRBool *aIsExecutingOnLoadHandler);
2837 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
2838 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
2839 nsresult GetShouldSaveLayoutState(PRBool *aShouldSaveLayoutState);
2840 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
2841 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
2842 nsresult SuspendRefreshURIs();
2843 nsresult ResumeRefreshURIs();
2844 nsresult BeginRestore(nsIContentViewer *viewer, PRBool top);
2845 nsresult FinishRestore();
2846 nsresult GetRestoringDocument(PRBool *aRestoringDocument);
2847 nsresult GetUseErrorPages(PRBool *aUseErrorPages);
2848 nsresult SetUseErrorPages(PRBool aUseErrorPages);
2849 nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
2850 nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
2851 nsresult HistoryPurged(PRInt32 numEntries);
2852 nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
2853 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
2854 PRBool create, nsIDOMStorage **_retval);
2855 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
2856 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
2857 nsresult SetChildOffset(PRUint32 offset);
2858 nsresult GetIsInUnload(PRBool *aIsInUnload);
2859 nsresult GetChannelIsUnsafe(PRBool *aChannelIsUnsafe);
2860 void DetachEditorFromWindow();
2861 nsresult GetIsOffScreenBrowser(PRBool *aIsOffScreenBrowser);
2862 nsresult SetIsOffScreenBrowser(PRBool aIsOffScreenBrowser);
2863 nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
2864 nsresult GetCanExecuteScripts(PRBool *aCanExecuteScripts);
2865 nsresult GetIsActive(PRBool *aIsActive);
2866 nsresult SetIsActive(PRBool aIsActive);
2871 uuid(85eea794-ed8e-4e1b-a128-d09300ae51aa),
2874 interface nsIMutationObserver : nsISupports
2876 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
2877 void /*CharacterDataChangeInfo*/ *aInfo);
2878 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
2879 void /*CharacterDataChangeInfo*/ *aInfo);
2880 void AttributeWillChange(nsIDocument *aDocument, nsIContent * aContent, PRInt32 aNameSpaceID,
2881 nsIAtom *aAttribute, PRInt32 aModType);
2882 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
2883 nsIAtom *aAttribute, PRInt32 aModType);
2884 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent* aFirstNewContent,
2885 PRInt32 aNewIndexInContainer);
2886 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2887 PRInt32 aIndexInContainer);
2888 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
2889 PRInt32 aIndexInContainer, nsIContent *aPreviousSibling);
2890 void NodeWillBeDestroyed(const nsINode *aNode);
2891 void ParentChainChanged(nsIContent *aContent);
2896 uuid(4e14e321-a4bb-49f8-a57a-2363668d14d0),
2899 interface nsIDocumentObserver : nsIMutationObserver
2901 typedef int nsUpdateType;
2903 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2904 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
2905 void BeginLoad(nsIDocument *aDocument);
2906 void EndLoad(nsIDocument *aDocument);
2907 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent1, nsIContent *aContent2,
2908 PRInt32 aStateMask);
2909 void DocumentStatesChanged(nsIDocument* aDocument, PRInt32 aStateMask);
2910 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2911 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, PRBool aDocumentSheet);
2912 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
2913 PRBool aApplicable);
2914 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
2915 nsIStyleRule *aNewStyleRule);
2916 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2917 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
2918 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
2919 void DoneAddingChildren(nsIContent *aContent, PRBool aHaveNotified);
2922 /* Parts of npapi.h */
2924 cpp_quote("#define NP_VERSION_MAJOR 0")
2925 cpp_quote("#define NP_VERSION_MINOR 25")
2927 typedef unsigned char NPBool;
2928 typedef INT16 NPError;
2929 typedef INT16 NPReason;
2930 typedef char *NPMIMEType;
2932 typedef struct _NPP {
2937 typedef struct _NPStream {
2942 UINT32 lastmodified;
2944 const char *headers;
2947 typedef struct _NPSavedData {
2952 typedef struct _NPRect {
2964 #define NP_ABI_MASK 0
2967 NPPVpluginNameString = 1,
2968 NPPVpluginDescriptionString,
2969 NPPVpluginWindowBool,
2970 NPPVpluginTransparentBool,
2972 NPPVpluginWindowSize,
2973 NPPVpluginTimerInterval,
2974 NPPVpluginScriptableInstance = (10 | NP_ABI_MASK),
2975 NPPVpluginScriptableIID = 11,
2976 NPPVjavascriptPushCallerBool = 12,
2977 NPPVpluginKeepLibraryInMemory = 13,
2978 NPPVpluginNeedsXEmbed = 14,
2979 NPPVpluginScriptableNPObject = 15,
2981 NPPVpluginUrlRequestsDisplayedBool = 17,
2982 NPPVpluginWantsAllNetworkStreams = 18,
2983 NPPVpluginNativeAccessibleAtkPlugId = 19,
2984 NPPVpluginCancelSrcStream = 20,
2985 NPPVSupportsAdvancedKeyHandling = 21
2992 NPNVjavascriptEnabledBool,
2995 NPNVserviceManager = (10 | NP_ABI_MASK),
2996 NPNVDOMElement = (11 | NP_ABI_MASK),
2997 NPNVDOMWindow = (12 | NP_ABI_MASK),
2998 NPNVToolkit = (13 | NP_ABI_MASK),
2999 NPNVSupportsXEmbedBool = 14,
3000 NPNVWindowNPObject = 15,
3001 NPNVPluginElementNPObject = 16,
3002 NPNVSupportsWindowless = 17,
3003 NPNVprivateModeBool = 18,
3004 NPNVsupportsAdvancedKeyHandling = 21
3008 NPWindowTypeWindow = 1,
3009 NPWindowTypeDrawable
3012 typedef struct _NPWindow {
3022 typedef struct _NPFullPrint {
3023 NPBool pluginPrinted;
3025 void *platformPrint;
3028 typedef struct _NPEmbedPrint {
3030 void *platformPrint;
3033 typedef struct _NPPrint {
3036 NPFullPrint fullPrint;
3037 NPEmbedPrint embedPrint;
3041 typedef HRGN NPRegion;
3045 uuid(84994340-e120-4051-824f-d4ee8aef1a3e),
3048 interface nsIPluginInstance : nsISupports
3050 typedef void *JSContext;
3051 typedef void *JSObject;
3053 nsresult Initialize(nsIPluginInstanceOwner *aOwner, const char *aMIMEType);
3056 nsresult SetWindow(NPWindow *aWindow);
3057 nsresult NewStreamToPlugin(nsIPluginStreamListener **aListener);
3058 nsresult NewStreamFromPlugin(const char *aType, const char *aTarget, nsIOutputStream **aResult);
3059 nsresult Print(NPPrint *aPlatformPrint);
3060 nsresult HandleEvent(void *aEvent, PRInt16 *aHandled);
3061 nsresult InvalidateRect(NPRect *aRect);
3062 nsresult InvalidateRegion(NPRegion aRegion);
3063 nsresult ForceRedraw();
3064 nsresult GetMIMEType(const char **aValue);
3065 nsresult GetJSContext(JSContext **aJSContext);
3066 nsresult GetOwner(nsIPluginInstanceOwner **aOwner);
3067 nsresult SetOwner(nsIPluginInstanceOwner *aOwner);
3068 nsresult ShowStatus(const char *aMessage);
3069 nsresult InvalidateOwner();
3070 nsresult GetJSObject(JSContext *cx, JSObject **_retval);
3071 nsresult GetFormValue(nsAString *aFormValue);
3072 nsresult PushPopupsEnabledState(PRBool aEnabled);
3073 nsresult PopPopupsEnabledState();
3074 nsresult GetPluginAPIVersion(PRUint16 *aPluginAPIVersion);
3075 nsresult DefineJavaProperties();
3076 nsresult ShouldCache(PRBool *_retval);
3077 nsresult IsWindowless(PRBool *_retval);
3078 nsresult IsTransparent(PRBool *_retval);
3079 nsresult GetValueFromPlugin(NPPVariable variable, void *aValue);
3080 nsresult GetDrawingModel(PRInt32 *_retval);
3085 uuid(6d827df5-b5cd-416c-85cb-3cdd05c7aed1),
3088 interface nsIPluginTagInfo : nsISupports
3091 nsPluginTagType_Unknown,
3092 nsPluginTagType_Embed,
3093 nsPluginTagType_Object,
3094 nsPluginTagType_Applet
3097 nsresult GetAttributes(PRUint16 *aCount, const char ***aNames, const char ***aValues);
3098 nsresult GetAttribute(const char *aName, const char **aResult);
3099 nsresult GetTagType(nsPluginTagType *aTagType);
3100 nsresult GetTagText(const char **aTagText);
3101 nsresult GetParameters(PRUint16 *aCount, const char ***aNames, const char ***aValues);
3102 nsresult GetParameter(const char *aName, const char **aResult);
3103 nsresult GetDocumentBase(const char **aDocumentBase);
3104 nsresult GetDocumentEncoding(const char **aDocumentEncoding);
3105 nsresult GetAlignment(const char **aElignment);
3106 nsresult GetWidth(PRUint32 *aWidth);
3107 nsresult GetHeight(PRUint32 *aHeight);
3108 nsresult GetBorderVertSpace(PRUint32 *aBorderVertSpace);
3109 nsresult GetBorderHorizSpace(PRUint32 *aBorderHorizSpace);
3110 nsresult GetUniqueID(PRUint32 *aUniqueID);
3111 nsresult GetDOMElement(nsIDOMElement **aDOMElement);