ntdll: move relocations from mapping into loader
[wine/kumbayo.git] / dlls / mshtml / nsiface.idl
blob26258ee24b163cf513d6fe6d3edf65306683bf9e
1 /*
2 * Copyright 2005-2007 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
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 cpp_quote("#define GECKO_VERSION \"0.1.0\"");
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION");
29 import "wtypes.idl";
31 typedef HRESULT nsresult;
32 typedef ULONG nsrefcnt;
34 typedef IID nsID;
35 typedef IID nsIID;
36 typedef nsIID nsCID;
37 typedef REFIID nsIIDRef;
38 typedef nsIIDRef nsCIDRef;
40 typedef void** nsQIResult;
41 typedef WCHAR PRUnichar;
42 typedef ULONG PRUint32;
43 typedef LONG PRInt32;
44 typedef WORD PRUint16;
45 typedef INT16 PRInt16;
46 typedef BYTE PRUint8;
47 typedef BOOL PRBool;
48 typedef LARGE_INTEGER PRInt64;
49 typedef ULARGE_INTEGER PRUint64;
50 typedef PRUint64 DOMTimeStamp;
51 typedef PRUint32 nsLoadFlags;
53 typedef struct {
54 void *v;
55 void *d1;
56 PRUint32 d2;
57 void *d3;
58 } nsCStringContainer;
60 typedef struct {
61 void *v;
62 void *d1;
63 PRUint32 d2;
64 void *d3;
65 } nsStringContainer;
67 typedef nsCStringContainer nsACString;
68 typedef nsStringContainer nsAString;
70 interface nsIWebBrowserChrome;
71 interface nsILoadGroup;
72 interface nsIDOMNode;
73 interface nsIDOMDocument;
74 interface nsIDOMEvent;
75 interface nsIEditor;
76 interface nsISelectionController;
77 interface nsITransactionManager;
78 interface nsITransaction;
79 interface nsIInlineSpellChecker;
80 interface nsIOutputStream;
81 interface nsIEditorObserver;
82 interface nsIEditActionListener;
83 interface nsIDocumentStateListener;
84 interface nsIDOMCSSStyleSheet;
86 interface IMoniker;
89 object,
90 uuid(00000000-0000-0000-c000-000000000046)
92 interface nsISupports
94 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
95 nsrefcnt AddRef();
96 nsrefcnt Release();
99 /* Currently we don't need a full declaration of these interfaces */
100 typedef nsISupports nsISHistory;
101 typedef nsISupports nsIWidget;
102 typedef nsISupports nsIDOMAbstractView;
103 typedef nsISupports nsIHttpHeaderVisitor;
104 typedef nsISupports nsIDOMBarProp;
105 typedef nsISupports nsIDOMWindowCollection;
106 typedef nsISupports nsIPrompt;
107 typedef nsISupports nsIAuthPrompt;
108 typedef nsISupports nsIDOMNamedNodeMap;
109 typedef nsISupports nsIDOMAttr;
110 typedef nsISupports nsIDOMDocumentType;
111 typedef nsISupports nsIDOMDOMImplementation;
112 typedef nsISupports nsIDOMCDATASection;
113 typedef nsISupports nsIDOMProcessingInstruction;
114 typedef nsISupports nsIDOMEntityReference;
115 typedef nsISupports nsIDOMHTMLFormElement;
116 typedef nsISupports nsIDOMHTMLOptionsCollection;
117 typedef nsISupports nsIDOMHTMLCollection;
118 typedef nsISupports nsIWebProgressListener;
119 typedef nsISupports nsIDOMCSSValue;
120 typedef nsISupports nsIPrintSession;
121 typedef nsISupports nsIControllerCommandTable;
122 typedef nsISupports nsIPrincipal;
123 typedef nsISupports nsIAtom;
124 typedef nsISupports nsISupportsArray;
125 typedef nsISupports nsIContentFilter;
126 typedef nsISupports nsIDOMMediaList;
129 object,
130 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958)
131 /* FROZEN */
133 interface nsIServiceManager : nsISupports
135 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
136 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
137 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
138 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
142 object,
143 uuid(00000001-0000-0000-c000-000000000046)
144 /* FROZEN */
146 interface nsIFactory : nsISupports
148 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
149 nsresult LockFactory(PRBool lock);
153 object,
154 uuid(db242e01-e4d9-11d2-9dde-000064657374)
155 /* FROZEN */
157 interface nsIObserver : nsISupports
159 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
163 object,
164 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae)
165 /* FROZEN */
167 interface nsIComponentManager : nsISupports
169 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
170 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
171 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
172 nsQIResult result);
173 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
174 nsIIDRef aIID, nsQIResult result);
178 object,
179 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3)
180 /* FROZEN */
182 interface nsIMemory : nsISupports
184 void *Alloc(/*size_t*/ int size);
185 void *Realloc(void *_ptr, /*size_t*/ int newSize);
186 void Free(void *_ptr);
187 nsresult HeapMinimize(PRBool immediate);
188 nsresult IsLowMemory(PRBool *_retval);
192 object,
193 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf)
194 /* FROZEN */
196 interface nsIWeakReference : nsISupports
198 nsresult QueryReferent(const nsIID *riid, void **result);
202 object,
203 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf)
204 /* FROZEN */
206 interface nsISupportsWeakReference : nsISupports
208 nsresult GetWeakReference(nsIWeakReference **_retval);
212 object,
213 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c)
214 /* FROZEN */
216 interface nsIInterfaceRequestor : nsISupports
218 nsresult GetInterface(const nsIID *riid, void **result);
222 object,
223 uuid(d1899240-f9d2-11d2-bdd6-000064657374)
224 /* FROZEN */
226 interface nsISimpleEnumerator : nsISupports
228 nsresult HasMoreElements(PRBool *_retval);
229 nsresult GetNext(nsISupports **_retval);
233 object,
234 uuid(114744d9-c369-456e-b55a-52fe52880d2d)
235 /* NOT_FROZEN */
237 interface nsIArray : nsISupports
239 nsresult GetLength(PRUint32 *aLength);
240 nsresult QueryElementAt(PRUint32 index, const nsIID *uuid, void **result);
241 nsresult IndexOf(PRUint32 startIndex, nsISupports *element, PRUint32 *_retval);
242 nsresult Enumerate(nsISimpleEnumerator **_retval);
246 object,
247 uuid(af059da0-c85b-40ec-af07-ae4bfdc192cc)
248 /* NOT_FROZEN */
250 interface nsIMutableArray : nsIArray
252 nsresult AppendElement(nsISupports *element, PRBool weak);
253 nsresult RemoveElementAt(PRUint32 index);
254 nsresult InsertElementAt(nsISupports *element, PRUint32 index, PRBool weak);
255 nsresult Clear();
259 object,
260 uuid(4d12e540-83d7-11d5-90ed-0010a4e73d9a)
261 /* NOT_FROZEN */
263 interface nsIVariant : nsISupports
265 enum nsDataType {
266 TYPE_INT8,
267 TYPE_INT16,
268 TYPE_INT32,
269 TYPE_INT64,
270 TYPE_UINT8,
271 TYPE_UINT16,
272 TYPE_UINT32,
273 TYPE_UINT64,
274 TYPE_FLOAT,
275 TYPE_DOUBLE,
276 TYPE_BOOL,
277 TYPE_CHAR,
278 TYPE_WCHAR,
279 TYPE_VOID,
280 TYPE_ID,
281 TYPE_DOMSTRING,
282 TYPE_CHAR_STR,
283 TYPE_WCHAR_STR,
284 TYPE_INTERFACE,
285 TYPE_INTERFACE_IS,
286 TYPE_ARRAY,
287 TYPE_STRING_SIZE_IS,
288 TYPE_WSTRING_SIZE_IS,
289 TYPE_UTF8STRING,
290 TYPE_CSTRING,
291 TYPE_ASTRING,
292 TYPE_AMPTY_ARRAY,
293 TYPE_EMPTY
296 nsresult GetDataType(PRUint16 *aDataType);
297 nsresult GetAsInt8(PRUint8 *_retval);
298 nsresult GetAsInt16(PRInt16 *_retval);
299 nsresult GetAsInt32(PRInt32 *_retval);
300 nsresult GetAsInt64(PRInt64 *_retval);
301 nsresult GetAsUint8(PRUint8 *_retval);
302 nsresult GetAsUint16(PRUint16 *_retval);
303 nsresult GetAsUint32(PRUint32 *_retval);
304 nsresult GetAsUint64(PRUint64 *_retval);
305 nsresult GetAsFloat(float *_retval);
306 nsresult GetAsDouble(double *_retval);
307 nsresult GetAsBool(PRBool *_retval);
308 nsresult GetAsChar(char *_retval);
309 nsresult GetAsWChar(PRUnichar *_retval);
310 nsresult GetAsID(nsID *retval);
311 nsresult GetAsAString(nsAString *_retval);
312 nsresult GetAsDOMString(nsAString *_retval);
313 nsresult GetAsACString(nsACString *_retval);
314 nsresult GetAsAUTF8String(nsACString *_retval);
315 nsresult GetAsString(char **_retval);
316 nsresult GetAsWString(PRUnichar **_retval);
317 nsresult GetAsISupports(nsISupports **_retval);
318 nsresult GetAsInterface(nsIID * *iid, void **iface);
319 nsresult GetAsArray(PRUint16 *type, nsIID *iid, PRUint32 *count, void **ptr);
320 nsresult GetAsStringWithSize(PRUint32 *size, char **str);
321 nsresult GetAsWStringWithSize(PRUint32 *size, PRUnichar **str);
325 object,
326 uuid(5586a590-8c82-11d5-90f3-0010a4e73d9a)
327 /* NOT_FROZEN */
329 interface nsIWritableVariant : nsIVariant
331 nsresult GetWritable(PRBool *aWritable);
332 nsresult SetWritable(PRBool aWritable);
333 nsresult SetAsInt8(PRUint8 aValue);
334 nsresult SetAsInt16(PRInt16 aValue);
335 nsresult SetAsInt32(PRInt32 aValue);
336 nsresult SetAsInt64(PRInt64 aValue);
337 nsresult SetAsUint8(PRUint8 aValue);
338 nsresult SetAsUint16(PRUint16 aValue);
339 nsresult SetAsUint32(PRUint32 aValue);
340 nsresult SetAsUint64(PRUint64 aValue);
341 nsresult SetAsFloat(float aValue);
342 nsresult SetAsDouble(double aValue);
343 nsresult SetAsBool(PRBool aValue);
344 nsresult SetAsChar(char aValue);
345 nsresult SetAsWChar(PRUnichar aValue);
346 nsresult SetAsID(const nsID *aValue);
347 nsresult SetAsAString(const nsAString *aValue);
348 nsresult SetAsDOMString(const nsAString *aValue);
349 nsresult SetAsACString(const nsACString *aValue);
350 nsresult SetAsAUTF8String(const nsACString *aValue);
351 nsresult SetAsString(const char *aValue);
352 nsresult SetAsWString(const PRUnichar *aValue);
353 nsresult SetAsISupports(nsISupports *aValue);
354 nsresult SetAsInterface(const nsIID *iid, void *iface);
355 nsresult SetAsArray(PRUint16 type, const nsIID *iid, PRUint32 count, void *ptr);
356 nsresult SetAsStringWithSize(PRUint32 size, const char *str);
357 nsresult SetAsWStringWithSize(PRUint32 size, const PRUnichar *str);
358 nsresult SetAsVoid();
359 nsresult SetAsEmpty();
360 nsresult SetAsEmptyArray();
361 nsresult SetFromVariant(nsIVariant *aValue);
365 object,
366 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a)
367 /* FROZEN */
369 interface nsIInputStream : nsISupports
371 nsresult Close();
372 nsresult Available(PRUint32 *_retval);
373 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
374 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
375 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
376 PRUint32 aCount, PRUint32 *aWriteCount),
377 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
378 nsresult IsNonBlocking(PRBool *_retval);
382 object,
383 uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53)
384 /* NOT_FROZEN */
386 interface nsIStringInputStream : nsIInputStream
388 nsresult SetData(const char *data, PRInt32 dataLen);
389 nsresult AdoptData(char *data, PRInt32 dataLen);
390 nsresult ShareData(const char *data, PRInt32 dataLen);
394 object,
395 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40)
396 /* FROZEN */
398 interface nsIURI : nsISupports
400 nsresult GetSpec(nsACString *aSpec);
401 nsresult SetSpec(const nsACString *aSpec);
402 nsresult GetPrePath(nsACString *aPrePath);
403 nsresult GetScheme(nsACString *aScheme);
404 nsresult SetScheme(const nsACString *aScheme);
405 nsresult GetUserPass(nsACString *aUserPass);
406 nsresult SetUserPass(const nsACString *aUserPass);
407 nsresult GetUsername(nsACString *aUsername);
408 nsresult SetUsername(const nsACString *aUsername);
409 nsresult GetPassword(nsACString *aPassword);
410 nsresult SetPassword(const nsACString *aPassword);
411 nsresult GetHostPort(nsACString *aHostPort);
412 nsresult SetHostPort(const nsACString *aHostPort);
413 nsresult GetHost(nsACString *aHost);
414 nsresult SetHost(const nsACString *aHost);
415 nsresult GetPort(PRInt32 *aPort);
416 nsresult SetPort(PRInt32 aPort);
417 nsresult GetPath(nsACString *aPath);
418 nsresult SetPath(const nsACString *aPath);
419 nsresult Equals(nsIURI *other, PRBool *_retval);
420 nsresult SchemeIs(const char *scheme, PRBool *_retval);
421 nsresult Clone(nsIURI **_retval);
422 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
423 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
424 nsresult GetAsciiHost(nsACString *aAsciiHost);
425 nsresult GetOriginCharset(nsACString *aOriginCharset);
429 object,
430 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe)
431 /* FROZEN */
433 interface nsIRequest : nsISupports
435 nsresult GetName(nsACString *aName);
436 nsresult IsPending(PRBool *_retval);
437 nsresult GetStatus(nsresult *aStatus);
438 nsresult Cancel(nsresult aStatus);
439 nsresult Suspend();
440 nsresult Resume();
441 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
442 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
443 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
444 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
448 object,
449 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40)
450 /* FROZEN */
452 interface nsIRequestObserver : nsISupports
454 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
455 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
459 object,
460 uuid(1a637020-1482-11d3-9333-00104ba0fd40)
461 /* FROZEN */
463 interface nsIStreamListener : nsIRequestObserver
465 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
466 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
470 object,
471 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc)
472 /* FROZEN */
474 interface nsILoadGroup : nsIRequest
476 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
477 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
478 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
479 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
480 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
481 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
482 nsresult GetRequests(nsISimpleEnumerator **aRequests);
483 nsresult GetActiveCount(PRUint32 *aActiveCount);
484 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
485 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
489 object,
490 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018)
491 /* FROZEN */
493 interface nsIChannel : nsIRequest
495 nsresult GetOriginalURI(nsIURI **aOriginalURI);
496 nsresult SetOriginalURI(nsIURI *aOriginalURI);
497 nsresult GetURI(nsIURI **aURI);
498 nsresult GetOwner(nsISupports **aOwner);
499 nsresult SetOwner(nsISupports *aOwner);
500 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
501 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
502 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
503 nsresult GetContentType(nsACString *aContentType);
504 nsresult SetContentType(const nsACString *aContentType);
505 nsresult GetContentCharset(nsACString *aContentCharset);
506 nsresult SetContentCharset(const nsACString *aContentCharset);
507 nsresult GetContentLength(PRInt32 *aContentLength);
508 nsresult SetContentLength(PRInt32 aContentLength);
509 nsresult Open(nsIInputStream **_retval);
510 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
514 object,
515 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260)
516 /* FROZEN */
518 interface nsIHttpChannel : nsIChannel
520 nsresult GetRequestMethod(nsACString *aRequestMethod);
521 nsresult SetRequestMethod(const nsACString *aRequestMethod);
522 nsresult GetReferrer(nsIURI **aReferrer);
523 nsresult SetReferrer(nsIURI *aReferrer);
524 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
525 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
526 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
527 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
528 nsresult SetAllowPipelining(PRBool aAllowPipelining);
529 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
530 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
531 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
532 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
533 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
534 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
535 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
536 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
537 nsresult IsNoStoreResponse(PRBool *_retval);
538 nsresult IsNoCacheResponse(PRBool *_retval);
542 object,
543 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75)
544 /* FROZEN */
546 interface nsIUploadChannel : nsISupports
548 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
549 PRInt32 aContentLength);
550 nsresult GetUploadStream(nsIInputStream **aUploadStream);
554 object,
555 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32)
556 /* FROZEN */
558 interface nsIDOMCSSRule : nsISupports
560 nsresult GetType(PRUint16 *aType);
561 nsresult GetCssText(nsAString *aCssText);
562 nsresult SetCssText(const nsAString *aCssText);
563 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
564 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
568 object,
569 uuid(a6cf90be-15b3-11d2-932e-00805f8add32)
570 /* FROZEN */
572 interface nsIDOMCSSStyleDeclaration : nsISupports
574 nsresult GetCssText(nsAString *aCssText);
575 nsresult SetCssText(const nsAString *aCssText);
576 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
577 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
578 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
579 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
580 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
581 const nsAString *priority);
582 nsresult GetLength(PRUint32 *aLength);
583 nsresult Item(PRUint32 index, nsAString *_retval);
584 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
588 object,
589 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32)
590 /* FROZEN */
592 interface nsIDOMCSSRuleList : nsISupports
594 nsresult GetLength(PRUint32 *aLength);
595 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
599 object,
600 uuid(a6cf9080-15b3-11d2-932e-00805f8add32)
601 /* FROZEN */
603 interface nsIDOMStyleSheet : nsISupports
605 nsresult GetType(nsAString *aType);
606 nsresult GetDisabled(PRBool *aDisabled);
607 nsresult SetDisabled(PRBool aDisabled);
608 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
609 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
610 nsresult GetHref(nsAString *aHref);
611 nsresult GetTitle(nsAString *aTitle);
612 nsresult GetMedia(nsIDOMMediaList **aMedia);
616 object,
617 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32)
618 /* FROZEN */
620 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
622 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
623 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
624 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
625 nsresult DeleteRule(PRUint32 index);
629 object,
630 uuid(a6cf9081-15b3-11d2-932e-00805f8add32)
631 /* FROZEN */
633 interface nsIDOMStyleSheetList : nsISupports
635 nsresult GetLength(PRUint32 *aLength);
636 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
640 object,
641 uuid(a6cf907d-15b3-11d2-932e-00805f8add32)
642 /* FROZEN */
644 interface nsIDOMNodeList : nsISupports
646 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
647 nsresult GetLength(PRUint32 *aLength);
651 object,
652 uuid(a6cf907c-15b3-11d2-932e-00805f8add32)
653 /* FROZEN */
655 interface nsIDOMNode : nsISupports
657 enum NSNODETYPE {
658 ELEMENT_NODE = 1,
659 ATTRIBUTE_NODE = 2,
660 TEXT_NODE = 3,
661 CDATA_SELECTION_NODE = 4,
662 ENTITY_REFERENCE_NODE = 5,
663 ENTITY_NODE = 6,
664 PROCESSING_INSTRUCTION_NODE = 7,
665 COMMENT_NODE = 8,
666 DOCUMENT_NODE = 9,
667 DOCUMENT_TYPE_NODE = 10,
668 DOCUMENT_FRAGMENT_NODE = 11,
669 NOTATION_NODE = 12
672 nsresult GetNodeName(nsAString *aNodeName);
673 nsresult GetNodeValue(nsAString *aNodeValue);
674 nsresult SetNodeValue(const nsAString *aNodeValue);
675 nsresult GetNodeType(PRUint16 *aNodeType);
676 nsresult GetParentNode(nsIDOMNode **aParentNode);
677 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
678 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
679 nsresult GetLastChild(nsIDOMNode **aLastChild);
680 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
681 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
682 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
683 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
684 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
685 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
686 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
687 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
688 nsresult HasChildNodes(PRBool *_retval);
689 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
690 nsresult Normalize();
691 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
692 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
693 nsresult GetPrefix(nsAString *aPrefix);
694 nsresult SetPrefix(const nsAString *aPrefix);
695 nsresult GetLocalName(nsAString *aLocalName);
696 nsresult HasAttributes(PRBool *_retval);
700 object,
701 uuid(a6cf9078-15b3-11d2-932e-00805f8add32)
702 /* FROZEN */
704 interface nsIDOMElement : nsIDOMNode
706 nsresult GetTagName(nsAString *aTagName);
707 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
708 nsresult SetAttribute(const nsAString *name, const nsAString *value);
709 nsresult RemoveAttribute(const nsAString *name);
710 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
711 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
712 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
713 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
714 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
715 nsAString *_retval);
716 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
717 const nsAString *value);
718 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
719 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
720 nsIDOMAttr **_retval);
721 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
722 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
723 nsIDOMNodeList **_retval);
724 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
725 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
726 PRBool *_retval);
730 object,
731 uuid(99715845-95fc-4a56-aa53-214b65c26e22)
732 /* FROZEN */
734 interface nsIDOMElementCSSInlineStyle : nsISupports
736 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
739 cpp_quote("#undef GetClassName");
742 object,
743 uuid(a6cf9085-15b3-11d2-932e-00805f8add32)
744 /* FROZEN */
746 interface nsIDOMHTMLElement : nsIDOMElement
748 nsresult GetId(nsAString *aId);
749 nsresult SetId(const nsAString *aId);
750 nsresult GetTitle(nsAString *aTitle);
751 nsresult SetTitle(const nsAString *aTitle);
752 nsresult GetLang(nsAString *aLang);
753 nsresult SetLang(const nsAString *aLang);
754 nsresult GetDir(nsAString *aDir);
755 nsresult SetDir(const nsAString *aDir);
756 nsresult GetClassName(nsAString *aClassName);
757 nsresult SetClassName(const nsAString *aClassName);
761 object,
762 uuid(da83b2ec-8264-4410-8496-ada3acd2ae42)
763 /* NOT_FROZEN */
765 interface nsIDOMNSHTMLElement : nsISupports
767 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
768 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
769 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
770 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
771 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
772 nsresult GetInnerHTML(nsAString *aInnerHTML);
773 nsresult SetInnerHTML(const nsAString *aInnerHTML);
774 nsresult GetScrollTop(PRInt32 *aScrollTop);
775 nsresult SetScrollTop(PRInt32 aScrollTop);
776 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
777 nsresult SetScrollLeft(PRInt32 aScrollLeft);
778 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
779 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
780 nsresult GetClientHeight(PRInt32 *aClientHeight);
781 nsresult GetClientWidth(PRInt32 *aClientWidth);
782 nsresult GetTabIndex(PRInt32 *aTabIndex);
783 nsresult SetTabIndex(PRInt32 aTabIndex);
784 nsresult blur();
785 nsresult focus();
786 nsresult ScrollIntoView(PRBool top);
790 object,
791 uuid(a6cf9072-15b3-11d2-932e-00805f8add32)
792 /* FROZEN */
794 interface nsIDOMCharacterData : nsIDOMNode
796 nsresult GetData(nsAString *aData);
797 nsresult SetData(const nsAString *aData);
798 nsresult GetLength(PRUint32 *aLength);
799 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
800 nsresult AppendData(const nsAString *arg);
801 nsresult InsertData(PRUint32 offset, const nsAString *arg);
802 nsresult DeleteData(PRUint32 offset, PRUint32 count);
803 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
807 object,
808 uuid(a6cf9082-15b3-11d2-932e-00805f8add32)
809 /* FROZEN */
811 interface nsIDOMText : nsIDOMCharacterData
813 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
817 object,
818 uuid(a6cf9073-15b3-11d2-932e-00805f8add32)
819 /* FROZEN */
821 interface nsIDOMComment : nsIDOMCharacterData
826 object,
827 uuid(a6cf9076-15b3-11d2-932e-00805f8add32)
828 /* FROZEN */
830 interface nsIDOMDocumentFragment : nsIDOMNode
835 object,
836 uuid(a6cf9075-15b3-11d2-932e-00805f8add32)
837 /* FROZEN */
839 interface nsIDOMDocument : nsIDOMNode
841 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
842 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
843 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
844 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
845 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
846 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
847 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
848 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
849 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
850 nsIDOMProcessingInstruction **_retval);
851 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
852 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
853 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
854 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
855 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
856 nsIDOMElement **_retval);
857 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
858 nsIDOMAttr **_retval);
859 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
860 nsIDOMNodeList **_retval);
861 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
865 object,
866 uuid(a6cf9084-15b3-11d2-932e-00805f8add32)
867 /* FROZEN */
869 interface nsIDOMHTMLDocument : nsIDOMDocument
871 nsresult GetTitle(nsAString *aTitle);
872 nsresult SetTitle(const nsAString *aTitle);
873 nsresult GetReferrer(nsAString *aReferrer);
874 nsresult GetDomain(nsAString *aDomain);
875 nsresult GetURL(nsAString *aURL);
876 nsresult GetBody(nsIDOMHTMLElement **aBody);
877 nsresult SetBody(nsIDOMHTMLElement *aBody);
878 nsresult GetImages(nsIDOMHTMLCollection **aImages);
879 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
880 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
881 nsresult GetForms(nsIDOMHTMLCollection **aForms);
882 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
883 nsresult GetCookie(nsAString *aCookie);
884 nsresult SetCookie(const nsAString *aCookie);
885 nsresult Open();
886 nsresult Close();
887 nsresult Write(const nsAString *text);
888 nsresult Writeln(const nsAString *text);
889 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
893 object,
894 uuid(79beb289-3644-4b54-9432-9fb993945629)
895 /* NOT_FROZEN */
897 interface nsIDOMNSHTMLDocument : nsISupports
899 nsresult GetWidth(PRInt32 *aWidth);
900 nsresult GetHeight(PRInt32 *aHeight);
901 nsresult GetAlinkColor(nsAString *aAlinkColor);
902 nsresult SetAlinkColor(const nsAString *aAlinkColor);
903 nsresult GetLinkColor(nsAString *aLinkColor);
904 nsresult SetLinkColor(const nsAString *aLinkColor);
905 nsresult GetVlinkColor(nsAString *aVlinkColor);
906 nsresult SetVlinkColor(const nsAString *aVlinkColor);
907 nsresult GetBgColor(nsAString *aBgColor);
908 nsresult SetBgColor(const nsAString *aBgColor);
909 nsresult GetFgColor(nsAString *aFgColor);
910 nsresult SetFgColor(const nsAString *aFgColor);
911 nsresult GetDomain(nsAString *aDomain);
912 nsresult SetDomain(const nsAString *aDomain);
913 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
914 nsresult GetSelection(nsAString *_retval);
915 nsresult Open(nsIDOMDocument **_retval);
916 nsresult Write();
917 nsresult Writeln();
918 nsresult Clear();
919 nsresult CaptureEvents(PRInt32 eventFlags);
920 nsresult ReleaseEvents(PRInt32 eventFlags);
921 nsresult RouteEvent(nsIDOMEvent *evt);
922 nsresult GetCompatMode(nsAString *aCompatMode);
923 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
924 nsresult GetDesignMode(nsAString *aDesignMode);
925 nsresult SetDesignMode(const nsAString *aDesignMode);
926 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
927 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
928 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
929 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
930 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
931 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
932 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
933 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
937 object,
938 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9)
939 /* FROZEN */
941 interface nsIDOMDocumentStyle : nsISupports
943 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
947 object,
948 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32)
949 /* FROZEN */
951 interface nsIDOMRange : nsISupports
953 enum {
954 NS_START_TO_START,
955 NS_START_TO_END,
956 NS_END_TO_END,
957 NS_END_TO_START
960 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
961 nsresult GetStartOffset(PRInt32 *aStartOffset);
962 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
963 nsresult GetEndOffset(PRInt32 *aEndOffset);
964 nsresult GetCollapsed(PRBool *aCollapsed);
965 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
966 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
967 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
968 nsresult SetStartBefore(nsIDOMNode *refNode);
969 nsresult SetStartAfter(nsIDOMNode *refNode);
970 nsresult SetEndBefore(nsIDOMNode *refNode);
971 nsresult SetEndAfter(nsIDOMNode *refNode);
972 nsresult Collapse(PRBool toStart);
973 nsresult SelectNode(nsIDOMNode *refNode);
974 nsresult SelectNodeContents(nsIDOMNode *refNode);
975 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
976 nsresult DeleteContents();
977 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
978 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
979 nsresult InsertNode(nsIDOMNode *newNode);
980 nsresult SurroundContents(nsIDOMNode *newParent);
981 nsresult CloneRange(nsIDOMRange **_retval);
982 nsresult ToString(nsAString *_retval);
983 nsresult Detach();
987 object,
988 uuid(a6cf90f2-15b3-11d2-932e-00805f8add32)
990 interface nsIDOMNSRange : nsISupports
992 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
993 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
994 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
995 nsresult IntersectsNode([in] nsIDOMNode *n, [out] PRBool *_retval);
996 nsresult CompareNode([in] nsIDOMNode *n, [out] PRUint16 *_retval);
997 nsresult nSDetach();
1002 object,
1003 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b)
1004 /* FROZEN */
1006 interface nsIDOMDocumentRange : nsISupports
1008 nsresult CreateRange(nsIDOMRange **_retval);
1012 object,
1013 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1)
1014 /* FROZEN */
1016 interface nsISelection : nsISupports
1018 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1019 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1020 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1021 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1022 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1023 nsresult GetRangeCount(PRInt32 *aRangeCount);
1024 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1025 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1026 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1027 nsresult CollapseToStart();
1028 nsresult CollapseToEnd();
1029 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1030 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1031 nsresult AddRange(nsIDOMRange *range);
1032 nsresult RemoveRange(nsIDOMRange *range);
1033 nsresult RemoveAllRanges();
1034 nsresult DeleteFromDocument();
1035 nsresult SelectionLanguageChange(PRBool langRTL);
1036 nsresult ToString(PRUnichar **_retval);
1040 object,
1041 uuid(a6cf906b-15b3-11d2-932e-00805f8add32)
1042 /* FROZEN */
1044 interface nsIDOMWindow : nsISupports
1046 nsresult GetDocument(nsIDOMDocument **aDocument);
1047 nsresult GetParent(nsIDOMWindow **aParent);
1048 nsresult GetTop(nsIDOMWindow **aTop);
1049 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1050 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1051 nsresult GetName(nsAString *aName);
1052 nsresult SetName(const nsAString *aName);
1053 nsresult GetTextZoom(float *aTextZoom);
1054 nsresult SetTextZoom(float aTextZoom);
1055 nsresult GetScrollX(PRInt32 *aScrollX);
1056 nsresult GetScrollY(PRInt32 *aScrollY);
1057 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1058 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1059 nsresult GetSelection(nsISelection **_retval);
1060 nsresult ScrollByLines(PRInt32 numLines);
1061 nsresult ScrollByPages(PRInt32 numPages);
1062 nsresult SizeToContent();
1066 object,
1067 uuid(a6cf908e-15b3-11d2-932e-00805f8add32)
1068 /* FROZEN */
1070 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1072 nsresult GetALink(nsAString *aALink);
1073 nsresult SetALink(const nsAString *aALink);
1074 nsresult GetBackground(nsAString *aBackground);
1075 nsresult SetBackground(const nsAString *aBackground);
1076 nsresult GetBgColor(nsAString *aBgColor);
1077 nsresult SetBgColor(const nsAString *aBgColor);
1078 nsresult GetLink(nsAString *aLink);
1079 nsresult SetLink(const nsAString *aLink);
1080 nsresult GetText(nsAString *aText);
1081 nsresult SetText(const nsAString *aText);
1082 nsresult GetVLink(nsAString *aVLink);
1083 nsresult SetVLink(const nsAString *aVLink);
1087 object,
1088 uuid(a6cf9093-15b3-11d2-932e-00805f8add32)
1089 /* FROZEN */
1091 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1093 nsresult GetDefaultValue(nsAString *aDefaultValue);
1094 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1095 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1096 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1097 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1098 nsresult GetAccept(nsAString *aAccept);
1099 nsresult SetAccept(const nsAString *aAccept);
1100 nsresult GetAccessKey(nsAString *aAccessKey);
1101 nsresult SetAccessKey(const nsAString *aAccessKey);
1102 nsresult GetAlign(nsAString *aAlign);
1103 nsresult SetAlign(const nsAString *aAlign);
1104 nsresult GetAlt(nsAString *aAlt);
1105 nsresult SetAlt(const nsAString *aAlt);
1106 nsresult GetChecked(PRBool *aChecked);
1107 nsresult SetChecked(PRBool aChecked);
1108 nsresult GetDisabled(PRBool *aDisabled);
1109 nsresult SetDisabled(PRBool aDisabled);
1110 nsresult GetMaxLength(PRInt32 *aMaxLength);
1111 nsresult SetMaxLength(PRInt32 aMaxLength);
1112 nsresult GetName(nsAString *aName);
1113 nsresult SetName(const nsAString *aName);
1114 nsresult GetReadOnly(PRBool *aReadOnly);
1115 nsresult SetReadOnly(PRBool aReadOnly);
1116 nsresult GetSize(PRUint32 *aSize);
1117 nsresult SetSize(PRUint32 aSize);
1118 nsresult GetSrc(nsAString *aSrc);
1119 nsresult SetSrc(const nsAString *aSrc);
1120 nsresult GetTabIndex(PRInt32 *aTabIndex);
1121 nsresult SetTabIndex(PRInt32 aTabIndex);
1122 nsresult GetType(nsAString *aType);
1123 nsresult SetType(const nsAString *aType);
1124 nsresult GetUseMap(nsAString *aUseMap);
1125 nsresult SetUseMap(const nsAString *aUseMap);
1126 nsresult GetValue(nsAString *aValue);
1127 nsresult SetValue(const nsAString *aValue);
1128 nsresult Blur();
1129 nsresult Focus();
1130 nsresult Select();
1131 nsresult Click();
1135 object,
1136 uuid(a6cf9092-15b3-11d2-932e-00805f8add32)
1137 /* FROZEN */
1139 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1141 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1142 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1143 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1144 nsresult GetText(nsAString *aText);
1145 nsresult GetIndex(PRInt32 *aIndex);
1146 nsresult GetDisabled(PRBool *aDisabled);
1147 nsresult SetDisabled(PRBool aDisabled);
1148 nsresult GetLabel(nsAString *aLabel);
1149 nsresult SetLabel(const nsAString *aLabel);
1150 nsresult GetSelected(PRBool *aSelected);
1151 nsresult SetSelected(PRBool aSelected);
1152 nsresult GetValue(nsAString *aValue);
1153 nsresult SetValue(const nsAString *aValue);
1157 object,
1158 uuid(a6cf9090-15b3-11d2-932e-00805f8add32)
1159 /* FROZEN */
1161 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1163 nsresult GetType(nsAString *aType);
1164 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1165 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1166 nsresult GetValue(nsAString *aValue);
1167 nsresult SetValue(const nsAString *aValue);
1168 nsresult GetLength(PRUint32 *aLength);
1169 nsresult SetLength(PRUint32 aLength);
1170 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1171 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1172 nsresult GetDisabled(PRBool *aDisabled);
1173 nsresult SetDisabled(PRBool aDisabled);
1174 nsresult GetMultiple(PRBool *aMultiple);
1175 nsresult SetMultiple(PRBool aMultiple);
1176 nsresult GetName(nsAString *aName);
1177 nsresult SetName(const nsAString *aName);
1178 nsresult GetSize(PRInt32 *aSize);
1179 nsresult SetSize(PRInt32 aSize);
1180 nsresult GetTabIndex(PRInt32 *aTabIndex);
1181 nsresult SetTabIndex(PRInt32 aTabIndex);
1182 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1183 nsresult Remove(PRInt32 index);
1184 nsresult Blur();
1185 nsresult Focus();
1189 object,
1190 uuid(a6cf9094-15b3-11d2-932e-00805f8add32)
1191 /* FROZEN */
1193 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1195 nsresult GetDefaultValue(nsAString *aDefaultValue);
1196 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1197 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1198 nsresult GetAccessKey(nsAString *aAccessKey);
1199 nsresult SetAccessKey(const nsAString *aAccessKey);
1200 nsresult GetCols(PRInt32 *aCols);
1201 nsresult SetCols(PRInt32 aCols);
1202 nsresult GetDisabled(PRBool *aDisabled);
1203 nsresult SetDisabled(PRBool aDisabled);
1204 nsresult GetName(nsAString *aName);
1205 nsresult SetName(const nsAString *aName);
1206 nsresult GetReadOnly(PRBool *aReadOnly);
1207 nsresult SetReadOnly(PRBool aReadOnly);
1208 nsresult GetRows(PRInt32 *aRows);
1209 nsresult SetRows(PRInt32 aRows);
1210 nsresult GetTabIndex(PRInt32 *aTabIndex);
1211 nsresult SetTabIndex(PRInt32 aTabIndex);
1212 nsresult GetType(nsAString *aType);
1213 nsresult GetValue(nsAString *aValue);
1214 nsresult SetValue(const nsAString *aValue);
1215 nsresult Blur();
1216 nsresult Focus();
1217 nsresult Select();
1221 object,
1222 uuid(94928ab3-8b63-11d3-989d-001083010e9b)
1223 /* FROZEN */
1225 interface nsIURIContentListener : nsISupports
1227 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1228 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1229 nsIStreamListener **aContentHandler, PRBool *_retval);
1230 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1231 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1232 char **aDesiredContentType, PRBool *_retval);
1233 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1234 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1235 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1236 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1240 object,
1241 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916)
1242 /* FROZEN */
1244 interface nsITooltipListener : nsISupports
1246 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1247 nsresult OnHideTooltip();
1251 object,
1252 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c)
1253 /* FROZEN */
1255 interface nsIWebBrowser : nsISupports
1257 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1258 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1259 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1260 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1261 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1262 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1263 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1266 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7");
1269 object,
1270 uuid(f15398a0-8018-11d3-af70-00a024ffc08c)
1271 /* FROZEN */
1273 interface nsIWebBrowserSetup : nsISupports
1275 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1278 typedef void* nativeWindow;
1281 object,
1282 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)
1283 /* NOT_FROZEN */
1285 interface nsIBaseWindow : nsISupports
1287 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1288 PRInt32 y, PRInt32 cx, PRInt32 cy);
1289 nsresult Create();
1290 nsresult Destroy();
1291 nsresult SetPosition(PRInt32 x, PRInt32 y);
1292 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1293 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1294 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1295 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1296 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1297 nsresult Repaint(PRBool force);
1298 nsresult GetParentWidget(nsIWidget **aParentWidget);
1299 nsresult SetParentWidget(nsIWidget *aParentWidget);
1300 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1301 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1302 nsresult GetVisibility(PRBool *aVisibility);
1303 nsresult SetVisibility(PRBool aVisibility);
1304 nsresult GetEnabled(PRBool *aEnabled);
1305 nsresult SetEnabled(PRBool aEnabled);
1306 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1307 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1308 nsresult GetMainWidget(nsIWidget **aMainWidget);
1309 nsresult SetFocus();
1310 nsresult GetTitle(PRUnichar **aTitle);
1311 nsresult SetTitle(const PRUnichar *aTitle);
1314 cpp_quote("#define LOAD_FLAGS_NONE 0");
1317 object,
1318 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c)
1319 /* NOT_FROZEN */
1321 interface nsIWebNavigation : nsISupports
1323 nsresult GetCanGoBack(PRBool *aCanGoBack);
1324 nsresult GetCanGoForward(PRBool *aCanGoForward);
1325 nsresult GoBack();
1326 nsresult GoForward();
1327 nsresult GotoIndex(PRInt32 index);
1328 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1329 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1330 nsresult Reload(PRUint32 aReloadFlags);
1331 nsresult Stop(PRUint32 aStopFlags);
1332 nsresult GetDocument(nsIDOMDocument **aDocument);
1333 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1334 nsresult GetReferringURI(nsIURI **aReferringURI);
1335 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1336 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1340 object,
1341 uuid(f1094df6-ce0e-42c9-9847-2f663172c38d)
1342 /* NOT_FROZEN */
1344 interface nsIPrintSettings : nsISupports
1346 typedef struct {} nsMargin;
1348 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1349 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1350 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1351 nsresult GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight);
1352 nsresult Clone(nsIPrintSettings **_retval);
1353 nsresult Assign(nsIPrintSettings *aPS);
1354 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1355 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1356 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1357 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1358 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1359 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1360 nsresult GetMarginTop(double *aMarginTop);
1361 nsresult SetMarginTop(double aMarginTop);
1362 nsresult GetMarginLeft(double *aMarginLeft);
1363 nsresult SetMarginLeft(double aMarginLeft);
1364 nsresult GetMarginBottom(double *aMarginBottom);
1365 nsresult SetMarginBottom(double aMarginBottom);
1366 nsresult GetMarginRight(double *aMarginRight);
1367 nsresult SetMarginRight(double aMarginRight);
1368 nsresult GetScaling(double *aScaling);
1369 nsresult SetScaling(double aScaling);
1370 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1371 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1372 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1373 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1374 nsresult GetPrintRange(PRInt16 *aPrintRange);
1375 nsresult SetPrintRange(PRInt16 aPrintRange);
1376 nsresult GetTitle(PRUnichar **aTitle);
1377 nsresult SetTitle(const PRUnichar *aTitle);
1378 nsresult GetDocURL(PRUnichar **aDocURL);
1379 nsresult SetDocURL(const PRUnichar *aDocURL);
1380 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1381 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1382 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1383 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1384 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1385 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1386 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1387 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1388 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1389 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1390 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1391 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1392 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1393 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1394 nsresult GetIsCancelled(PRBool *aIsCancelled);
1395 nsresult SetIsCancelled(PRBool aIsCancelled);
1396 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1397 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1398 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1399 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1400 nsresult GetPrintSilent(PRBool *aPrintSilent);
1401 nsresult SetPrintSilent(PRBool aPrintSilent);
1402 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1403 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1404 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1405 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1406 nsresult GetPaperName(PRUnichar **aPaperName);
1407 nsresult SetPaperName(const PRUnichar *aPaperName);
1408 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1409 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1410 nsresult GetPaperData(PRInt16 *aPaperData);
1411 nsresult SetPaperData(PRInt16 aPaperData);
1412 nsresult GetPaperWidth(double *aPaperWidth);
1413 nsresult SetPaperWidth(double aPaperWidth);
1414 nsresult GetPaperHeight(double *aPaperHeight);
1415 nsresult SetPaperHeight(double aPaperHeight);
1416 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1417 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1418 nsresult GetPlexName(PRUnichar **aPlexName);
1419 nsresult SetPlexName(const PRUnichar *aPlexName);
1420 nsresult GetColorspace(PRUnichar **aColorspace);
1421 nsresult SetColorspace(const PRUnichar *aColorspace);
1422 nsresult GetResolutionName(PRUnichar **aResolutionName);
1423 nsresult SetResolutionName(const PRUnichar aResolutionName);
1424 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1425 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1426 nsresult GetPrintReversed(PRBool *aPrintReversed);
1427 nsresult SetPrintReversed(PRBool aPrintReversed);
1428 nsresult GetPrintInColor(PRBool *aPrintInColor);
1429 nsresult SetPrintInColor(PRBool aPrintInColor);
1430 nsresult GetPaperSize(PRInt32 *aPaperSize);
1431 nsresult SetPaperSize(PRInt32 aPaperSize);
1432 nsresult GetOrientation(PRInt32 *aOrientation);
1433 nsresult SetOrientation(PRInt32 aOrientation);
1434 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1435 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1436 nsresult GetNumCopies(PRInt32 *aNumCopies);
1437 nsresult SetNumCopies(PRInt32 aNumCopies);
1438 nsresult GetPrinterName(PRUnichar **aPrinterName);
1439 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1440 nsresult GetPrintToFile(PRBool *aPrintToFile);
1441 nsresult SetPrintToFile(PRBool aPrintToFile);
1442 nsresult GetToFileName(PRUnichar **aToFileName);
1443 nsresult SetToFileName(const PRUnichar *aToFileName);
1444 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1445 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1446 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1447 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1448 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1449 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1450 nsresult SetMarginInTwips(nsMargin *aMargin);
1451 nsresult GetMarginInTwips(nsMargin *aMargin);
1455 object,
1456 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419)
1457 /* FROZEN */
1459 interface nsIWebBrowserPrint : nsISupports
1461 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1462 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1463 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1464 nsresult GetDoingPrint(PRBool *aDoingPrint);
1465 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1466 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1467 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1468 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1469 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1470 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1471 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1472 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1473 nsIWebProgressListener *aWPListener);
1474 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1475 nsresult Cancel();
1476 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1477 nsresult ExitPrintPreview();
1481 object,
1482 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8)
1483 /* NOT_FROZEN */
1485 interface nsIScrollable : nsISupports
1487 enum {
1488 ScrollOrientation_X = 1,
1489 ScrollOrientation_Y = 2
1492 enum {
1493 Scrollbar_Auto = 1,
1494 Scrollbar_Never = 2,
1495 Scrollbar_Always = 3
1498 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1499 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1500 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1501 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1502 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1503 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1504 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1505 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1506 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1507 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1511 object,
1512 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)
1513 /* FROZEN */
1515 interface nsIFile : nsISupports
1517 nsresult Append(const nsAString *node);
1518 nsresult AppendNative(const nsAString *node);
1519 nsresult Normalize();
1520 nsresult Create(PRUint32 type, PRUint32 permission);
1521 nsresult GetLeafName(nsAString *aLeafName);
1522 nsresult SetLeafName(const nsAString *aLeafName);
1523 nsresult GetNativeLeafName(nsAString *aLeafName);
1524 nsresult SetNativeLeafName(const nsAString *aLeafName);
1525 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1526 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1527 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1528 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1529 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1530 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1531 nsresult Remove(PRBool recursive);
1532 nsresult GetPermissions(PRUint32 *aPermissions);
1533 nsresult SetPermissions(PRUint32 pPermissions);
1534 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1535 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1536 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1537 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1538 nsresult GetFileSize(PRInt64 *aFileSize);
1539 nsresult SetFileSize(PRInt64 aFileSize);
1540 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1541 nsresult GetTarget(nsAString *aTarget);
1542 nsresult GetNativeTarget(nsACString *aNativeTarget);
1543 nsresult GetPath(nsAString *aPath);
1544 nsresult GetNativePath(nsACString *aNativePath);
1545 nsresult Exists(PRBool *_retval);
1546 nsresult IsWritable(PRBool *_retval);
1547 nsresult IsReadable(PRBool *_retval);
1548 nsresult IsExecutable(PRBool *_retval);
1549 nsresult IsHidden(PRBool *_retval);
1550 nsresult IsDirectory(PRBool *_retval);
1551 nsresult IsFile(PRBool *_retval);
1552 nsresult IsSymlink(PRBool *_retval);
1553 nsresult IsSpecial(PRBool *_retval);
1554 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1555 nsresult Clone(nsIFile **_retval);
1556 nsresult Equals(nsIFile *inFile, PRBool *_retval);
1557 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1558 nsresult GetParent(nsIFile **aParent);
1559 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1563 object,
1564 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65)
1565 /* FROZEN */
1567 interface nsIPrefBranch : nsISupports
1569 nsresult GetRoot(char **aRoot);
1570 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
1571 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
1572 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
1573 nsresult GetCharPref(const char *aPrefName, char **_retval);
1574 nsresult SetCharPref(const char *aPrefName, const char *aValue);
1575 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
1576 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
1577 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
1578 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
1579 nsresult ClearUserPref(const char *aPrefName);
1580 nsresult LockPref(const char *aPrefName);
1581 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
1582 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
1583 nsresult UnlockPref(const char *aPrefName);
1584 nsresult DeleteBranch(const char *aStartingAt);
1585 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
1586 nsresult ResetBranch(const char *aStartingAt);
1590 object,
1591 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40)
1592 /* FROZEN */
1594 interface nsIProtocolHandler : nsISupports
1596 nsresult GetScheme(nsACString *aScheme);
1597 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
1598 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
1599 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
1600 nsIURI *aBaseURI, nsIURI **_retval);
1601 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
1602 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
1606 object,
1607 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7)
1608 /* NOT_FROZEN */
1610 interface nsIExternalProtocolHandler : nsIProtocolHandler
1612 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
1616 object,
1617 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e)
1618 /* FROZEN */
1620 interface nsIIOService : nsISupports
1622 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1623 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1624 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1625 nsIURI **_retval);
1626 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1627 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1628 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1629 nsIChannel **_retval);
1630 nsresult GetOffline(PRBool *aOffline);
1631 nsresult SetOffline(PRBool aOffline);
1632 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1633 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1637 object,
1638 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a)
1639 /* FROZEN */
1641 interface nsIWebBrowserFocus : nsISupports
1643 nsresult Activate();
1644 nsresult Deactivate();
1645 nsresult SetFocusAtFirstElement();
1646 nsresult SetFocusAtLastElement();
1647 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1648 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1649 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1650 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1654 object,
1655 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c)
1656 /* FROZEN */
1658 interface nsIWebBrowserChrome : nsISupports
1660 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1661 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1662 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1663 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1664 nsresult SetChromeFlags(PRUint32 aChromeFlags);
1665 nsresult DestroyBrowserWindow();
1666 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1667 nsresult ShowAsModal();
1668 nsresult IsWindowModal(PRBool *_retval);
1669 nsresult ExitModalEventLoop(nsresult aStatus);
1673 object,
1674 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4)
1675 /* FROZEN */
1677 interface nsIDOMEventListener : nsISupports
1679 nsresult HandleEvent(nsIDOMEvent *event);
1683 object,
1684 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4)
1685 /* FROZEN */
1687 interface nsIDOMEventTarget : nsISupports
1689 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1690 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1691 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1695 object,
1696 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32)
1697 /* FROZEN */
1699 interface nsIDOMEvent : nsISupports
1701 nsresult GetType(nsAString *aType);
1702 nsresult GetTarget(nsIDOMEventTarget **aTarget);
1703 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1704 nsresult GetEventPhase(PRUint16 *aEventPhase);
1705 nsresult GetBubbles(PRBool *aBubbles);
1706 nsresult GetCancelable(PRBool *aCancelable);
1707 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1708 nsresult StopPropagation();
1709 nsresult PreventDefault();
1710 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1713 cpp_quote("#define CONTEXT_NONE 0x00");
1714 cpp_quote("#define CONTEXT_LINK 0x01");
1715 cpp_quote("#define CONTEXT_IMAGE 0x02");
1716 cpp_quote("#define CONTEXT_DOCUMENT 0x04");
1717 cpp_quote("#define CONTEXT_TEXT 0x08");
1718 cpp_quote("#define CONTEXT_INPUT 0x10");
1719 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20");
1722 object,
1723 uuid(3478b6b0-3875-11d4-94ef-0020183bf181)
1724 /* FROZEN */
1726 interface nsIContextMenuListener : nsISupports
1728 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1732 object,
1733 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32)
1734 /* FROZEN */
1736 interface nsIDOMUIEvent : nsIDOMEvent
1738 nsresult GetView(nsIDOMAbstractView **aView);
1739 nsresult GetDetail(PRInt32 *aDetail);
1740 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1741 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
1745 object,
1746 uuid(ff751edc-8b02-aae7-0010-8301838a3123)
1747 /* FROZEN */
1749 interface nsIDOMMouseEvent : nsIDOMUIEvent
1751 nsresult GetScreenX(PRInt32 *aScreenX);
1752 nsresult GetScreenY(PRInt32 *aScreenY);
1753 nsresult GetClientX(PRInt32 *aClientX);
1754 nsresult GetClientY(PRInt32 *aClientY);
1755 nsresult GetCtrlKey(PRBool *aCtrlKey);
1756 nsresult GetShiftKey(PRBool *aShiftKey);
1757 nsresult GetAltKey(PRBool *aAltKey);
1758 nsresult GetMetaKey(PRBool *aMetaKey);
1759 nsresult GetButton(PRUint16 *aButton);
1760 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
1761 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1762 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
1763 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
1764 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
1765 nsIDOMEventTarget *relatedTargetArg);
1769 object,
1770 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123)
1771 /* NOT_FROZEN */
1773 interface nsIDOMKeyEvent : nsIDOMUIEvent
1775 nsresult GetCharCode(PRUint32 *aCharCode);
1776 nsresult GetKeyCode(PRUint32 *aKeyCode);
1777 nsresult GetAltKey(PRBool *aAltKey);
1778 nsresult GetCtrlKey(PRBool *aCtrlKey);
1779 nsresult GetShiftKey(PRBool *aShiftKey);
1780 nsresult GetMetaKey(PRBool *aMetaKey);
1781 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
1782 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
1783 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
1784 PRUint32 charCodeArg);
1788 object,
1789 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743)
1790 /* FROZEN */
1792 interface nsIEmbeddingSiteWindow : nsISupports
1794 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
1795 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1796 nsresult SetFocus();
1797 nsresult GetVisibility(PRBool *aVisibility);
1798 nsresult SetVisibility(PRBool aVisibility);
1799 nsresult GetTitle(PRUnichar **aTitle);
1800 nsresult SetTitle(const PRUnichar *aTitle);
1801 nsresult GetSiteWindow(void **aSiteWindow);
1805 object,
1806 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392)
1807 /* FROZEN */
1809 interface nsIComponentRegistrar : nsISupports
1811 nsresult AutoRegister(nsIFile *aSpec);
1812 nsresult AutoUnregister(nsIFile *aSpec);
1813 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1814 const char *aContractID, nsIFactory *aFactory);
1815 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1816 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1817 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1818 const char *aType);
1819 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1820 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1821 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1822 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1823 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1824 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1825 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1829 object,
1830 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5)
1831 /* FROZEN */
1833 interface nsIPromptService : nsISupports
1835 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1836 const PRUnichar *aText);
1837 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1838 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
1839 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1840 const PRUnichar *aText, PRBool *_retval);
1841 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1842 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
1843 PRBool *_retval);
1844 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1845 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
1846 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
1847 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
1848 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1849 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
1850 PRBool *aCheckState, PRBool *_retval);
1851 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1852 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
1853 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
1854 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1855 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
1856 PRBool *aCheckState, PRBool *_retval);
1857 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1858 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
1859 PRInt32 *aOutSelection, PRBool *_retval);
1863 object,
1864 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee)
1865 /* FROZEN */
1867 interface nsITooltipTextProvider : nsISupports
1869 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
1873 object,
1874 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9)
1875 /* FROZEN */
1877 interface nsIProfile : nsISupports
1879 nsresult GetProfileCount(PRInt32 *aProfileCount);
1880 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
1881 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
1882 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
1883 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
1884 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
1885 nsresult CreateNewProfile(const PRUnichar *profileName,
1886 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
1887 PRBool useExistingDir);
1888 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
1889 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
1890 nsresult CloneProfile(const PRUnichar *profileName);
1894 object,
1895 uuid(30465632-a777-44cc-90f9-8145475ef999)
1896 /* FROZEN */
1898 interface nsIWindowCreator : nsISupports
1900 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1901 nsIWebBrowserChrome **_retval);
1905 object,
1906 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc)
1907 /* NOT_FROZEN */
1909 interface nsIWindowCreator2 : nsIWindowCreator
1911 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
1912 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
1913 nsIWebBrowserChrome **_retval);
1917 object,
1918 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b)
1919 /* FROZEN */
1921 interface nsIWindowWatcher : nsISupports
1923 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
1924 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
1925 nsresult RegisterNotification(nsIObserver *aObserver);
1926 nsresult UnregisterNotification(nsIObserver *aObserver);
1927 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
1928 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
1929 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
1930 nsresult SetWindowCreator(nsIWindowCreator *creator);
1931 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
1932 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
1933 nsIDOMWindow **_retval);
1934 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
1935 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
1939 object,
1940 uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b)
1941 /* NOT_FROZEN */
1943 interface nsIEditingSession : nsISupports
1945 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
1946 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
1947 PRBool doAfterUriLoad);
1948 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
1949 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
1950 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
1951 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
1952 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
1956 object,
1957 uuid(83f892cf-7ed3-490e-967a-62640f3158e1)
1958 /* NOT_FROZEN */
1960 interface nsICommandParams : nsISupports
1962 nsresult GetValueType(const char *name, PRInt16 *_retval);
1963 nsresult GetBooleanValue(const char *name, PRBool *_retval);
1964 nsresult GetLongValue(const char *name, PRInt32 *_retval);
1965 nsresult GetDoubleValue(const char *name, double *_retval);
1966 nsresult GetStringValue(const char *name, nsAString *_retval);
1967 nsresult GetCStringValue(const char *name, char **_retval);
1968 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
1969 nsresult SetBooleanValue(const char *name, PRBool value);
1970 nsresult SetLongValue(const char *name, PRInt32 value);
1971 nsresult SetDoubleValue(const char *name, double value);
1972 nsresult SetStringValue(const char *name, const nsAString *value);
1973 nsresult SetCStringValue(const char *name, const char *value);
1974 nsresult SetISupportsValue(const char *name, nsISupports *value);
1975 nsresult RemoveValue(const char *name);
1976 nsresult HasMoreElements(PRBool *_retval);
1977 nsresult First();
1978 nsresult GetNext(char **_retval);
1982 object,
1983 uuid(080d2001-f91e-11d4-a73c-f9242928207c)
1984 /* NOT_FROZEN */
1986 interface nsICommandManager : nsISupports
1988 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
1989 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
1990 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1991 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
1992 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
1993 nsICommandParams *aCommandParams);
1994 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
1995 nsIDOMWindow *aTargetWindow);
1999 object,
2000 uuid(47b82b60-a36f-4167-8072-6f421151ed50)
2001 /* NOT_FROZEN */
2003 interface nsIControllerContext : nsISupports
2005 nsresult Init(nsIControllerCommandTable *aCommandTable);
2006 nsresult SetCommandContext(nsISupports *aCommandContext);
2010 object,
2011 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627)
2012 /* NOT_FROZEN */
2014 interface nsIController : nsISupports
2016 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2017 nsresult SupportsCommand(const char *command, PRBool *_retval);
2018 nsresult DoCommand(const char *command);
2019 nsresult OnEvent(const char *eventName);
2023 object,
2024 uuid(d650439a-ca29-410d-a906-b0557fb62fcd)
2025 /* NOT_FROZEN */
2027 interface nsIContentSerializer : nsISupports
2029 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying);
2030 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2031 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
2032 PRInt32 aEndOffset, nsAString *aStr);
2033 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
2034 PRInt32 aEndOffset, nsAString *aStr);
2035 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2036 nsAString *aStr);
2037 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
2038 nsresult AppendElementStart(nsIDOMElement *aElement, PRBool aHasChildren, nsAString *aStr);
2039 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
2040 nsresult Flush(nsAString *aStr);
2041 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
2045 object,
2046 uuid(68b97c56-2289-48ac-a9e1-72c30fd3dba2)
2048 interface nsIScriptContainer : nsISupports
2050 typedef void *JSObject;
2052 nsresult GetContext(void **aContext);
2053 nsresult GetGlobalObject(void **aGlobalObject);
2054 nsresult CompileScript(const PRUnichar *aText, PRInt32 aTextLength, void *aScopeObject,
2055 nsIPrincipal *aPrincipal, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, void **_retval);
2056 nsresult ExecuteScript(void *aScriptObject, void *aScopeObject, nsAString *aRetVal, PRBool *aIsUndefined);
2057 nsresult CompileFunction(void *aTarget, const nsACString *aName, PRUint32 aArgCount,
2058 const char **aArgArray, const nsAString *aBody, const char *aURL, PRInt32 aLineNo,
2059 PRBool aShared, void* *_retval);
2060 nsresult CallFunction(nsISupports *aTarget, void *aScope, void *aHandler, nsIArray *argv,
2061 nsIVariant **_retval);
2062 nsresult BindEventHandler(nsISupports *aTarget, void *aScope, nsIAtom *aName, void *aHandler);
2063 nsresult HoldScriptObject(void *aObject);
2064 nsresult DropScriptObject(void *aObject);
2068 object,
2069 uuid(D4882FFB-E927-408b-96BE-D4391B456FA9)
2071 interface nsIEditor : nsISupports
2073 typedef void *nsIPresShellPtr;
2074 typedef void *nsIContentPtr;
2076 nsresult GetSelection([out] nsISelection *_retval);
2077 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2078 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2079 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2080 nsresult PostCreate();
2081 nsresult PreDestroy();
2082 nsresult GetFlags([out] PRUint32 *_retval);
2083 nsresult SetFlags([in] PRUint32 val);
2084 nsresult GetContentsMIMEType([out] char **_retval);
2085 nsresult SetContentsMIMEType([in] const char *val);
2086 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2087 nsresult GetDocument([out] nsIDOMDocument **_retval);
2088 nsresult GetRootElement([out] nsIDOMElement **_retval);
2089 nsresult GetSelectionController([out] nsISelectionController **_retval);
2090 nsresult DeleteSelection([in] PRInt16 action);
2091 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2092 nsresult GetDocumentModified([out] PRBool *_retval);
2093 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2094 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2095 nsresult ResetModificationCount();
2096 nsresult GetModificationCount([out] PRInt32 *_retval);
2097 nsresult IncrementModificationCount([in] long aModCount);
2098 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2099 nsresult DoTransaction([in] nsITransaction *txn);
2100 nsresult EnableUndo([in] PRBool enable);
2101 nsresult Undo([in] PRUint32 count);
2102 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2103 nsresult Redo([in] PRUint32 count);
2104 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2105 nsresult BeginTransaction();
2106 nsresult EndTransaction();
2107 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2108 nsresult EndPlaceHolderTransaction();
2109 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2110 nsresult SetShouldTxnSetSelection([in] PRBool should);
2111 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2112 nsresult Cut();
2113 nsresult CanCut([out] PRBool *_retval);
2114 nsresult Copy();
2115 nsresult CanCopy([out] PRBool *_retval);
2116 nsresult Paste([in] PRInt32 aSelectionType);
2117 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2118 nsresult SelectAll();
2119 nsresult BeginningOfDocument();
2120 nsresult EndOfDocument();
2121 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2122 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2123 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2124 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2125 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2126 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2127 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2128 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2129 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2130 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2131 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2132 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2133 nsresult DeleteNode([in] nsIDOMNode *child);
2134 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2135 nsresult SwitchTextDirection();
2136 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2137 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2138 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2139 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2140 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2141 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2142 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2143 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2144 nsresult DumpContentTree();
2145 nsresult DebugDumpContent();
2146 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2150 object,
2151 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad)
2153 interface nsIHTMLEditor : nsISupports
2155 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2156 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2157 nsresult RemoveAllDefaultProperties();
2158 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2159 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2160 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2161 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2162 nsresult RemoveAllInlineProperties();
2163 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2164 nsresult IncreaseFontSize();
2165 nsresult DecreaseFontSize();
2166 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2167 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2168 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2169 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2170 nsresult InsertHTML([in] nsAString *aInputString);
2171 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2172 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2173 nsresult InsertHTMLWithContext([in] nsAString *aInputString, [in] nsAString *aContextStr, [in] nsAString *aInfoStr, [in] nsAString *aFlavor, [in] nsIDOMDocument *aSourceDoc, [in] nsIDOMNode *aDestinationNode, [in] PRInt32 aDestinationOffset, [in] PRBool aDeleteSelection);
2174 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2175 nsresult SetDocumentTitle([in] nsAString *aTitle);
2176 nsresult UpdateBaseURL();
2177 nsresult SelectElement([in] nsIDOMElement *aElement);
2178 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2179 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2180 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2181 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2182 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2183 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2184 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2185 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2186 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2187 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2188 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2189 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2190 nsresult RemoveList([in] nsAString *aListType);
2191 nsresult Indent([in] nsAString *aIndent);
2192 nsresult Align([in] nsAString *aAlign);
2193 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2194 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2195 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2196 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2197 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2198 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2199 nsresult SetBackgroundColor([in] nsAString *aColor);
2200 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2201 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2202 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2203 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2204 nsresult SetIsCSSEnabled([in] PRBool prb);
2205 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2206 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2207 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2208 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2209 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2210 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2211 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2212 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2216 * NOTE:
2217 * This is a private Wine interface that is implemented by our implementation
2218 * of nsIURI to store its owner.
2221 object,
2222 uuid(5088272e-900b-11da-c687-000fea57f21a)
2223 /* INTERNAL */
2225 interface nsIWineURI : nsIURI
2227 typedef struct NSContainer NSContainer;
2229 nsresult GetNSContainer(NSContainer **aNSContainer);
2230 nsresult SetNSContainer(NSContainer *aNSContainer);
2231 nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
2232 nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
2233 nsresult GetWineURL(LPCWSTR *aURL);
2234 nsresult SetWineURL(LPCWSTR aURL);