push da91f2e13455bbb7c30984ecc6c6cc3528d45c7b
[wine/hacks.git] / dlls / mshtml / nsiface.idl
blob44b426cdf7c56ea730aa0cd2a883aff0920f3b80
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 a typical idl file. Interfaces in this file are XPCOM
22 * interfaces (NOT MSCOM!), but we generate the header file with WIDL
23 * compatible with XPCOM, usable in C code.
26 cpp_quote("#define GECKO_VERSION \"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),
91 local
93 interface nsISupports
95 nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
96 nsrefcnt AddRef();
97 nsrefcnt Release();
100 /* Currently we don't need a full declaration of these interfaces */
101 typedef nsISupports nsISHistory;
102 typedef nsISupports nsIWidget;
103 typedef nsISupports nsIDOMAbstractView;
104 typedef nsISupports nsIHttpHeaderVisitor;
105 typedef nsISupports nsIDOMBarProp;
106 typedef nsISupports nsIDOMWindowCollection;
107 typedef nsISupports nsIPrompt;
108 typedef nsISupports nsIAuthPrompt;
109 typedef nsISupports nsIDOMNamedNodeMap;
110 typedef nsISupports nsIDOMAttr;
111 typedef nsISupports nsIDOMDocumentType;
112 typedef nsISupports nsIDOMDOMImplementation;
113 typedef nsISupports nsIDOMCDATASection;
114 typedef nsISupports nsIDOMProcessingInstruction;
115 typedef nsISupports nsIDOMEntityReference;
116 typedef nsISupports nsIDOMHTMLFormElement;
117 typedef nsISupports nsIDOMHTMLOptionsCollection;
118 typedef nsISupports nsIDOMHTMLCollection;
119 typedef nsISupports nsIWebProgressListener;
120 typedef nsISupports nsIDOMCSSValue;
121 typedef nsISupports nsIPrintSession;
122 typedef nsISupports nsIControllerCommandTable;
123 typedef nsISupports nsIPrincipal;
124 typedef nsISupports nsIAtom;
125 typedef nsISupports nsISupportsArray;
126 typedef nsISupports nsIContentFilter;
127 typedef nsISupports nsIDOMMediaList;
130 object,
131 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
132 local
133 /* FROZEN */
135 interface nsIServiceManager : nsISupports
137 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
138 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
139 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
140 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
144 object,
145 uuid(00000001-0000-0000-c000-000000000046),
146 local
147 /* FROZEN */
149 interface nsIFactory : nsISupports
151 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
152 nsresult LockFactory(PRBool lock);
156 object,
157 uuid(db242e01-e4d9-11d2-9dde-000064657374),
158 local
159 /* FROZEN */
161 interface nsIObserver : nsISupports
163 nsresult Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar *aData);
167 object,
168 uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae),
169 local
170 /* FROZEN */
172 interface nsIComponentManager : nsISupports
174 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
175 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, nsQIResult result);
176 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
177 nsQIResult result);
178 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
179 nsIIDRef aIID, nsQIResult result);
183 object,
184 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
185 local
186 /* FROZEN */
188 interface nsIMemory : nsISupports
190 void *Alloc(/*size_t*/ int size);
191 void *Realloc(void *_ptr, /*size_t*/ int newSize);
192 void Free(void *_ptr);
193 nsresult HeapMinimize(PRBool immediate);
194 nsresult IsLowMemory(PRBool *_retval);
198 object,
199 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
200 local
201 /* FROZEN */
203 interface nsIWeakReference : nsISupports
205 nsresult QueryReferent(const nsIID *riid, void **result);
209 object,
210 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
211 local
212 /* FROZEN */
214 interface nsISupportsWeakReference : nsISupports
216 nsresult GetWeakReference(nsIWeakReference **_retval);
220 object,
221 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
222 local
223 /* FROZEN */
225 interface nsIInterfaceRequestor : nsISupports
227 nsresult GetInterface(const nsIID *riid, void **result);
231 object,
232 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
233 local
234 /* FROZEN */
236 interface nsISimpleEnumerator : nsISupports
238 nsresult HasMoreElements(PRBool *_retval);
239 nsresult GetNext(nsISupports **_retval);
243 object,
244 uuid(114744d9-c369-456e-b55a-52fe52880d2d),
245 local
246 /* NOT_FROZEN */
248 interface nsIArray : nsISupports
250 nsresult GetLength(PRUint32 *aLength);
251 nsresult QueryElementAt(PRUint32 index, const nsIID *uuid, void **result);
252 nsresult IndexOf(PRUint32 startIndex, nsISupports *element, PRUint32 *_retval);
253 nsresult Enumerate(nsISimpleEnumerator **_retval);
257 object,
258 uuid(af059da0-c85b-40ec-af07-ae4bfdc192cc),
259 local
260 /* NOT_FROZEN */
262 interface nsIMutableArray : nsIArray
264 nsresult AppendElement(nsISupports *element, PRBool weak);
265 nsresult RemoveElementAt(PRUint32 index);
266 nsresult InsertElementAt(nsISupports *element, PRUint32 index, PRBool weak);
267 nsresult Clear();
271 object,
272 uuid(4d12e540-83d7-11d5-90ed-0010a4e73d9a),
273 local
274 /* NOT_FROZEN */
276 interface nsIVariant : nsISupports
278 enum nsDataType {
279 TYPE_INT8,
280 TYPE_INT16,
281 TYPE_INT32,
282 TYPE_INT64,
283 TYPE_UINT8,
284 TYPE_UINT16,
285 TYPE_UINT32,
286 TYPE_UINT64,
287 TYPE_FLOAT,
288 TYPE_DOUBLE,
289 TYPE_BOOL,
290 TYPE_CHAR,
291 TYPE_WCHAR,
292 TYPE_VOID,
293 TYPE_ID,
294 TYPE_DOMSTRING,
295 TYPE_CHAR_STR,
296 TYPE_WCHAR_STR,
297 TYPE_INTERFACE,
298 TYPE_INTERFACE_IS,
299 TYPE_ARRAY,
300 TYPE_STRING_SIZE_IS,
301 TYPE_WSTRING_SIZE_IS,
302 TYPE_UTF8STRING,
303 TYPE_CSTRING,
304 TYPE_ASTRING,
305 TYPE_AMPTY_ARRAY,
306 TYPE_EMPTY
309 nsresult GetDataType(PRUint16 *aDataType);
310 nsresult GetAsInt8(PRUint8 *_retval);
311 nsresult GetAsInt16(PRInt16 *_retval);
312 nsresult GetAsInt32(PRInt32 *_retval);
313 nsresult GetAsInt64(PRInt64 *_retval);
314 nsresult GetAsUint8(PRUint8 *_retval);
315 nsresult GetAsUint16(PRUint16 *_retval);
316 nsresult GetAsUint32(PRUint32 *_retval);
317 nsresult GetAsUint64(PRUint64 *_retval);
318 nsresult GetAsFloat(float *_retval);
319 nsresult GetAsDouble(double *_retval);
320 nsresult GetAsBool(PRBool *_retval);
321 nsresult GetAsChar(char *_retval);
322 nsresult GetAsWChar(PRUnichar *_retval);
323 nsresult GetAsID(nsID *retval);
324 nsresult GetAsAString(nsAString *_retval);
325 nsresult GetAsDOMString(nsAString *_retval);
326 nsresult GetAsACString(nsACString *_retval);
327 nsresult GetAsAUTF8String(nsACString *_retval);
328 nsresult GetAsString(char **_retval);
329 nsresult GetAsWString(PRUnichar **_retval);
330 nsresult GetAsISupports(nsISupports **_retval);
331 nsresult GetAsInterface(nsIID * *iid, void **iface);
332 nsresult GetAsArray(PRUint16 *type, nsIID *iid, PRUint32 *count, void **ptr);
333 nsresult GetAsStringWithSize(PRUint32 *size, char **str);
334 nsresult GetAsWStringWithSize(PRUint32 *size, PRUnichar **str);
338 object,
339 uuid(5586a590-8c82-11d5-90f3-0010a4e73d9a),
340 local
341 /* NOT_FROZEN */
343 interface nsIWritableVariant : nsIVariant
345 nsresult GetWritable(PRBool *aWritable);
346 nsresult SetWritable(PRBool aWritable);
347 nsresult SetAsInt8(PRUint8 aValue);
348 nsresult SetAsInt16(PRInt16 aValue);
349 nsresult SetAsInt32(PRInt32 aValue);
350 nsresult SetAsInt64(PRInt64 aValue);
351 nsresult SetAsUint8(PRUint8 aValue);
352 nsresult SetAsUint16(PRUint16 aValue);
353 nsresult SetAsUint32(PRUint32 aValue);
354 nsresult SetAsUint64(PRUint64 aValue);
355 nsresult SetAsFloat(float aValue);
356 nsresult SetAsDouble(double aValue);
357 nsresult SetAsBool(PRBool aValue);
358 nsresult SetAsChar(char aValue);
359 nsresult SetAsWChar(PRUnichar aValue);
360 nsresult SetAsID(const nsID *aValue);
361 nsresult SetAsAString(const nsAString *aValue);
362 nsresult SetAsDOMString(const nsAString *aValue);
363 nsresult SetAsACString(const nsACString *aValue);
364 nsresult SetAsAUTF8String(const nsACString *aValue);
365 nsresult SetAsString(const char *aValue);
366 nsresult SetAsWString(const PRUnichar *aValue);
367 nsresult SetAsISupports(nsISupports *aValue);
368 nsresult SetAsInterface(const nsIID *iid, void *iface);
369 nsresult SetAsArray(PRUint16 type, const nsIID *iid, PRUint32 count, void *ptr);
370 nsresult SetAsStringWithSize(PRUint32 size, const char *str);
371 nsresult SetAsWStringWithSize(PRUint32 size, const PRUnichar *str);
372 nsresult SetAsVoid();
373 nsresult SetAsEmpty();
374 nsresult SetAsEmptyArray();
375 nsresult SetFromVariant(nsIVariant *aValue);
379 object,
380 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
381 local
382 /* FROZEN */
384 interface nsIInputStream : nsISupports
386 nsresult Close();
387 nsresult Available(PRUint32 *_retval);
388 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
389 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
390 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
391 PRUint32 aCount, PRUint32 *aWriteCount),
392 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
393 nsresult IsNonBlocking(PRBool *_retval);
397 object,
398 uuid(450cd2d4-f0fd-424d-b365-b1251f80fd53),
399 local
400 /* NOT_FROZEN */
402 interface nsIStringInputStream : nsIInputStream
404 nsresult SetData(const char *data, PRInt32 dataLen);
405 nsresult AdoptData(char *data, PRInt32 dataLen);
406 nsresult ShareData(const char *data, PRInt32 dataLen);
410 object,
411 uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40),
412 local
413 /* FROZEN */
415 interface nsIURI : nsISupports
417 nsresult GetSpec(nsACString *aSpec);
418 nsresult SetSpec(const nsACString *aSpec);
419 nsresult GetPrePath(nsACString *aPrePath);
420 nsresult GetScheme(nsACString *aScheme);
421 nsresult SetScheme(const nsACString *aScheme);
422 nsresult GetUserPass(nsACString *aUserPass);
423 nsresult SetUserPass(const nsACString *aUserPass);
424 nsresult GetUsername(nsACString *aUsername);
425 nsresult SetUsername(const nsACString *aUsername);
426 nsresult GetPassword(nsACString *aPassword);
427 nsresult SetPassword(const nsACString *aPassword);
428 nsresult GetHostPort(nsACString *aHostPort);
429 nsresult SetHostPort(const nsACString *aHostPort);
430 nsresult GetHost(nsACString *aHost);
431 nsresult SetHost(const nsACString *aHost);
432 nsresult GetPort(PRInt32 *aPort);
433 nsresult SetPort(PRInt32 aPort);
434 nsresult GetPath(nsACString *aPath);
435 nsresult SetPath(const nsACString *aPath);
436 nsresult Equals(nsIURI *other, PRBool *_retval);
437 nsresult SchemeIs(const char *scheme, PRBool *_retval);
438 nsresult Clone(nsIURI **_retval);
439 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
440 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
441 nsresult GetAsciiHost(nsACString *aAsciiHost);
442 nsresult GetOriginCharset(nsACString *aOriginCharset);
446 object,
447 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
448 local
449 /* FROZEN */
451 interface nsIRequest : nsISupports
453 nsresult GetName(nsACString *aName);
454 nsresult IsPending(PRBool *_retval);
455 nsresult GetStatus(nsresult *aStatus);
456 nsresult Cancel(nsresult aStatus);
457 nsresult Suspend();
458 nsresult Resume();
459 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
460 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
461 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
462 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
466 object,
467 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
468 local
469 /* FROZEN */
471 interface nsIRequestObserver : nsISupports
473 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
474 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
478 object,
479 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
480 local
481 /* FROZEN */
483 interface nsIStreamListener : nsIRequestObserver
485 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
486 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
490 object,
491 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
492 local
493 /* FROZEN */
495 interface nsILoadGroup : nsIRequest
497 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
498 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
499 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
500 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
501 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
502 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
503 nsresult GetRequests(nsISimpleEnumerator **aRequests);
504 nsresult GetActiveCount(PRUint32 *aActiveCount);
505 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
506 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
510 object,
511 uuid(c63a055a-a676-4e71-bf3c-6cfa11082018),
512 local
513 /* FROZEN */
515 interface nsIChannel : nsIRequest
517 nsresult GetOriginalURI(nsIURI **aOriginalURI);
518 nsresult SetOriginalURI(nsIURI *aOriginalURI);
519 nsresult GetURI(nsIURI **aURI);
520 nsresult GetOwner(nsISupports **aOwner);
521 nsresult SetOwner(nsISupports *aOwner);
522 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
523 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
524 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
525 nsresult GetContentType(nsACString *aContentType);
526 nsresult SetContentType(const nsACString *aContentType);
527 nsresult GetContentCharset(nsACString *aContentCharset);
528 nsresult SetContentCharset(const nsACString *aContentCharset);
529 nsresult GetContentLength(PRInt32 *aContentLength);
530 nsresult SetContentLength(PRInt32 aContentLength);
531 nsresult Open(nsIInputStream **_retval);
532 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
536 object,
537 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
538 local
539 /* FROZEN */
541 interface nsIHttpChannel : nsIChannel
543 nsresult GetRequestMethod(nsACString *aRequestMethod);
544 nsresult SetRequestMethod(const nsACString *aRequestMethod);
545 nsresult GetReferrer(nsIURI **aReferrer);
546 nsresult SetReferrer(nsIURI *aReferrer);
547 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
548 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
549 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
550 nsresult GetAllowPipelining(PRBool *aAllowPipelining);
551 nsresult SetAllowPipelining(PRBool aAllowPipelining);
552 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
553 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
554 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
555 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
556 nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
557 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
558 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
559 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
560 nsresult IsNoStoreResponse(PRBool *_retval);
561 nsresult IsNoCacheResponse(PRBool *_retval);
565 object,
566 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
567 local
568 /* FROZEN */
570 interface nsIUploadChannel : nsISupports
572 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
573 PRInt32 aContentLength);
574 nsresult GetUploadStream(nsIInputStream **aUploadStream);
578 object,
579 uuid(a6cf90c1-15b3-11d2-932e-00805f8add32),
580 local
581 /* FROZEN */
583 interface nsIDOMCSSRule : nsISupports
585 nsresult GetType(PRUint16 *aType);
586 nsresult GetCssText(nsAString *aCssText);
587 nsresult SetCssText(const nsAString *aCssText);
588 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
589 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
593 object,
594 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
595 local
596 /* FROZEN */
598 interface nsIDOMCSSStyleDeclaration : nsISupports
600 nsresult GetCssText(nsAString *aCssText);
601 nsresult SetCssText(const nsAString *aCssText);
602 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
603 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
604 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
605 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
606 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
607 const nsAString *priority);
608 nsresult GetLength(PRUint32 *aLength);
609 nsresult Item(PRUint32 index, nsAString *_retval);
610 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
614 object,
615 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
616 local
617 /* FROZEN */
619 interface nsIDOMCSSRuleList : nsISupports
621 nsresult GetLength(PRUint32 *aLength);
622 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
626 object,
627 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
628 local
629 /* FROZEN */
631 interface nsIDOMStyleSheet : nsISupports
633 nsresult GetType(nsAString *aType);
634 nsresult GetDisabled(PRBool *aDisabled);
635 nsresult SetDisabled(PRBool aDisabled);
636 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
637 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
638 nsresult GetHref(nsAString *aHref);
639 nsresult GetTitle(nsAString *aTitle);
640 nsresult GetMedia(nsIDOMMediaList **aMedia);
644 object,
645 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
646 local
647 /* FROZEN */
649 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
651 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
652 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
653 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
654 nsresult DeleteRule(PRUint32 index);
658 object,
659 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
660 local
661 /* FROZEN */
663 interface nsIDOMStyleSheetList : nsISupports
665 nsresult GetLength(PRUint32 *aLength);
666 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
670 object,
671 uuid(a6cf907d-15b3-11d2-932e-00805f8add32),
672 local
673 /* FROZEN */
675 interface nsIDOMNodeList : nsISupports
677 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
678 nsresult GetLength(PRUint32 *aLength);
682 object,
683 uuid(a6cf907c-15b3-11d2-932e-00805f8add32),
684 local
685 /* FROZEN */
687 interface nsIDOMNode : nsISupports
689 enum NSNODETYPE {
690 ELEMENT_NODE = 1,
691 ATTRIBUTE_NODE = 2,
692 TEXT_NODE = 3,
693 CDATA_SELECTION_NODE = 4,
694 ENTITY_REFERENCE_NODE = 5,
695 ENTITY_NODE = 6,
696 PROCESSING_INSTRUCTION_NODE = 7,
697 COMMENT_NODE = 8,
698 DOCUMENT_NODE = 9,
699 DOCUMENT_TYPE_NODE = 10,
700 DOCUMENT_FRAGMENT_NODE = 11,
701 NOTATION_NODE = 12
704 nsresult GetNodeName(nsAString *aNodeName);
705 nsresult GetNodeValue(nsAString *aNodeValue);
706 nsresult SetNodeValue(const nsAString *aNodeValue);
707 nsresult GetNodeType(PRUint16 *aNodeType);
708 nsresult GetParentNode(nsIDOMNode **aParentNode);
709 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
710 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
711 nsresult GetLastChild(nsIDOMNode **aLastChild);
712 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
713 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
714 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
715 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
716 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
717 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
718 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
719 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
720 nsresult HasChildNodes(PRBool *_retval);
721 nsresult CloneNode(PRBool deep, nsIDOMNode **_retval);
722 nsresult Normalize();
723 nsresult IsSupported(const nsAString *feature, const nsAString *version, PRBool *_retval);
724 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
725 nsresult GetPrefix(nsAString *aPrefix);
726 nsresult SetPrefix(const nsAString *aPrefix);
727 nsresult GetLocalName(nsAString *aLocalName);
728 nsresult HasAttributes(PRBool *_retval);
732 object,
733 uuid(a6cf9078-15b3-11d2-932e-00805f8add32),
734 local
735 /* FROZEN */
737 interface nsIDOMElement : nsIDOMNode
739 nsresult GetTagName(nsAString *aTagName);
740 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
741 nsresult SetAttribute(const nsAString *name, const nsAString *value);
742 nsresult RemoveAttribute(const nsAString *name);
743 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
744 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
745 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
746 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
747 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
748 nsAString *_retval);
749 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
750 const nsAString *value);
751 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
752 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName,
753 nsIDOMAttr **_retval);
754 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
755 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
756 nsIDOMNodeList **_retval);
757 nsresult HasAttribute(const nsAString *name, PRBool *_retval);
758 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName,
759 PRBool *_retval);
763 object,
764 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
765 local
766 /* FROZEN */
768 interface nsIDOMElementCSSInlineStyle : nsISupports
770 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
773 cpp_quote("#undef GetClassName")
776 object,
777 uuid(a6cf9085-15b3-11d2-932e-00805f8add32),
778 local
779 /* FROZEN */
781 interface nsIDOMHTMLElement : nsIDOMElement
783 nsresult GetId(nsAString *aId);
784 nsresult SetId(const nsAString *aId);
785 nsresult GetTitle(nsAString *aTitle);
786 nsresult SetTitle(const nsAString *aTitle);
787 nsresult GetLang(nsAString *aLang);
788 nsresult SetLang(const nsAString *aLang);
789 nsresult GetDir(nsAString *aDir);
790 nsresult SetDir(const nsAString *aDir);
791 nsresult GetClassName(nsAString *aClassName);
792 nsresult SetClassName(const nsAString *aClassName);
796 object,
797 uuid(da83b2ec-8264-4410-8496-ada3acd2ae42),
798 local
799 /* NOT_FROZEN */
801 interface nsIDOMNSHTMLElement : nsISupports
803 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
804 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
805 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
806 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
807 nsresult GetOffsetParent(nsIDOMElement **aOffsetParent);
808 nsresult GetInnerHTML(nsAString *aInnerHTML);
809 nsresult SetInnerHTML(const nsAString *aInnerHTML);
810 nsresult GetScrollTop(PRInt32 *aScrollTop);
811 nsresult SetScrollTop(PRInt32 aScrollTop);
812 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
813 nsresult SetScrollLeft(PRInt32 aScrollLeft);
814 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
815 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
816 nsresult GetClientHeight(PRInt32 *aClientHeight);
817 nsresult GetClientWidth(PRInt32 *aClientWidth);
818 nsresult GetTabIndex(PRInt32 *aTabIndex);
819 nsresult SetTabIndex(PRInt32 aTabIndex);
820 nsresult blur();
821 nsresult focus();
822 nsresult ScrollIntoView(PRBool top);
826 object,
827 uuid(a6cf9072-15b3-11d2-932e-00805f8add32),
828 local
829 /* FROZEN */
831 interface nsIDOMCharacterData : nsIDOMNode
833 nsresult GetData(nsAString *aData);
834 nsresult SetData(const nsAString *aData);
835 nsresult GetLength(PRUint32 *aLength);
836 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
837 nsresult AppendData(const nsAString *arg);
838 nsresult InsertData(PRUint32 offset, const nsAString *arg);
839 nsresult DeleteData(PRUint32 offset, PRUint32 count);
840 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
844 object,
845 uuid(a6cf9082-15b3-11d2-932e-00805f8add32),
846 local
847 /* FROZEN */
849 interface nsIDOMText : nsIDOMCharacterData
851 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
855 object,
856 uuid(a6cf9073-15b3-11d2-932e-00805f8add32),
857 local
858 /* FROZEN */
860 interface nsIDOMComment : nsIDOMCharacterData
865 object,
866 uuid(a6cf9076-15b3-11d2-932e-00805f8add32),
867 local
868 /* FROZEN */
870 interface nsIDOMDocumentFragment : nsIDOMNode
875 object,
876 uuid(a6cf9075-15b3-11d2-932e-00805f8add32),
877 local
878 /* FROZEN */
880 interface nsIDOMDocument : nsIDOMNode
882 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
883 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
884 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
885 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
886 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
887 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
888 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
889 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
890 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data,
891 nsIDOMProcessingInstruction **_retval);
892 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
893 nsresult CreateEntityReference(const nsAString *name, nsIDOMEntityReference **_retval);
894 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
895 nsresult ImportNode(nsIDOMNode *importedNode, PRBool deep, nsIDOMNode **_retval);
896 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
897 nsIDOMElement **_retval);
898 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName,
899 nsIDOMAttr **_retval);
900 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName,
901 nsIDOMNodeList **_retval);
902 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
906 object,
907 uuid(a6cf9084-15b3-11d2-932e-00805f8add32),
908 local
909 /* FROZEN */
911 interface nsIDOMHTMLDocument : nsIDOMDocument
913 nsresult GetTitle(nsAString *aTitle);
914 nsresult SetTitle(const nsAString *aTitle);
915 nsresult GetReferrer(nsAString *aReferrer);
916 nsresult GetDomain(nsAString *aDomain);
917 nsresult GetURL(nsAString *aURL);
918 nsresult GetBody(nsIDOMHTMLElement **aBody);
919 nsresult SetBody(nsIDOMHTMLElement *aBody);
920 nsresult GetImages(nsIDOMHTMLCollection **aImages);
921 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
922 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
923 nsresult GetForms(nsIDOMHTMLCollection **aForms);
924 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
925 nsresult GetCookie(nsAString *aCookie);
926 nsresult SetCookie(const nsAString *aCookie);
927 nsresult Open();
928 nsresult Close();
929 nsresult Write(const nsAString *text);
930 nsresult Writeln(const nsAString *text);
931 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
935 object,
936 uuid(79beb289-3644-4b54-9432-9fb993945629),
937 local
938 /* NOT_FROZEN */
940 interface nsIDOMNSHTMLDocument : nsISupports
942 nsresult GetWidth(PRInt32 *aWidth);
943 nsresult GetHeight(PRInt32 *aHeight);
944 nsresult GetAlinkColor(nsAString *aAlinkColor);
945 nsresult SetAlinkColor(const nsAString *aAlinkColor);
946 nsresult GetLinkColor(nsAString *aLinkColor);
947 nsresult SetLinkColor(const nsAString *aLinkColor);
948 nsresult GetVlinkColor(nsAString *aVlinkColor);
949 nsresult SetVlinkColor(const nsAString *aVlinkColor);
950 nsresult GetBgColor(nsAString *aBgColor);
951 nsresult SetBgColor(const nsAString *aBgColor);
952 nsresult GetFgColor(nsAString *aFgColor);
953 nsresult SetFgColor(const nsAString *aFgColor);
954 nsresult GetDomain(nsAString *aDomain);
955 nsresult SetDomain(const nsAString *aDomain);
956 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
957 nsresult GetSelection(nsAString *_retval);
958 nsresult Open(nsIDOMDocument **_retval);
959 nsresult Write();
960 nsresult Writeln();
961 nsresult Clear();
962 nsresult CaptureEvents(PRInt32 eventFlags);
963 nsresult ReleaseEvents(PRInt32 eventFlags);
964 nsresult RouteEvent(nsIDOMEvent *evt);
965 nsresult GetCompatMode(nsAString *aCompatMode);
966 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
967 nsresult GetDesignMode(nsAString *aDesignMode);
968 nsresult SetDesignMode(const nsAString *aDesignMode);
969 nsresult ExecCommand(const nsAString *commandID, PRBool doShowUI, const nsAString *value, PRBool *_retval);
970 nsresult ExecCommandShowHelp(const nsAString *commandID, PRBool *_retval);
971 nsresult QueryCommandEnabled(const nsAString *commandID, PRBool *_retval);
972 nsresult QueryCommandIndeterm(const nsAString *commandID, PRBool *_retval);
973 nsresult QueryCommandState(const nsAString *commandID, PRBool *_retval);
974 nsresult QueryCommandSupported(const nsAString *commandID, PRBool *_retval);
975 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
976 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
980 object,
981 uuid(3d9f4973-dd2e-48f5-b5f7-2634e09eadd9),
982 local
983 /* FROZEN */
985 interface nsIDOMDocumentStyle : nsISupports
987 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
991 object,
992 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
993 local
994 /* FROZEN */
996 interface nsIDOMRange : nsISupports
998 enum {
999 NS_START_TO_START,
1000 NS_START_TO_END,
1001 NS_END_TO_END,
1002 NS_END_TO_START
1005 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1006 nsresult GetStartOffset(PRInt32 *aStartOffset);
1007 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1008 nsresult GetEndOffset(PRInt32 *aEndOffset);
1009 nsresult GetCollapsed(PRBool *aCollapsed);
1010 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1011 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1012 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1013 nsresult SetStartBefore(nsIDOMNode *refNode);
1014 nsresult SetStartAfter(nsIDOMNode *refNode);
1015 nsresult SetEndBefore(nsIDOMNode *refNode);
1016 nsresult SetEndAfter(nsIDOMNode *refNode);
1017 nsresult Collapse(PRBool toStart);
1018 nsresult SelectNode(nsIDOMNode *refNode);
1019 nsresult SelectNodeContents(nsIDOMNode *refNode);
1020 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1021 nsresult DeleteContents();
1022 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1023 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1024 nsresult InsertNode(nsIDOMNode *newNode);
1025 nsresult SurroundContents(nsIDOMNode *newParent);
1026 nsresult CloneRange(nsIDOMRange **_retval);
1027 nsresult ToString(nsAString *_retval);
1028 nsresult Detach();
1032 object,
1033 uuid(a6cf90f2-15b3-11d2-932e-00805f8add32),
1034 local
1036 interface nsIDOMNSRange : nsISupports
1038 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1039 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRBool *_retval);
1040 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1041 nsresult IntersectsNode([in] nsIDOMNode *n, [out] PRBool *_retval);
1042 nsresult CompareNode([in] nsIDOMNode *n, [out] PRUint16 *_retval);
1043 nsresult nSDetach();
1048 object,
1049 uuid(7b9badc6-c9bc-447a-8670-dbd195aed24b),
1050 local
1051 /* FROZEN */
1053 interface nsIDOMDocumentRange : nsISupports
1055 nsresult CreateRange(nsIDOMRange **_retval);
1059 object,
1060 uuid(b2c7ed59-8634-4352-9e37-5484c8b6e4e1),
1061 local
1062 /* FROZEN */
1064 interface nsISelection : nsISupports
1066 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1067 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1068 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1069 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1070 nsresult GetIsCollapsed(PRBool *aIsCollapsed);
1071 nsresult GetRangeCount(PRInt32 *aRangeCount);
1072 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1073 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1074 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1075 nsresult CollapseToStart();
1076 nsresult CollapseToEnd();
1077 nsresult ContainsNode(nsIDOMNode *node, PRBool entirelyContained, PRBool *_retval);
1078 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1079 nsresult AddRange(nsIDOMRange *range);
1080 nsresult RemoveRange(nsIDOMRange *range);
1081 nsresult RemoveAllRanges();
1082 nsresult DeleteFromDocument();
1083 nsresult SelectionLanguageChange(PRBool langRTL);
1084 nsresult ToString(PRUnichar **_retval);
1088 object,
1089 uuid(a6cf906b-15b3-11d2-932e-00805f8add32),
1090 local
1091 /* FROZEN */
1093 interface nsIDOMWindow : nsISupports
1095 nsresult GetDocument(nsIDOMDocument **aDocument);
1096 nsresult GetParent(nsIDOMWindow **aParent);
1097 nsresult GetTop(nsIDOMWindow **aTop);
1098 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1099 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1100 nsresult GetName(nsAString *aName);
1101 nsresult SetName(const nsAString *aName);
1102 nsresult GetTextZoom(float *aTextZoom);
1103 nsresult SetTextZoom(float aTextZoom);
1104 nsresult GetScrollX(PRInt32 *aScrollX);
1105 nsresult GetScrollY(PRInt32 *aScrollY);
1106 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1107 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1108 nsresult GetSelection(nsISelection **_retval);
1109 nsresult ScrollByLines(PRInt32 numLines);
1110 nsresult ScrollByPages(PRInt32 numPages);
1111 nsresult SizeToContent();
1115 object,
1116 uuid(a6cf908e-15b3-11d2-932e-00805f8add32),
1117 local
1118 /* FROZEN */
1120 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1122 nsresult GetALink(nsAString *aALink);
1123 nsresult SetALink(const nsAString *aALink);
1124 nsresult GetBackground(nsAString *aBackground);
1125 nsresult SetBackground(const nsAString *aBackground);
1126 nsresult GetBgColor(nsAString *aBgColor);
1127 nsresult SetBgColor(const nsAString *aBgColor);
1128 nsresult GetLink(nsAString *aLink);
1129 nsresult SetLink(const nsAString *aLink);
1130 nsresult GetText(nsAString *aText);
1131 nsresult SetText(const nsAString *aText);
1132 nsresult GetVLink(nsAString *aVLink);
1133 nsresult SetVLink(const nsAString *aVLink);
1137 object,
1138 uuid(a6cf9093-15b3-11d2-932e-00805f8add32),
1139 local
1140 /* FROZEN */
1142 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1144 nsresult GetDefaultValue(nsAString *aDefaultValue);
1145 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1146 nsresult GetDefaultChecked(PRBool *aDefaultChecked);
1147 nsresult SetDefaultChecked(PRBool aDefaultChecked);
1148 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1149 nsresult GetAccept(nsAString *aAccept);
1150 nsresult SetAccept(const nsAString *aAccept);
1151 nsresult GetAccessKey(nsAString *aAccessKey);
1152 nsresult SetAccessKey(const nsAString *aAccessKey);
1153 nsresult GetAlign(nsAString *aAlign);
1154 nsresult SetAlign(const nsAString *aAlign);
1155 nsresult GetAlt(nsAString *aAlt);
1156 nsresult SetAlt(const nsAString *aAlt);
1157 nsresult GetChecked(PRBool *aChecked);
1158 nsresult SetChecked(PRBool aChecked);
1159 nsresult GetDisabled(PRBool *aDisabled);
1160 nsresult SetDisabled(PRBool aDisabled);
1161 nsresult GetMaxLength(PRInt32 *aMaxLength);
1162 nsresult SetMaxLength(PRInt32 aMaxLength);
1163 nsresult GetName(nsAString *aName);
1164 nsresult SetName(const nsAString *aName);
1165 nsresult GetReadOnly(PRBool *aReadOnly);
1166 nsresult SetReadOnly(PRBool aReadOnly);
1167 nsresult GetSize(PRUint32 *aSize);
1168 nsresult SetSize(PRUint32 aSize);
1169 nsresult GetSrc(nsAString *aSrc);
1170 nsresult SetSrc(const nsAString *aSrc);
1171 nsresult GetTabIndex(PRInt32 *aTabIndex);
1172 nsresult SetTabIndex(PRInt32 aTabIndex);
1173 nsresult GetType(nsAString *aType);
1174 nsresult SetType(const nsAString *aType);
1175 nsresult GetUseMap(nsAString *aUseMap);
1176 nsresult SetUseMap(const nsAString *aUseMap);
1177 nsresult GetValue(nsAString *aValue);
1178 nsresult SetValue(const nsAString *aValue);
1179 nsresult Blur();
1180 nsresult Focus();
1181 nsresult Select();
1182 nsresult Click();
1186 object,
1187 uuid(a6cf9092-15b3-11d2-932e-00805f8add32),
1188 local
1189 /* FROZEN */
1191 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1193 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1194 nsresult GetDefaultSelected(PRBool *aDefaultSelected);
1195 nsresult SetDefaultSelected(PRBool aDefaultSelected);
1196 nsresult GetText(nsAString *aText);
1197 nsresult GetIndex(PRInt32 *aIndex);
1198 nsresult GetDisabled(PRBool *aDisabled);
1199 nsresult SetDisabled(PRBool aDisabled);
1200 nsresult GetLabel(nsAString *aLabel);
1201 nsresult SetLabel(const nsAString *aLabel);
1202 nsresult GetSelected(PRBool *aSelected);
1203 nsresult SetSelected(PRBool aSelected);
1204 nsresult GetValue(nsAString *aValue);
1205 nsresult SetValue(const nsAString *aValue);
1209 object,
1210 uuid(a6cf9090-15b3-11d2-932e-00805f8add32),
1211 local
1212 /* FROZEN */
1214 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1216 nsresult GetType(nsAString *aType);
1217 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1218 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1219 nsresult GetValue(nsAString *aValue);
1220 nsresult SetValue(const nsAString *aValue);
1221 nsresult GetLength(PRUint32 *aLength);
1222 nsresult SetLength(PRUint32 aLength);
1223 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1224 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1225 nsresult GetDisabled(PRBool *aDisabled);
1226 nsresult SetDisabled(PRBool aDisabled);
1227 nsresult GetMultiple(PRBool *aMultiple);
1228 nsresult SetMultiple(PRBool aMultiple);
1229 nsresult GetName(nsAString *aName);
1230 nsresult SetName(const nsAString *aName);
1231 nsresult GetSize(PRInt32 *aSize);
1232 nsresult SetSize(PRInt32 aSize);
1233 nsresult GetTabIndex(PRInt32 *aTabIndex);
1234 nsresult SetTabIndex(PRInt32 aTabIndex);
1235 nsresult Add(nsIDOMHTMLElement *element, nsIDOMHTMLElement *before);
1236 nsresult Remove(PRInt32 index);
1237 nsresult Blur();
1238 nsresult Focus();
1242 object,
1243 uuid(a6cf9094-15b3-11d2-932e-00805f8add32),
1244 local
1245 /* FROZEN */
1247 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1249 nsresult GetDefaultValue(nsAString *aDefaultValue);
1250 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1251 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1252 nsresult GetAccessKey(nsAString *aAccessKey);
1253 nsresult SetAccessKey(const nsAString *aAccessKey);
1254 nsresult GetCols(PRInt32 *aCols);
1255 nsresult SetCols(PRInt32 aCols);
1256 nsresult GetDisabled(PRBool *aDisabled);
1257 nsresult SetDisabled(PRBool aDisabled);
1258 nsresult GetName(nsAString *aName);
1259 nsresult SetName(const nsAString *aName);
1260 nsresult GetReadOnly(PRBool *aReadOnly);
1261 nsresult SetReadOnly(PRBool aReadOnly);
1262 nsresult GetRows(PRInt32 *aRows);
1263 nsresult SetRows(PRInt32 aRows);
1264 nsresult GetTabIndex(PRInt32 *aTabIndex);
1265 nsresult SetTabIndex(PRInt32 aTabIndex);
1266 nsresult GetType(nsAString *aType);
1267 nsresult GetValue(nsAString *aValue);
1268 nsresult SetValue(const nsAString *aValue);
1269 nsresult Blur();
1270 nsresult Focus();
1271 nsresult Select();
1275 object,
1276 uuid(a6cf90b1-15b3-11d2-932e-00805f8add32),
1277 local
1278 /* FROZEN */
1280 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1282 nsresult GetText(nsAString *aText);
1283 nsresult SetText(const nsAString *aText);
1284 nsresult GetHtmlFor(nsAString *aHtmlFor);
1285 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1286 nsresult GetEvent(nsAString *aEvent);
1287 nsresult SetEvent(const nsAString *aEvent);
1288 nsresult GetCharset(nsAString *aCharset);
1289 nsresult SetCharset(const nsAString *aCharset);
1290 nsresult GetDefer(PRBool *aDefer);
1291 nsresult SetDefer(PRBool aDefer);
1292 nsresult GetSrc(nsAString *aSrc);
1293 nsresult SetSrc(const nsAString *aSrc);
1294 nsresult GetType(nsAString *aType);
1295 nsresult SetType(const nsAString *aType);
1299 object,
1300 uuid(a6cf90ab-15b3-11d2-932e-00805f8add32),
1301 local
1303 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1305 nsresult GetName(nsAString *aName);
1306 nsresult SetName(const nsAString *aName);
1307 nsresult GetAlign(nsAString *aAlign);
1308 nsresult SetAlign(const nsAString *aAlign);
1309 nsresult GetAlt(nsAString *aAlt);
1310 nsresult SetAlt(const nsAString *aAlt);
1311 nsresult GetBorder(nsAString *aBorder);
1312 nsresult SetBorder(const nsAString *aBorder);
1313 nsresult GetHeight(PRInt32 *aHeight);
1314 nsresult SetHeight(PRInt32 aHeight);
1315 nsresult GetHspace(PRInt32 *aHspace);
1316 nsresult SetHspace(PRInt32 aHspace);
1317 nsresult GetIsMap(PRBool *aIsMap);
1318 nsresult SetIsMap(PRBool aIsMap);
1319 nsresult GetLongDesc(nsAString *aLongDesc);
1320 nsresult SetLongDesc(const nsAString *aLongDesc);
1321 nsresult GetSrc(nsAString *aSrc);
1322 nsresult SetSrc(const nsAString *aSrc);
1323 nsresult GetUseMap(nsAString *aUseMap);
1324 nsresult SetUseMap(const nsAString *aUseMap);
1325 nsresult GetVspace(PRInt32 *aVspace);
1326 nsresult SetVspace(PRInt32 aVspace);
1327 nsresult GetWidth(PRInt32 *aWidth);
1328 nsresult SetWidth(PRInt32 aWidth);
1332 object,
1333 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
1334 local
1335 /* FROZEN */
1337 interface nsIURIContentListener : nsISupports
1339 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1340 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1341 nsIStreamListener **aContentHandler, PRBool *_retval);
1342 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1343 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1344 char **aDesiredContentType, PRBool *_retval);
1345 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1346 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1347 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1348 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1352 object,
1353 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1354 local
1355 /* FROZEN */
1357 interface nsITooltipListener : nsISupports
1359 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1360 nsresult OnHideTooltip();
1364 object,
1365 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c),
1366 local
1367 /* FROZEN */
1369 interface nsIWebBrowser : nsISupports
1371 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1372 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1373 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1374 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1375 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1376 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1377 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1380 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
1381 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1384 object,
1385 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1386 local
1387 /* FROZEN */
1389 interface nsIWebBrowserSetup : nsISupports
1391 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1394 typedef void* nativeWindow;
1397 object,
1398 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1399 local
1400 /* NOT_FROZEN */
1402 interface nsIBaseWindow : nsISupports
1404 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1405 PRInt32 y, PRInt32 cx, PRInt32 cy);
1406 nsresult Create();
1407 nsresult Destroy();
1408 nsresult SetPosition(PRInt32 x, PRInt32 y);
1409 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1410 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1411 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1412 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1413 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1414 nsresult Repaint(PRBool force);
1415 nsresult GetParentWidget(nsIWidget **aParentWidget);
1416 nsresult SetParentWidget(nsIWidget *aParentWidget);
1417 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1418 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1419 nsresult GetVisibility(PRBool *aVisibility);
1420 nsresult SetVisibility(PRBool aVisibility);
1421 nsresult GetEnabled(PRBool *aEnabled);
1422 nsresult SetEnabled(PRBool aEnabled);
1423 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1424 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1425 nsresult GetMainWidget(nsIWidget **aMainWidget);
1426 nsresult SetFocus();
1427 nsresult GetTitle(PRUnichar **aTitle);
1428 nsresult SetTitle(const PRUnichar *aTitle);
1431 cpp_quote("#define LOAD_FLAGS_NONE 0")
1434 object,
1435 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1436 local
1437 /* NOT_FROZEN */
1439 interface nsIWebNavigation : nsISupports
1441 nsresult GetCanGoBack(PRBool *aCanGoBack);
1442 nsresult GetCanGoForward(PRBool *aCanGoForward);
1443 nsresult GoBack();
1444 nsresult GoForward();
1445 nsresult GotoIndex(PRInt32 index);
1446 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1447 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1448 nsresult Reload(PRUint32 aReloadFlags);
1449 nsresult Stop(PRUint32 aStopFlags);
1450 nsresult GetDocument(nsIDOMDocument **aDocument);
1451 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1452 nsresult GetReferringURI(nsIURI **aReferringURI);
1453 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1454 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1458 object,
1459 uuid(f1094df6-ce0e-42c9-9847-2f663172c38d),
1460 local
1461 /* NOT_FROZEN */
1463 interface nsIPrintSettings : nsISupports
1465 typedef struct { char dummy; } nsMargin;
1467 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1468 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1469 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1470 nsresult GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight);
1471 nsresult Clone(nsIPrintSettings **_retval);
1472 nsresult Assign(nsIPrintSettings *aPS);
1473 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1474 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1475 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1476 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1477 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1478 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1479 nsresult GetMarginTop(double *aMarginTop);
1480 nsresult SetMarginTop(double aMarginTop);
1481 nsresult GetMarginLeft(double *aMarginLeft);
1482 nsresult SetMarginLeft(double aMarginLeft);
1483 nsresult GetMarginBottom(double *aMarginBottom);
1484 nsresult SetMarginBottom(double aMarginBottom);
1485 nsresult GetMarginRight(double *aMarginRight);
1486 nsresult SetMarginRight(double aMarginRight);
1487 nsresult GetScaling(double *aScaling);
1488 nsresult SetScaling(double aScaling);
1489 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1490 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1491 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1492 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1493 nsresult GetPrintRange(PRInt16 *aPrintRange);
1494 nsresult SetPrintRange(PRInt16 aPrintRange);
1495 nsresult GetTitle(PRUnichar **aTitle);
1496 nsresult SetTitle(const PRUnichar *aTitle);
1497 nsresult GetDocURL(PRUnichar **aDocURL);
1498 nsresult SetDocURL(const PRUnichar *aDocURL);
1499 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1500 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1501 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1502 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1503 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1504 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1505 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1506 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1507 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1508 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1509 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1510 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1511 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1512 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1513 nsresult GetIsCancelled(PRBool *aIsCancelled);
1514 nsresult SetIsCancelled(PRBool aIsCancelled);
1515 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1516 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1517 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1518 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1519 nsresult GetPrintSilent(PRBool *aPrintSilent);
1520 nsresult SetPrintSilent(PRBool aPrintSilent);
1521 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1522 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1523 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1524 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1525 nsresult GetPaperName(PRUnichar **aPaperName);
1526 nsresult SetPaperName(const PRUnichar *aPaperName);
1527 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1528 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1529 nsresult GetPaperData(PRInt16 *aPaperData);
1530 nsresult SetPaperData(PRInt16 aPaperData);
1531 nsresult GetPaperWidth(double *aPaperWidth);
1532 nsresult SetPaperWidth(double aPaperWidth);
1533 nsresult GetPaperHeight(double *aPaperHeight);
1534 nsresult SetPaperHeight(double aPaperHeight);
1535 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1536 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1537 nsresult GetPlexName(PRUnichar **aPlexName);
1538 nsresult SetPlexName(const PRUnichar *aPlexName);
1539 nsresult GetColorspace(PRUnichar **aColorspace);
1540 nsresult SetColorspace(const PRUnichar *aColorspace);
1541 nsresult GetResolutionName(PRUnichar **aResolutionName);
1542 nsresult SetResolutionName(const PRUnichar aResolutionName);
1543 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1544 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1545 nsresult GetPrintReversed(PRBool *aPrintReversed);
1546 nsresult SetPrintReversed(PRBool aPrintReversed);
1547 nsresult GetPrintInColor(PRBool *aPrintInColor);
1548 nsresult SetPrintInColor(PRBool aPrintInColor);
1549 nsresult GetPaperSize(PRInt32 *aPaperSize);
1550 nsresult SetPaperSize(PRInt32 aPaperSize);
1551 nsresult GetOrientation(PRInt32 *aOrientation);
1552 nsresult SetOrientation(PRInt32 aOrientation);
1553 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1554 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1555 nsresult GetNumCopies(PRInt32 *aNumCopies);
1556 nsresult SetNumCopies(PRInt32 aNumCopies);
1557 nsresult GetPrinterName(PRUnichar **aPrinterName);
1558 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1559 nsresult GetPrintToFile(PRBool *aPrintToFile);
1560 nsresult SetPrintToFile(PRBool aPrintToFile);
1561 nsresult GetToFileName(PRUnichar **aToFileName);
1562 nsresult SetToFileName(const PRUnichar *aToFileName);
1563 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1564 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1565 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1566 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1567 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1568 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1569 nsresult SetMarginInTwips(nsMargin *aMargin);
1570 nsresult GetMarginInTwips(nsMargin *aMargin);
1574 object,
1575 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1576 local
1577 /* FROZEN */
1579 interface nsIWebBrowserPrint : nsISupports
1581 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1582 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1583 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1584 nsresult GetDoingPrint(PRBool *aDoingPrint);
1585 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1586 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1587 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1588 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1589 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1590 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1591 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1592 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1593 nsIWebProgressListener *aWPListener);
1594 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1595 nsresult Cancel();
1596 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1597 nsresult ExitPrintPreview();
1601 object,
1602 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1603 local
1604 /* NOT_FROZEN */
1606 interface nsIScrollable : nsISupports
1608 enum {
1609 ScrollOrientation_X = 1,
1610 ScrollOrientation_Y = 2
1613 enum {
1614 Scrollbar_Auto = 1,
1615 Scrollbar_Never = 2,
1616 Scrollbar_Always = 3
1619 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1620 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1621 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1622 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1623 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1624 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1625 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1626 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1627 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1628 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1632 object,
1633 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1634 local
1635 /* FROZEN */
1637 interface nsIFile : nsISupports
1639 nsresult Append(const nsAString *node);
1640 nsresult AppendNative(const nsAString *node);
1641 nsresult Normalize();
1642 nsresult Create(PRUint32 type, PRUint32 permission);
1643 nsresult GetLeafName(nsAString *aLeafName);
1644 nsresult SetLeafName(const nsAString *aLeafName);
1645 nsresult GetNativeLeafName(nsAString *aLeafName);
1646 nsresult SetNativeLeafName(const nsAString *aLeafName);
1647 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1648 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1649 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1650 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1651 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1652 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1653 nsresult Remove(PRBool recursive);
1654 nsresult GetPermissions(PRUint32 *aPermissions);
1655 nsresult SetPermissions(PRUint32 pPermissions);
1656 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1657 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1658 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1659 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1660 nsresult GetFileSize(PRInt64 *aFileSize);
1661 nsresult SetFileSize(PRInt64 aFileSize);
1662 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1663 nsresult GetTarget(nsAString *aTarget);
1664 nsresult GetNativeTarget(nsACString *aNativeTarget);
1665 nsresult GetPath(nsAString *aPath);
1666 nsresult GetNativePath(nsACString *aNativePath);
1667 nsresult Exists(PRBool *_retval);
1668 nsresult IsWritable(PRBool *_retval);
1669 nsresult IsReadable(PRBool *_retval);
1670 nsresult IsExecutable(PRBool *_retval);
1671 nsresult IsHidden(PRBool *_retval);
1672 nsresult IsDirectory(PRBool *_retval);
1673 nsresult IsFile(PRBool *_retval);
1674 nsresult IsSymlink(PRBool *_retval);
1675 nsresult IsSpecial(PRBool *_retval);
1676 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1677 nsresult Clone(nsIFile **_retval);
1678 nsresult Equals(nsIFile *inFile, PRBool *_retval);
1679 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1680 nsresult GetParent(nsIFile **aParent);
1681 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1685 object,
1686 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
1687 local
1688 /* FROZEN */
1690 interface nsIPrefBranch : nsISupports
1692 nsresult GetRoot(char **aRoot);
1693 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
1694 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
1695 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
1696 nsresult GetCharPref(const char *aPrefName, char **_retval);
1697 nsresult SetCharPref(const char *aPrefName, const char *aValue);
1698 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
1699 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
1700 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
1701 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
1702 nsresult ClearUserPref(const char *aPrefName);
1703 nsresult LockPref(const char *aPrefName);
1704 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
1705 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
1706 nsresult UnlockPref(const char *aPrefName);
1707 nsresult DeleteBranch(const char *aStartingAt);
1708 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
1709 nsresult ResetBranch(const char *aStartingAt);
1713 object,
1714 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
1715 local
1716 /* FROZEN */
1718 interface nsIProtocolHandler : nsISupports
1720 nsresult GetScheme(nsACString *aScheme);
1721 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
1722 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
1723 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
1724 nsIURI *aBaseURI, nsIURI **_retval);
1725 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
1726 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
1730 object,
1731 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
1732 local
1733 /* NOT_FROZEN */
1735 interface nsIExternalProtocolHandler : nsIProtocolHandler
1737 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
1741 object,
1742 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
1743 local
1744 /* FROZEN */
1746 interface nsIIOService : nsISupports
1748 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1749 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1750 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1751 nsIURI **_retval);
1752 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1753 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1754 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1755 nsIChannel **_retval);
1756 nsresult GetOffline(PRBool *aOffline);
1757 nsresult SetOffline(PRBool aOffline);
1758 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1759 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1763 object,
1764 uuid(f0c5dddb-4713-4603-af2d-bf671838996b),
1765 local,
1766 /* NOT_FROZEN */
1768 interface nsINetUtil : nsISupports
1770 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
1771 PRBool *aHadCharset, nsACString *aContentType);
1775 object,
1776 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
1777 local
1778 /* FROZEN */
1780 interface nsIWebBrowserFocus : nsISupports
1782 nsresult Activate();
1783 nsresult Deactivate();
1784 nsresult SetFocusAtFirstElement();
1785 nsresult SetFocusAtLastElement();
1786 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1787 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1788 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1789 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1793 object,
1794 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
1795 local
1796 /* FROZEN */
1798 interface nsIWebBrowserChrome : nsISupports
1800 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1801 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1802 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1803 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1804 nsresult SetChromeFlags(PRUint32 aChromeFlags);
1805 nsresult DestroyBrowserWindow();
1806 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1807 nsresult ShowAsModal();
1808 nsresult IsWindowModal(PRBool *_retval);
1809 nsresult ExitModalEventLoop(nsresult aStatus);
1813 object,
1814 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
1815 local
1816 /* FROZEN */
1818 interface nsIDOMEventListener : nsISupports
1820 nsresult HandleEvent(nsIDOMEvent *event);
1824 object,
1825 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
1826 local
1827 /* FROZEN */
1829 interface nsIDOMEventTarget : nsISupports
1831 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1832 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1833 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1837 object,
1838 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
1839 local
1840 /* FROZEN */
1842 interface nsIDOMEvent : nsISupports
1844 nsresult GetType(nsAString *aType);
1845 nsresult GetTarget(nsIDOMEventTarget **aTarget);
1846 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1847 nsresult GetEventPhase(PRUint16 *aEventPhase);
1848 nsresult GetBubbles(PRBool *aBubbles);
1849 nsresult GetCancelable(PRBool *aCancelable);
1850 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1851 nsresult StopPropagation();
1852 nsresult PreventDefault();
1853 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1856 cpp_quote("#define CONTEXT_NONE 0x00")
1857 cpp_quote("#define CONTEXT_LINK 0x01")
1858 cpp_quote("#define CONTEXT_IMAGE 0x02")
1859 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
1860 cpp_quote("#define CONTEXT_TEXT 0x08")
1861 cpp_quote("#define CONTEXT_INPUT 0x10")
1862 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
1865 object,
1866 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
1867 local
1868 /* FROZEN */
1870 interface nsIContextMenuListener : nsISupports
1872 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1876 object,
1877 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
1878 local
1879 /* FROZEN */
1881 interface nsIDOMUIEvent : nsIDOMEvent
1883 nsresult GetView(nsIDOMAbstractView **aView);
1884 nsresult GetDetail(PRInt32 *aDetail);
1885 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1886 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
1890 object,
1891 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
1892 local
1893 /* FROZEN */
1895 interface nsIDOMMouseEvent : nsIDOMUIEvent
1897 nsresult GetScreenX(PRInt32 *aScreenX);
1898 nsresult GetScreenY(PRInt32 *aScreenY);
1899 nsresult GetClientX(PRInt32 *aClientX);
1900 nsresult GetClientY(PRInt32 *aClientY);
1901 nsresult GetCtrlKey(PRBool *aCtrlKey);
1902 nsresult GetShiftKey(PRBool *aShiftKey);
1903 nsresult GetAltKey(PRBool *aAltKey);
1904 nsresult GetMetaKey(PRBool *aMetaKey);
1905 nsresult GetButton(PRUint16 *aButton);
1906 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
1907 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1908 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
1909 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
1910 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
1911 nsIDOMEventTarget *relatedTargetArg);
1915 object,
1916 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
1917 local
1918 /* NOT_FROZEN */
1920 interface nsIDOMKeyEvent : nsIDOMUIEvent
1922 nsresult GetCharCode(PRUint32 *aCharCode);
1923 nsresult GetKeyCode(PRUint32 *aKeyCode);
1924 nsresult GetAltKey(PRBool *aAltKey);
1925 nsresult GetCtrlKey(PRBool *aCtrlKey);
1926 nsresult GetShiftKey(PRBool *aShiftKey);
1927 nsresult GetMetaKey(PRBool *aMetaKey);
1928 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
1929 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
1930 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
1931 PRUint32 charCodeArg);
1935 object,
1936 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
1937 local
1938 /* FROZEN */
1940 interface nsIEmbeddingSiteWindow : nsISupports
1942 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
1943 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1944 nsresult SetFocus();
1945 nsresult GetVisibility(PRBool *aVisibility);
1946 nsresult SetVisibility(PRBool aVisibility);
1947 nsresult GetTitle(PRUnichar **aTitle);
1948 nsresult SetTitle(const PRUnichar *aTitle);
1949 nsresult GetSiteWindow(void **aSiteWindow);
1953 object,
1954 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
1955 local
1956 /* FROZEN */
1958 interface nsIComponentRegistrar : nsISupports
1960 nsresult AutoRegister(nsIFile *aSpec);
1961 nsresult AutoUnregister(nsIFile *aSpec);
1962 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1963 const char *aContractID, nsIFactory *aFactory);
1964 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1965 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1966 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1967 const char *aType);
1968 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1969 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1970 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1971 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1972 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1973 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1974 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1978 object,
1979 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
1980 local
1981 /* FROZEN */
1983 interface nsIPromptService : nsISupports
1985 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1986 const PRUnichar *aText);
1987 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1988 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
1989 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1990 const PRUnichar *aText, PRBool *_retval);
1991 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1992 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
1993 PRBool *_retval);
1994 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1995 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
1996 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
1997 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
1998 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1999 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2000 PRBool *aCheckState, PRBool *_retval);
2001 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2002 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2003 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
2004 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2005 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2006 PRBool *aCheckState, PRBool *_retval);
2007 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2008 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2009 PRInt32 *aOutSelection, PRBool *_retval);
2013 object,
2014 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2015 local
2016 /* FROZEN */
2018 interface nsITooltipTextProvider : nsISupports
2020 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
2024 object,
2025 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2026 local
2027 /* FROZEN */
2029 interface nsIProfile : nsISupports
2031 nsresult GetProfileCount(PRInt32 *aProfileCount);
2032 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2033 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2034 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
2035 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2036 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2037 nsresult CreateNewProfile(const PRUnichar *profileName,
2038 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2039 PRBool useExistingDir);
2040 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2041 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2042 nsresult CloneProfile(const PRUnichar *profileName);
2046 object,
2047 uuid(30465632-a777-44cc-90f9-8145475ef999),
2048 local
2049 /* FROZEN */
2051 interface nsIWindowCreator : nsISupports
2053 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2054 nsIWebBrowserChrome **_retval);
2058 object,
2059 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2060 local
2061 /* NOT_FROZEN */
2063 interface nsIWindowCreator2 : nsIWindowCreator
2065 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2066 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2067 nsIWebBrowserChrome **_retval);
2071 object,
2072 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2073 local
2074 /* FROZEN */
2076 interface nsIWindowWatcher : nsISupports
2078 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2079 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2080 nsresult RegisterNotification(nsIObserver *aObserver);
2081 nsresult UnregisterNotification(nsIObserver *aObserver);
2082 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2083 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2084 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2085 nsresult SetWindowCreator(nsIWindowCreator *creator);
2086 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2087 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2088 nsIDOMWindow **_retval);
2089 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2090 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2094 object,
2095 uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b),
2096 local
2097 /* NOT_FROZEN */
2099 interface nsIEditingSession : nsISupports
2101 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2102 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2103 PRBool doAfterUriLoad);
2104 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2105 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2106 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2107 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2108 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2112 object,
2113 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2114 local
2115 /* NOT_FROZEN */
2117 interface nsICommandParams : nsISupports
2119 nsresult GetValueType(const char *name, PRInt16 *_retval);
2120 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2121 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2122 nsresult GetDoubleValue(const char *name, double *_retval);
2123 nsresult GetStringValue(const char *name, nsAString *_retval);
2124 nsresult GetCStringValue(const char *name, char **_retval);
2125 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2126 nsresult SetBooleanValue(const char *name, PRBool value);
2127 nsresult SetLongValue(const char *name, PRInt32 value);
2128 nsresult SetDoubleValue(const char *name, double value);
2129 nsresult SetStringValue(const char *name, const nsAString *value);
2130 nsresult SetCStringValue(const char *name, const char *value);
2131 nsresult SetISupportsValue(const char *name, nsISupports *value);
2132 nsresult RemoveValue(const char *name);
2133 nsresult HasMoreElements(PRBool *_retval);
2134 nsresult First();
2135 nsresult GetNext(char **_retval);
2139 object,
2140 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2141 local
2142 /* NOT_FROZEN */
2144 interface nsICommandManager : nsISupports
2146 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2147 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2148 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2149 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2150 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2151 nsICommandParams *aCommandParams);
2152 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2153 nsIDOMWindow *aTargetWindow);
2157 object,
2158 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2159 local
2160 /* NOT_FROZEN */
2162 interface nsIControllerContext : nsISupports
2164 nsresult Init(nsIControllerCommandTable *aCommandTable);
2165 nsresult SetCommandContext(nsISupports *aCommandContext);
2169 object,
2170 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2171 local
2172 /* NOT_FROZEN */
2174 interface nsIController : nsISupports
2176 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2177 nsresult SupportsCommand(const char *command, PRBool *_retval);
2178 nsresult DoCommand(const char *command);
2179 nsresult OnEvent(const char *eventName);
2183 object,
2184 uuid(d650439a-ca29-410d-a906-b0557fb62fcd),
2185 local
2186 /* NOT_FROZEN */
2188 interface nsIContentSerializer : nsISupports
2190 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying);
2191 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2192 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
2193 PRInt32 aEndOffset, nsAString *aStr);
2194 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
2195 PRInt32 aEndOffset, nsAString *aStr);
2196 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2197 nsAString *aStr);
2198 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
2199 nsresult AppendElementStart(nsIDOMElement *aElement, PRBool aHasChildren, nsAString *aStr);
2200 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
2201 nsresult Flush(nsAString *aStr);
2202 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
2206 object,
2207 uuid(68b97c56-2289-48ac-a9e1-72c30fd3dba2),
2208 local
2210 interface nsIScriptContainer : nsISupports
2212 typedef void *JSObject;
2214 nsresult GetContext(void **aContext);
2215 nsresult GetGlobalObject(void **aGlobalObject);
2216 nsresult CompileScript(const PRUnichar *aText, PRInt32 aTextLength, void *aScopeObject,
2217 nsIPrincipal *aPrincipal, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, void **_retval);
2218 nsresult ExecuteScript(void *aScriptObject, void *aScopeObject, nsAString *aRetVal, PRBool *aIsUndefined);
2219 nsresult CompileFunction(void *aTarget, const nsACString *aName, PRUint32 aArgCount,
2220 const char **aArgArray, const nsAString *aBody, const char *aURL, PRInt32 aLineNo,
2221 PRBool aShared, void* *_retval);
2222 nsresult CallFunction(nsISupports *aTarget, void *aScope, void *aHandler, nsIArray *argv,
2223 nsIVariant **_retval);
2224 nsresult BindEventHandler(nsISupports *aTarget, void *aScope, nsIAtom *aName, void *aHandler);
2225 nsresult HoldScriptObject(void *aObject);
2226 nsresult DropScriptObject(void *aObject);
2230 object,
2231 uuid(D4882FFB-E927-408b-96BE-D4391B456FA9),
2232 local
2234 interface nsIEditor : nsISupports
2236 typedef void *nsIPresShellPtr;
2237 typedef void *nsIContentPtr;
2239 nsresult GetSelection([out] nsISelection *_retval);
2240 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2241 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2242 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2243 nsresult PostCreate();
2244 nsresult PreDestroy();
2245 nsresult GetFlags([out] PRUint32 *_retval);
2246 nsresult SetFlags([in] PRUint32 val);
2247 nsresult GetContentsMIMEType([out] char **_retval);
2248 nsresult SetContentsMIMEType([in] const char *val);
2249 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2250 nsresult GetDocument([out] nsIDOMDocument **_retval);
2251 nsresult GetRootElement([out] nsIDOMElement **_retval);
2252 nsresult GetSelectionController([out] nsISelectionController **_retval);
2253 nsresult DeleteSelection([in] PRInt16 action);
2254 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2255 nsresult GetDocumentModified([out] PRBool *_retval);
2256 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2257 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2258 nsresult ResetModificationCount();
2259 nsresult GetModificationCount([out] PRInt32 *_retval);
2260 nsresult IncrementModificationCount([in] long aModCount);
2261 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2262 nsresult DoTransaction([in] nsITransaction *txn);
2263 nsresult EnableUndo([in] PRBool enable);
2264 nsresult Undo([in] PRUint32 count);
2265 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2266 nsresult Redo([in] PRUint32 count);
2267 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2268 nsresult BeginTransaction();
2269 nsresult EndTransaction();
2270 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2271 nsresult EndPlaceHolderTransaction();
2272 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2273 nsresult SetShouldTxnSetSelection([in] PRBool should);
2274 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2275 nsresult Cut();
2276 nsresult CanCut([out] PRBool *_retval);
2277 nsresult Copy();
2278 nsresult CanCopy([out] PRBool *_retval);
2279 nsresult Paste([in] PRInt32 aSelectionType);
2280 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2281 nsresult SelectAll();
2282 nsresult BeginningOfDocument();
2283 nsresult EndOfDocument();
2284 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2285 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2286 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2287 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2288 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2289 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2290 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2291 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2292 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2293 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2294 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2295 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2296 nsresult DeleteNode([in] nsIDOMNode *child);
2297 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2298 nsresult SwitchTextDirection();
2299 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2300 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2301 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2302 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2303 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2304 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2305 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2306 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2307 nsresult DumpContentTree();
2308 nsresult DebugDumpContent();
2309 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2313 object,
2314 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2315 local
2317 interface nsIHTMLEditor : nsISupports
2319 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2320 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2321 nsresult RemoveAllDefaultProperties();
2322 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2323 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2324 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2325 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2326 nsresult RemoveAllInlineProperties();
2327 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2328 nsresult IncreaseFontSize();
2329 nsresult DecreaseFontSize();
2330 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2331 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2332 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2333 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2334 nsresult InsertHTML([in] nsAString *aInputString);
2335 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2336 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2337 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);
2338 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2339 nsresult SetDocumentTitle([in] nsAString *aTitle);
2340 nsresult UpdateBaseURL();
2341 nsresult SelectElement([in] nsIDOMElement *aElement);
2342 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2343 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2344 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2345 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2346 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2347 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2348 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2349 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2350 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2351 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2352 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2353 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2354 nsresult RemoveList([in] nsAString *aListType);
2355 nsresult Indent([in] nsAString *aIndent);
2356 nsresult Align([in] nsAString *aAlign);
2357 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2358 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2359 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2360 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2361 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2362 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2363 nsresult SetBackgroundColor([in] nsAString *aColor);
2364 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2365 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2366 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2367 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2368 nsresult SetIsCSSEnabled([in] PRBool prb);
2369 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2370 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2371 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2372 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2373 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2374 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2375 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2376 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2380 * NOTE:
2381 * This is a private Wine interface that is implemented by our implementation
2382 * of nsIURI to store its owner.
2385 object,
2386 uuid(5088272e-900b-11da-c687-000fea57f21a),
2387 local
2388 /* INTERNAL */
2390 interface nsIWineURI : nsIURI
2392 typedef struct NSContainer NSContainer;
2394 nsresult GetNSContainer(NSContainer **aNSContainer);
2395 nsresult SetNSContainer(NSContainer *aNSContainer);
2396 nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
2397 nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
2398 nsresult GetWineURL(LPCWSTR *aURL);
2399 nsresult SetWineURL(LPCWSTR aURL);