made functions and variables static in some testcases.
[wine/hacks.git] / dlls / mshtml / nsiface.idl
blob7fa5540d7baf01fb3c160f412f7b80c7b045f0db
1 /*
2 * Copyright 2005-2006 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
19 /*
20 * NOTE:
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,
23 * useable in C code.
26 import "wtypes.idl";
28 typedef HRESULT nsresult;
29 typedef ULONG nsrefcnt;
31 typedef IID nsIID;
32 typedef nsIID nsCID;
33 typedef REFIID nsIIDRef;
34 typedef nsIIDRef nsCIDRef;
36 typedef void** nsQIResult;
37 typedef WCHAR PRUnichar;
38 typedef ULONG PRUint32;
39 typedef LONG PRInt32;
40 typedef WORD PRUint16;
41 typedef INT16 PRInt16;
42 typedef BYTE PRUint8;
43 typedef BOOL PRBool;
44 typedef LARGE_INTEGER PRInt64;
45 typedef ULARGE_INTEGER PRUint64;
46 typedef PRUint64 DOMTimeStamp;
47 typedef PRUint32 nsLoadFlags;
49 typedef struct {
50 void *v;
51 void *d1;
52 PRUint32 d2;
53 void *d3;
54 } nsCStringContainer;
56 typedef struct {
57 void *v;
58 void *d1;
59 PRUint32 d2;
60 void *d3;
61 } nsStringContainer;
63 typedef nsCStringContainer nsACString;
64 typedef nsStringContainer nsAString;
66 interface nsIWebBrowserChrome;
67 interface nsILoadGroup;
68 interface nsIDOMNode;
69 interface nsIDOMDocument;
70 interface nsIDOMEvent;
72 interface IMoniker;
75 object,
76 uuid(00000000-0000-0000-c000-000000000046)
78 interface nsISupports
80 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
81 nsrefcnt AddRef();
82 nsrefcnt Release();
85 /* Currently we don't need a full declaration of these interfaces */
86 typedef nsISupports nsISHistory;
87 typedef nsISupports nsISimpleEnumerator;
88 typedef nsISupports nsIWidget;
89 typedef nsISupports nsIProtocolHandler;
90 typedef nsISupports nsIDOMAbstractView;
91 typedef nsISupports nsIHttpHeaderVisitor;
92 typedef nsISupports nsIDOMBarProp;
93 typedef nsISupports nsIDOMWindowCollection;
94 typedef nsISupports nsIPrompt;
95 typedef nsISupports nsIAuthPrompt;
96 typedef nsISupports nsIDOMNamedNodeMap;
97 typedef nsISupports nsIDOMAttr;
98 typedef nsISupports nsIDOMDocumentType;
99 typedef nsISupports nsIDOMDOMImplementation;
100 typedef nsISupports nsIDOMDocumentFragment;
101 typedef nsISupports nsIDOMComment;
102 typedef nsISupports nsIDOMCDATASection;
103 typedef nsISupports nsIDOMProcessingInstruction;
104 typedef nsISupports nsIDOMEntityReference;
105 typedef nsISupports nsIDOMHTMLFormElement;
106 typedef nsISupports nsIDOMHTMLOptionsCollection;
107 typedef nsISupports nsIDOMHTMLCollection;
108 typedef nsISupports nsIEditor;
109 typedef nsISupports nsIWebProgressListener;
110 typedef nsISupports nsIDOMCSSValue;
111 typedef nsISupports nsIDOMCSSRule;
114 object,
115 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958)
117 interface nsIServiceManager : nsISupports
119 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
120 nsresult GetServiceByContactID(const char *aContactID, nsIIDRef aIID, void **result);
121 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
122 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
126 object,
127 uuid(00000001-0000-0000-c000-000000000046)
129 interface nsIFactory : nsISupports
131 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
132 nsresult LockFactory(PRBool lock);
136 object,
137 uuid(db242e01-e4d9-11d2-9dde-000064657374)
139 interface nsIObserver : nsISupports
141 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
145 object,
146 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae)
148 interface nsIComponentManager : nsISupports
150 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
151 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
152 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
153 nsQIResult result);
154 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
155 nsIIDRef aIID, nsQIResult result);
159 object,
160 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3)
162 interface nsIMemory : nsISupports
164 void *Alloc(/*size_t*/ int size);
165 void *Realloc(void *_ptr, /*size_t*/ int newSize);
166 void Free(void *_ptr);
167 nsresult HeapMinimize(PRBool immediate);
168 nsresult IsLowMemory(PRBool *_retval);
172 object,
173 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf)
175 interface nsIWeakReference : nsISupports
177 nsresult QueryReferent(const nsIID *riid, void **result);
181 object,
182 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf)
184 interface nsISupportsWeakReference : nsISupports
186 nsresult GetWeakReference(nsIWeakReference **_retval);
190 object,
191 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c)
193 interface nsIInterfaceRequestor : nsISupports
195 nsresult GetInterface(const nsIID *riid, void **result);
199 object,
200 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a)
202 interface nsIInputStream : nsISupports
204 nsresult Close();
205 nsresult Available(PRUint32 *_retval);
206 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
207 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
208 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
209 PRUint32 aCount, PRUint32 *aWriteCount),
210 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
211 nsresult IsNonBlocking(PRBool *_retval);
215 object,
216 uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53)
218 interface nsIStringInputStream : nsIInputStream
220 nsresult SetData(const char *data, PRInt32 dataLen);
221 nsresult AdoptData(char *data, PRInt32 dataLen);
222 nsresult ShareData(const char *data, PRInt32 dataLen);
226 object,
227 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40)
229 interface nsIURI : nsISupports
231 nsresult GetSpec(nsACString *aSpec);
232 nsresult SetSpec(const nsACString *aSpec);
233 nsresult GetPrePath(nsACString *aPrePath);
234 nsresult GetScheme(nsACString *aScheme);
235 nsresult SetScheme(const nsACString *aScheme);
236 nsresult GetUserPass(nsACString *aUserPass);
237 nsresult SetUserPass(const nsACString *aUserPass);
238 nsresult GetUsername(nsACString *aUsername);
239 nsresult SetUsername(const nsACString *aUsername);
240 nsresult GetPassword(nsACString *aPassword);
241 nsresult SetPassword(const nsACString *aPassword);
242 nsresult GetHostPort(nsACString *aHostPort);
243 nsresult SetHostPort(const nsACString *aHostPort);
244 nsresult GetHost(nsACString *aHost);
245 nsresult SetHost(const nsACString *aHost);
246 nsresult GetPort(PRInt32 *aPort);
247 nsresult SetPort(PRInt32 aPort);
248 nsresult GetPath(nsACString *aPath);
249 nsresult SetPath(const nsACString *aPath);
250 nsresult Equals(nsIURI *other, PRBool *_retval);
251 nsresult SchemeIs(const char *scheme, PRBool *_retval);
252 nsresult Clone(nsIURI **_retval);
253 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
254 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
255 nsresult GetAsciiHost(nsACString *aAsciiHost);
256 nsresult GetOriginCharset(nsACString *aOriginCharset);
260 object,
261 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe)
263 interface nsIRequest : nsISupports
265 nsresult GetName(nsACString *aName);
266 nsresult IsPending(PRBool *_retval);
267 nsresult GetStatus(nsresult *aStatus);
268 nsresult Cancel(nsresult aStatus);
269 nsresult Suspend();
270 nsresult Resume();
271 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
272 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
273 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
274 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
278 object,
279 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40)
281 interface nsIRequestObserver : nsISupports
283 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
284 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
288 object,
289 uuid(1a637020-1482-11d3-9333-00104ba0fd40)
291 interface nsIStreamListener : nsIRequestObserver
293 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
294 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
298 object,
299 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc)
301 interface nsILoadGroup : nsIRequest
303 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
304 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
305 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
306 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
307 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
308 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
309 nsresult GetRequests(nsISimpleEnumerator **aRequests);
310 nsresult GetActiveCount(PRUint32 *aActiveCount);
311 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
312 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
316 object,
317 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018)
319 interface nsIChannel : nsIRequest
321 nsresult GetOriginalURI(nsIURI **aOriginalURI);
322 nsresult SetOriginalURI(nsIURI *aOriginalURI);
323 nsresult GetURI(nsIURI **aURI);
324 nsresult GetOwner(nsISupports **aOwner);
325 nsresult SetOwner(nsISupports *aOwner);
326 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
327 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
328 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
329 nsresult GetContentType(nsACString *aContentType);
330 nsresult SetContentType(const nsACString *aContentType);
331 nsresult GetContentCharset(nsACString *aContentCharset);
332 nsresult SetContentCharset(const nsACString *aContentCharset);
333 nsresult GetContentLength(PRInt32 *aContentLength);
334 nsresult SetContentLength(PRInt32 aContentLength);
335 nsresult Open(nsIInputStream **_retval);
336 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
340 object,
341 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260)
343 interface nsIHttpChannel : nsIChannel
345 nsresult GetRequestMethod(nsACString *aRequestMethod);
346 nsresult SetRequestMethod(const nsACString *aRequestMethod);
347 nsresult GetReferrer(nsIURI **aReferrer);
348 nsresult SetReferrer(nsIURI *aReferrer);
349 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
350 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
351 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
352 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
353 nsresult SetAllowPipelining(PRBool aAllowPipelining);
354 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
355 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
356 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
357 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
358 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
359 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
360 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
361 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
362 nsresult IsNoStoreResponse(PRBool *_retval);
363 nsresult IsNoCacheResponse(PRBool *_retval);
367 object,
368 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75)
370 interface nsIUploadChannel : nsISupports
372 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
373 PRInt32 aContentLength);
374 nsresult GetUploadStream(nsIInputStream **aUploadStream);
378 object,
379 uuid(a6cf90be-15b3-11d2-932e-00805f8add32)
381 interface nsIDOMCSSStyleDeclaration : nsISupports
383 nsresult GetCssText(nsAString *aCssText);
384 nsresult SetCssText(const nsAString *aCssText);
385 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
386 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
387 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
388 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
389 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
390 const nsAString *priority);
391 nsresult GetLength(PRUint32 *aLength);
392 nsresult Item(PRUint32 index, nsAString *_retval);
393 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
397 object,
398 uuid(a6cf907d-15b3-11d2-932e-00805f8add32)
400 interface nsIDOMNodeList : nsISupports
402 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
403 nsresult GetLength(PRUint32 *aLength);
407 object,
408 uuid(a6cf907c-15b3-11d2-932e-00805f8add32)
410 interface nsIDOMNode : nsISupports
412 enum NSNODETYPE {
413 ELEMENT_NODE = 1,
414 ATTRIBUTE_NODE = 2,
415 TEXT_NODE = 3,
416 CDATA_SELECTION_NODE = 4,
417 ENTITY_REFERENCE_NODE = 5,
418 ENTITY_NODE = 6,
419 PROCESSING_INSTRUCTION_NODE = 7,
420 COMMENT_NODE = 8,
421 DOCUMENT_NODE = 9,
422 DOCUMENT_TYPE_NODE = 10,
423 DOCUMENT_FRAGMENT_NODE = 11,
424 NOTATION_NODE = 12
427 nsresult GetNodeName(nsAString *aNodeName);
428 nsresult GetNodeValue(nsAString *aNodeValue);
429 nsresult SetNodeValue(const nsAString *aNodeValue);
430 nsresult GetNodeType(PRUint16 *aNodeType);
431 nsresult GetParentNode(nsIDOMNode **aParentNode);
432 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
433 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
434 nsresult GetLastChild(nsIDOMNode **aLastChild);
435 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
436 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
437 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
438 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
439 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
440 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
441 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
442 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
443 nsresult HasChildNodes(PRBool *_retval);
444 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
445 nsresult Normalize();
446 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
447 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
448 nsresult GetPrefix(nsAString *aPrefix);
449 nsresult SetPrefix(const nsAString *aPrefix);
450 nsresult GetLocalName(nsAString *aLocalName);
451 nsresult HasAttributes(PRBool *_retval);
455 object,
456 uuid(a6cf9078-15b3-11d2-932e-00805f8add32)
458 interface nsIDOMElement : nsIDOMNode
460 nsresult GetTagName(nsAString *aTagName);
461 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
462 nsresult SetAttribute(const nsAString *name, const nsAString *value);
463 nsresult RemoveAttribute(const nsAString *name);
464 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
465 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
466 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
467 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
468 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
469 nsAString *_retval);
470 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
471 const nsAString *value);
472 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
473 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
474 nsIDOMAttr **_retval);
475 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
476 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
477 nsIDOMNodeList **_retval);
478 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
479 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
480 PRBool *_retval);
484 object,
485 uuid(99715845-95fc-4a56-aa53-214b65c26e22)
487 interface nsIDOMElementCSSInlineStyle : nsISupports
489 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
492 cpp_quote("#undef GetClassName");
495 object,
496 uuid(a6cf9085-15b3-11d2-932e-00805f8add32)
498 interface nsIDOMHTMLElement : nsIDOMElement
500 nsresult GetId(nsAString *aId);
501 nsresult SetId(const nsAString *aId);
502 nsresult GetTitle(nsAString *aTitle);
503 nsresult SetTitle(const nsAString *aTitle);
504 nsresult GetLang(nsAString *aLang);
505 nsresult SetLang(const nsAString *aLang);
506 nsresult GetDir(nsAString *aDir);
507 nsresult SetDir(const nsAString *aDir);
508 nsresult GetClassName(nsAString *aClassName);
509 nsresult SetClassName(const nsAString *aClassName);
513 object,
514 uuid(da83b2ec-8264-4410-8496-ada3acd2ae42)
516 interface nsIDOMNSHTMLElement : nsISupports
518 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
519 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
520 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
521 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
522 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
523 nsresult GetInnerHTML(nsAString *aInnerHTML);
524 nsresult SetInnerHTML(const nsAString *aInnerHTML);
525 nsresult GetScrollTop(PRInt32 *aScrollTop);
526 nsresult SetScrollTop(PRInt32 aScrollTop);
527 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
528 nsresult SetScrollLeft(PRInt32 aScrollLeft);
529 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
530 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
531 nsresult GetClientHeight(PRInt32 *aClientHeight);
532 nsresult GetClientWidth(PRInt32 *aClientWidth);
533 nsresult ScrollIntoView(PRBool top);
537 object,
538 uuid(a6cf9072-15b3-11d2-932e-00805f8add32)
540 interface nsIDOMCharacterData : nsIDOMNode
542 nsresult GetData(nsAString *aData);
543 nsresult SetData(const nsAString *aData);
544 nsresult GetLength(PRUint32 *aLength);
545 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
546 nsresult AppendData(const nsAString *arg);
547 nsresult InsertData(PRUint32 offset, const nsAString *arg);
548 nsresult DeleteData(PRUint32 offset, PRUint32 count);
549 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
553 object,
554 uuid(a6cf9082-15b3-11d2-932e-00805f8add32)
556 interface nsIDOMText : nsIDOMCharacterData
558 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
562 object,
563 uuid(a6cf9075-15b3-11d2-932e-00805f8add32)
565 interface nsIDOMDocument : nsIDOMNode
567 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
568 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
569 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
570 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
571 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
572 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
573 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
574 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
575 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
576 nsIDOMProcessingInstruction **_retval);
577 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
578 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
579 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
580 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
581 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
582 nsIDOMElement **_retval);
583 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
584 nsIDOMAttr **_retval);
585 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
586 nsIDOMNodeList **_retval);
587 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
591 object,
592 uuid(a6cf9084-15b3-11d2-932e-00805f8add32)
594 interface nsIDOMHTMLDocument : nsIDOMDocument
596 nsresult GetTitle(nsAString *aTitle);
597 nsresult SetTitle(const nsAString *aTitle);
598 nsresult GetReferrer(nsAString *aReferrer);
599 nsresult GetDomain(nsAString *aDomain);
600 nsresult GetURL(nsAString *aURL);
601 nsresult GetBody(nsIDOMHTMLElement **aBody);
602 nsresult SetBody(nsIDOMHTMLElement *aBody);
603 nsresult GetImages(nsIDOMHTMLCollection **aImages);
604 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
605 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
606 nsresult GetForms(nsIDOMHTMLCollection **aForms);
607 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
608 nsresult GetCookie(nsAString *aCookie);
609 nsresult SetCookie(const nsAString *aCookie);
610 nsresult Open();
611 nsresult Close();
612 nsresult Write(const nsAString *text);
613 nsresult Writeln(const nsAString *text);
614 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
618 object,
619 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32)
621 interface nsIDOMRange : nsISupports
623 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
624 nsresult GetStartOffset(PRInt32 *aStartOffset);
625 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
626 nsresult GetEndOffset(PRInt32 *aEndOffset);
627 nsresult GetCollapsed(PRBool *aCollapsed);
628 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
629 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
630 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
631 nsresult SetStartBefore(nsIDOMNode *refNode);
632 nsresult SetStartAfter(nsIDOMNode *refNode);
633 nsresult SetEndBefore(nsIDOMNode *refNode);
634 nsresult SetEndAfter(nsIDOMNode *refNode);
635 nsresult Collapse(PRBool toStart);
636 nsresult SelectNode(nsIDOMNode *refNode);
637 nsresult SelectNodeContents(nsIDOMNode *refNode);
638 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
639 nsresult DeleteContents();
640 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
641 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
642 nsresult InsertNode(nsIDOMNode *newNode);
643 nsresult SurroundContents(nsIDOMNode *newParent);
644 nsresult CloneRange(nsIDOMRange **_retval);
645 nsresult ToString(nsAString *_retval);
646 nsresult Detach();
650 object,
651 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1)
653 interface nsISelection : nsISupports
655 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
656 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
657 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
658 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
659 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
660 nsresult GetRangeCount(PRInt32 *aRangeCount);
661 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
662 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
663 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
664 nsresult CollapseToStart();
665 nsresult CollapseToEnd();
666 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
667 nsresult SelectAllChildren(nsIDOMNode *parentNode);
668 nsresult AddRange(nsIDOMRange *range);
669 nsresult RemoveRange(nsIDOMRange *range);
670 nsresult RemoveAllRanges();
671 nsresult DeleteFromDocument();
672 nsresult SelectionLanguageChange(PRBool langRTL);
673 nsresult ToString(PRUnichar **_retval);
677 object,
678 uuid(a6cf906b-15b3-11d2-932e-00805f8add32)
680 interface nsIDOMWindow : nsISupports
682 nsresult GetDocument(nsIDOMDocument **aDocument);
683 nsresult GetParent(nsIDOMWindow **aParent);
684 nsresult GetTop(nsIDOMWindow **aTop);
685 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
686 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
687 nsresult GetName(nsAString *aName);
688 nsresult SetName(const nsAString *aName);
689 nsresult GetTextZoom(float *aTextZoom);
690 nsresult SetTextZoom(float aTextZoom);
691 nsresult GetScrollX(PRInt32 *aScrollX);
692 nsresult GetScrollY(PRInt32 *aScrollY);
693 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
694 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
695 nsresult GetSelection(nsISelection **_retval);
696 nsresult ScrollByLines(PRInt32 numLines);
697 nsresult ScrollByPages(PRInt32 numPages);
698 nsresult SizeToContent();
702 object,
703 uuid(a6cf908e-15b3-11d2-932e-00805f8add32)
705 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
707 nsresult GetALink(nsAString *aALink);
708 nsresult SetALink(const nsAString *aALink);
709 nsresult GetBackground(nsAString *aBackground);
710 nsresult SetBackground(const nsAString *aBackground);
711 nsresult GetBgColor(nsAString *aBgColor);
712 nsresult SetBgColor(const nsAString *aBgColor);
713 nsresult GetLink(nsAString *aLink);
714 nsresult SetLink(const nsAString *aLink);
715 nsresult GetText(nsAString *aText);
716 nsresult SetText(const nsAString *aText);
717 nsresult GetVLink(nsAString *aVLink);
718 nsresult SetVLink(const nsAString *aVLink);
722 object,
723 uuid(a6cf9093-15b3-11d2-932e-00805f8add32)
725 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
727 nsresult GetDefaultValue(nsAString *aDefaultValue);
728 nsresult SetDefaultValue(const nsAString *aDefaultValue);
729 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
730 nsresult SetDefaultChecked(PRBool aDefaultChecked);
731 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
732 nsresult GetAccept(nsAString *aAccept);
733 nsresult SetAccept(const nsAString *aAccept);
734 nsresult GetAccessKey(nsAString *aAccessKey);
735 nsresult SetAccessKey(const nsAString *aAccessKey);
736 nsresult GetAlign(nsAString *aAlign);
737 nsresult SetAlign(const nsAString *aAlign);
738 nsresult GetAlt(nsAString *aAlt);
739 nsresult SetAlt(const nsAString *aAlt);
740 nsresult GetChecked(PRBool *aChecked);
741 nsresult SetChecked(PRBool aChecked);
742 nsresult GetDisabled(PRBool *aDisabled);
743 nsresult SetDisabled(PRBool aDisabled);
744 nsresult GetMaxLength(PRInt32 *aMaxLength);
745 nsresult SetMaxLength(PRInt32 aMaxLength);
746 nsresult GetName(nsAString *aName);
747 nsresult SetName(const nsAString *aName);
748 nsresult GetReadOnly(PRBool *aReadOnly);
749 nsresult SetReadOnly(PRBool aReadOnly);
750 nsresult GetSize(PRUint32 *aSize);
751 nsresult SetSize(PRUint32 aSize);
752 nsresult GetSrc(nsAString *aSrc);
753 nsresult SetSrc(const nsAString *aSrc);
754 nsresult GetTabIndex(PRInt32 *aTabIndex);
755 nsresult SetTabIndex(PRInt32 aTabIndex);
756 nsresult GetType(nsAString *aType);
757 nsresult SetType(const nsAString *aType);
758 nsresult GetUseMap(nsAString *aUseMap);
759 nsresult SetUseMap(const nsAString *aUseMap);
760 nsresult GetValue(nsAString *aValue);
761 nsresult SetValue(const nsAString *aValue);
762 nsresult Blur();
763 nsresult Focus();
764 nsresult Select();
765 nsresult Click();
769 object,
770 uuid(a6cf9090-15b3-11d2-932e-00805f8add32)
772 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
774 nsresult GetType(nsAString *aType);
775 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
776 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
777 nsresult GetValue(nsAString *aValue);
778 nsresult SetValue(const nsAString *aValue);
779 nsresult GetLength(PRUint32 *aLength);
780 nsresult SetLength(PRUint32 aLength);
781 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
782 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
783 nsresult GetDisabled(PRBool *aDisabled);
784 nsresult SetDisabled(PRBool aDisabled);
785 nsresult GetMultiple(PRBool *aMultiple);
786 nsresult SetMultiple(PRBool aMultiple);
787 nsresult GetName(nsAString *aName);
788 nsresult SetName(const nsAString *aName);
789 nsresult GetSize(PRInt32 *aSize);
790 nsresult SetSize(PRInt32 aSize);
791 nsresult GetTabIndex(PRInt32 *aTabIndex);
792 nsresult SetTabIndex(PRInt32 aTabIndex);
793 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
794 nsresult Remove(PRInt32 index);
795 nsresult Blur();
796 nsresult Focus();
800 object,
801 uuid(a6cf9094-15b3-11d2-932e-00805f8add32)
803 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
805 nsresult GetDefaultValue(nsAString *aDefaultValue);
806 nsresult SetDefaultValue(const nsAString *aDefaultValue);
807 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
808 nsresult GetAccessKey(nsAString *aAccessKey);
809 nsresult SetAccessKey(const nsAString *aAccessKey);
810 nsresult GetCols(PRInt32 *aCols);
811 nsresult SetCols(PRInt32 aCols);
812 nsresult GetDisabled(PRBool *aDisabled);
813 nsresult SetDisabled(PRBool aDisabled);
814 nsresult GetName(nsAString *aName);
815 nsresult SetName(const nsAString *aName);
816 nsresult GetReadOnly(PRBool *aReadOnly);
817 nsresult SetReadOnly(PRBool aReadOnly);
818 nsresult GetRows(PRInt32 *aRows);
819 nsresult SetRows(PRInt32 aRows);
820 nsresult GetTabIndex(PRInt32 *aTabIndex);
821 nsresult SetTabIndex(PRInt32 aTabIndex);
822 nsresult GetType(nsAString *aType);
823 nsresult GetValue(nsAString *aValue);
824 nsresult SetValue(const nsAString *aValue);
825 nsresult Blur();
826 nsresult Focus();
827 nsresult Select();
831 object,
832 uuid(94928ab3-8b63-11d3-989d-001083010e9b)
834 interface nsIURIContentListener : nsISupports
836 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
837 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
838 nsIStreamListener **aContentHandler, PRBool *_retval);
839 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
840 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
841 char **aDesiredContentType, PRBool *_retval);
842 nsresult GetLoadCookie(nsISupports **aLoadCookie);
843 nsresult SetLoadCookie(nsISupports *aLoadCookie);
844 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
845 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
849 object,
850 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916)
852 interface nsITooltipListener : nsISupports
854 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
855 nsresult OnHideTooltip();
859 object,
860 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c)
862 interface nsIWebBrowser : nsISupports
864 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
865 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
866 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
867 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
868 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
869 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
870 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
873 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7");
876 object,
877 uuid(f15398a0-8018-11d3-af70-00a024ffc08c)
879 interface nsIWebBrowserSetup : nsISupports
881 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
884 typedef void* nativeWindow;
887 object,
888 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)
890 interface nsIBaseWindow : nsISupports
892 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
893 PRInt32 y, PRInt32 cx, PRInt32 cy);
894 nsresult Create();
895 nsresult Destroy();
896 nsresult SetPosition(PRInt32 x, PRInt32 y);
897 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
898 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
899 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
900 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
901 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
902 nsresult Repaint(PRBool force);
903 nsresult GetParentWidget(nsIWidget **aParentWidget);
904 nsresult SetParentWidget(nsIWidget *aParentWidget);
905 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
906 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
907 nsresult GetVisibility(PRBool *aVisibility);
908 nsresult SetVisibility(PRBool aVisibility);
909 nsresult GetEnabled(PRBool *aEnabled);
910 nsresult SetEnabled(PRBool aEnabled);
911 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
912 nsresult SetBlurSuppression(PRBool aBlurSuppression);
913 nsresult GetMainWidget(nsIWidget **aMainWidget);
914 nsresult SetFocus();
915 nsresult GetTitle(PRUnichar **aTitle);
916 nsresult SetTitle(const PRUnichar *aTitle);
919 cpp_quote("#define LOAD_FLAGS_NONE 0");
922 object,
923 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c)
925 interface nsIWebNavigation : nsISupports
927 nsresult GetCanGoBack(PRBool *aCanGoBack);
928 nsresult GetCanGoForward(PRBool *aCanGoForward);
929 nsresult GoBack();
930 nsresult GoForward();
931 nsresult GotoIndex(PRInt32 index);
932 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
933 nsIInputStream *aPostData, nsIInputStream *aHeaders);
934 nsresult Reload(PRUint32 aReloadFlags);
935 nsresult Stop(PRUint32 aStopFlags);
936 nsresult GetDocument(nsIDOMDocument **aDocument);
937 nsresult GetCurrentURI(nsIURI **aCurrentURI);
938 nsresult GetReferringURI(nsIURI **aReferringURI);
939 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
940 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
944 object,
945 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)
947 interface nsIFile : nsISupports
949 nsresult Append(const nsAString *node);
950 nsresult AppendNative(const nsAString *node);
951 nsresult Normalize();
952 nsresult Create(PRUint32 type, PRUint32 permission);
953 nsresult GetLeafName(nsAString *aLeafName);
954 nsresult SetLeafName(const nsAString *aLeafName);
955 nsresult GetNativeLeafName(nsAString *aLeafName);
956 nsresult SetNativeLeafName(const nsAString *aLeafName);
957 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
958 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
959 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
960 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
961 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
962 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
963 nsresult Remove(PRBool recursive);
964 nsresult GetPermissions(PRUint32 *aPermissions);
965 nsresult SetPermissions(PRUint32 pPermissions);
966 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
967 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
968 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
969 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
970 nsresult GetFileSize(PRInt64 *aFileSize);
971 nsresult SetFileSize(PRInt64 aFileSize);
972 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
973 nsresult GetTarget(nsAString *aTarget);
974 nsresult GetNativeTarget(nsACString *aNativeTarget);
975 nsresult GetPath(nsAString *aPath);
976 nsresult GetNativePath(nsACString *aNativePath);
977 nsresult Exists(PRBool *_retval);
978 nsresult IsWritable(PRBool *_retval);
979 nsresult IsReadable(PRBool *_retval);
980 nsresult IsExecutable(PRBool *_retval);
981 nsresult IsHidden(PRBool *_retval);
982 nsresult IsDirectory(PRBool *_retval);
983 nsresult IsFile(PRBool *_retval);
984 nsresult IsSymlink(PRBool *_retval);
985 nsresult IsSpecial(PRBool *_retval);
986 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
987 nsresult Clone(nsIFile **_retval);
988 nsresult Equals(nsIFile *inFile, PRBool *_retval);
989 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
990 nsresult GetParent(nsIFile **aParent);
991 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
995 object,
996 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e)
998 interface nsIIOService : nsISupports
1000 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1001 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1002 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1003 nsIURI **_retval);
1004 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1005 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1006 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1007 nsIChannel **_retval);
1008 nsresult GetOffline(PRBool *aOffline);
1009 nsresult SetOffline(PRBool aOffline);
1010 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1011 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1015 object,
1016 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a)
1018 interface nsIWebBrowserFocus : nsISupports
1020 nsresult Activate();
1021 nsresult Deactivate();
1022 nsresult SetFocusAtFirstElement();
1023 nsresult SetFocusAtLastElement();
1024 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1025 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1026 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1027 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1031 object,
1032 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c)
1034 interface nsIWebBrowserChrome : nsISupports
1036 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1037 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1038 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1039 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1040 nsresult SetChromeFlags(PRUint32 aChromeFlags);
1041 nsresult DestroyBrowserWindow();
1042 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1043 nsresult ShowAsModal();
1044 nsresult IsWindowModal(PRBool *_retval);
1045 nsresult ExitModalEventLoop(nsresult aStatus);
1049 object,
1050 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4)
1052 interface nsIDOMEventListener : nsISupports
1054 nsresult HandleEvent(nsIDOMEvent *event);
1058 object,
1059 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4)
1061 interface nsIDOMEventTarget : nsISupports
1063 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1064 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1065 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1069 object,
1070 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32)
1072 interface nsIDOMEvent : nsISupports
1074 nsresult GetType(nsAString *aType);
1075 nsresult GetTarget(nsIDOMEventTarget **aTarget);
1076 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1077 nsresult GetEventPhase(PRUint16 *aEventPhase);
1078 nsresult GetBubbles(PRBool *aBubbles);
1079 nsresult GetCancelable(PRBool *aCancelable);
1080 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1081 nsresult StopPropagation();
1082 nsresult PreventDefault();
1083 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1086 cpp_quote("#define CONTEXT_NONE 0x00");
1087 cpp_quote("#define CONTEXT_LINK 0x01");
1088 cpp_quote("#define CONTEXT_IMAGE 0x02");
1089 cpp_quote("#define CONTEXT_DOCUMENT 0x04");
1090 cpp_quote("#define CONTEXT_TEXT 0x08");
1091 cpp_quote("#define CONTEXT_INPUT 0x10");
1092 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20");
1095 object,
1096 uuid(3478b6b0-3875-11d4-94ef-0020183bf181)
1098 interface nsIContextMenuListener : nsISupports
1100 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1104 object,
1105 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32)
1107 interface nsIDOMUIEvent : nsIDOMEvent
1109 nsresult GetView(nsIDOMAbstractView **aView);
1110 nsresult GetDetail(PRInt32 *aDetail);
1111 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1112 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
1116 object,
1117 uuid(ff751edc-8b02-aae7-0010-8301838a3123)
1119 interface nsIDOMMouseEvent : nsIDOMUIEvent
1121 nsresult GetScreenX(PRInt32 *aScreenX);
1122 nsresult GetScreenY(PRInt32 *aScreenY);
1123 nsresult GetClientX(PRInt32 *aClientX);
1124 nsresult GetClientY(PRInt32 *aClientY);
1125 nsresult GetCtrlKey(PRBool *aCtrlKey);
1126 nsresult GetShiftKey(PRBool *aShiftKey);
1127 nsresult GetAltKey(PRBool *aAltKey);
1128 nsresult GetMetaKey(PRBool *aMetaKey);
1129 nsresult GetButton(PRUint16 *aButton);
1130 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
1131 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1132 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
1133 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
1134 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
1135 nsIDOMEventTarget *relatedTargetArg);
1139 object,
1140 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123)
1142 interface nsIDOMKeyEvent : nsIDOMUIEvent
1144 nsresult GetCharCode(PRUint32 *aCharCode);
1145 nsresult GetKeyCode(PRUint32 *aKeyCode);
1146 nsresult GetAltKey(PRBool *aAltKey);
1147 nsresult GetCtrlKey(PRBool *aCtrlKey);
1148 nsresult GetShiftKey(PRBool *aShiftKey);
1149 nsresult GetMetaKey(PRBool *aMetaKey);
1150 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
1151 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
1152 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
1153 PRUint32 charCodeArg);
1157 object,
1158 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743)
1160 interface nsIEmbeddingSiteWindow : nsISupports
1162 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
1163 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1164 nsresult SetFocus();
1165 nsresult GetVisibility(PRBool *aVisibility);
1166 nsresult SetVisibility(PRBool aVisibility);
1167 nsresult GetTitle(PRUnichar **aTitle);
1168 nsresult SetTitle(const PRUnichar *aTitle);
1169 nsresult GetSiteWindow(void **aSiteWindow);
1173 object,
1174 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392)
1176 interface nsIComponentRegistrar : nsISupports
1178 nsresult AutoRegister(nsIFile *aSpec);
1179 nsresult AutoUnregister(nsIFile *aSpec);
1180 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1181 const char *aContractID, nsIFactory *aFactory);
1182 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1183 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1184 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1185 const char *aType);
1186 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1187 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1188 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1189 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1190 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1191 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1192 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1196 object,
1197 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5)
1199 interface nsIPromptService : nsISupports
1201 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1202 const PRUnichar *aText);
1203 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1204 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
1205 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1206 const PRUnichar *aText, PRBool *_retval);
1207 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1208 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
1209 PRBool *_retval);
1210 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1211 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
1212 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
1213 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
1214 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1215 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
1216 PRBool *aCheckState, PRBool *_retval);
1217 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1218 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
1219 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
1220 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1221 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
1222 PRBool *aCheckState, PRBool *_retval);
1223 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1224 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
1225 PRInt32 *aOutSelection, PRBool *_retval);
1229 object,
1230 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee)
1232 interface nsITooltipTextProvider : nsISupports
1234 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
1238 object,
1239 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9)
1241 interface nsIProfile : nsISupports
1243 nsresult GetProfileCount(PRInt32 *aProfileCount);
1244 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
1245 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
1246 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
1247 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
1248 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
1249 nsresult CreateNewProfile(const PRUnichar *profileName,
1250 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
1251 PRBool useExistingDir);
1252 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
1253 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
1254 nsresult CloneProfile(const PRUnichar *profileName);
1258 object,
1259 uuid(30465632-a777-44cc-90f9-8145475ef999)
1261 interface nsIWindowCreator : nsISupports
1263 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1264 nsIWebBrowserChrome **_retval);
1268 object,
1269 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc)
1271 interface nsIWindowCreator2 : nsIWindowCreator
1273 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1274 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
1275 nsIWebBrowserChrome **_retval);
1279 object,
1280 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b)
1282 interface nsIWindowWatcher : nsISupports
1284 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
1285 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
1286 nsresult RegisterNotification(nsIObserver *aObserver);
1287 nsresult UnregisterNotification(nsIObserver *aObserver);
1288 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
1289 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
1290 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
1291 nsresult SetWindowCreator(nsIWindowCreator *creator);
1292 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
1293 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
1294 nsIDOMWindow **_retval);
1295 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
1296 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
1300 object,
1301 uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b)
1303 interface nsIEditingSession : nsISupports
1305 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
1306 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
1307 PRBool doAfterUriLoad);
1308 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
1309 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
1310 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
1311 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
1312 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
1316 object,
1317 uuid(83f892cf-7ed3-490e-967a-62640f3158e1)
1319 interface nsICommandParams : nsISupports
1321 nsresult GetValueType(const char *name, PRInt16 *_retval);
1322 nsresult GetBooleanValue(const char *name, PRBool *_retval);
1323 nsresult GetLongValue(const char *name, PRInt32 *_retval);
1324 nsresult GetDoubleValue(const char *name, double *_retval);
1325 nsresult GetStringValue(const char *name, nsAString *_retval);
1326 nsresult GetCStringValue(const char *name, char **_retval);
1327 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
1328 nsresult SetBooleanValue(const char *name, PRBool value);
1329 nsresult SetLongValue(const char *name, PRInt32 value);
1330 nsresult SetDoubleValue(const char *name, double value);
1331 nsresult SetStringValue(const char *name, const nsAString *value);
1332 nsresult SetCStringValue(const char *name, const char *value);
1333 nsresult SetISupportsValue(const char *name, nsISupports *value);
1334 nsresult RemoveValue(const char *name);
1335 nsresult HasMoreElements(PRBool *_retval);
1336 nsresult First();
1337 nsresult GetNext(char **_retval);
1341 object,
1342 uuid(080d2001-f91e-11d4-a73c-f9242928207c)
1344 interface nsICommandManager : nsISupports
1346 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
1347 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
1348 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1349 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1350 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
1351 nsICommandParams *aCommandParams);
1352 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
1353 nsIDOMWindow *aTargetWindow);
1357 object,
1358 uuid(d650439a-ca29-410d-a906-b0557fb62fcd)
1360 interface nsIContentSerializer : nsISupports
1362 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying);
1363 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
1364 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
1365 PRInt32 aEndOffset, nsAString *aStr);
1366 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
1367 PRInt32 aEndOffset, nsAString *aStr);
1368 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
1369 nsAString *aStr);
1370 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
1371 nsresult AppendElementStart(nsIDOMElement *aElement, PRBool aHasChildren, nsAString *aStr);
1372 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
1373 nsresult Flush(nsAString *aStr);
1374 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
1378 * NOTE:
1379 * This is a private Wine interface that is implemented by our implementation
1380 * of nsIURI to store its owner.
1383 object,
1384 uuid(5088272e-900b-11da-c687-000fea57f21a)
1386 interface nsIWineURI : nsIURI
1388 typedef struct NSContainer NSContainer;
1390 nsresult GetNSContainer(NSContainer **aNSContainer);
1391 nsresult SetNSContainer(NSContainer *aNSContainer);
1392 nsresult GetMoniker(IMoniker **aMoniker);
1393 nsresult SetMoniker(IMoniker *aMoniker);