push 73336d9f381967eae40f391d78198b916ed9848d
[wine/hacks.git] / dlls / mshtml / nsiface.idl
blob03115d9a04e20c5a9b13dca33821caa11af3e20f
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),
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(94928ab3-8b63-11d3-989d-001083010e9b),
1301 local
1302 /* FROZEN */
1304 interface nsIURIContentListener : nsISupports
1306 nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
1307 nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
1308 nsIStreamListener **aContentHandler, PRBool *_retval);
1309 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
1310 nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
1311 char **aDesiredContentType, PRBool *_retval);
1312 nsresult GetLoadCookie(nsISupports **aLoadCookie);
1313 nsresult SetLoadCookie(nsISupports *aLoadCookie);
1314 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
1315 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
1319 object,
1320 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
1321 local
1322 /* FROZEN */
1324 interface nsITooltipListener : nsISupports
1326 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
1327 nsresult OnHideTooltip();
1331 object,
1332 uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c),
1333 local
1334 /* FROZEN */
1336 interface nsIWebBrowser : nsISupports
1338 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1339 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
1340 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
1341 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
1342 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
1343 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
1344 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
1347 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
1350 object,
1351 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
1352 local
1353 /* FROZEN */
1355 interface nsIWebBrowserSetup : nsISupports
1357 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
1360 typedef void* nativeWindow;
1363 object,
1364 uuid(046bc8a0-8015-11d3-af70-00a024ffc08c),
1365 local
1366 /* NOT_FROZEN */
1368 interface nsIBaseWindow : nsISupports
1370 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
1371 PRInt32 y, PRInt32 cx, PRInt32 cy);
1372 nsresult Create();
1373 nsresult Destroy();
1374 nsresult SetPosition(PRInt32 x, PRInt32 y);
1375 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
1376 nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1377 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
1378 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
1379 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1380 nsresult Repaint(PRBool force);
1381 nsresult GetParentWidget(nsIWidget **aParentWidget);
1382 nsresult SetParentWidget(nsIWidget *aParentWidget);
1383 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
1384 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
1385 nsresult GetVisibility(PRBool *aVisibility);
1386 nsresult SetVisibility(PRBool aVisibility);
1387 nsresult GetEnabled(PRBool *aEnabled);
1388 nsresult SetEnabled(PRBool aEnabled);
1389 nsresult GetBlurSuppression(PRBool *aBlurSuppression);
1390 nsresult SetBlurSuppression(PRBool aBlurSuppression);
1391 nsresult GetMainWidget(nsIWidget **aMainWidget);
1392 nsresult SetFocus();
1393 nsresult GetTitle(PRUnichar **aTitle);
1394 nsresult SetTitle(const PRUnichar *aTitle);
1397 cpp_quote("#define LOAD_FLAGS_NONE 0")
1400 object,
1401 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
1402 local
1403 /* NOT_FROZEN */
1405 interface nsIWebNavigation : nsISupports
1407 nsresult GetCanGoBack(PRBool *aCanGoBack);
1408 nsresult GetCanGoForward(PRBool *aCanGoForward);
1409 nsresult GoBack();
1410 nsresult GoForward();
1411 nsresult GotoIndex(PRInt32 index);
1412 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
1413 nsIInputStream *aPostData, nsIInputStream *aHeaders);
1414 nsresult Reload(PRUint32 aReloadFlags);
1415 nsresult Stop(PRUint32 aStopFlags);
1416 nsresult GetDocument(nsIDOMDocument **aDocument);
1417 nsresult GetCurrentURI(nsIURI **aCurrentURI);
1418 nsresult GetReferringURI(nsIURI **aReferringURI);
1419 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
1420 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
1424 object,
1425 uuid(f1094df6-ce0e-42c9-9847-2f663172c38d),
1426 local
1427 /* NOT_FROZEN */
1429 interface nsIPrintSettings : nsISupports
1431 typedef struct { char dummy; } nsMargin;
1433 nsresult SetPrintOptions(PRInt32 aType, PRBool aTurnOnOff);
1434 nsresult GetPrintOptions(PRInt32 aType, PRBool *_retval);
1435 nsresult GetPrintOptionsBits(PRInt32 *_retval);
1436 nsresult GetPageSizeInTwips(PRInt32 *aWidth, PRInt32 *aHeight);
1437 nsresult Clone(nsIPrintSettings **_retval);
1438 nsresult Assign(nsIPrintSettings *aPS);
1439 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
1440 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
1441 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
1442 nsresult SetStartPageRange(PRInt32 aStartPageRange);
1443 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
1444 nsresult SetEndPageRange(PRInt32 aEndPageRange);
1445 nsresult GetMarginTop(double *aMarginTop);
1446 nsresult SetMarginTop(double aMarginTop);
1447 nsresult GetMarginLeft(double *aMarginLeft);
1448 nsresult SetMarginLeft(double aMarginLeft);
1449 nsresult GetMarginBottom(double *aMarginBottom);
1450 nsresult SetMarginBottom(double aMarginBottom);
1451 nsresult GetMarginRight(double *aMarginRight);
1452 nsresult SetMarginRight(double aMarginRight);
1453 nsresult GetScaling(double *aScaling);
1454 nsresult SetScaling(double aScaling);
1455 nsresult GetPrintBGColors(PRBool *aPrintBGColors);
1456 nsresult SetPrintBGColors(PRBool aPrintBGColors);
1457 nsresult GetPrintBGImages(PRBool *aPrintBGImages);
1458 nsresult SetPrintBGImages(PRBool aPrintBGImages);
1459 nsresult GetPrintRange(PRInt16 *aPrintRange);
1460 nsresult SetPrintRange(PRInt16 aPrintRange);
1461 nsresult GetTitle(PRUnichar **aTitle);
1462 nsresult SetTitle(const PRUnichar *aTitle);
1463 nsresult GetDocURL(PRUnichar **aDocURL);
1464 nsresult SetDocURL(const PRUnichar *aDocURL);
1465 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
1466 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
1467 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
1468 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
1469 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
1470 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
1471 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
1472 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
1473 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
1474 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
1475 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
1476 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
1477 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
1478 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
1479 nsresult GetIsCancelled(PRBool *aIsCancelled);
1480 nsresult SetIsCancelled(PRBool aIsCancelled);
1481 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
1482 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
1483 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
1484 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
1485 nsresult GetPrintSilent(PRBool *aPrintSilent);
1486 nsresult SetPrintSilent(PRBool aPrintSilent);
1487 nsresult GetShrinkToFit(PRBool *aShrinkToFit);
1488 nsresult SetShrinkToFit(PRBool aShrinkToFit);
1489 nsresult GetShowPrintProgress(PRBool *aShowPrintProgress);
1490 nsresult SetShowPrintProgress(PRBool aShowPrintProgress);
1491 nsresult GetPaperName(PRUnichar **aPaperName);
1492 nsresult SetPaperName(const PRUnichar *aPaperName);
1493 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
1494 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
1495 nsresult GetPaperData(PRInt16 *aPaperData);
1496 nsresult SetPaperData(PRInt16 aPaperData);
1497 nsresult GetPaperWidth(double *aPaperWidth);
1498 nsresult SetPaperWidth(double aPaperWidth);
1499 nsresult GetPaperHeight(double *aPaperHeight);
1500 nsresult SetPaperHeight(double aPaperHeight);
1501 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
1502 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
1503 nsresult GetPlexName(PRUnichar **aPlexName);
1504 nsresult SetPlexName(const PRUnichar *aPlexName);
1505 nsresult GetColorspace(PRUnichar **aColorspace);
1506 nsresult SetColorspace(const PRUnichar *aColorspace);
1507 nsresult GetResolutionName(PRUnichar **aResolutionName);
1508 nsresult SetResolutionName(const PRUnichar aResolutionName);
1509 nsresult GetDownloadFonts(PRBool *aDownloadFonts);
1510 nsresult SetDownloadFonts(PRBool aDownloadFonts);
1511 nsresult GetPrintReversed(PRBool *aPrintReversed);
1512 nsresult SetPrintReversed(PRBool aPrintReversed);
1513 nsresult GetPrintInColor(PRBool *aPrintInColor);
1514 nsresult SetPrintInColor(PRBool aPrintInColor);
1515 nsresult GetPaperSize(PRInt32 *aPaperSize);
1516 nsresult SetPaperSize(PRInt32 aPaperSize);
1517 nsresult GetOrientation(PRInt32 *aOrientation);
1518 nsresult SetOrientation(PRInt32 aOrientation);
1519 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
1520 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
1521 nsresult GetNumCopies(PRInt32 *aNumCopies);
1522 nsresult SetNumCopies(PRInt32 aNumCopies);
1523 nsresult GetPrinterName(PRUnichar **aPrinterName);
1524 nsresult SetPrinterName(const PRUnichar *aPrinterName);
1525 nsresult GetPrintToFile(PRBool *aPrintToFile);
1526 nsresult SetPrintToFile(PRBool aPrintToFile);
1527 nsresult GetToFileName(PRUnichar **aToFileName);
1528 nsresult SetToFileName(const PRUnichar *aToFileName);
1529 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
1530 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
1531 nsresult GetIsInitializedFromPrinter(PRBool *aIsInitializedFromPrinter);
1532 nsresult SetIsInitializedFromPrinter(PRBool aIsInitializedFromPrinter);
1533 nsresult GetIsInitializedFromPrefs(PRBool *aIsInitializedFromPrefs);
1534 nsresult SetIsInitializedFromPrefs(PRBool aIsInitializedFromPrefs);
1535 nsresult SetMarginInTwips(nsMargin *aMargin);
1536 nsresult GetMarginInTwips(nsMargin *aMargin);
1540 object,
1541 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
1542 local
1543 /* FROZEN */
1545 interface nsIWebBrowserPrint : nsISupports
1547 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
1548 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
1549 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
1550 nsresult GetDoingPrint(PRBool *aDoingPrint);
1551 nsresult GetDoingPrintPreview(PRBool *aDoingPrintPreview);
1552 nsresult GetIsFramesetDocument(PRBool *aIsFramesetDocument);
1553 nsresult GetIsFramesetFrameSelected(PRBool *aIsFramesetFrameSelected);
1554 nsresult GetIsIFrameSelected(PRBool *aIsIFrameSelected);
1555 nsresult GetIsRangeSelection(PRBool *aIsRangeSelection);
1556 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
1557 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
1558 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
1559 nsIWebProgressListener *aWPListener);
1560 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
1561 nsresult Cancel();
1562 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
1563 nsresult ExitPrintPreview();
1567 object,
1568 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
1569 local
1570 /* NOT_FROZEN */
1572 interface nsIScrollable : nsISupports
1574 enum {
1575 ScrollOrientation_X = 1,
1576 ScrollOrientation_Y = 2
1579 enum {
1580 Scrollbar_Auto = 1,
1581 Scrollbar_Never = 2,
1582 Scrollbar_Always = 3
1585 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
1586 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
1587 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
1588 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
1589 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
1590 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
1591 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
1592 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
1593 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
1594 nsresult GetScrollbarVisibility(PRBool *verticalVisible, PRBool *horizontalVisible);
1598 object,
1599 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
1600 local
1601 /* FROZEN */
1603 interface nsIFile : nsISupports
1605 nsresult Append(const nsAString *node);
1606 nsresult AppendNative(const nsAString *node);
1607 nsresult Normalize();
1608 nsresult Create(PRUint32 type, PRUint32 permission);
1609 nsresult GetLeafName(nsAString *aLeafName);
1610 nsresult SetLeafName(const nsAString *aLeafName);
1611 nsresult GetNativeLeafName(nsAString *aLeafName);
1612 nsresult SetNativeLeafName(const nsAString *aLeafName);
1613 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
1614 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
1615 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
1616 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
1617 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
1618 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
1619 nsresult Remove(PRBool recursive);
1620 nsresult GetPermissions(PRUint32 *aPermissions);
1621 nsresult SetPermissions(PRUint32 pPermissions);
1622 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
1623 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
1624 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
1625 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
1626 nsresult GetFileSize(PRInt64 *aFileSize);
1627 nsresult SetFileSize(PRInt64 aFileSize);
1628 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
1629 nsresult GetTarget(nsAString *aTarget);
1630 nsresult GetNativeTarget(nsACString *aNativeTarget);
1631 nsresult GetPath(nsAString *aPath);
1632 nsresult GetNativePath(nsACString *aNativePath);
1633 nsresult Exists(PRBool *_retval);
1634 nsresult IsWritable(PRBool *_retval);
1635 nsresult IsReadable(PRBool *_retval);
1636 nsresult IsExecutable(PRBool *_retval);
1637 nsresult IsHidden(PRBool *_retval);
1638 nsresult IsDirectory(PRBool *_retval);
1639 nsresult IsFile(PRBool *_retval);
1640 nsresult IsSymlink(PRBool *_retval);
1641 nsresult IsSpecial(PRBool *_retval);
1642 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
1643 nsresult Clone(nsIFile **_retval);
1644 nsresult Equals(nsIFile *inFile, PRBool *_retval);
1645 nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
1646 nsresult GetParent(nsIFile **aParent);
1647 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
1651 object,
1652 uuid(56c35506-f14b-11d3-99d3-ddbfac2ccf65),
1653 local
1654 /* FROZEN */
1656 interface nsIPrefBranch : nsISupports
1658 nsresult GetRoot(char **aRoot);
1659 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
1660 nsresult GetBoolPref(const char *aPrefName, PRBool *_retval);
1661 nsresult SetBoolPref(const char *aPrefName, PRInt32 aValue);
1662 nsresult GetCharPref(const char *aPrefName, char **_retval);
1663 nsresult SetCharPref(const char *aPrefName, const char *aValue);
1664 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
1665 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
1666 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
1667 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
1668 nsresult ClearUserPref(const char *aPrefName);
1669 nsresult LockPref(const char *aPrefName);
1670 nsresult PrefHasUserValue(const char *aPrefName, PRBool *_retval);
1671 nsresult PrefIsLocked(const char *aPrefName, PRBool *_retval);
1672 nsresult UnlockPref(const char *aPrefName);
1673 nsresult DeleteBranch(const char *aStartingAt);
1674 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
1675 nsresult ResetBranch(const char *aStartingAt);
1679 object,
1680 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
1681 local
1682 /* FROZEN */
1684 interface nsIProtocolHandler : nsISupports
1686 nsresult GetScheme(nsACString *aScheme);
1687 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
1688 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
1689 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
1690 nsIURI *aBaseURI, nsIURI **_retval);
1691 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
1692 nsresult AllowPort(PRInt32 port, const char *scheme, PRBool *_retval);
1696 object,
1697 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
1698 local
1699 /* NOT_FROZEN */
1701 interface nsIExternalProtocolHandler : nsIProtocolHandler
1703 nsresult ExternalAppExistsForScheme(const nsACString *scheme, PRBool *_retval);
1707 object,
1708 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
1709 local
1710 /* FROZEN */
1712 interface nsIIOService : nsISupports
1714 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
1715 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
1716 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1717 nsIURI **_retval);
1718 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
1719 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
1720 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
1721 nsIChannel **_retval);
1722 nsresult GetOffline(PRBool *aOffline);
1723 nsresult SetOffline(PRBool aOffline);
1724 nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
1725 nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
1729 object,
1730 uuid(f0c5dddb-4713-4603-af2d-bf671838996b),
1731 local,
1732 /* NOT_FROZEN */
1734 interface nsINetUtil : nsISupports
1736 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
1737 PRBool *aHadCharset, nsACString *aContentType);
1741 object,
1742 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
1743 local
1744 /* FROZEN */
1746 interface nsIWebBrowserFocus : nsISupports
1748 nsresult Activate();
1749 nsresult Deactivate();
1750 nsresult SetFocusAtFirstElement();
1751 nsresult SetFocusAtLastElement();
1752 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
1753 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
1754 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
1755 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
1759 object,
1760 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
1761 local
1762 /* FROZEN */
1764 interface nsIWebBrowserChrome : nsISupports
1766 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
1767 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
1768 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
1769 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
1770 nsresult SetChromeFlags(PRUint32 aChromeFlags);
1771 nsresult DestroyBrowserWindow();
1772 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
1773 nsresult ShowAsModal();
1774 nsresult IsWindowModal(PRBool *_retval);
1775 nsresult ExitModalEventLoop(nsresult aStatus);
1779 object,
1780 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
1781 local
1782 /* FROZEN */
1784 interface nsIDOMEventListener : nsISupports
1786 nsresult HandleEvent(nsIDOMEvent *event);
1790 object,
1791 uuid(1c773b30-d1cf-11d2-bd95-00805f8ae3f4),
1792 local
1793 /* FROZEN */
1795 interface nsIDOMEventTarget : nsISupports
1797 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1798 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, PRBool useCapture);
1799 nsresult DispatchEvent(nsIDOMEvent *evt, PRBool *_retval);
1803 object,
1804 uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32),
1805 local
1806 /* FROZEN */
1808 interface nsIDOMEvent : nsISupports
1810 nsresult GetType(nsAString *aType);
1811 nsresult GetTarget(nsIDOMEventTarget **aTarget);
1812 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
1813 nsresult GetEventPhase(PRUint16 *aEventPhase);
1814 nsresult GetBubbles(PRBool *aBubbles);
1815 nsresult GetCancelable(PRBool *aCancelable);
1816 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
1817 nsresult StopPropagation();
1818 nsresult PreventDefault();
1819 nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
1822 cpp_quote("#define CONTEXT_NONE 0x00")
1823 cpp_quote("#define CONTEXT_LINK 0x01")
1824 cpp_quote("#define CONTEXT_IMAGE 0x02")
1825 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
1826 cpp_quote("#define CONTEXT_TEXT 0x08")
1827 cpp_quote("#define CONTEXT_INPUT 0x10")
1828 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
1831 object,
1832 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
1833 local
1834 /* FROZEN */
1836 interface nsIContextMenuListener : nsISupports
1838 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
1842 object,
1843 uuid(a6cf90c3-15b3-11d2-932e-00805f8add32),
1844 local
1845 /* FROZEN */
1847 interface nsIDOMUIEvent : nsIDOMEvent
1849 nsresult GetView(nsIDOMAbstractView **aView);
1850 nsresult GetDetail(PRInt32 *aDetail);
1851 nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1852 nsIDOMAbstractView *viewArg, PRInt32 detailArg);
1856 object,
1857 uuid(ff751edc-8b02-aae7-0010-8301838a3123),
1858 local
1859 /* FROZEN */
1861 interface nsIDOMMouseEvent : nsIDOMUIEvent
1863 nsresult GetScreenX(PRInt32 *aScreenX);
1864 nsresult GetScreenY(PRInt32 *aScreenY);
1865 nsresult GetClientX(PRInt32 *aClientX);
1866 nsresult GetClientY(PRInt32 *aClientY);
1867 nsresult GetCtrlKey(PRBool *aCtrlKey);
1868 nsresult GetShiftKey(PRBool *aShiftKey);
1869 nsresult GetAltKey(PRBool *aAltKey);
1870 nsresult GetMetaKey(PRBool *aMetaKey);
1871 nsresult GetButton(PRUint16 *aButton);
1872 nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
1873 nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
1874 nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
1875 PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
1876 PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
1877 nsIDOMEventTarget *relatedTargetArg);
1881 object,
1882 uuid(028e0e6e-8b01-11d3-aae7-0010838a3123),
1883 local
1884 /* NOT_FROZEN */
1886 interface nsIDOMKeyEvent : nsIDOMUIEvent
1888 nsresult GetCharCode(PRUint32 *aCharCode);
1889 nsresult GetKeyCode(PRUint32 *aKeyCode);
1890 nsresult GetAltKey(PRBool *aAltKey);
1891 nsresult GetCtrlKey(PRBool *aCtrlKey);
1892 nsresult GetShiftKey(PRBool *aShiftKey);
1893 nsresult GetMetaKey(PRBool *aMetaKey);
1894 nsresult InitKeyEvent(const nsAString *typeArg, PRBool canBubbleArg,
1895 PRBool cancelableArg, nsIDOMAbstractView *viewArg, PRBool ctrlKeyArg,
1896 PRBool altKeyArg, PRBool shiftKeyArg, PRBool metaKeyArg, PRUint32 keyCodeArg,
1897 PRUint32 charCodeArg);
1901 object,
1902 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
1903 local
1904 /* FROZEN */
1906 interface nsIEmbeddingSiteWindow : nsISupports
1908 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
1909 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
1910 nsresult SetFocus();
1911 nsresult GetVisibility(PRBool *aVisibility);
1912 nsresult SetVisibility(PRBool aVisibility);
1913 nsresult GetTitle(PRUnichar **aTitle);
1914 nsresult SetTitle(const PRUnichar *aTitle);
1915 nsresult GetSiteWindow(void **aSiteWindow);
1919 object,
1920 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
1921 local
1922 /* FROZEN */
1924 interface nsIComponentRegistrar : nsISupports
1926 nsresult AutoRegister(nsIFile *aSpec);
1927 nsresult AutoUnregister(nsIFile *aSpec);
1928 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
1929 const char *aContractID, nsIFactory *aFactory);
1930 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
1931 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
1932 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
1933 const char *aType);
1934 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
1935 nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
1936 nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
1937 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
1938 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
1939 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
1940 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
1944 object,
1945 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
1946 local
1947 /* FROZEN */
1949 interface nsIPromptService : nsISupports
1951 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1952 const PRUnichar *aText);
1953 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1954 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
1955 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1956 const PRUnichar *aText, PRBool *_retval);
1957 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1958 const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
1959 PRBool *_retval);
1960 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1961 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
1962 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
1963 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
1964 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1965 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
1966 PRBool *aCheckState, PRBool *_retval);
1967 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1968 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
1969 const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
1970 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1971 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
1972 PRBool *aCheckState, PRBool *_retval);
1973 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
1974 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
1975 PRInt32 *aOutSelection, PRBool *_retval);
1979 object,
1980 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
1981 local
1982 /* FROZEN */
1984 interface nsITooltipTextProvider : nsISupports
1986 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, PRBool *_retval);
1990 object,
1991 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
1992 local
1993 /* FROZEN */
1995 interface nsIProfile : nsISupports
1997 nsresult GetProfileCount(PRInt32 *aProfileCount);
1998 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
1999 nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
2000 nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
2001 nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
2002 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2003 nsresult CreateNewProfile(const PRUnichar *profileName,
2004 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2005 PRBool useExistingDir);
2006 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2007 nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
2008 nsresult CloneProfile(const PRUnichar *profileName);
2012 object,
2013 uuid(30465632-a777-44cc-90f9-8145475ef999),
2014 local
2015 /* FROZEN */
2017 interface nsIWindowCreator : nsISupports
2019 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2020 nsIWebBrowserChrome **_retval);
2024 object,
2025 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2026 local
2027 /* NOT_FROZEN */
2029 interface nsIWindowCreator2 : nsIWindowCreator
2031 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2032 PRUint32 contextFlags, nsIURI *uri, PRBool *cancel,
2033 nsIWebBrowserChrome **_retval);
2037 object,
2038 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2039 local
2040 /* FROZEN */
2042 interface nsIWindowWatcher : nsISupports
2044 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2045 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2046 nsresult RegisterNotification(nsIObserver *aObserver);
2047 nsresult UnregisterNotification(nsIObserver *aObserver);
2048 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2049 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2050 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2051 nsresult SetWindowCreator(nsIWindowCreator *creator);
2052 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2053 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2054 nsIDOMWindow **_retval);
2055 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2056 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2060 object,
2061 uuid(d39fd2b4-3978-45d2-a4be-ba448171b61b),
2062 local
2063 /* NOT_FROZEN */
2065 interface nsIEditingSession : nsISupports
2067 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2068 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2069 PRBool doAfterUriLoad);
2070 nsresult WindowIsEditable(nsIDOMWindow *window, PRBool *_retval);
2071 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2072 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2073 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2074 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2078 object,
2079 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2080 local
2081 /* NOT_FROZEN */
2083 interface nsICommandParams : nsISupports
2085 nsresult GetValueType(const char *name, PRInt16 *_retval);
2086 nsresult GetBooleanValue(const char *name, PRBool *_retval);
2087 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2088 nsresult GetDoubleValue(const char *name, double *_retval);
2089 nsresult GetStringValue(const char *name, nsAString *_retval);
2090 nsresult GetCStringValue(const char *name, char **_retval);
2091 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2092 nsresult SetBooleanValue(const char *name, PRBool value);
2093 nsresult SetLongValue(const char *name, PRInt32 value);
2094 nsresult SetDoubleValue(const char *name, double value);
2095 nsresult SetStringValue(const char *name, const nsAString *value);
2096 nsresult SetCStringValue(const char *name, const char *value);
2097 nsresult SetISupportsValue(const char *name, nsISupports *value);
2098 nsresult RemoveValue(const char *name);
2099 nsresult HasMoreElements(PRBool *_retval);
2100 nsresult First();
2101 nsresult GetNext(char **_retval);
2105 object,
2106 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2107 local
2108 /* NOT_FROZEN */
2110 interface nsICommandManager : nsISupports
2112 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2113 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2114 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2115 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, PRBool *_retval);
2116 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2117 nsICommandParams *aCommandParams);
2118 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2119 nsIDOMWindow *aTargetWindow);
2123 object,
2124 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2125 local
2126 /* NOT_FROZEN */
2128 interface nsIControllerContext : nsISupports
2130 nsresult Init(nsIControllerCommandTable *aCommandTable);
2131 nsresult SetCommandContext(nsISupports *aCommandContext);
2135 object,
2136 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2137 local
2138 /* NOT_FROZEN */
2140 interface nsIController : nsISupports
2142 nsresult IsCommandEnabled(const char *command, PRBool *_retval);
2143 nsresult SupportsCommand(const char *command, PRBool *_retval);
2144 nsresult DoCommand(const char *command);
2145 nsresult OnEvent(const char *eventName);
2149 object,
2150 uuid(d650439a-ca29-410d-a906-b0557fb62fcd),
2151 local
2152 /* NOT_FROZEN */
2154 interface nsIContentSerializer : nsISupports
2156 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char* aCharSet, PRBool aIsCopying);
2157 nsresult AppendText(nsIDOMText *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2158 nsresult AppendCDATASection(nsIDOMCDATASection *aCDATASection, PRInt32 aStartOffset,
2159 PRInt32 aEndOffset, nsAString *aStr);
2160 nsresult AppendProcessingInstruction(nsIDOMProcessingInstruction* aPI, PRInt32 aStartOffset,
2161 PRInt32 aEndOffset, nsAString *aStr);
2162 nsresult AppendComment(nsIDOMComment *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2163 nsAString *aStr);
2164 nsresult AppendDoctype(nsIDOMDocumentType *aDoctype, nsAString *aStr);
2165 nsresult AppendElementStart(nsIDOMElement *aElement, PRBool aHasChildren, nsAString *aStr);
2166 nsresult AppendElementEnd(nsIDOMElement *aElement, nsAString *aStr);
2167 nsresult Flush(nsAString *aStr);
2168 nsresult AppendDocumentStart(nsIDOMDocument *aDocument, nsAString *aStr);
2172 object,
2173 uuid(68b97c56-2289-48ac-a9e1-72c30fd3dba2),
2174 local
2176 interface nsIScriptContainer : nsISupports
2178 typedef void *JSObject;
2180 nsresult GetContext(void **aContext);
2181 nsresult GetGlobalObject(void **aGlobalObject);
2182 nsresult CompileScript(const PRUnichar *aText, PRInt32 aTextLength, void *aScopeObject,
2183 nsIPrincipal *aPrincipal, const char *aURL, PRUint32 aLineNo, PRUint32 aVersion, void **_retval);
2184 nsresult ExecuteScript(void *aScriptObject, void *aScopeObject, nsAString *aRetVal, PRBool *aIsUndefined);
2185 nsresult CompileFunction(void *aTarget, const nsACString *aName, PRUint32 aArgCount,
2186 const char **aArgArray, const nsAString *aBody, const char *aURL, PRInt32 aLineNo,
2187 PRBool aShared, void* *_retval);
2188 nsresult CallFunction(nsISupports *aTarget, void *aScope, void *aHandler, nsIArray *argv,
2189 nsIVariant **_retval);
2190 nsresult BindEventHandler(nsISupports *aTarget, void *aScope, nsIAtom *aName, void *aHandler);
2191 nsresult HoldScriptObject(void *aObject);
2192 nsresult DropScriptObject(void *aObject);
2196 object,
2197 uuid(D4882FFB-E927-408b-96BE-D4391B456FA9),
2198 local
2200 interface nsIEditor : nsISupports
2202 typedef void *nsIPresShellPtr;
2203 typedef void *nsIContentPtr;
2205 nsresult GetSelection([out] nsISelection *_retval);
2206 nsresult Init([in] nsIDOMDocument *doc, [in] nsIPresShellPtr shell, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
2207 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] PRBool aSuppressTransaction);
2208 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] PRBool aSuppressTransaction);
2209 nsresult PostCreate();
2210 nsresult PreDestroy();
2211 nsresult GetFlags([out] PRUint32 *_retval);
2212 nsresult SetFlags([in] PRUint32 val);
2213 nsresult GetContentsMIMEType([out] char **_retval);
2214 nsresult SetContentsMIMEType([in] const char *val);
2215 nsresult GetIsDocumentEditable([out] PRBool *_retval);
2216 nsresult GetDocument([out] nsIDOMDocument **_retval);
2217 nsresult GetRootElement([out] nsIDOMElement **_retval);
2218 nsresult GetSelectionController([out] nsISelectionController **_retval);
2219 nsresult DeleteSelection([in] PRInt16 action);
2220 nsresult GetDocumentIsEmpty([out] PRBool *_retval);
2221 nsresult GetDocumentModified([out] PRBool *_retval);
2222 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
2223 nsresult SetDocumentCharacterSet([in] const nsACString *val);
2224 nsresult ResetModificationCount();
2225 nsresult GetModificationCount([out] PRInt32 *_retval);
2226 nsresult IncrementModificationCount([in] long aModCount);
2227 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
2228 nsresult DoTransaction([in] nsITransaction *txn);
2229 nsresult EnableUndo([in] PRBool enable);
2230 nsresult Undo([in] PRUint32 count);
2231 nsresult CanUndo([out] PRBool *isEnabled, [out] PRBool *canUndo);
2232 nsresult Redo([in] PRUint32 count);
2233 nsresult CanRedo([out] PRBool *isEnabled, [out] PRBool *canRedo);
2234 nsresult BeginTransaction();
2235 nsresult EndTransaction();
2236 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
2237 nsresult EndPlaceHolderTransaction();
2238 nsresult ShouldTxnSetSelection([out] PRBool *_retval);
2239 nsresult SetShouldTxnSetSelection([in] PRBool should);
2240 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
2241 nsresult Cut();
2242 nsresult CanCut([out] PRBool *_retval);
2243 nsresult Copy();
2244 nsresult CanCopy([out] PRBool *_retval);
2245 nsresult Paste([in] PRInt32 aSelectionType);
2246 nsresult CanPaste([in] PRInt32 aSelectionType, [out] PRBool *_retval);
2247 nsresult SelectAll();
2248 nsresult BeginningOfDocument();
2249 nsresult EndOfDocument();
2250 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2251 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2252 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2253 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
2254 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, PRBool *_retval);
2255 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
2256 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
2257 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
2258 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
2259 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
2260 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
2261 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
2262 nsresult DeleteNode([in] nsIDOMNode *child);
2263 nsresult MarkNodeDirty([in] nsIDOMNode *node);
2264 nsresult SwitchTextDirection();
2265 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
2266 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
2267 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
2268 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
2269 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
2270 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
2271 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
2272 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
2273 nsresult DumpContentTree();
2274 nsresult DebugDumpContent();
2275 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
2279 object,
2280 uuid(afc36593-5787-4420-93d9-b2c0ccbf0cad),
2281 local
2283 interface nsIHTMLEditor : nsISupports
2285 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2286 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2287 nsresult RemoveAllDefaultProperties();
2288 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2289 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
2290 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll);
2291 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] PRBool *aFirst, [out] PRBool *aAny, [out] PRBool *aAll, [out] nsAString *_retval);
2292 nsresult RemoveAllInlineProperties();
2293 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
2294 nsresult IncreaseFontSize();
2295 nsresult DecreaseFontSize();
2296 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] PRBool *_retval);
2297 nsresult DoDrag([in] nsIDOMEvent *aEvent);
2298 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
2299 nsresult NodeIsBlock([in] nsIDOMNode *node, PRBool *_retval);
2300 nsresult InsertHTML([in] nsAString *aInputString);
2301 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
2302 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
2303 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);
2304 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] PRBool aDeleteSelection);
2305 nsresult SetDocumentTitle([in] nsAString *aTitle);
2306 nsresult UpdateBaseURL();
2307 nsresult SelectElement([in] nsIDOMElement *aElement);
2308 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
2309 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
2310 nsresult GetParagraphState([out] PRBool *aMixed, [out] nsAString *_retval);
2311 nsresult GetFontFaceState([out] PRBool *aMixed, [out] nsAString *_retval);
2312 nsresult GetFontColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2313 nsresult GetBackgroundColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2314 nsresult GetHighlightColorState([out] PRBool *aMixed, [out] nsAString *_retval);
2315 nsresult GetListState([out] PRBool *aMixed, [out] PRBool *aOL, [out] PRBool *aUL, [out] PRBool *aDL);
2316 nsresult GetListItemState([out] PRBool *aMixed, [out] PRBool *aLI, [out] PRBool *aDT, [out] PRBool *aDD);
2317 nsresult GetAlignment([out] PRBool *aMixed, [out] PRInt16 *aAlign);
2318 nsresult GetIndentState([out] PRBool *aCanIndent, [out] PRBool *aCanOutdent);
2319 nsresult MakeOrChangeList([in] nsAString *aListType, [in] PRBool entireList, [in] nsAString *aBulletType);
2320 nsresult RemoveList([in] nsAString *aListType);
2321 nsresult Indent([in] nsAString *aIndent);
2322 nsresult Align([in] nsAString *aAlign);
2323 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
2324 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2325 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
2326 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
2327 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
2328 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
2329 nsresult SetBackgroundColor([in] nsAString *aColor);
2330 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
2331 nsresult IgnoreSpuriousDragEvent([in] PRBool aIgnoreSpuriousDragEvent);
2332 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
2333 nsresult GetIsCSSEnabled([out] PRBool *_retval);
2334 nsresult SetIsCSSEnabled([in] PRBool prb);
2335 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
2336 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
2337 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] PRBool aIsCreatedHidden, [out] nsIDOMElement **_retval);
2338 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
2339 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
2340 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] PRBool *_retval);
2341 nsresult GetReturnInParagraphCreatesNewParagraph([out] PRBool *_retval);
2342 nsresult SetReturnInParagraphCreatesNewParagraph([in] PRBool prb);
2346 * NOTE:
2347 * This is a private Wine interface that is implemented by our implementation
2348 * of nsIURI to store its owner.
2351 object,
2352 uuid(5088272e-900b-11da-c687-000fea57f21a),
2353 local
2354 /* INTERNAL */
2356 interface nsIWineURI : nsIURI
2358 typedef struct NSContainer NSContainer;
2360 nsresult GetNSContainer(NSContainer **aNSContainer);
2361 nsresult SetNSContainer(NSContainer *aNSContainer);
2362 nsresult GetIsDocumentURI(PRBool *aIsDocumentURI);
2363 nsresult SetIsDocumentURI(PRBool aIsDocumentURI);
2364 nsresult GetWineURL(LPCWSTR *aURL);
2365 nsresult SetWineURL(LPCWSTR aURL);