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 an usual idl file. Interfaces in this file are XPCOM interfaces
22 * (NOT MSCOM!), but we generate the header file with WIDL compatibile with XPCOM,
26 cpp_quote("#define GECKO_VERSION \"0.1.0\"");
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION");
31 typedef HRESULT nsresult;
32 typedef ULONG nsrefcnt;
37 typedef REFIID nsIIDRef;
38 typedef nsIIDRef nsCIDRef;
40 typedef void** nsQIResult;
41 typedef WCHAR PRUnichar;
42 typedef ULONG PRUint32;
44 typedef WORD PRUint16;
45 typedef INT16 PRInt16;
48 typedef LARGE_INTEGER PRInt64;
49 typedef ULARGE_INTEGER PRUint64;
50 typedef PRUint64 DOMTimeStamp;
51 typedef PRUint32 nsLoadFlags;
67 typedef nsCStringContainer nsACString;
68 typedef nsStringContainer nsAString;
70 interface nsIWebBrowserChrome;
71 interface nsILoadGroup;
73 interface nsIDOMDocument;
74 interface nsIDOMEvent;
76 interface nsISelectionController;
77 interface nsITransactionManager;
78 interface nsITransaction;
79 interface nsIInlineSpellChecker;
80 interface nsIOutputStream;
81 interface nsIEditorObserver;
82 interface nsIEditActionListener;
83 interface nsIDocumentStateListener;
89 uuid(00000000-0000-0000-c000-000000000046)
93 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
98 /* Currently we don't need a full declaration of these interfaces */
99 typedef nsISupports nsISHistory;
100 typedef nsISupports nsIWidget;
101 typedef nsISupports nsIDOMAbstractView;
102 typedef nsISupports nsIHttpHeaderVisitor;
103 typedef nsISupports nsIDOMBarProp;
104 typedef nsISupports nsIDOMWindowCollection;
105 typedef nsISupports nsIPrompt;
106 typedef nsISupports nsIAuthPrompt;
107 typedef nsISupports nsIDOMNamedNodeMap;
108 typedef nsISupports nsIDOMAttr;
109 typedef nsISupports nsIDOMDocumentType;
110 typedef nsISupports nsIDOMDOMImplementation;
111 typedef nsISupports nsIDOMCDATASection;
112 typedef nsISupports nsIDOMProcessingInstruction;
113 typedef nsISupports nsIDOMEntityReference;
114 typedef nsISupports nsIDOMHTMLFormElement;
115 typedef nsISupports nsIDOMHTMLOptionsCollection;
116 typedef nsISupports nsIDOMHTMLCollection;
117 typedef nsISupports nsIWebProgressListener;
118 typedef nsISupports nsIDOMCSSValue;
119 typedef nsISupports nsIDOMCSSRule;
120 typedef nsISupports nsIPrintSession;
121 typedef nsISupports nsIControllerCommandTable;
122 typedef nsISupports nsIPrincipal;
123 typedef nsISupports nsIAtom;
124 typedef nsISupports nsISupportsArray;
125 typedef nsISupports nsIContentFilter;
129 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958)
132 interface nsIServiceManager : nsISupports
134 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
135 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
136 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
137 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
142 uuid(00000001-0000-0000-c000-000000000046)
145 interface nsIFactory : nsISupports
147 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
148 nsresult LockFactory(PRBool lock);
153 uuid(db242e01-e4d9-11d2-9dde-000064657374)
156 interface nsIObserver : nsISupports
158 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
163 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae)
166 interface nsIComponentManager : nsISupports
168 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
169 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
170 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
172 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
173 nsIIDRef aIID, nsQIResult result);
178 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3)
181 interface nsIMemory : nsISupports
183 void *Alloc(/*size_t*/ int size);
184 void *Realloc(void *_ptr, /*size_t*/ int newSize);
185 void Free(void *_ptr);
186 nsresult HeapMinimize(PRBool immediate);
187 nsresult IsLowMemory(PRBool *_retval);
192 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf)
195 interface nsIWeakReference : nsISupports
197 nsresult QueryReferent(const nsIID *riid, void **result);
202 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf)
205 interface nsISupportsWeakReference : nsISupports
207 nsresult GetWeakReference(nsIWeakReference **_retval);
212 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c)
215 interface nsIInterfaceRequestor : nsISupports
217 nsresult GetInterface(const nsIID *riid, void **result);
222 uuid(d1899240-f9d2-11d2-bdd6-000064657374)
225 interface nsISimpleEnumerator : nsISupports
227 nsresult HasMoreElements(PRBool *_retval);
228 nsresult GetNext(nsISupports **_retval);
233 uuid(114744d9-c369-456e-b55a-52fe52880d2d)
236 interface nsIArray : nsISupports
238 nsresult GetLength(PRUint32 *aLength);
239 nsresult QueryElementAt(PRUint32 index, const nsIID *uuid, void **result);
240 nsresult IndexOf(PRUint32 startIndex, nsISupports *element, PRUint32 *_retval);
241 nsresult Enumerate(nsISimpleEnumerator **_retval);
246 uuid(af059da0-c85b-40ec-af07-ae4bfdc192cc)
249 interface nsIMutableArray : nsIArray
251 nsresult AppendElement(nsISupports *element, PRBool weak);
252 nsresult RemoveElementAt(PRUint32 index);
253 nsresult InsertElementAt(nsISupports *element, PRUint32 index, PRBool weak);
259 uuid(4d12e540-83d7-11d5-90ed-0010a4e73d9a)
262 interface nsIVariant : nsISupports
287 TYPE_WSTRING_SIZE_IS,
295 nsresult GetDataType(PRUint16 *aDataType);
296 nsresult GetAsInt8(PRUint8 *_retval);
297 nsresult GetAsInt16(PRInt16 *_retval);
298 nsresult GetAsInt32(PRInt32 *_retval);
299 nsresult GetAsInt64(PRInt64 *_retval);
300 nsresult GetAsUint8(PRUint8 *_retval);
301 nsresult GetAsUint16(PRUint16 *_retval);
302 nsresult GetAsUint32(PRUint32 *_retval);
303 nsresult GetAsUint64(PRUint64 *_retval);
304 nsresult GetAsFloat(float *_retval);
305 nsresult GetAsDouble(double *_retval);
306 nsresult GetAsBool(PRBool *_retval);
307 nsresult GetAsChar(char *_retval);
308 nsresult GetAsWChar(PRUnichar *_retval);
309 nsresult GetAsID(nsID *retval);
310 nsresult GetAsAString(nsAString *_retval);
311 nsresult GetAsDOMString(nsAString *_retval);
312 nsresult GetAsACString(nsACString *_retval);
313 nsresult GetAsAUTF8String(nsACString *_retval);
314 nsresult GetAsString(char **_retval);
315 nsresult GetAsWString(PRUnichar **_retval);
316 nsresult GetAsISupports(nsISupports **_retval);
317 nsresult GetAsInterface(nsIID * *iid, void **iface);
318 nsresult GetAsArray(PRUint16 *type, nsIID *iid, PRUint32 *count, void **ptr);
319 nsresult GetAsStringWithSize(PRUint32 *size, char **str);
320 nsresult GetAsWStringWithSize(PRUint32 *size, PRUnichar **str);
325 uuid(5586a590-8c82-11d5-90f3-0010a4e73d9a)
328 interface nsIWritableVariant : nsIVariant
330 nsresult GetWritable(PRBool *aWritable);
331 nsresult SetWritable(PRBool aWritable);
332 nsresult SetAsInt8(PRUint8 aValue);
333 nsresult SetAsInt16(PRInt16 aValue);
334 nsresult SetAsInt32(PRInt32 aValue);
335 nsresult SetAsInt64(PRInt64 aValue);
336 nsresult SetAsUint8(PRUint8 aValue);
337 nsresult SetAsUint16(PRUint16 aValue);
338 nsresult SetAsUint32(PRUint32 aValue);
339 nsresult SetAsUint64(PRUint64 aValue);
340 nsresult SetAsFloat(float aValue);
341 nsresult SetAsDouble(double aValue);
342 nsresult SetAsBool(PRBool aValue);
343 nsresult SetAsChar(char aValue);
344 nsresult SetAsWChar(PRUnichar aValue);
345 nsresult SetAsID(const nsID *aValue);
346 nsresult SetAsAString(const nsAString *aValue);
347 nsresult SetAsDOMString(const nsAString *aValue);
348 nsresult SetAsACString(const nsACString *aValue);
349 nsresult SetAsAUTF8String(const nsACString *aValue);
350 nsresult SetAsString(const char *aValue);
351 nsresult SetAsWString(const PRUnichar *aValue);
352 nsresult SetAsISupports(nsISupports *aValue);
353 nsresult SetAsInterface(const nsIID *iid, void *iface);
354 nsresult SetAsArray(PRUint16 type, const nsIID *iid, PRUint32 count, void *ptr);
355 nsresult SetAsStringWithSize(PRUint32 size, const char *str);
356 nsresult SetAsWStringWithSize(PRUint32 size, const PRUnichar *str);
357 nsresult SetAsVoid();
358 nsresult SetAsEmpty();
359 nsresult SetAsEmptyArray();
360 nsresult SetFromVariant(nsIVariant *aValue);
365 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a)
368 interface nsIInputStream : nsISupports
371 nsresult Available(PRUint32 *_retval);
372 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
373 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
374 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
375 PRUint32 aCount, PRUint32 *aWriteCount),
376 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
377 nsresult IsNonBlocking(PRBool *_retval);
382 uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53)
385 interface nsIStringInputStream : nsIInputStream
387 nsresult SetData(const char *data, PRInt32 dataLen);
388 nsresult AdoptData(char *data, PRInt32 dataLen);
389 nsresult ShareData(const char *data, PRInt32 dataLen);
394 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40)
397 interface nsIURI : nsISupports
399 nsresult GetSpec(nsACString *aSpec);
400 nsresult SetSpec(const nsACString *aSpec);
401 nsresult GetPrePath(nsACString *aPrePath);
402 nsresult GetScheme(nsACString *aScheme);
403 nsresult SetScheme(const nsACString *aScheme);
404 nsresult GetUserPass(nsACString *aUserPass);
405 nsresult SetUserPass(const nsACString *aUserPass);
406 nsresult GetUsername(nsACString *aUsername);
407 nsresult SetUsername(const nsACString *aUsername);
408 nsresult GetPassword(nsACString *aPassword);
409 nsresult SetPassword(const nsACString *aPassword);
410 nsresult GetHostPort(nsACString *aHostPort);
411 nsresult SetHostPort(const nsACString *aHostPort);
412 nsresult GetHost(nsACString *aHost);
413 nsresult SetHost(const nsACString *aHost);
414 nsresult GetPort(PRInt32 *aPort);
415 nsresult SetPort(PRInt32 aPort);
416 nsresult GetPath(nsACString *aPath);
417 nsresult SetPath(const nsACString *aPath);
418 nsresult Equals(nsIURI *other, PRBool *_retval);
419 nsresult SchemeIs(const char *scheme, PRBool *_retval);
420 nsresult Clone(nsIURI **_retval);
421 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
422 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
423 nsresult GetAsciiHost(nsACString *aAsciiHost);
424 nsresult GetOriginCharset(nsACString *aOriginCharset);
429 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe)
432 interface nsIRequest : nsISupports
434 nsresult GetName(nsACString *aName);
435 nsresult IsPending(PRBool *_retval);
436 nsresult GetStatus(nsresult *aStatus);
437 nsresult Cancel(nsresult aStatus);
440 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
441 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
442 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
443 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
448 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40)
451 interface nsIRequestObserver : nsISupports
453 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
454 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
459 uuid(1a637020-1482-11d3-9333-00104ba0fd40)
462 interface nsIStreamListener : nsIRequestObserver
464 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
465 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
470 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc)
473 interface nsILoadGroup : nsIRequest
475 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
476 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
477 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
478 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
479 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
480 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
481 nsresult GetRequests(nsISimpleEnumerator **aRequests);
482 nsresult GetActiveCount(PRUint32 *aActiveCount);
483 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
484 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
489 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018)
492 interface nsIChannel : nsIRequest
494 nsresult GetOriginalURI(nsIURI **aOriginalURI);
495 nsresult SetOriginalURI(nsIURI *aOriginalURI);
496 nsresult GetURI(nsIURI **aURI);
497 nsresult GetOwner(nsISupports **aOwner);
498 nsresult SetOwner(nsISupports *aOwner);
499 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
500 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
501 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
502 nsresult GetContentType(nsACString *aContentType);
503 nsresult SetContentType(const nsACString *aContentType);
504 nsresult GetContentCharset(nsACString *aContentCharset);
505 nsresult SetContentCharset(const nsACString *aContentCharset);
506 nsresult GetContentLength(PRInt32 *aContentLength);
507 nsresult SetContentLength(PRInt32 aContentLength);
508 nsresult Open(nsIInputStream **_retval);
509 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
514 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260)
517 interface nsIHttpChannel : nsIChannel
519 nsresult GetRequestMethod(nsACString *aRequestMethod);
520 nsresult SetRequestMethod(const nsACString *aRequestMethod);
521 nsresult GetReferrer(nsIURI **aReferrer);
522 nsresult SetReferrer(nsIURI *aReferrer);
523 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
524 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
525 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
526 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
527 nsresult SetAllowPipelining(PRBool aAllowPipelining);
528 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
529 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
530 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
531 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
532 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
533 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
534 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
535 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
536 nsresult IsNoStoreResponse(PRBool *_retval);
537 nsresult IsNoCacheResponse(PRBool *_retval);
542 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75)
545 interface nsIUploadChannel : nsISupports
547 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
548 PRInt32 aContentLength);
549 nsresult GetUploadStream(nsIInputStream **aUploadStream);
554 uuid(a6cf90be-15b3-11d2-932e-00805f8add32)
557 interface nsIDOMCSSStyleDeclaration : nsISupports
559 nsresult GetCssText(nsAString *aCssText);
560 nsresult SetCssText(const nsAString *aCssText);
561 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
562 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
563 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
564 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
565 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
566 const nsAString *priority);
567 nsresult GetLength(PRUint32 *aLength);
568 nsresult Item(PRUint32 index, nsAString *_retval);
569 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
574 uuid(a6cf907d-15b3-11d2-932e-00805f8add32)
577 interface nsIDOMNodeList : nsISupports
579 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
580 nsresult GetLength(PRUint32 *aLength);
585 uuid(a6cf907c-15b3-11d2-932e-00805f8add32)
588 interface nsIDOMNode : nsISupports
594 CDATA_SELECTION_NODE = 4,
595 ENTITY_REFERENCE_NODE = 5,
597 PROCESSING_INSTRUCTION_NODE = 7,
600 DOCUMENT_TYPE_NODE = 10,
601 DOCUMENT_FRAGMENT_NODE = 11,
605 nsresult GetNodeName(nsAString *aNodeName);
606 nsresult GetNodeValue(nsAString *aNodeValue);
607 nsresult SetNodeValue(const nsAString *aNodeValue);
608 nsresult GetNodeType(PRUint16 *aNodeType);
609 nsresult GetParentNode(nsIDOMNode **aParentNode);
610 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
611 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
612 nsresult GetLastChild(nsIDOMNode **aLastChild);
613 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
614 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
615 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
616 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
617 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
618 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
619 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
620 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
621 nsresult HasChildNodes(PRBool *_retval);
622 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
623 nsresult Normalize();
624 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
625 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
626 nsresult GetPrefix(nsAString *aPrefix);
627 nsresult SetPrefix(const nsAString *aPrefix);
628 nsresult GetLocalName(nsAString *aLocalName);
629 nsresult HasAttributes(PRBool *_retval);
634 uuid(a6cf9078-15b3-11d2-932e-00805f8add32)
637 interface nsIDOMElement : nsIDOMNode
639 nsresult GetTagName(nsAString *aTagName);
640 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
641 nsresult SetAttribute(const nsAString *name, const nsAString *value);
642 nsresult RemoveAttribute(const nsAString *name);
643 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
644 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
645 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
646 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
647 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
649 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
650 const nsAString *value);
651 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
652 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
653 nsIDOMAttr **_retval);
654 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
655 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
656 nsIDOMNodeList **_retval);
657 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
658 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
664 uuid(99715845-95fc-4a56-aa53-214b65c26e22)
667 interface nsIDOMElementCSSInlineStyle : nsISupports
669 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
672 cpp_quote("#undef GetClassName");
676 uuid(a6cf9085-15b3-11d2-932e-00805f8add32)
679 interface nsIDOMHTMLElement : nsIDOMElement
681 nsresult GetId(nsAString *aId);
682 nsresult SetId(const nsAString *aId);
683 nsresult GetTitle(nsAString *aTitle);
684 nsresult SetTitle(const nsAString *aTitle);
685 nsresult GetLang(nsAString *aLang);
686 nsresult SetLang(const nsAString *aLang);
687 nsresult GetDir(nsAString *aDir);
688 nsresult SetDir(const nsAString *aDir);
689 nsresult GetClassName(nsAString *aClassName);
690 nsresult SetClassName(const nsAString *aClassName);
695 uuid(da83b2ec-8264-4410-8496-ada3acd2ae42)
698 interface nsIDOMNSHTMLElement : nsISupports
700 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
701 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
702 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
703 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
704 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
705 nsresult GetInnerHTML(nsAString *aInnerHTML);
706 nsresult SetInnerHTML(const nsAString *aInnerHTML);
707 nsresult GetScrollTop(PRInt32 *aScrollTop);
708 nsresult SetScrollTop(PRInt32 aScrollTop);
709 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
710 nsresult SetScrollLeft(PRInt32 aScrollLeft);
711 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
712 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
713 nsresult GetClientHeight(PRInt32 *aClientHeight);
714 nsresult GetClientWidth(PRInt32 *aClientWidth);
715 nsresult GetTabIndex(PRInt32 *aTabIndex);
716 nsresult SetTabIndex(PRInt32 aTabIndex);
719 nsresult ScrollIntoView(PRBool top);
724 uuid(a6cf9072-15b3-11d2-932e-00805f8add32)
727 interface nsIDOMCharacterData : nsIDOMNode
729 nsresult GetData(nsAString *aData);
730 nsresult SetData(const nsAString *aData);
731 nsresult GetLength(PRUint32 *aLength);
732 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
733 nsresult AppendData(const nsAString *arg);
734 nsresult InsertData(PRUint32 offset, const nsAString *arg);
735 nsresult DeleteData(PRUint32 offset, PRUint32 count);
736 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
741 uuid(a6cf9082-15b3-11d2-932e-00805f8add32)
744 interface nsIDOMText : nsIDOMCharacterData
746 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
751 uuid(a6cf9073-15b3-11d2-932e-00805f8add32)
754 interface nsIDOMComment : nsIDOMCharacterData
760 uuid(a6cf9076-15b3-11d2-932e-00805f8add32)
763 interface nsIDOMDocumentFragment : nsIDOMNode
769 uuid(a6cf9075-15b3-11d2-932e-00805f8add32)
772 interface nsIDOMDocument : nsIDOMNode
774 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
775 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
776 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
777 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
778 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
779 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
780 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
781 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
782 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
783 nsIDOMProcessingInstruction **_retval);
784 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
785 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
786 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
787 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
788 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
789 nsIDOMElement **_retval);
790 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
791 nsIDOMAttr **_retval);
792 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
793 nsIDOMNodeList **_retval);
794 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
799 uuid(a6cf9084-15b3-11d2-932e-00805f8add32)
802 interface nsIDOMHTMLDocument : nsIDOMDocument
804 nsresult GetTitle(nsAString *aTitle);
805 nsresult SetTitle(const nsAString *aTitle);
806 nsresult GetReferrer(nsAString *aReferrer);
807 nsresult GetDomain(nsAString *aDomain);
808 nsresult GetURL(nsAString *aURL);
809 nsresult GetBody(nsIDOMHTMLElement **aBody);
810 nsresult SetBody(nsIDOMHTMLElement *aBody);
811 nsresult GetImages(nsIDOMHTMLCollection **aImages);
812 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
813 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
814 nsresult GetForms(nsIDOMHTMLCollection **aForms);
815 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
816 nsresult GetCookie(nsAString *aCookie);
817 nsresult SetCookie(const nsAString *aCookie);
820 nsresult Write(const nsAString *text);
821 nsresult Writeln(const nsAString *text);
822 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
827 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32)
830 interface nsIDOMRange : nsISupports
839 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
840 nsresult GetStartOffset(PRInt32 *aStartOffset);
841 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
842 nsresult GetEndOffset(PRInt32 *aEndOffset);
843 nsresult GetCollapsed(PRBool *aCollapsed);
844 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
845 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
846 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
847 nsresult SetStartBefore(nsIDOMNode *refNode);
848 nsresult SetStartAfter(nsIDOMNode *refNode);
849 nsresult SetEndBefore(nsIDOMNode *refNode);
850 nsresult SetEndAfter(nsIDOMNode *refNode);
851 nsresult Collapse(PRBool toStart);
852 nsresult SelectNode(nsIDOMNode *refNode);
853 nsresult SelectNodeContents(nsIDOMNode *refNode);
854 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
855 nsresult DeleteContents();
856 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
857 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
858 nsresult InsertNode(nsIDOMNode *newNode);
859 nsresult SurroundContents(nsIDOMNode *newParent);
860 nsresult CloneRange(nsIDOMRange **_retval);
861 nsresult ToString(nsAString *_retval);
867 uuid(a6cf90f2-15b3-11d2-932e-00805f8add32)
869 interface nsIDOMNSRange : nsISupports
871 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
872 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
873 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
874 nsresult IntersectsNode([in] nsIDOMNode *n, [out] PRBool *_retval);
875 nsresult CompareNode([in] nsIDOMNode *n, [out] PRUint16 *_retval);
882 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b)
885 interface nsIDOMDocumentRange : nsISupports
887 nsresult CreateRange(nsIDOMRange **_retval);
892 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1)
895 interface nsISelection : nsISupports
897 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
898 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
899 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
900 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
901 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
902 nsresult GetRangeCount(PRInt32 *aRangeCount);
903 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
904 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
905 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
906 nsresult CollapseToStart();
907 nsresult CollapseToEnd();
908 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
909 nsresult SelectAllChildren(nsIDOMNode *parentNode);
910 nsresult AddRange(nsIDOMRange *range);
911 nsresult RemoveRange(nsIDOMRange *range);
912 nsresult RemoveAllRanges();
913 nsresult DeleteFromDocument();
914 nsresult SelectionLanguageChange(PRBool langRTL);
915 nsresult ToString(PRUnichar **_retval);
920 uuid(a6cf906b-15b3-11d2-932e-00805f8add32)
923 interface nsIDOMWindow : nsISupports
925 nsresult GetDocument(nsIDOMDocument **aDocument);
926 nsresult GetParent(nsIDOMWindow **aParent);
927 nsresult GetTop(nsIDOMWindow **aTop);
928 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
929 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
930 nsresult GetName(nsAString *aName);
931 nsresult SetName(const nsAString *aName);
932 nsresult GetTextZoom(float *aTextZoom);
933 nsresult SetTextZoom(float aTextZoom);
934 nsresult GetScrollX(PRInt32 *aScrollX);
935 nsresult GetScrollY(PRInt32 *aScrollY);
936 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
937 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
938 nsresult GetSelection(nsISelection **_retval);
939 nsresult ScrollByLines(PRInt32 numLines);
940 nsresult ScrollByPages(PRInt32 numPages);
941 nsresult SizeToContent();
946 uuid(a6cf908e-15b3-11d2-932e-00805f8add32)
949 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
951 nsresult GetALink(nsAString *aALink);
952 nsresult SetALink(const nsAString *aALink);
953 nsresult GetBackground(nsAString *aBackground);
954 nsresult SetBackground(const nsAString *aBackground);
955 nsresult GetBgColor(nsAString *aBgColor);
956 nsresult SetBgColor(const nsAString *aBgColor);
957 nsresult GetLink(nsAString *aLink);
958 nsresult SetLink(const nsAString *aLink);
959 nsresult GetText(nsAString *aText);
960 nsresult SetText(const nsAString *aText);
961 nsresult GetVLink(nsAString *aVLink);
962 nsresult SetVLink(const nsAString *aVLink);
967 uuid(a6cf9093-15b3-11d2-932e-00805f8add32)
970 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
972 nsresult GetDefaultValue(nsAString *aDefaultValue);
973 nsresult SetDefaultValue(const nsAString *aDefaultValue);
974 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
975 nsresult SetDefaultChecked(PRBool aDefaultChecked);
976 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
977 nsresult GetAccept(nsAString *aAccept);
978 nsresult SetAccept(const nsAString *aAccept);
979 nsresult GetAccessKey(nsAString *aAccessKey);
980 nsresult SetAccessKey(const nsAString *aAccessKey);
981 nsresult GetAlign(nsAString *aAlign);
982 nsresult SetAlign(const nsAString *aAlign);
983 nsresult GetAlt(nsAString *aAlt);
984 nsresult SetAlt(const nsAString *aAlt);
985 nsresult GetChecked(PRBool *aChecked);
986 nsresult SetChecked(PRBool aChecked);
987 nsresult GetDisabled(PRBool *aDisabled);
988 nsresult SetDisabled(PRBool aDisabled);
989 nsresult GetMaxLength(PRInt32 *aMaxLength);
990 nsresult SetMaxLength(PRInt32 aMaxLength);
991 nsresult GetName(nsAString *aName);
992 nsresult SetName(const nsAString *aName);
993 nsresult GetReadOnly(PRBool *aReadOnly);
994 nsresult SetReadOnly(PRBool aReadOnly);
995 nsresult GetSize(PRUint32 *aSize);
996 nsresult SetSize(PRUint32 aSize);
997 nsresult GetSrc(nsAString *aSrc);
998 nsresult SetSrc(const nsAString *aSrc);
999 nsresult GetTabIndex(PRInt32 *aTabIndex);
1000 nsresult SetTabIndex(PRInt32 aTabIndex);
1001 nsresult GetType(nsAString *aType);
1002 nsresult SetType(const nsAString *aType);
1003 nsresult GetUseMap(nsAString *aUseMap);
1004 nsresult SetUseMap(const nsAString *aUseMap);
1005 nsresult GetValue(nsAString *aValue);
1006 nsresult SetValue(const nsAString *aValue);
1015 uuid(a6cf9090-15b3-11d2-932e-00805f8add32)
1018 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1020 nsresult GetType(nsAString *aType);
1021 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1022 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1023 nsresult GetValue(nsAString *aValue);
1024 nsresult SetValue(const nsAString *aValue);
1025 nsresult GetLength(PRUint32 *aLength);
1026 nsresult SetLength(PRUint32 aLength);
1027 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1028 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1029 nsresult GetDisabled(PRBool *aDisabled);
1030 nsresult SetDisabled(PRBool aDisabled);
1031 nsresult GetMultiple(PRBool *aMultiple);
1032 nsresult SetMultiple(PRBool aMultiple);
1033 nsresult GetName(nsAString *aName);
1034 nsresult SetName(const nsAString *aName);
1035 nsresult GetSize(PRInt32 *aSize);
1036 nsresult SetSize(PRInt32 aSize);
1037 nsresult GetTabIndex(PRInt32 *aTabIndex);
1038 nsresult SetTabIndex(PRInt32 aTabIndex);
1039 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1040 nsresult Remove(PRInt32 index);
1047 uuid(a6cf9094-15b3-11d2-932e-00805f8add32)
1050 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1052 nsresult GetDefaultValue(nsAString *aDefaultValue);
1053 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1054 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1055 nsresult GetAccessKey(nsAString *aAccessKey);
1056 nsresult SetAccessKey(const nsAString *aAccessKey);
1057 nsresult GetCols(PRInt32 *aCols);
1058 nsresult SetCols(PRInt32 aCols);
1059 nsresult GetDisabled(PRBool *aDisabled);
1060 nsresult SetDisabled(PRBool aDisabled);
1061 nsresult GetName(nsAString *aName);
1062 nsresult SetName(const nsAString *aName);
1063 nsresult GetReadOnly(PRBool *aReadOnly);
1064 nsresult SetReadOnly(PRBool aReadOnly);
1065 nsresult GetRows(PRInt32 *aRows);
1066 nsresult SetRows(PRInt32 aRows);
1067 nsresult GetTabIndex(PRInt32 *aTabIndex);
1068 nsresult SetTabIndex(PRInt32 aTabIndex);
1069 nsresult GetType(nsAString *aType);
1070 nsresult GetValue(nsAString *aValue);
1071 nsresult SetValue(const nsAString *aValue);
1079 uuid(94928ab3-8b63-11d3-989d-001083010e9b)
1082 interface nsIURIContentListener : nsISupports
1084 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1085 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1086 nsIStreamListener **aContentHandler, PRBool *_retval);
1087 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1088 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1089 char **aDesiredContentType, PRBool *_retval);
1090 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1091 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1092 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1093 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1098 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916)
1101 interface nsITooltipListener : nsISupports
1103 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1104 nsresult OnHideTooltip();
1109 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c)
1112 interface nsIWebBrowser : nsISupports
1114 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1115 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1116 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1117 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1118 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1119 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1120 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1123 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7");
1127 uuid(f15398a0-8018-11d3-af70-00a024ffc08c)
1130 interface nsIWebBrowserSetup : nsISupports
1132 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1135 typedef void* nativeWindow;
1139 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)
1142 interface nsIBaseWindow : nsISupports
1144 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1145 PRInt32 y, PRInt32 cx, PRInt32 cy);
1148 nsresult SetPosition(PRInt32 x, PRInt32 y);
1149 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1150 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1151 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1152 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1153 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1154 nsresult Repaint(PRBool force);
1155 nsresult GetParentWidget(nsIWidget **aParentWidget);
1156 nsresult SetParentWidget(nsIWidget *aParentWidget);
1157 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1158 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1159 nsresult GetVisibility(PRBool *aVisibility);
1160 nsresult SetVisibility(PRBool aVisibility);
1161 nsresult GetEnabled(PRBool *aEnabled);
1162 nsresult SetEnabled(PRBool aEnabled);
1163 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1164 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1165 nsresult GetMainWidget(nsIWidget **aMainWidget);
1166 nsresult SetFocus();
1167 nsresult GetTitle(PRUnichar **aTitle);
1168 nsresult SetTitle(const PRUnichar *aTitle);
1171 cpp_quote("#define LOAD_FLAGS_NONE 0");
1175 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c)
1178 interface nsIWebNavigation : nsISupports
1180 nsresult GetCanGoBack(PRBool *aCanGoBack);
1181 nsresult GetCanGoForward(PRBool *aCanGoForward);
1183 nsresult GoForward();
1184 nsresult GotoIndex(PRInt32 index);
1185 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1186 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1187 nsresult Reload(PRUint32 aReloadFlags);
1188 nsresult Stop(PRUint32 aStopFlags);
1189 nsresult GetDocument(nsIDOMDocument **aDocument);
1190 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1191 nsresult GetReferringURI(nsIURI **aReferringURI);
1192 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1193 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1198 uuid(f1094df6-ce0e-42c9-9847-2f663172c38d)
1201 interface nsIPrintSettings : nsISupports
1203 typedef struct {} nsMargin;
1205 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1206 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1207 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1208 nsresult GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight);
1209 nsresult Clone(nsIPrintSettings **_retval);
1210 nsresult Assign(nsIPrintSettings *aPS);
1211 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1212 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1213 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1214 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1215 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1216 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1217 nsresult GetMarginTop(double *aMarginTop);
1218 nsresult SetMarginTop(double aMarginTop);
1219 nsresult GetMarginLeft(double *aMarginLeft);
1220 nsresult SetMarginLeft(double aMarginLeft);
1221 nsresult GetMarginBottom(double *aMarginBottom);
1222 nsresult SetMarginBottom(double aMarginBottom);
1223 nsresult GetMarginRight(double *aMarginRight);
1224 nsresult SetMarginRight(double aMarginRight);
1225 nsresult GetScaling(double *aScaling);
1226 nsresult SetScaling(double aScaling);
1227 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1228 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1229 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1230 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1231 nsresult GetPrintRange(PRInt16 *aPrintRange);
1232 nsresult SetPrintRange(PRInt16 aPrintRange);
1233 nsresult GetTitle(PRUnichar **aTitle);
1234 nsresult SetTitle(const PRUnichar *aTitle);
1235 nsresult GetDocURL(PRUnichar **aDocURL);
1236 nsresult SetDocURL(const PRUnichar *aDocURL);
1237 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1238 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1239 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1240 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1241 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1242 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1243 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1244 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1245 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1246 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1247 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1248 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1249 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1250 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1251 nsresult GetIsCancelled(PRBool *aIsCancelled);
1252 nsresult SetIsCancelled(PRBool aIsCancelled);
1253 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1254 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1255 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1256 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1257 nsresult GetPrintSilent(PRBool *aPrintSilent);
1258 nsresult SetPrintSilent(PRBool aPrintSilent);
1259 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1260 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1261 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1262 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1263 nsresult GetPaperName(PRUnichar **aPaperName);
1264 nsresult SetPaperName(const PRUnichar *aPaperName);
1265 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1266 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1267 nsresult GetPaperData(PRInt16 *aPaperData);
1268 nsresult SetPaperData(PRInt16 aPaperData);
1269 nsresult GetPaperWidth(double *aPaperWidth);
1270 nsresult SetPaperWidth(double aPaperWidth);
1271 nsresult GetPaperHeight(double *aPaperHeight);
1272 nsresult SetPaperHeight(double aPaperHeight);
1273 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1274 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1275 nsresult GetPlexName(PRUnichar **aPlexName);
1276 nsresult SetPlexName(const PRUnichar *aPlexName);
1277 nsresult GetColorspace(PRUnichar **aColorspace);
1278 nsresult SetColorspace(const PRUnichar *aColorspace);
1279 nsresult GetResolutionName(PRUnichar **aResolutionName);
1280 nsresult SetResolutionName(const PRUnichar aResolutionName);
1281 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1282 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1283 nsresult GetPrintReversed(PRBool *aPrintReversed);
1284 nsresult SetPrintReversed(PRBool aPrintReversed);
1285 nsresult GetPrintInColor(PRBool *aPrintInColor);
1286 nsresult SetPrintInColor(PRBool aPrintInColor);
1287 nsresult GetPaperSize(PRInt32 *aPaperSize);
1288 nsresult SetPaperSize(PRInt32 aPaperSize);
1289 nsresult GetOrientation(PRInt32 *aOrientation);
1290 nsresult SetOrientation(PRInt32 aOrientation);
1291 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1292 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1293 nsresult GetNumCopies(PRInt32 *aNumCopies);
1294 nsresult SetNumCopies(PRInt32 aNumCopies);
1295 nsresult GetPrinterName(PRUnichar **aPrinterName);
1296 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1297 nsresult GetPrintToFile(PRBool *aPrintToFile);
1298 nsresult SetPrintToFile(PRBool aPrintToFile);
1299 nsresult GetToFileName(PRUnichar **aToFileName);
1300 nsresult SetToFileName(const PRUnichar *aToFileName);
1301 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1302 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1303 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1304 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1305 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1306 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1307 nsresult SetMarginInTwips(nsMargin *aMargin);
1308 nsresult GetMarginInTwips(nsMargin *aMargin);
1313 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419)
1316 interface nsIWebBrowserPrint : nsISupports
1318 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1319 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1320 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1321 nsresult GetDoingPrint(PRBool *aDoingPrint);
1322 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1323 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1324 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1325 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1326 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1327 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1328 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1329 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1330 nsIWebProgressListener *aWPListener);
1331 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1333 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1334 nsresult ExitPrintPreview();
1339 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8)
1342 interface nsIScrollable : nsISupports
1345 ScrollOrientation_X = 1,
1346 ScrollOrientation_Y = 2
1351 Scrollbar_Never = 2,
1352 Scrollbar_Always = 3
1355 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1356 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1357 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1358 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1359 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1360 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1361 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1362 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1363 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1364 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1369 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)
1372 interface nsIFile : nsISupports
1374 nsresult Append(const nsAString *node);
1375 nsresult AppendNative(const nsAString *node);
1376 nsresult Normalize();
1377 nsresult Create(PRUint32 type, PRUint32 permission);
1378 nsresult GetLeafName(nsAString *aLeafName);
1379 nsresult SetLeafName(const nsAString *aLeafName);
1380 nsresult GetNativeLeafName(nsAString *aLeafName);
1381 nsresult SetNativeLeafName(const nsAString *aLeafName);
1382 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1383 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1384 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1385 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1386 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1387 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1388 nsresult Remove(PRBool recursive);
1389 nsresult GetPermissions(PRUint32 *aPermissions);
1390 nsresult SetPermissions(PRUint32 pPermissions);
1391 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1392 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1393 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1394 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1395 nsresult GetFileSize(PRInt64 *aFileSize);
1396 nsresult SetFileSize(PRInt64 aFileSize);
1397 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1398 nsresult GetTarget(nsAString *aTarget);
1399 nsresult GetNativeTarget(nsACString *aNativeTarget);
1400 nsresult GetPath(nsAString *aPath);
1401 nsresult GetNativePath(nsACString *aNativePath);
1402 nsresult Exists(PRBool *_retval);
1403 nsresult IsWritable(PRBool *_retval);
1404 nsresult IsReadable(PRBool *_retval);
1405 nsresult IsExecutable(PRBool *_retval);
1406 nsresult IsHidden(PRBool *_retval);
1407 nsresult IsDirectory(PRBool *_retval);
1408 nsresult IsFile(PRBool *_retval);
1409 nsresult IsSymlink(PRBool *_retval);
1410 nsresult IsSpecial(PRBool *_retval);
1411 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1412 nsresult Clone(nsIFile **_retval);
1413 nsresult Equals(nsIFile *inFile, PRBool *_retval);
1414 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1415 nsresult GetParent(nsIFile **aParent);
1416 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1421 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40)
1424 interface nsIProtocolHandler : nsISupports
1426 nsresult GetScheme(nsACString *aScheme);
1427 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
1428 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
1429 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
1430 nsIURI *aBaseURI, nsIURI **_retval);
1431 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
1432 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
1437 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7)
1440 interface nsIExternalProtocolHandler : nsIProtocolHandler
1442 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
1447 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e)
1450 interface nsIIOService : nsISupports
1452 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1453 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1454 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1456 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1457 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1458 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1459 nsIChannel **_retval);
1460 nsresult GetOffline(PRBool *aOffline);
1461 nsresult SetOffline(PRBool aOffline);
1462 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1463 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1468 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a)
1471 interface nsIWebBrowserFocus : nsISupports
1473 nsresult Activate();
1474 nsresult Deactivate();
1475 nsresult SetFocusAtFirstElement();
1476 nsresult SetFocusAtLastElement();
1477 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1478 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1479 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1480 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1485 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c)
1488 interface nsIWebBrowserChrome : nsISupports
1490 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1491 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1492 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1493 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1494 nsresult SetChromeFlags(PRUint32 aChromeFlags);
1495 nsresult DestroyBrowserWindow();
1496 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1497 nsresult ShowAsModal();
1498 nsresult IsWindowModal(PRBool *_retval);
1499 nsresult ExitModalEventLoop(nsresult aStatus);
1504 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4)
1507 interface nsIDOMEventListener : nsISupports
1509 nsresult HandleEvent(nsIDOMEvent *event);
1514 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4)
1517 interface nsIDOMEventTarget : nsISupports
1519 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1520 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1521 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1526 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32)
1529 interface nsIDOMEvent : nsISupports
1531 nsresult GetType(nsAString *aType);
1532 nsresult GetTarget(nsIDOMEventTarget **aTarget);
1533 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1534 nsresult GetEventPhase(PRUint16 *aEventPhase);
1535 nsresult GetBubbles(PRBool *aBubbles);
1536 nsresult GetCancelable(PRBool *aCancelable);
1537 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1538 nsresult StopPropagation();
1539 nsresult PreventDefault();
1540 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1543 cpp_quote("#define CONTEXT_NONE 0x00");
1544 cpp_quote("#define CONTEXT_LINK 0x01");
1545 cpp_quote("#define CONTEXT_IMAGE 0x02");
1546 cpp_quote("#define CONTEXT_DOCUMENT 0x04");
1547 cpp_quote("#define CONTEXT_TEXT 0x08");
1548 cpp_quote("#define CONTEXT_INPUT 0x10");
1549 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20");
1553 uuid(3478b6b0-3875-11d4-94ef-0020183bf181)
1556 interface nsIContextMenuListener : nsISupports
1558 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1563 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32)
1566 interface nsIDOMUIEvent : nsIDOMEvent
1568 nsresult GetView(nsIDOMAbstractView **aView);
1569 nsresult GetDetail(PRInt32 *aDetail);
1570 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1571 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
1576 uuid(ff751edc-8b02-aae7-0010-8301838a3123)
1579 interface nsIDOMMouseEvent : nsIDOMUIEvent
1581 nsresult GetScreenX(PRInt32 *aScreenX);
1582 nsresult GetScreenY(PRInt32 *aScreenY);
1583 nsresult GetClientX(PRInt32 *aClientX);
1584 nsresult GetClientY(PRInt32 *aClientY);
1585 nsresult GetCtrlKey(PRBool *aCtrlKey);
1586 nsresult GetShiftKey(PRBool *aShiftKey);
1587 nsresult GetAltKey(PRBool *aAltKey);
1588 nsresult GetMetaKey(PRBool *aMetaKey);
1589 nsresult GetButton(PRUint16 *aButton);
1590 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
1591 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1592 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
1593 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
1594 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
1595 nsIDOMEventTarget *relatedTargetArg);
1600 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123)
1603 interface nsIDOMKeyEvent : nsIDOMUIEvent
1605 nsresult GetCharCode(PRUint32 *aCharCode);
1606 nsresult GetKeyCode(PRUint32 *aKeyCode);
1607 nsresult GetAltKey(PRBool *aAltKey);
1608 nsresult GetCtrlKey(PRBool *aCtrlKey);
1609 nsresult GetShiftKey(PRBool *aShiftKey);
1610 nsresult GetMetaKey(PRBool *aMetaKey);
1611 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
1612 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
1613 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
1614 PRUint32 charCodeArg);
1619 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743)
1622 interface nsIEmbeddingSiteWindow : nsISupports
1624 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
1625 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1626 nsresult SetFocus();
1627 nsresult GetVisibility(PRBool *aVisibility);
1628 nsresult SetVisibility(PRBool aVisibility);
1629 nsresult GetTitle(PRUnichar **aTitle);
1630 nsresult SetTitle(const PRUnichar *aTitle);
1631 nsresult GetSiteWindow(void **aSiteWindow);
1636 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392)
1639 interface nsIComponentRegistrar : nsISupports
1641 nsresult AutoRegister(nsIFile *aSpec);
1642 nsresult AutoUnregister(nsIFile *aSpec);
1643 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1644 const char *aContractID, nsIFactory *aFactory);
1645 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1646 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1647 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1649 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1650 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1651 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1652 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1653 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1654 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1655 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1660 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5)
1663 interface nsIPromptService : nsISupports
1665 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1666 const PRUnichar *aText);
1667 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1668 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
1669 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1670 const PRUnichar *aText, PRBool *_retval);
1671 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1672 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
1674 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1675 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
1676 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
1677 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
1678 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1679 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
1680 PRBool *aCheckState, PRBool *_retval);
1681 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1682 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
1683 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
1684 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1685 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
1686 PRBool *aCheckState, PRBool *_retval);
1687 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1688 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
1689 PRInt32 *aOutSelection, PRBool *_retval);
1694 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee)
1697 interface nsITooltipTextProvider : nsISupports
1699 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
1704 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9)
1707 interface nsIProfile : nsISupports
1709 nsresult GetProfileCount(PRInt32 *aProfileCount);
1710 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
1711 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
1712 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
1713 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
1714 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
1715 nsresult CreateNewProfile(const PRUnichar *profileName,
1716 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
1717 PRBool useExistingDir);
1718 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
1719 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
1720 nsresult CloneProfile(const PRUnichar *profileName);
1725 uuid(30465632-a777-44cc-90f9-8145475ef999)
1728 interface nsIWindowCreator : nsISupports
1730 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1731 nsIWebBrowserChrome **_retval);
1736 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc)
1739 interface nsIWindowCreator2 : nsIWindowCreator
1741 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1742 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
1743 nsIWebBrowserChrome **_retval);
1748 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b)
1751 interface nsIWindowWatcher : nsISupports
1753 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
1754 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
1755 nsresult RegisterNotification(nsIObserver *aObserver);
1756 nsresult UnregisterNotification(nsIObserver *aObserver);
1757 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
1758 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
1759 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
1760 nsresult SetWindowCreator(nsIWindowCreator *creator);
1761 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
1762 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
1763 nsIDOMWindow **_retval);
1764 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
1765 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
1770 uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b)
1773 interface nsIEditingSession : nsISupports
1775 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
1776 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
1777 PRBool doAfterUriLoad);
1778 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
1779 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
1780 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
1781 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
1782 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
1787 uuid(83f892cf-7ed3-490e-967a-62640f3158e1)
1790 interface nsICommandParams : nsISupports
1792 nsresult GetValueType(const char *name, PRInt16 *_retval);
1793 nsresult GetBooleanValue(const char *name, PRBool *_retval);
1794 nsresult GetLongValue(const char *name, PRInt32 *_retval);
1795 nsresult GetDoubleValue(const char *name, double *_retval);
1796 nsresult GetStringValue(const char *name, nsAString *_retval);
1797 nsresult GetCStringValue(const char *name, char **_retval);
1798 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
1799 nsresult SetBooleanValue(const char *name, PRBool value);
1800 nsresult SetLongValue(const char *name, PRInt32 value);
1801 nsresult SetDoubleValue(const char *name, double value);
1802 nsresult SetStringValue(const char *name, const nsAString *value);
1803 nsresult SetCStringValue(const char *name, const char *value);
1804 nsresult SetISupportsValue(const char *name, nsISupports *value);
1805 nsresult RemoveValue(const char *name);
1806 nsresult HasMoreElements(PRBool *_retval);
1808 nsresult GetNext(char **_retval);
1813 uuid(080d2001-f91e-11d4-a73c-f9242928207c)
1816 interface nsICommandManager : nsISupports
1818 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
1819 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
1820 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1821 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1822 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
1823 nsICommandParams *aCommandParams);
1824 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
1825 nsIDOMWindow *aTargetWindow);
1830 uuid(47b82b60-a36f-4167-8072-6f421151ed50)
1833 interface nsIControllerContext : nsISupports
1835 nsresult Init(nsIControllerCommandTable *aCommandTable);
1836 nsresult SetCommandContext(nsISupports *aCommandContext);
1841 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627)
1844 interface nsIController : nsISupports
1846 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
1847 nsresult SupportsCommand(const char *command, PRBool *_retval);
1848 nsresult DoCommand(const char *command);
1849 nsresult OnEvent(const char *eventName);
1854 uuid(d650439a-ca29-410d-a906-b0557fb62fcd)
1857 interface nsIContentSerializer : nsISupports
1859 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying);
1860 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
1861 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
1862 PRInt32 aEndOffset, nsAString *aStr);
1863 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
1864 PRInt32 aEndOffset, nsAString *aStr);
1865 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
1867 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
1868 nsresult AppendElementStart(nsIDOMElement *aElement, PRBool aHasChildren, nsAString *aStr);
1869 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
1870 nsresult Flush(nsAString *aStr);
1871 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
1876 uuid(68b97c56-2289-48ac-a9e1-72c30fd3dba2)
1878 interface nsIScriptContainer : nsISupports
1880 typedef void *JSObject;
1882 nsresult GetContext(void **aContext);
1883 nsresult GetGlobalObject(void **aGlobalObject);
1884 nsresult CompileScript(const PRUnichar *aText, PRInt32 aTextLength, void *aScopeObject,
1885 nsIPrincipal *aPrincipal, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, void **_retval);
1886 nsresult ExecuteScript(void *aScriptObject, void *aScopeObject, nsAString *aRetVal, PRBool *aIsUndefined);
1887 nsresult CompileFunction(void *aTarget, const nsACString *aName, PRUint32 aArgCount,
1888 const char **aArgArray, const nsAString *aBody, const char *aURL, PRInt32 aLineNo,
1889 PRBool aShared, void* *_retval);
1890 nsresult CallFunction(nsISupports *aTarget, void *aScope, void *aHandler, nsIArray *argv,
1891 nsIVariant **_retval);
1892 nsresult BindEventHandler(nsISupports *aTarget, void *aScope, nsIAtom *aName, void *aHandler);
1893 nsresult HoldScriptObject(void *aObject);
1894 nsresult DropScriptObject(void *aObject);
1899 uuid(D4882FFB-E927-408b-96BE-D4391B456FA9)
1901 interface nsIEditor : nsISupports
1903 typedef void *nsIPresShellPtr;
1904 typedef void *nsIContentPtr;
1906 nsresult GetSelection([out] nsISelection *_retval);
1907 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
1908 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
1909 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
1910 nsresult PostCreate();
1911 nsresult PreDestroy();
1912 nsresult GetFlags([out] PRUint32 *_retval);
1913 nsresult SetFlags([in] PRUint32 val);
1914 nsresult GetContentsMIMEType([out] char **_retval);
1915 nsresult SetContentsMIMEType([in] const char *val);
1916 nsresult GetIsDocumentEditable([out] PRBool *_retval);
1917 nsresult GetDocument([out] nsIDOMDocument **_retval);
1918 nsresult GetRootElement([out] nsIDOMElement **_retval);
1919 nsresult GetSelectionController([out] nsISelectionController **_retval);
1920 nsresult DeleteSelection([in] PRInt16 action);
1921 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
1922 nsresult GetDocumentModified([out] PRBool *_retval);
1923 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
1924 nsresult SetDocumentCharacterSet([in] const nsACString *val);
1925 nsresult ResetModificationCount();
1926 nsresult GetModificationCount([out] PRInt32 *_retval);
1927 nsresult IncrementModificationCount([in] long aModCount);
1928 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
1929 nsresult DoTransaction([in] nsITransaction *txn);
1930 nsresult EnableUndo([in] PRBool enable);
1931 nsresult Undo([in] PRUint32 count);
1932 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
1933 nsresult Redo([in] PRUint32 count);
1934 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
1935 nsresult BeginTransaction();
1936 nsresult EndTransaction();
1937 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
1938 nsresult EndPlaceHolderTransaction();
1939 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
1940 nsresult SetShouldTxnSetSelection([in] PRBool should);
1941 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
1943 nsresult CanCut([out] PRBool *_retval);
1945 nsresult CanCopy([out] PRBool *_retval);
1946 nsresult Paste([in] PRInt32 aSelectionType);
1947 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
1948 nsresult SelectAll();
1949 nsresult BeginningOfDocument();
1950 nsresult EndOfDocument();
1951 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
1952 nsresult DoDrag([in] nsIDOMEvent *aEvent);
1953 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
1954 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
1955 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
1956 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
1957 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
1958 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
1959 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
1960 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
1961 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
1962 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
1963 nsresult DeleteNode([in] nsIDOMNode *child);
1964 nsresult MarkNodeDirty([in] nsIDOMNode *node);
1965 nsresult SwitchTextDirection();
1966 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
1967 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
1968 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
1969 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
1970 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
1971 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
1972 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
1973 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
1974 nsresult DumpContentTree();
1975 nsresult DebugDumpContent();
1976 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
1981 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad)
1983 interface nsIHTMLEditor : nsISupports
1985 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
1986 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
1987 nsresult RemoveAllDefaultProperties();
1988 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
1989 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
1990 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
1991 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
1992 nsresult RemoveAllInlineProperties();
1993 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
1994 nsresult IncreaseFontSize();
1995 nsresult DecreaseFontSize();
1996 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
1997 nsresult DoDrag([in] nsIDOMEvent *aEvent);
1998 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
1999 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2000 nsresult InsertHTML([in] nsAString *aInputString);
2001 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2002 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2003 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);
2004 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2005 nsresult SetDocumentTitle([in] nsAString *aTitle);
2006 nsresult UpdateBaseURL();
2007 nsresult SelectElement([in] nsIDOMElement *aElement);
2008 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2009 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2010 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2011 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2012 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2013 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2014 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2015 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2016 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2017 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2018 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2019 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2020 nsresult RemoveList([in] nsAString *aListType);
2021 nsresult Indent([in] nsAString *aIndent);
2022 nsresult Align([in] nsAString *aAlign);
2023 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2024 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2025 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2026 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2027 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2028 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2029 nsresult SetBackgroundColor([in] nsAString *aColor);
2030 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2031 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2032 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2033 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2034 nsresult SetIsCSSEnabled([in] PRBool prb);
2035 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2036 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2037 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2038 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2039 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2040 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2041 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2042 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2047 * This is a private Wine interface that is implemented by our implementation
2048 * of nsIURI to store its owner.
2052 uuid(5088272e-900b-11da-c687-000fea57f21a)
2055 interface nsIWineURI : nsIURI
2057 typedef struct NSContainer NSContainer;
2059 nsresult GetNSContainer(NSContainer **aNSContainer);
2060 nsresult SetNSContainer(NSContainer *aNSContainer);
2061 nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
2062 nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
2063 nsresult GetWineURL(LPCWSTR *aURL);
2064 nsresult SetWineURL(LPCWSTR aURL);