comctl32: toolbar: Simplify the TOOLBAR_AddButton.
[wine/multimedia.git] / dlls / mshtml / nsiface.idl
blob601e54e05ac380c064b401519d62a6b6f263d269
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 LPCSTR nscstring;
38 typedef WCHAR PRUnichar;
39 typedef LPCWSTR nscwstring;
40 typedef ULONG PRUint32;
41 typedef LONG PRInt32;
42 typedef WORD PRUint16;
43 typedef INT16 PRInt16;
44 typedef BYTE PRUint8;
45 typedef BOOL PRBool;
46 typedef LARGE_INTEGER PRInt64;
47 typedef ULARGE_INTEGER PRUint64;
48 typedef PRUint64 DOMTimeStamp;
49 typedef PRUint32 nsLoadFlags;
51 typedef struct {
52 void *v;
53 void *d1;
54 PRUint32 d2;
55 void *d3;
56 } nsCStringContainer;
58 typedef struct {
59 void *v;
60 void *d1;
61 PRUint32 d2;
62 void *d3;
63 } nsStringContainer;
65 typedef nsCStringContainer nsACString;
66 typedef nsStringContainer nsAString;
68 interface nsIWebBrowserChrome;
69 interface nsILoadGroup;
70 interface nsIDOMNode;
71 interface nsIDOMDocument;
73 interface IMoniker;
76 object,
77 uuid(00000000-0000-0000-c000-000000000046)
79 interface nsISupports
81 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
82 nsrefcnt AddRef();
83 nsrefcnt Release();
86 /* Currently we don't need a full declaration of these interfaces */
87 typedef nsISupports nsISHistory;
88 typedef nsISupports nsISimpleEnumerator;
89 typedef nsISupports nsIWidget;
90 typedef nsISupports nsIProtocolHandler;
91 typedef nsISupports nsIDOMEventTarget;
92 typedef nsISupports nsIDOMAbstractView;
93 typedef nsISupports nsIHttpHeaderVisitor;
94 typedef nsISupports nsIDOMBarProp;
95 typedef nsISupports nsIDOMWindowCollection;
96 typedef nsISupports nsIPrompt;
97 typedef nsISupports nsIAuthPrompt;
98 typedef nsISupports nsIDOMNamedNodeMap;
99 typedef nsISupports nsIDOMAttr;
100 typedef nsISupports nsIDOMDocumentType;
101 typedef nsISupports nsIDOMDOMImplementation;
102 typedef nsISupports nsIDOMDocumentFragment;
103 typedef nsISupports nsIDOMText;
104 typedef nsISupports nsIDOMComment;
105 typedef nsISupports nsIDOMCDATASection;
106 typedef nsISupports nsIDOMProcessingInstruction;
107 typedef nsISupports nsIDOMEntityReference;
108 typedef nsISupports nsIDOMHTMLFormElement;
109 typedef nsISupports nsIDOMHTMLOptionsCollection;
110 typedef nsISupports nsIDOMHTMLCollection;
111 typedef nsISupports nsIDOMRange;
112 typedef nsISupports nsIEditor;
115 object,
116 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958)
118 interface nsIServiceManager : nsISupports
120 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
121 nsresult GetServiceByContactID(nscstring aContactID, nsIIDRef aIID, void **result);
122 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
123 nsresult IsServiceInstantiatedByContractID(nscstring aContractID, nsIIDRef aIID, BOOL *_retval);
127 object,
128 uuid(00000001-0000-0000-c000-000000000046)
130 interface nsIFactory : nsISupports
132 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
133 nsresult LockFactory(PRBool lock);
137 object,
138 uuid(db242e01-e4d9-11d2-9dde-000064657374)
140 interface nsIObserver : nsISupports
142 nsresult Observe(nsISupports *aSubject, nscstring aTopic, nscwstring aData);
146 object,
147 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae)
149 interface nsIComponentManager : nsISupports
151 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
152 nsresult GetClassObjectByContractID(nscstring aContractID, nsIIDRef aIID, nsQIResult result);
153 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
154 nsQIResult result);
155 nsresult CreateInstanceByContractID(nscstring aContractID, nsISupports *aDelegate,
156 nsIIDRef aIID, nsQIResult result);
160 object,
161 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3)
163 interface nsIMemory : nsISupports
165 void *Alloc(/*size_t*/ int size);
166 void *Realloc(void *_ptr, /*size_t*/ int newSize);
167 void Free(void *_ptr);
168 nsresult HeapMinimize(PRBool immediate);
169 nsresult IsLowMemory(PRBool *_retval);
173 object,
174 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf)
176 interface nsIWeakReference : nsISupports
178 nsresult QueryReferent(const nsIID *riid, void **result);
182 object,
183 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf)
185 interface nsISupportsWeakReference : nsISupports
187 nsresult GetWeakReference(nsIWeakReference **_retval);
191 object,
192 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c)
194 interface nsIInterfaceRequestor : nsISupports
196 nsresult GetInterface(const nsIID *riid, void **result);
200 object,
201 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a)
203 interface nsIInputStream : nsISupports
205 nsresult Close();
206 nsresult Available(PRUint32 *_retval);
207 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
208 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
209 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
210 PRUint32 aCount, PRUint32 *aWriteCount),
211 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
212 nsresult IsNonBlocking(PRBool *_retval);
216 object,
217 uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53)
219 interface nsIStringInputStream : nsIInputStream
221 nsresult SetData(const char *data, PRInt32 dataLen);
222 nsresult AdoptData(char *data, PRInt32 dataLen);
223 nsresult ShareData(const char *data, PRInt32 dataLen);
227 object,
228 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40)
230 interface nsIURI : nsISupports
232 nsresult GetSpec(nsACString *aSpec);
233 nsresult SetSpec(const nsACString *aSpec);
234 nsresult GetPrePath(nsACString *aPrePath);
235 nsresult GetScheme(nsACString *aScheme);
236 nsresult SetScheme(const nsACString *aScheme);
237 nsresult GetUserPass(nsACString *aUserPass);
238 nsresult SetUserPass(const nsACString *aUserPass);
239 nsresult GetUsername(nsACString *aUsername);
240 nsresult SetUsername(const nsACString *aUsername);
241 nsresult GetPassword(nsACString *aPassword);
242 nsresult SetPassword(const nsACString *aPassword);
243 nsresult GetHostPort(nsACString *aHostPort);
244 nsresult SetHostPort(const nsACString *aHostPort);
245 nsresult GetHost(nsACString *aHost);
246 nsresult SetHost(const nsACString *aHost);
247 nsresult GetPort(PRInt32 *aPort);
248 nsresult SetPort(PRInt32 aPort);
249 nsresult GetPath(nsACString *aPath);
250 nsresult SetPath(const nsACString *aPath);
251 nsresult Equals(nsIURI *other, PRBool *_retval);
252 nsresult SchemeIs(const char *scheme, PRBool *_retval);
253 nsresult Clone(nsIURI **_retval);
254 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
255 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
256 nsresult GetAsciiHost(nsACString *aAsciiHost);
257 nsresult GetOriginCharset(nsACString *aOriginCharset);
261 object,
262 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe)
264 interface nsIRequest : nsISupports
266 nsresult GetName(nsACString *aName);
267 nsresult IsPending(PRBool *_retval);
268 nsresult GetStatus(nsresult *aStatus);
269 nsresult Cancel(nsresult aStatus);
270 nsresult Suspend();
271 nsresult Resume();
272 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
273 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
274 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
275 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
279 object,
280 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40)
282 interface nsIRequestObserver : nsISupports
284 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
285 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
289 object,
290 uuid(1a637020-1482-11d3-9333-00104ba0fd40)
292 interface nsIStreamListener : nsIRequestObserver
294 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
295 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
299 object,
300 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc)
302 interface nsILoadGroup : nsIRequest
304 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
305 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
306 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
307 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
308 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
309 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
310 nsresult GetRequests(nsISimpleEnumerator **aRequests);
311 nsresult GetActiveCount(PRUint32 *aActiveCount);
312 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
313 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
317 object,
318 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018)
320 interface nsIChannel : nsIRequest
322 nsresult GetOriginalURI(nsIURI **aOriginalURI);
323 nsresult SetOriginalURI(nsIURI *aOriginalURI);
324 nsresult GetURI(nsIURI **aURI);
325 nsresult GetOwner(nsISupports **aOwner);
326 nsresult SetOwner(nsISupports *aOwner);
327 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
328 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
329 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
330 nsresult GetContentType(nsACString *aContentType);
331 nsresult SetContentType(const nsACString *aContentType);
332 nsresult GetContentCharset(nsACString *aContentCharset);
333 nsresult SetContentCharset(const nsACString *aContentCharset);
334 nsresult GetContentLength(PRInt32 *aContentLength);
335 nsresult SetContentLength(PRInt32 aContentLength);
336 nsresult Open(nsIInputStream **_retval);
337 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
341 object,
342 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260)
344 interface nsIHttpChannel : nsIChannel
346 nsresult GetRequestMethod(nsACString *aRequestMethod);
347 nsresult SetRequestMethod(const nsACString *aRequestMethod);
348 nsresult GetReferrer(nsIURI **aReferrer);
349 nsresult SetReferrer(nsIURI *aReferrer);
350 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
351 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
352 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
353 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
354 nsresult SetAllowPipelining(PRBool aAllowPipelining);
355 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
356 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
357 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
358 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
359 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
360 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
361 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
362 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
363 nsresult IsNoStoreResponse(PRBool *_retval);
364 nsresult IsNoCacheResponse(PRBool *_retval);
368 object,
369 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75)
371 interface nsIUploadChannel : nsISupports
373 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
374 PRInt32 aContentLength);
375 nsresult GetUploadStream(nsIInputStream **aUploadStream);
379 object,
380 uuid(a6cf907d-15b3-11d2-932e-00805f8add32)
382 interface nsIDOMNodeList : nsISupports
384 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
385 nsresult GetLength(PRUint32 *aLength);
389 object,
390 uuid(a6cf907c-15b3-11d2-932e-00805f8add32)
392 interface nsIDOMNode : nsISupports
394 nsresult GetNodeName(nsAString *aNodeName);
395 nsresult GetNodeValue(nsAString *aNodeValue);
396 nsresult SetNodeValue(const nsAString *aNodeValue);
397 nsresult GetNodeType(PRUint16 *aNodeType);
398 nsresult GetParentNode(nsIDOMNode **aParentNode);
399 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
400 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
401 nsresult GetLastChild(nsIDOMNode **aLastChild);
402 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
403 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
404 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
405 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
406 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
407 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
408 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
409 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
410 nsresult HasChildNodes(PRBool *_retval);
411 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
412 nsresult Normalize();
413 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
414 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
415 nsresult GetPrefix(nsAString *aPrefix);
416 nsresult SetPrefix(const nsAString *aPrefix);
417 nsresult GetLocalName(nsAString *aLocalName);
418 nsresult HasAttributes(PRBool *_retval);
422 object,
423 uuid(a6cf9078-15b3-11d2-932e-00805f8add32)
425 interface nsIDOMElement : nsIDOMNode
427 nsresult GetTagName(nsAString *aTagName);
428 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
429 nsresult SetAttribute(const nsAString *name, const nsAString *value);
430 nsresult RemoveAttribute(const nsAString *name);
431 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
432 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
433 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
434 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
435 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
436 nsAString *_retval);
437 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
438 const nsAString *value);
439 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
440 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
441 nsIDOMAttr **_retval);
442 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
443 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
444 nsIDOMNodeList **_retval);
445 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
446 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
447 PRBool *_retval);
450 cpp_quote("#undef GetClassName");
453 object,
454 uuid(a6cf9085-15b3-11d2-932e-00805f8add32)
456 interface nsIDOMHTMLElement : nsIDOMElement
458 nsresult GetId(nsAString *aId);
459 nsresult SetId(const nsAString *aId);
460 nsresult GetTitle(nsAString *aTitle);
461 nsresult SetTitle(const nsAString *aTitle);
462 nsresult GetLang(nsAString *aLang);
463 nsresult SetLang(const nsAString *aLang);
464 nsresult GetDir(nsAString *aDir);
465 nsresult SetDir(const nsAString *aDir);
466 nsresult GetClassName(nsAString *aClassName);
467 nsresult SetClassName(const nsAString *aClassName);
471 object,
472 uuid(da83b2ec-8264-4410-8496-ada3acd2ae42)
474 interface nsIDOMNSHTMLElement : nsISupports
476 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
477 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
478 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
479 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
480 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
481 nsresult GetInnerHTML(nsAString *aInnerHTML);
482 nsresult SetInnerHTML(const nsAString *aInnerHTML);
483 nsresult GetScrollTop(PRInt32 *aScrollTop);
484 nsresult SetScrollTop(PRInt32 aScrollTop);
485 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
486 nsresult SetScrollLeft(PRInt32 aScrollLeft);
487 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
488 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
489 nsresult GetClientHeight(PRInt32 *aClientHeight);
490 nsresult GetClientWidth(PRInt32 *aClientWidth);
491 nsresult ScrollIntoView(PRBool top);
495 object,
496 uuid(a6cf9075-15b3-11d2-932e-00805f8add32)
498 interface nsIDOMDocument : nsIDOMNode
500 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
501 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
502 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
503 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
504 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
505 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
506 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
507 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
508 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
509 nsIDOMProcessingInstruction **_retval);
510 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
511 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
512 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
513 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
514 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
515 nsIDOMElement **_retval);
516 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
517 nsIDOMAttr **_retval);
518 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
519 nsIDOMNodeList **_retval);
520 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
524 object,
525 uuid(a6cf9084-15b3-11d2-932e-00805f8add32)
527 interface nsIDOMHTMLDocument : nsIDOMDocument
529 nsresult GetTitle(nsAString *aTitle);
530 nsresult SetTitle(const nsAString *aTitle);
531 nsresult GetReferrer(nsAString *aReferrer);
532 nsresult GetDomain(nsAString *aDomain);
533 nsresult GetURL(nsAString *aURL);
534 nsresult GetBody(nsIDOMHTMLElement **aBody);
535 nsresult SetBody(nsIDOMHTMLElement *aBody);
536 nsresult GetImages(nsIDOMHTMLCollection **aImages);
537 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
538 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
539 nsresult GetForms(nsIDOMHTMLCollection **aForms);
540 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
541 nsresult GetCookie(nsAString *aCookie);
542 nsresult SetCookie(const nsAString *aCookie);
543 nsresult Open();
544 nsresult Close();
545 nsresult Write(const nsAString *text);
546 nsresult Writeln(const nsAString *text);
547 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
551 object,
552 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1)
554 interface nsISelection : nsISupports
556 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
557 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
558 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
559 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
560 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
561 nsresult GetRangeCount(PRInt32 *aRangeCount);
562 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
563 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
564 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
565 nsresult CollapseToStart();
566 nsresult CollapseToEnd();
567 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
568 nsresult SelectAllChildren(nsIDOMNode *parentNode);
569 nsresult AddRange(nsIDOMRange *range);
570 nsresult RemoveRange(nsIDOMRange *range);
571 nsresult RemoveAllRanges();
572 nsresult DeleteFromDocument();
573 nsresult SelectionLanguageChange(PRBool langRTL);
574 nsresult ToString(PRUnichar **_retval);
578 object,
579 uuid(a6cf906b-15b3-11d2-932e-00805f8add32)
581 interface nsIDOMWindow : nsISupports
583 nsresult GetDocument(nsIDOMDocument **aDocument);
584 nsresult GetParent(nsIDOMWindow **aParent);
585 nsresult GetTop(nsIDOMWindow **aTop);
586 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
587 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
588 nsresult GetName(nsAString *aName);
589 nsresult SetName(const nsAString *aName);
590 nsresult GetTextZoom(float *aTextZoom);
591 nsresult SetTextZoom(float aTextZoom);
592 nsresult GetScrollX(PRInt32 *aScrollX);
593 nsresult GetScrollY(PRInt32 *aScrollY);
594 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
595 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
596 nsresult GetSelection(nsISelection **_retval);
597 nsresult ScrollByLines(PRInt32 numLines);
598 nsresult ScrollByPages(PRInt32 numPages);
599 nsresult SizeToContent();
603 object,
604 uuid(a6cf908e-15b3-11d2-932e-00805f8add32)
606 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
608 nsresult GetALink(nsAString *aALink);
609 nsresult SetALink(const nsAString *aALink);
610 nsresult GetBackground(nsAString *aBackground);
611 nsresult SetBackground(const nsAString *aBackground);
612 nsresult GetBgColor(nsAString *aBgColor);
613 nsresult SetBgColor(const nsAString *aBgColor);
614 nsresult GetLink(nsAString *aLink);
615 nsresult SetLink(const nsAString *aLink);
616 nsresult GetText(nsAString *aText);
617 nsresult SetText(const nsAString *aText);
618 nsresult GetVLink(nsAString *aVLink);
619 nsresult SetVLink(const nsAString *aVLink);
623 object,
624 uuid(a6cf9093-15b3-11d2-932e-00805f8add32)
626 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
628 nsresult GetDefaultValue(nsAString *aDefaultValue);
629 nsresult SetDefaultValue(const nsAString *aDefaultValue);
630 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
631 nsresult SetDefaultChecked(PRBool aDefaultChecked);
632 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
633 nsresult GetAccept(nsAString *aAccept);
634 nsresult SetAccept(const nsAString *aAccept);
635 nsresult GetAccessKey(nsAString *aAccessKey);
636 nsresult SetAccessKey(const nsAString *aAccessKey);
637 nsresult GetAlign(nsAString *aAlign);
638 nsresult SetAlign(const nsAString *aAlign);
639 nsresult GetAlt(nsAString *aAlt);
640 nsresult SetAlt(const nsAString *aAlt);
641 nsresult GetChecked(PRBool *aChecked);
642 nsresult SetChecked(PRBool aChecked);
643 nsresult GetDisabled(PRBool *aDisabled);
644 nsresult SetDisabled(PRBool aDisabled);
645 nsresult GetMaxLength(PRInt32 *aMaxLength);
646 nsresult SetMaxLength(PRInt32 aMaxLength);
647 nsresult GetName(nsAString *aName);
648 nsresult SetName(const nsAString *aName);
649 nsresult GetReadOnly(PRBool *aReadOnly);
650 nsresult SetReadOnly(PRBool aReadOnly);
651 nsresult GetSize(PRUint32 *aSize);
652 nsresult SetSize(PRUint32 aSize);
653 nsresult GetSrc(nsAString *aSrc);
654 nsresult SetSrc(const nsAString *aSrc);
655 nsresult GetTabIndex(PRInt32 *aTabIndex);
656 nsresult SetTabIndex(PRInt32 aTabIndex);
657 nsresult GetType(nsAString *aType);
658 nsresult SetType(const nsAString *aType);
659 nsresult GetUseMap(nsAString *aUseMap);
660 nsresult SetUseMap(const nsAString *aUseMap);
661 nsresult GetValue(nsAString *aValue);
662 nsresult SetValue(const nsAString *aValue);
663 nsresult Blur();
664 nsresult Focus();
665 nsresult Select();
666 nsresult Click();
670 object,
671 uuid(a6cf9090-15b3-11d2-932e-00805f8add32)
673 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
675 nsresult GetType(nsAString *aType);
676 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
677 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
678 nsresult GetValue(nsAString *aValue);
679 nsresult SetValue(const nsAString *aValue);
680 nsresult GetLength(PRUint32 *aLength);
681 nsresult SetLength(PRUint32 aLength);
682 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
683 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
684 nsresult GetDisabled(PRBool *aDisabled);
685 nsresult SetDisabled(PRBool aDisabled);
686 nsresult GetMultiple(PRBool *aMultiple);
687 nsresult SetMultiple(PRBool aMultiple);
688 nsresult GetName(nsAString *aName);
689 nsresult SetName(const nsAString *aName);
690 nsresult GetSize(PRInt32 *aSize);
691 nsresult SetSize(PRInt32 aSize);
692 nsresult GetTabIndex(PRInt32 *aTabIndex);
693 nsresult SetTabIndex(PRInt32 aTabIndex);
694 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
695 nsresult Remove(PRInt32 index);
696 nsresult Blur();
697 nsresult Focus();
701 object,
702 uuid(a6cf9094-15b3-11d2-932e-00805f8add32)
704 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
706 nsresult GetDefaultValue(nsAString *aDefaultValue);
707 nsresult SetDefaultValue(const nsAString *aDefaultValue);
708 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
709 nsresult GetAccessKey(nsAString *aAccessKey);
710 nsresult SetAccessKey(const nsAString *aAccessKey);
711 nsresult GetCols(PRInt32 *aCols);
712 nsresult SetCols(PRInt32 aCols);
713 nsresult GetDisabled(PRBool *aDisabled);
714 nsresult SetDisabled(PRBool aDisabled);
715 nsresult GetName(nsAString *aName);
716 nsresult SetName(const nsAString *aName);
717 nsresult GetReadOnly(PRBool *aReadOnly);
718 nsresult SetReadOnly(PRBool aReadOnly);
719 nsresult GetRows(PRInt32 *aRows);
720 nsresult SetRows(PRInt32 aRows);
721 nsresult GetTabIndex(PRInt32 *aTabIndex);
722 nsresult SetTabIndex(PRInt32 aTabIndex);
723 nsresult GetType(nsAString *aType);
724 nsresult GetValue(nsAString *aValue);
725 nsresult SetValue(const nsAString *aValue);
726 nsresult Blur();
727 nsresult Focus();
728 nsresult Select();
732 object,
733 uuid(94928ab3-8b63-11d3-989d-001083010e9b)
735 interface nsIURIContentListener : nsISupports
737 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
738 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
739 nsIStreamListener **aContentHandler, PRBool *_retval);
740 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
741 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
742 char **aDesiredContentType, PRBool *_retval);
743 nsresult GetLoadCookie(nsISupports **aLoadCookie);
744 nsresult SetLoadCookie(nsISupports *aLoadCookie);
745 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
746 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
750 object,
751 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916)
753 interface nsITooltipListener : nsISupports
755 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
756 nsresult OnHideTooltip();
760 object,
761 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c)
763 interface nsIWebBrowser : nsISupports
765 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
766 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
767 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
768 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
769 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
770 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
771 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
774 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7");
777 object,
778 uuid(f15398a0-8018-11d3-af70-00a024ffc08c)
780 interface nsIWebBrowserSetup : nsISupports
782 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
785 typedef void* nativeWindow;
788 object,
789 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)
791 interface nsIBaseWindow : nsISupports
793 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
794 PRInt32 y, PRInt32 cx, PRInt32 cy);
795 nsresult Create();
796 nsresult Destroy();
797 nsresult SetPosition(PRInt32 x, PRInt32 y);
798 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
799 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
800 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
801 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
802 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
803 nsresult Repaint(PRBool force);
804 nsresult GetParentWidget(nsIWidget **aParentWidget);
805 nsresult SetParentWidget(nsIWidget *aParentWidget);
806 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
807 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
808 nsresult GetVisibility(PRBool *aVisibility);
809 nsresult SetVisibility(PRBool aVisibility);
810 nsresult GetEnabled(PRBool *aEnabled);
811 nsresult SetEnabled(PRBool aEnabled);
812 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
813 nsresult SetBlurSuppression(PRBool aBlurSuppression);
814 nsresult GetMainWidget(nsIWidget **aMainWidget);
815 nsresult SetFocus();
816 nsresult GetTitle(PRUnichar **aTitle);
817 nsresult SetTitle(const PRUnichar *aTitle);
820 cpp_quote("#define LOAD_FLAGS_NONE 0");
823 object,
824 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c)
826 interface nsIWebNavigation : nsISupports
828 nsresult GetCanGoBack(PRBool *aCanGoBack);
829 nsresult GetCanGoForward(PRBool *aCanGoForward);
830 nsresult GoBack();
831 nsresult GoForward();
832 nsresult GotoIndex(PRInt32 index);
833 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
834 nsIInputStream *aPostData, nsIInputStream *aHeaders);
835 nsresult Reload(PRUint32 aReloadFlags);
836 nsresult Stop(PRUint32 aStopFlags);
837 nsresult GetDocument(nsIDOMDocument **aDocument);
838 nsresult GetCurrentURI(nsIURI **aCurrentURI);
839 nsresult GetReferringURI(nsIURI **aReferringURI);
840 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
841 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
845 object,
846 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)
848 interface nsIFile : nsISupports
850 nsresult Append(const nsAString *node);
851 nsresult AppendNative(const nsAString *node);
852 nsresult Normalize();
853 nsresult Create(PRUint32 type, PRUint32 permission);
854 nsresult GetLeafName(nsAString *aLeafName);
855 nsresult SetLeafName(const nsAString *aLeafName);
856 nsresult GetNativeLeafName(nsAString *aLeafName);
857 nsresult SetNativeLeafName(const nsAString *aLeafName);
858 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
859 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
860 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
861 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
862 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
863 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
864 nsresult Remove(PRBool recursive);
865 nsresult GetPermissions(PRUint32 *aPermissions);
866 nsresult SetPermissions(PRUint32 pPermissions);
867 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
868 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
869 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
870 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
871 nsresult GetFileSize(PRInt64 *aFileSize);
872 nsresult SetFileSize(PRInt64 aFileSize);
873 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
874 nsresult GetTarget(nsAString *aTarget);
875 nsresult GetNativeTarget(nsACString *aNativeTarget);
876 nsresult GetPath(nsAString *aPath);
877 nsresult GetNativePath(nsACString *aNativePath);
878 nsresult Exists(PRBool *_retval);
879 nsresult IsWritable(PRBool *_retval);
880 nsresult IsReadable(PRBool *_retval);
881 nsresult IsExecutable(PRBool *_retval);
882 nsresult IsHidden(PRBool *_retval);
883 nsresult IsDirectory(PRBool *_retval);
884 nsresult IsFile(PRBool *_retval);
885 nsresult IsSymlink(PRBool *_retval);
886 nsresult IsSpecial(PRBool *_retval);
887 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
888 nsresult Clone(nsIFile **_retval);
889 nsresult Equals(nsIFile *inFile, PRBool *_retval);
890 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
891 nsresult GetParent(nsIFile **aParent);
892 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
896 object,
897 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e)
899 interface nsIIOService : nsISupports
901 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
902 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
903 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
904 nsIURI **_retval);
905 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
906 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
907 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
908 nsIChannel **_retval);
909 nsresult GetOffline(PRBool *aOffline);
910 nsresult SetOffline(PRBool aOffline);
911 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
912 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
916 object,
917 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a)
919 interface nsIWebBrowserFocus : nsISupports
921 nsresult Activate();
922 nsresult Deactivate();
923 nsresult SetFocusAtFirstElement();
924 nsresult SetFocusAtLastElement();
925 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
926 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
927 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
928 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
932 object,
933 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c)
935 interface nsIWebBrowserChrome : nsISupports
937 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
938 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
939 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
940 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
941 nsresult SetChromeFlags(PRUint32 aChromeFlags);
942 nsresult DestroyBrowserWindow();
943 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
944 nsresult ShowAsModal();
945 nsresult IsWindowModal(PRBool *_retval);
946 nsresult ExitModalEventLoop(nsresult aStatus);
950 object,
951 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32)
953 interface nsIDOMEvent : nsISupports
955 nsresult GetType(nsAString *aType);
956 nsresult GetTarget(nsIDOMEventTarget **aTarget);
957 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
958 nsresult GetEventPhase(PRUint16 *aEventPhase);
959 nsresult GetBubbles(PRBool *aBubbles);
960 nsresult GetCancelable(PRBool *aCancelable);
961 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
962 nsresult StopPropagation();
963 nsresult PreventDefault();
964 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
967 cpp_quote("#define CONTEXT_NONE 0x00");
968 cpp_quote("#define CONTEXT_LINK 0x01");
969 cpp_quote("#define CONTEXT_IMAGE 0x02");
970 cpp_quote("#define CONTEXT_DOCUMENT 0x04");
971 cpp_quote("#define CONTEXT_TEXT 0x08");
972 cpp_quote("#define CONTEXT_INPUT 0x10");
973 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20");
976 object,
977 uuid(3478b6b0-3875-11d4-94ef-0020183bf181)
979 interface nsIContextMenuListener : nsISupports
981 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
985 object,
986 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32)
988 interface nsIDOMUIEvent : nsIDOMEvent
990 nsresult GetView(nsIDOMAbstractView **aView);
991 nsresult GetDetail(PRInt32 *aDetail);
992 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
993 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
997 object,
998 uuid(ff751edc-8b02-aae7-0010-8301838a3123)
1000 interface nsIDOMMouseEvent : nsIDOMUIEvent
1002 nsresult GetScreenX(PRInt32 *aScreenX);
1003 nsresult GetScreenY(PRInt32 *aScreenY);
1004 nsresult GetClientX(PRInt32 *aClientX);
1005 nsresult GetClientY(PRInt32 *aClientY);
1006 nsresult GetCtrlKey(PRBool *aCtrlKey);
1007 nsresult GetShiftKey(PRBool *aShiftKey);
1008 nsresult GetAltKey(PRBool *aAltKey);
1009 nsresult GetMetaKey(PRBool *aMetaKey);
1010 nsresult GetButton(PRUint16 *aButton);
1011 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
1012 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1013 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
1014 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
1015 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
1016 nsIDOMEventTarget *relatedTargetArg);
1020 object,
1021 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743)
1023 interface nsIEmbeddingSiteWindow : nsISupports
1025 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
1026 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1027 nsresult SetFocus();
1028 nsresult GetVisibility(PRBool *aVisibility);
1029 nsresult SetVisibility(PRBool aVisibility);
1030 nsresult GetTitle(PRUnichar **aTitle);
1031 nsresult SetTitle(const PRUnichar *aTitle);
1032 nsresult GetSiteWindow(void **aSiteWindow);
1036 object,
1037 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392)
1039 interface nsIComponentRegistrar : nsISupports
1041 nsresult AutoRegister(nsIFile *aSpec);
1042 nsresult AutoUnregister(nsIFile *aSpec);
1043 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1044 const char *aContractID, nsIFactory *aFactory);
1045 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1046 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1047 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1048 const char *aType);
1049 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1050 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1051 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1052 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1053 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1054 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1055 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1059 object,
1060 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5)
1062 interface nsIPromptService : nsISupports
1064 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1065 const PRUnichar *aText);
1066 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1067 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
1068 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1069 const PRUnichar *aText, PRBool *_retval);
1070 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1071 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
1072 PRBool *_retval);
1073 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1074 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
1075 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
1076 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
1077 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1078 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
1079 PRBool *aCheckState, PRBool *_retval);
1080 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1081 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
1082 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
1083 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1084 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
1085 PRBool *aCheckState, PRBool *_retval);
1086 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1087 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
1088 PRInt32 *aOutSelection, PRBool *_retval);
1092 object,
1093 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee)
1095 interface nsITooltipTextProvider : nsISupports
1097 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
1101 object,
1102 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9)
1104 interface nsIProfile : nsISupports
1106 nsresult GetProfileCount(PRInt32 *aProfileCount);
1107 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
1108 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
1109 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
1110 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
1111 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
1112 nsresult CreateNewProfile(const PRUnichar *profileName,
1113 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
1114 PRBool useExistingDir);
1115 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
1116 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
1117 nsresult CloneProfile(const PRUnichar *profileName);
1121 object,
1122 uuid(30465632-a777-44cc-90f9-8145475ef999)
1124 interface nsIWindowCreator : nsISupports
1126 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1127 nsIWebBrowserChrome **_retval);
1131 object,
1132 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc)
1134 interface nsIWindowCreator2 : nsIWindowCreator
1136 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1137 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
1138 nsIWebBrowserChrome **_retval);
1142 object,
1143 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b)
1145 interface nsIWindowWatcher : nsISupports
1147 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
1148 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
1149 nsresult RegisterNotification(nsIObserver *aObserver);
1150 nsresult UnregisterNotification(nsIObserver *aObserver);
1151 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
1152 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
1153 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
1154 nsresult SetWindowCreator(nsIWindowCreator *creator);
1155 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
1156 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
1157 nsIDOMWindow **_retval);
1158 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
1159 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
1163 object,
1164 uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b)
1166 interface nsIEditingSession : nsISupports
1168 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
1169 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
1170 PRBool doAfterUriLoad);
1171 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
1172 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
1173 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
1174 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
1175 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
1179 object,
1180 uuid(83f892cf-7ed3-490e-967a-62640f3158e1)
1182 interface nsICommandParams : nsISupports
1184 nsresult GetValueType(const char *name, PRInt16 *_retval);
1185 nsresult GetBooleanValue(const char *name, PRBool *_retval);
1186 nsresult GetLongValue(const char *name, PRInt32 *_retval);
1187 nsresult GetDoubleValue(const char *name, double *_retval);
1188 nsresult GetStringValue(const char *name, nsAString *_retval);
1189 nsresult GetCStringValue(const char *name, char **_retval);
1190 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
1191 nsresult SetBooleanValue(const char *name, PRBool value);
1192 nsresult SetLongValue(const char *name, PRInt32 value);
1193 nsresult SetDoubleValue(const char *name, double value);
1194 nsresult SetStringValue(const char *name, const nsAString *value);
1195 nsresult SetCStringValue(const char *name, const char *value);
1196 nsresult SetISupportsValue(const char *name, nsISupports *value);
1197 nsresult RemoveValue(const char *name);
1198 nsresult HasMoreElements(PRBool *_retval);
1199 nsresult First();
1200 nsresult GetNext(char **_retval);
1204 object,
1205 uuid(080d2001-f91e-11d4-a73c-f9242928207c)
1207 interface nsICommandManager : nsISupports
1209 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
1210 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
1211 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1212 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1213 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
1214 nsICommandParams *aCommandParams);
1215 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
1216 nsIDOMWindow *aTargetWindow);
1220 * NOTE:
1221 * This is a private Wine interface that is implemented by our implementation
1222 * of nsIURI to store its owner.
1225 object,
1226 uuid(5088272e-900b-11da-c687-000fea57f21a)
1228 interface nsIWineURI : nsIURI
1230 typedef struct NSContainer NSContainer;
1232 nsresult GetNSContainer(NSContainer **aNSContainer);
1233 nsresult SetNSContainer(NSContainer *aNSContainer);
1234 nsresult GetMoniker(IMoniker **aMoniker);
1235 nsresult SetMoniker(IMoniker *aMoniker);