mshtml: Get rid of PRBool in nsiface.idl.
[wine/multimedia.git] / dlls / mshtml / nsiface.idl
blob8d52ead665231281184bdb9d850776b05b0dd255
1 /*
2 * Copyright 2005-2011 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
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 \"1.5\"")
27 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
29 import "wtypes.idl";
31 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
32 cpp_quote("#undef GetForm")
33 cpp_quote("#undef SetPort")
34 cpp_quote("#endif")
36 typedef HRESULT nsresult;
37 typedef ULONG nsrefcnt;
39 typedef IID nsID;
40 typedef IID nsIID;
41 typedef nsIID nsCID;
42 typedef REFIID nsIIDRef;
43 typedef nsIIDRef nsCIDRef;
45 typedef WCHAR PRUnichar;
46 typedef ULONG PRUint32;
47 typedef LONG PRInt32;
48 typedef WORD PRUint16;
49 typedef INT16 PRInt16;
50 typedef BYTE PRUint8;
51 typedef LONGLONG PRInt64;
52 typedef ULONGLONG PRUint64;
53 typedef PRUint64 DOMTimeStamp;
54 typedef PRUint32 nsLoadFlags;
56 typedef unsigned char cpp_bool;
57 #define bool cpp_bool
58 cpp_quote("#define PRBool cpp_bool") /* FIXME */
60 typedef struct {
61 void *v;
62 void *d1;
63 PRUint32 d2;
64 void *d3;
65 } nsCStringContainer;
67 typedef struct {
68 void *v;
69 void *d1;
70 PRUint32 d2;
71 void *d3;
72 } nsStringContainer;
74 typedef nsCStringContainer nsACString;
75 typedef nsStringContainer nsAString;
77 interface nsIWebBrowserChrome;
78 interface nsILoadGroup;
79 interface nsIDOMNode;
80 interface nsIDOMDocument;
81 interface nsIDOMEvent;
82 interface nsIEditor;
83 interface nsISelectionController;
84 interface nsITransactionManager;
85 interface nsITransaction;
86 interface nsIInlineSpellChecker;
87 interface nsIOutputStream;
88 interface nsIEditorObserver;
89 interface nsIEditActionListener;
90 interface nsIDocumentStateListener;
91 interface nsIDOMCSSStyleSheet;
92 interface nsIDOMDocumentView;
93 interface nsIDOMWindow;
94 interface nsIDOMElement;
95 interface nsIDOMRange;
96 interface nsIDOMEventTarget;
97 interface nsISelection;
98 interface nsIDOMHTMLSelectElement;
100 interface IMoniker;
103 object,
104 uuid(00000000-0000-0000-c000-000000000046),
105 local
107 interface nsISupports
109 nsresult QueryInterface(nsIIDRef riid, void **result);
110 nsrefcnt AddRef();
111 nsrefcnt Release();
114 /* Currently we don't need a full declaration of these interfaces */
115 typedef nsISupports nsISHistory;
116 typedef nsISupports nsIWidget;
117 typedef nsISupports nsIDOMBarProp;
118 typedef nsISupports nsIPrompt;
119 typedef nsISupports nsIAuthPrompt;
120 typedef nsISupports nsIDOMDocumentType;
121 typedef nsISupports nsIDOMDOMImplementation;
122 typedef nsISupports nsIDOMCDATASection;
123 typedef nsISupports nsIDOMProcessingInstruction;
124 typedef nsISupports nsIDOMEntityReference;
125 typedef nsISupports nsIWebProgressListener;
126 typedef nsISupports nsIDOMCSSValue;
127 typedef nsISupports nsIPrintSession;
128 typedef nsISupports nsIControllerCommandTable;
129 typedef nsISupports nsIPrincipal;
130 typedef nsISupports nsIAtom;
131 typedef nsISupports nsISupportsArray;
132 typedef nsISupports nsIContentFilter;
133 typedef nsISupports nsIDOMMediaList;
134 typedef nsISupports nsIDOMHTMLTableCaptionElement;
135 typedef nsISupports nsIDOMHTMLTableSectionElement;
136 typedef nsISupports nsIDOMClientRectList;
137 typedef nsISupports nsINode;
138 typedef nsISupports nsIStyleSheet;
139 typedef nsISupports nsIStyleRule;
140 typedef nsISupports nsIDOMUserDataHandler;
141 typedef nsISupports nsIDocShellLoadInfo;
142 typedef nsISupports nsISHEntry;
143 typedef nsISupports nsIPresShell;
144 typedef nsISupports nsIContentViewer;
145 typedef nsISupports nsIDocumentCharsetInfo;
146 typedef nsISupports nsILayoutHistoryState;
147 typedef nsISupports nsISecureBrowserUI;
148 typedef nsISupports nsIDOMStorage;
149 typedef nsISupports nsIDOMDOMTokenList;
150 typedef nsISupports nsITransferable;
151 typedef nsISupports nsIDOMHTMLHeadElement;
152 typedef nsISupports nsIDOMFileList;
153 typedef nsISupports nsIControllers;
154 typedef nsISupports nsIDOMValidityState;
155 typedef nsISupports nsIPluginInstanceOwner;
156 typedef nsISupports nsIPluginStreamListener;
157 typedef nsISupports nsIContentSink;
158 typedef nsISupports nsIParserFilter;
159 typedef nsISupports nsIDTD;
160 typedef nsISupports nsIObserver;
161 typedef nsISupports nsIDOMNodeFilter;
162 typedef nsISupports nsIDOMNodeIterator;
163 typedef nsISupports nsIDOMTreeWalker;
164 typedef nsISupports nsIHttpUpgradeListener;
165 typedef nsISupports nsIDOMDOMStringMap;
166 typedef nsISupports nsIDOMDOMStringList;
167 typedef nsISupports nsIDOMOfflineResourceList;
168 typedef nsISupports nsIDOMHistory;
169 typedef nsISupports nsIDOMNavigator;
170 typedef nsISupports nsIDOMMediaQueryList;
171 typedef nsISupports nsIDOMScreen;
172 typedef nsISupports nsIDOMCrypto;
173 typedef nsISupports nsIDOMPkcs11;
174 typedef nsISupports nsIAnimationFrameListener;
175 typedef nsISupports nsIDOMMozURLProperty;
176 typedef nsISupports nsIDOMStorageList;
177 typedef nsISupports nsILocalFile;
178 typedef nsISupports nsIDOMHTMLMenuElement;
179 typedef nsISupports nsIDOMCaretPosition;
180 typedef nsISupports nsIFrameRequestCallback;
182 typedef void *JSContext;
183 typedef void *JSObject;
184 typedef PRUint64 jsval;
187 object,
188 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
189 local
191 interface nsIServiceManager : nsISupports
193 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
194 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
195 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
196 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
200 object,
201 uuid(00000001-0000-0000-c000-000000000046),
202 local
204 interface nsIFactory : nsISupports
206 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
207 nsresult LockFactory(bool lock);
211 object,
212 uuid(1d940426-5fe5-42c3-84ae-a300f2d9ebd5),
213 local
215 interface nsIComponentManager : nsISupports
217 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, void **result);
218 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, void **result);
219 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
220 void **result);
221 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
222 nsIIDRef aIID, void **result);
223 nsresult AddBootstrappedManifestLocation(nsILocalFile *aLocation);
224 nsresult RemoveBootstrappedManifestLocation(nsILocalFile *aLocation);
228 object,
229 uuid(59e7e77a-38e4-11d4-8cf5-0060b0fc14a3),
230 local
232 interface nsIMemory : nsISupports
234 void *Alloc(/*size_t*/ int size);
235 void *Realloc(void *_ptr, /*size_t*/ int newSize);
236 void Free(void *_ptr);
237 nsresult HeapMinimize(bool immediate);
238 nsresult IsLowMemory(bool *_retval);
242 object,
243 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
244 local
246 interface nsIWeakReference : nsISupports
248 nsresult QueryReferent(const nsIID *riid, void **result);
252 object,
253 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
254 local
256 interface nsISupportsWeakReference : nsISupports
258 nsresult GetWeakReference(nsIWeakReference **_retval);
262 object,
263 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
264 local
266 interface nsIInterfaceRequestor : nsISupports
268 nsresult GetInterface(const nsIID *riid, void **result);
272 object,
273 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
274 local
276 interface nsIRunnable : nsISupports
278 nsresult Run();
282 object,
283 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
284 local
286 interface nsISimpleEnumerator : nsISupports
288 nsresult HasMoreElements(bool *_retval);
289 nsresult GetNext(nsISupports **_retval);
293 object,
294 uuid(81e4c2de-acac-4ad6-901a-b5fb1b851a0d),
295 local
297 interface nsIVariant : nsISupports
299 nsresult GetDataType(PRUint16 *aDataType);
300 nsresult GetAsInt8(PRUint8 *_retval);
301 nsresult GetAsInt16(PRInt16 *_retval);
302 nsresult GetAsInt32(PRInt32 *_retval);
303 nsresult GetAsInt64(PRInt64 *_retval);
304 nsresult GetAsUint8(PRUint8 *_retval);
305 nsresult GetAsUint16(PRUint16 *_retval);
306 nsresult GetAsUint32(PRUint32 *_retval);
307 nsresult GetAsUint64(PRUint64 *_retval);
308 nsresult GetAsFloat(float *_retval);
309 nsresult GetAsDouble(double *_retval);
310 nsresult GetAsBool(bool *_retval);
311 nsresult GetAsChar(char *_retval);
312 nsresult GetAsWChar(PRUnichar *_retval);
313 nsresult GetAsID(nsID *retval);
314 nsresult GetAsAString(nsAString *_retval);
315 nsresult GetAsDOMString(nsAString *_retval);
316 nsresult GetAsACString(nsACString *_retval);
317 nsresult GetAsAUTF8String(nsACString *_retval);
318 nsresult GetAsString(char * *_retval);
319 nsresult GetAsWString(PRUnichar * *_retval);
320 nsresult GetAsISupports(nsISupports * *_retval);
321 nsresult GetAsJSVal(long /*jsval*/ *_retval);
322 nsresult GetAsInterface(nsIID **iid, void **iface);
323 nsresult GetAsArray(PRUint16 *type, nsIID *iid, PRUint32 *count, void **ptr);
324 nsresult GetAsStringWithSize(PRUint32 *size, char **str);
325 nsresult GetAsWStringWithSize(PRUint32 *size, PRUnichar **str);
329 object,
330 uuid(5586a590-8c82-11d5-90f3-0010a4e73d9a),
331 local
333 interface nsIWritableVariant : nsIVariant
335 nsresult GetWritable(bool *aWritable);
336 nsresult SetWritable(bool aWritable);
337 nsresult SetAsInt8(PRUint8 aValue);
338 nsresult SetAsInt16(PRInt16 aValue);
339 nsresult SetAsInt32(PRInt32 aValue);
340 nsresult SetAsInt64(PRInt64 aValue);
341 nsresult SetAsUint8(PRUint8 aValue);
342 nsresult SetAsUint16(PRUint16 aValue);
343 nsresult SetAsUint32(PRUint32 aValue);
344 nsresult SetAsUint64(PRUint64 aValue);
345 nsresult SetAsFloat(float aValue);
346 nsresult SetAsDouble(double aValue);
347 nsresult SetAsBool(bool aValue);
348 nsresult SetAsChar(char aValue);
349 nsresult SetAsWChar(PRUnichar aValue);
350 nsresult SetAsID(const nsID *aValue);
351 nsresult SetAsAString(const nsAString *aValue);
352 nsresult SetAsDOMString(const nsAString *aValue);
353 nsresult SetAsACString(const nsACString *aValue);
354 nsresult SetAsAUTF8String(const nsACString *aValue);
355 nsresult SetAsString(const char * aValue);
356 nsresult SetAsWString(const PRUnichar * aValue);
357 nsresult SetAsISupports(nsISupports *aValue);
358 nsresult SetAsInterface(const nsIID *iid, void *iface);
359 nsresult SetAsArray(PRUint16 type, const nsIID *iid, PRUint32 count, void *ptr);
360 nsresult SetAsStringWithSize(PRUint32 size, const char *str);
361 nsresult SetAsWStringWithSize(PRUint32 size, const PRUnichar *str);
362 nsresult SetAsVoid();
363 nsresult SetAsEmpty();
364 nsresult SetAsEmptyArray();
365 nsresult SetFromVariant(nsIVariant *aValue);
369 object,
370 uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a),
371 local
373 interface nsIInputStream : nsISupports
375 nsresult Close();
376 nsresult Available(PRUint32 *_retval);
377 nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
378 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
379 void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
380 PRUint32 aCount, PRUint32 *aWriteCount),
381 void *aClosure, PRUint32 aCount, PRUint32 *_retval);
382 nsresult IsNonBlocking(bool *_retval);
386 object,
387 uuid(395fe045-7d18-4adb-a3fd-af98c8a1af11),
388 local
390 interface nsIURI : nsISupports
392 nsresult GetSpec(nsACString *aSpec);
393 nsresult SetSpec(const nsACString *aSpec);
394 nsresult GetPrePath(nsACString *aPrePath);
395 nsresult GetScheme(nsACString *aScheme);
396 nsresult SetScheme(const nsACString *aScheme);
397 nsresult GetUserPass(nsACString *aUserPass);
398 nsresult SetUserPass(const nsACString *aUserPass);
399 nsresult GetUsername(nsACString *aUsername);
400 nsresult SetUsername(const nsACString *aUsername);
401 nsresult GetPassword(nsACString *aPassword);
402 nsresult SetPassword(const nsACString *aPassword);
403 nsresult GetHostPort(nsACString *aHostPort);
404 nsresult SetHostPort(const nsACString *aHostPort);
405 nsresult GetHost(nsACString *aHost);
406 nsresult SetHost(const nsACString *aHost);
407 nsresult GetPort(PRInt32 *aPort);
408 nsresult SetPort(PRInt32 aPort);
409 nsresult GetPath(nsACString *aPath);
410 nsresult SetPath(const nsACString *aPath);
411 nsresult Equals(nsIURI *other, bool *_retval);
412 nsresult SchemeIs(const char *scheme, bool *_retval);
413 nsresult Clone(nsIURI **_retval);
414 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
415 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
416 nsresult GetAsciiHost(nsACString *aAsciiHost);
417 nsresult GetOriginCharset(nsACString *aOriginCharset);
418 nsresult GetRef(nsACString *aRef);
419 nsresult SetRef(const nsACString *aRef);
420 nsresult EqualsExceptRef(nsIURI *other, bool *_retval);
421 nsresult CloneIgnoringRef(nsIURI **_retval);
422 nsresult GetSpecIgnoringRef(nsACString *aSpecIgnoringRef);
423 nsresult GetHasRef(bool *aHasRef);
427 object,
428 uuid(1419aa16-f134-4154-9886-00c7c5147a13),
429 local
431 interface nsIURL : nsIURI
433 nsresult GetFilePath(nsACString *aFilePath);
434 nsresult SetFilePath(const nsACString *aFilePath);
435 nsresult GetQuery(nsACString *aQuery);
436 nsresult SetQuery(const nsACString *aQuery);
437 nsresult GetDirectory(nsACString *aDirectory);
438 nsresult SetDirectory(const nsACString *aDirectory);
439 nsresult GetFileName(nsACString *aFileName);
440 nsresult SetFileName(const nsACString *aFileName);
441 nsresult GetFileBaseName(nsACString *aFileBaseName);
442 nsresult SetFileBaseName(const nsACString *aFileBaseName);
443 nsresult GetFileExtension(nsACString *aFileExtension);
444 nsresult SetFileExtension(const nsACString *aFileExtension);
445 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
446 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
450 object,
451 uuid(321578d0-03c1-4d95-8821-021ac612d18d),
452 local
454 interface nsIMutable : nsISupports
456 nsresult GetMutable(bool *aMutable);
457 nsresult SetMutable(bool aMutable);
461 object,
462 uuid(babd6cca-ebe7-4329-967c-d6b9e33caa81),
463 local
465 interface nsIStandardURL : nsIMutable
467 nsresult Init(PRUint32 aUrlType, PRInt32 aDefaultPort, const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI);
471 object,
472 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
473 local
475 interface nsIRequest : nsISupports
477 nsresult GetName(nsACString *aName);
478 nsresult IsPending(bool *_retval);
479 nsresult GetStatus(nsresult *aStatus);
480 nsresult Cancel(nsresult aStatus);
481 nsresult Suspend();
482 nsresult Resume();
483 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
484 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
485 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
486 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
490 object,
491 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
492 local
494 interface nsIRequestObserver : nsISupports
496 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
497 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
501 object,
502 uuid(1a637020-1482-11d3-9333-00104ba0fd40),
503 local
505 interface nsIStreamListener : nsIRequestObserver
507 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
508 nsIInputStream *aInputStream, PRUint32 aOffset, PRUint32 aCount);
512 object,
513 uuid(3de0a31c-feaf-400f-9f1e-4ef71f8b20cc),
514 local
516 interface nsILoadGroup : nsIRequest
518 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
519 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
520 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
521 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
522 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
523 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
524 nsresult GetRequests(nsISimpleEnumerator **aRequests);
525 nsresult GetActiveCount(PRUint32 *aActiveCount);
526 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
527 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
531 object,
532 uuid(06f6ada3-7729-4e72-8d3f-bf8ba630ff9b),
533 local
535 interface nsIChannel : nsIRequest
537 nsresult GetOriginalURI(nsIURI **aOriginalURI);
538 nsresult SetOriginalURI(nsIURI *aOriginalURI);
539 nsresult GetURI(nsIURI **aURI);
540 nsresult GetOwner(nsISupports **aOwner);
541 nsresult SetOwner(nsISupports *aOwner);
542 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
543 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
544 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
545 nsresult GetContentType(nsACString *aContentType);
546 nsresult SetContentType(const nsACString *aContentType);
547 nsresult GetContentCharset(nsACString *aContentCharset);
548 nsresult SetContentCharset(const nsACString *aContentCharset);
549 nsresult GetContentLength(PRInt32 *aContentLength);
550 nsresult SetContentLength(PRInt32 aContentLength);
551 nsresult Open(nsIInputStream **_retval);
552 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
553 nsresult GetContentDisposition(PRUint32 *aContentDisposition);
554 nsresult GetContentDispositionFilename(nsAString *aContentDispositionFilename);
555 nsresult GetContentDispositionHeader(nsACString *aContentDispositionHeader);
559 object,
560 uuid(35412859-b9d9-423c-8866-2d4559fdd2be),
561 local
563 interface nsIHttpHeaderVisitor : nsISupports
565 nsresult VisitHeader(const nsACString *aHeader, const nsACString *aValue);
569 object,
570 uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260),
571 local
573 interface nsIHttpChannel : nsIChannel
575 nsresult GetRequestMethod(nsACString *aRequestMethod);
576 nsresult SetRequestMethod(const nsACString *aRequestMethod);
577 nsresult GetReferrer(nsIURI **aReferrer);
578 nsresult SetReferrer(nsIURI *aReferrer);
579 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
580 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, bool aMerge);
581 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
582 nsresult GetAllowPipelining(bool *aAllowPipelining);
583 nsresult SetAllowPipelining(bool aAllowPipelining);
584 nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
585 nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
586 nsresult GetResponseStatus(PRUint32 *aResponseStatus);
587 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
588 nsresult GetRequestSucceeded(bool *aRequestSucceeded);
589 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
590 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, bool merge);
591 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
592 nsresult IsNoStoreResponse(bool *_retval);
593 nsresult IsNoCacheResponse(bool *_retval);
597 object,
598 uuid(9363fd96-af59-47e8-bddf-1d5e91acd336),
599 local
601 interface nsIHttpChannelInternal : nsISupports
603 nsresult GetDocumentURI(nsIURI **aDocumentURI);
604 nsresult SetDocumentURI(nsIURI *aDocumentURI);
605 nsresult GetRequestVersion(PRUint32 *major, PRUint32 *minor);
606 nsresult GetResponseVersion(PRUint32 *major, PRUint32 *minor);
607 nsresult SetCookie(const char *aCookieHeader);
608 nsresult SetupFallbackChannel(const char *aFallbackKey);
609 nsresult GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie);
610 nsresult SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie);
611 nsresult GetCanceled(bool *aCanceled);
612 nsresult GetChannelIsForDownload(bool *aChannelIsForDownload);
613 nsresult SetChannelIsForDownload(bool aChannelIsForDownload);
614 nsresult GetLocalAddress(nsACString *aLocalAddress);
615 nsresult GetLocalPort(PRInt32 *aLocalPort);
616 nsresult GetRemoteAddress(nsACString *aRemoteAddress);
617 nsresult GetRemotePort(PRInt32 *aRemotePort);
618 nsresult SetCacheKeysRedirectChain(void /*nsTArray<nsCString>*/ *cacheKeys);
619 nsresult HTTPUpgrade(const nsACString *aProtocolName, nsIHttpUpgradeListener *aListener);
620 nsresult GetAllowSpdy(bool *aAllowSpdy);
621 nsresult SetAllowSpdy(bool aAllowSpdy);
625 object,
626 uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75),
627 local
629 interface nsIUploadChannel : nsISupports
631 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
632 PRInt32 aContentLength);
633 nsresult GetUploadStream(nsIInputStream **aUploadStream);
637 object,
638 uuid(8d171460-a716-41f1-92be-8c659db39b45),
639 local
641 interface nsIAsyncVerifyRedirectCallback : nsISupports
643 nsresult OnRedirectVerifyCallback(nsresult result);
647 object,
648 uuid(a430d870-df77-4502-9570-d46a8de33154),
649 local
651 interface nsIChannelEventSink : nsISupports
653 cpp_quote("#define REDIRECT_TEMPORARY 1")
654 cpp_quote("#define REDIRECT_PERMANENT 2")
655 cpp_quote("#define REDIRECT_INTERNAL 4")
657 nsresult AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, PRUint32 flags,
658 nsIAsyncVerifyRedirectCallback *callback);
662 object,
663 uuid(a6cf906d-15b3-11d2-932e-00805f8add32),
664 local
666 interface nsIDOMLocation : nsISupports
668 nsresult GetHash(nsAString *aHash);
669 nsresult SetHash(const nsAString *aHash);
670 nsresult GetHost(nsAString *aHost);
671 nsresult SetHost(const nsAString *aHost);
672 nsresult GetHostname(nsAString *aHostname);
673 nsresult SetHostname(const nsAString *aHostname);
674 nsresult GetHref(nsAString *aHref);
675 nsresult SetHref(const nsAString *aHref);
676 nsresult GetPathname(nsAString *aPathname);
677 nsresult SetPathname(const nsAString *aPathname);
678 nsresult GetPort(nsAString *aPort);
679 nsresult SetPort(const nsAString *aPort);
680 nsresult GetProtocol(nsAString *aProtocol);
681 nsresult SetProtocol(const nsAString *aProtocol);
682 nsresult GetSearch(nsAString *aSearch);
683 nsresult SetSearch(const nsAString *aSearch);
684 nsresult Reload(bool forceget);
685 nsresult Replace(const nsAString *url);
686 nsresult Assign(const nsAString *url);
687 nsresult ToString(nsAString *_retval);
691 object,
692 uuid(2938307a-9d70-4b63-8afc-0197e82318ad),
693 local
695 interface nsIDOMCSSRule : nsISupports
697 nsresult GetType(PRUint16 *aType);
698 nsresult GetCssText(nsAString *aCssText);
699 nsresult SetCssText(const nsAString *aCssText);
700 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
701 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
705 object,
706 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
707 local
709 interface nsIDOMCSSStyleDeclaration : nsISupports
711 nsresult GetCssText(nsAString *aCssText);
712 nsresult SetCssText(const nsAString *aCssText);
713 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
714 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
715 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
716 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
717 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
718 const nsAString *priority);
719 nsresult GetLength(PRUint32 *aLength);
720 nsresult Item(PRUint32 index, nsAString *_retval);
721 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
725 object,
726 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
727 local
729 interface nsIDOMCSSRuleList : nsISupports
731 nsresult GetLength(PRUint32 *aLength);
732 nsresult Item(PRUint32 index, nsIDOMCSSRule **_retval);
736 object,
737 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
738 local
740 interface nsIDOMStyleSheet : nsISupports
742 nsresult GetType(nsAString *aType);
743 nsresult GetDisabled(bool *aDisabled);
744 nsresult SetDisabled(bool aDisabled);
745 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
746 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
747 nsresult GetHref(nsAString *aHref);
748 nsresult GetTitle(nsAString *aTitle);
749 nsresult GetMedia(nsIDOMMediaList **aMedia);
753 object,
754 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
755 local
757 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
759 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
760 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
761 nsresult InsertRule(const nsAString *rule, PRUint32 index, PRUint32 *_retval);
762 nsresult DeleteRule(PRUint32 index);
766 object,
767 uuid(a6cf9081-15b3-11d2-932e-00805f8add32),
768 local
770 interface nsIDOMStyleSheetList : nsISupports
772 nsresult GetLength(PRUint32 *aLength);
773 nsresult Item(PRUint32 index, nsIDOMStyleSheet **_retval);
777 object,
778 uuid(496852ba-e48d-4fa5-982e-e0dc1b475bf1),
779 local
781 interface nsIDOMNodeList : nsISupports
783 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
784 nsresult GetLength(PRUint32 *aLength);
785 /* Followed by semi-internal API that we don't want to use */
789 object,
790 uuid(a6cf907b-15b3-11d2-932e-00805f8add32),
791 local
793 interface nsIDOMNamedNodeMap : nsISupports
795 nsresult GetNamedItem(const nsAString *name, nsIDOMNode **_retval);
796 nsresult SetNamedItem(nsIDOMNode *arg, nsIDOMNode **_retval);
797 nsresult RemoveNamedItem(const nsAString *name, nsIDOMNode **_retval);
798 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
799 nsresult GetLength(PRUint32 *aLength);
800 nsresult GetNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNode **_retval);
801 nsresult SetNamedItemNS(nsIDOMNode *arg, nsIDOMNode **_retval);
802 nsresult RemoveNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNode **_retval);
806 object,
807 uuid(ce82fb71-60f2-4c38-be31-de5f2f90dada),
808 local
810 interface nsIDOMNode : nsISupports
812 enum NSNODETYPE {
813 ELEMENT_NODE = 1,
814 ATTRIBUTE_NODE = 2,
815 TEXT_NODE = 3,
816 CDATA_SELECTION_NODE = 4,
817 ENTITY_REFERENCE_NODE = 5,
818 ENTITY_NODE = 6,
819 PROCESSING_INSTRUCTION_NODE = 7,
820 COMMENT_NODE = 8,
821 DOCUMENT_NODE = 9,
822 DOCUMENT_TYPE_NODE = 10,
823 DOCUMENT_FRAGMENT_NODE = 11,
824 NOTATION_NODE = 12
827 enum {
828 DOCUMENT_POSITION_DISCONNECTED = 1,
829 DOCUMENT_POSITION_PRECEDING = 2,
830 DOCUMENT_POSITION_FOLLOWING = 4,
831 DOCUMENT_POSITION_CONTAINS = 8,
832 DOCUMENT_POSITION_CONTAINED_BY = 16,
833 DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32
836 nsresult GetNodeName(nsAString *aNodeName);
837 nsresult GetNodeValue(nsAString *aNodeValue);
838 nsresult SetNodeValue(const nsAString *aNodeValue);
839 nsresult GetNodeType(PRUint16 *aNodeType);
840 nsresult GetParentNode(nsIDOMNode **aParentNode);
841 nsresult GetParentElement(nsIDOMElement **aParentElement);
842 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
843 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
844 nsresult GetLastChild(nsIDOMNode **aLastChild);
845 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
846 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
847 nsresult GetAttributes(nsIDOMNamedNodeMap **aAttributes);
848 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
849 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
850 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
851 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
852 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
853 nsresult HasChildNodes(bool *_retval);
854 nsresult CloneNode(bool deep, nsIDOMNode **_retval);
855 nsresult Normalize();
856 nsresult IsSupported(const nsAString *feature, const nsAString *version, bool *_retval);
857 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
858 nsresult GetPrefix(nsAString *aPrefix);
859 nsresult GetLocalName(nsAString *aLocalName);
860 nsresult HasAttributes(bool *_retval);
861 nsresult GetDOMBaseURI(nsAString *aBaseURI);
862 nsresult CompareDocumentPosition(nsIDOMNode *other, PRUint16 *_retval);
863 nsresult GetTextContent(nsAString *aTextContent);
864 nsresult SetTextContent(const nsAString *aTextContent);
865 nsresult LookupPrefix(const nsAString *namespaceURI, nsAString *_retval);
866 nsresult IsDefaultNamespace(const nsAString *namespaceURI, bool *_retval);
867 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString *_retval);
868 nsresult IsEqualNode(nsIDOMNode *arg, bool *_retval);
869 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIDOMUserDataHandler *handler, nsIVariant **_retval);
870 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
871 nsresult Contains(nsIDOMNode *aOther, bool *_retval);
875 object,
876 uuid(03da4bc9-1b9a-41dc-a1a4-32414d48d704),
877 local
879 interface nsIDOMAttr : nsIDOMNode
881 nsresult GetName(nsAString *aName);
882 nsresult GetSpecified(bool *aSpecified);
883 nsresult GetValue(nsAString *aValue);
884 nsresult SetValue(const nsAString *aValue);
885 nsresult GetOwnerElement(nsIDOMElement **aOwnerElement);
886 nsresult GetIsId(bool *aIsId);
890 object,
891 uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
892 local
894 interface nsIDOMClientRect : nsISupports
896 nsresult GetLeft(float *aLeft);
897 nsresult GetTop(float *aTop);
898 nsresult GetRight(float *aRight);
899 nsresult GetBottom(float *aBottom);
900 nsresult GetWidth(float *aWidth);
901 nsresult GetHeight(float *aHeight);
905 object,
906 uuid(f561753a-1d4f-40c1-b147-ea955fc6fd94),
907 local
909 interface nsIDOMElement : nsIDOMNode
911 nsresult GetTagName(nsAString *aTagName);
912 nsresult GetClassList(nsIDOMDOMTokenList **aClassList);
913 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
914 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName, nsAString *_retval);
915 nsresult SetAttribute(const nsAString *name, const nsAString *value);
916 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, const nsAString *value);
917 nsresult RemoveAttribute(const nsAString *name);
918 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
919 nsresult HasAttribute(const nsAString *name, bool *_retval);
920 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName, bool *_retval);
921 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
922 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
923 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
924 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMAttr **_retval);
925 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
926 nsresult GetElementsByTagName(const nsAString *name, nsIDOMNodeList **_retval);
927 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNodeList **_retval);
928 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
929 nsresult GetChildElements(nsIDOMNodeList **aChildren);
930 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
931 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
932 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
933 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
934 nsresult GetChildElementCount(PRUint32 *aChildElementCount);
935 nsresult GetOnmouseenter(JSContext *cx, jsval *aOnmouseenter);
936 nsresult SetOnmouseenter(JSContext *cx, const jsval *aOnmouseenter);
937 nsresult GetOnmouseleave(JSContext *cx, jsval *aOnmouseleave);
938 nsresult SetOnmouseleave(JSContext *cx, const jsval *aOnmouseleave);
939 nsresult GetClientRects(nsIDOMClientRectList **_retval);
940 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
941 nsresult GetScrollTop(PRInt32 *aScrollTop);
942 nsresult SetScrollTop(PRInt32 aScrollTop);
943 nsresult GetScrollLeft(PRInt32 *aScrollLeft);
944 nsresult SetScrollLeft(PRInt32 aScrollLeft);
945 nsresult GetScrollWidth(PRInt32 *aScrollWidth);
946 nsresult GetScrollHeight(PRInt32 *aScrollHeight);
947 nsresult GetClientTop(PRInt32 *aClientTop);
948 nsresult GetClientLeft(PRInt32 *aClientLeft);
949 nsresult GetClientWidth(PRInt32 *aClientWidth);
950 nsresult GetClientHeight(PRInt32 *aClientHeight);
951 nsresult MozMatchesSelector(const nsAString *selector, bool *_retval);
952 nsresult SetCapture(bool retargetToElement);
953 nsresult ReleaseCapture();
957 object,
958 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
959 local
961 interface nsIDOMElementCSSInlineStyle : nsISupports
963 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
966 cpp_quote("#undef GetClassName")
969 object,
970 uuid(3de9f8c1-5d76-4d2e-b6b9-334c6eb0c113),
971 local
973 interface nsIDOMHTMLElement : nsIDOMElement
975 nsresult GetId(nsAString *aId);
976 nsresult SetId(const nsAString *aId);
977 nsresult GetTitle(nsAString *aTitle);
978 nsresult SetTitle(const nsAString *aTitle);
979 nsresult GetLang(nsAString *aLang);
980 nsresult SetLang(const nsAString *aLang);
981 nsresult GetDir(nsAString *aDir);
982 nsresult SetDir(const nsAString *aDir);
983 nsresult GetClassName(nsAString *aClassName);
984 nsresult SetClassName(const nsAString *aClassName);
985 nsresult GetDataset(nsIDOMDOMStringMap **aDataset);
986 nsresult GetHidden(bool *aHidden);
987 nsresult SetHidden(bool aHidden);
988 nsresult Click();
989 nsresult GetTabIndex(PRInt32 *aTabIndex);
990 nsresult SetTabIndex(PRInt32 aTabIndex);
991 nsresult Focus();
992 nsresult Blur();
993 nsresult GetAccessKey(nsAString *aAccessKey);
994 nsresult SetAccessKey(const nsAString *aAccessKey);
995 nsresult GetAccessKeyLabel(nsAString *aAccessKeyLabel);
996 nsresult GetDraggable(bool *aDraggable);
997 nsresult SetDraggable(bool aDraggable);
998 nsresult GetContentEditable(nsAString *aContentEditable);
999 nsresult SetContentEditable(const nsAString *aContentEditable);
1000 nsresult GetIsContentEditable(bool *aIsContentEditable);
1001 nsresult GetContextMenu(nsIDOMHTMLMenuElement **aContextMenu);
1002 nsresult GetSpellcheck(bool *aSpellcheck);
1003 nsresult SetSpellcheck(bool aSpellcheck);
1004 nsresult GetInnerHTML(nsAString *aInnerHTML);
1005 nsresult SetInnerHTML(const nsAString *aInnerHTML);
1006 nsresult GetOuterHTML(nsAString *aInnerHTML);
1007 nsresult SetOuterHTML(const nsAString *aInnerHTML);
1008 nsresult InsertAdjacentHTML(const nsAString *position, const nsAString *text);
1009 nsresult ScrollIntoView(bool top, PRUint8 _argc);
1010 nsresult GetOffsetParent(nsIDOMElement * *aOffsetParent);
1011 nsresult GetOffsetTop(PRInt32 *aOffsetTop);
1012 nsresult GetOffsetLeft(PRInt32 *aOffsetLeft);
1013 nsresult GetOffsetWidth(PRInt32 *aOffsetWidth);
1014 nsresult GetOffsetHeight(PRInt32 *aOffsetHeight);
1015 nsresult MozRequestFullScreen();
1019 object,
1020 uuid(b7ccd7b3-86aa-4322-a50c-b972643bb662),
1021 local
1023 interface nsIDOMHTMLCollection : nsISupports
1025 nsresult GetLength(PRUint32 *aLength);
1026 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1027 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1028 /* Followed by semi-internal API that we don't want to use */
1032 object,
1033 uuid(cb75c251-afc7-444f-b2d6-b9635555f3ed),
1034 local
1036 interface nsIDOMCharacterData : nsIDOMNode
1038 nsresult GetData(nsAString *aData);
1039 nsresult SetData(const nsAString *aData);
1040 nsresult GetLength(PRUint32 *aLength);
1041 nsresult SubstringData(PRUint32 offset, PRUint32 count, nsAString *_retval);
1042 nsresult AppendData(const nsAString *arg);
1043 nsresult InsertData(PRUint32 offset, const nsAString *arg);
1044 nsresult DeleteData(PRUint32 offset, PRUint32 count);
1045 nsresult ReplaceData(PRUint32 offset, PRUint32 count, const nsAString *arg);
1049 object,
1050 uuid(437ed60c-febd-4bd0-892f-cf358adc3c96),
1051 local
1053 interface nsIDOMText : nsIDOMCharacterData
1055 nsresult SplitText(PRUint32 offset, nsIDOMText **_retval);
1056 nsresult GetWholeText(nsAString *aWholeText);
1060 object,
1061 uuid(cea49a35-dac9-4c4d-9830-4660abb3b6bc),
1062 local
1064 interface nsIDOMComment : nsIDOMCharacterData
1069 object,
1070 uuid(4a15eb0c-d5bc-4902-9d50-21b12cab47e7),
1071 local
1073 interface nsIDOMDocumentFragment : nsIDOMNode
1078 object,
1079 uuid(5c3bff4d-ae7f-4c93-948c-519589672c30),
1080 local
1082 interface nsIDOMDocument : nsIDOMNode
1084 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
1085 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
1086 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
1087 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
1088 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
1089 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
1090 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
1091 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
1092 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data, nsIDOMProcessingInstruction **_retval);
1093 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
1094 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
1095 nsresult ImportNode(nsIDOMNode *importedNode, bool deep, PRUint8 _argc, nsIDOMNode **_retval);
1096 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMElement **_retval);
1097 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMAttr **_retval);
1098 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNodeList **_retval);
1099 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
1100 nsresult GetInputEncoding(nsAString *aInputEncoding);
1101 nsresult GetDocumentURI(nsAString *aDocumentURI);
1102 nsresult AdoptNode(nsIDOMNode *source, nsIDOMNode **_retval);
1103 nsresult CreateRange(nsIDOMRange **_retval);
1104 nsresult CreateNodeIterator(nsIDOMNode *root, PRUint32 whatToShow, nsIDOMNodeFilter *filter,
1105 bool entityReferenceExpansion, nsIDOMNodeIterator **_retval);
1106 nsresult CreateTreeWalker(nsIDOMNode *root, PRUint32 whatToShow, nsIDOMNodeFilter *filter,
1107 bool entityReferenceExpansion, nsIDOMTreeWalker **_retval);
1108 cpp_quote("#undef CreateEvent")
1109 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1110 nsresult GetDefaultView(nsIDOMWindow **aDefaultView);
1111 nsresult GetCharacterSet(nsAString *aCharacterSet);
1112 nsresult GetDir(nsAString *aDir);
1113 nsresult SetDir(const nsAString *aDir);
1114 nsresult GetLocation(nsIDOMLocation **aLocation);
1115 nsresult GetTitle(nsAString *aTitle);
1116 nsresult SetTitle(const nsAString *aTitle);
1117 nsresult GetReadyState(nsAString *aReadyState);
1118 nsresult GetLastModified(nsAString *aLastModified);
1119 nsresult GetReferrer(nsAString *aReferrer);
1120 nsresult HasFocus(bool *_retval);
1121 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
1122 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
1123 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1124 nsresult GetPreferredStyleSheetSet(nsAString *aPreferredStyleSheetSet);
1125 nsresult GetSelectedStyleSheetSet(nsAString *aSelectedStyleSheetSet);
1126 nsresult SetSelectedStyleSheetSet(const nsAString *aSelectedStyleSheetSet);
1127 nsresult GetLastStyleSheetSet(nsAString *aLastStyleSheetSet);
1128 nsresult GetStyleSheetSets(nsIDOMDOMStringList **aStyleSheetSets);
1129 nsresult EnableStyleSheetsForSet(const nsAString *name);
1130 nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
1131 nsresult GetContentType(nsAString *aContentType);
1132 nsresult GetMozSyntheticDocument(bool *aMozSyntheticDocument);
1133 nsresult GetCurrentScript(nsIDOMElement **aCurrentScript);
1134 nsresult ReleaseCapture();
1135 nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
1136 nsresult GetMozFullScreenElement(nsIDOMHTMLElement **aMozFullScreenElement);
1137 nsresult MozCancelFullScreen();
1138 nsresult GetMozFullScreen(bool *aMozFullScreen);
1139 nsresult GetMozFullScreenEnabled(bool *aMozFullScreenEnabled);
1140 nsresult GetOnreadystatechange(JSContext* cx, jsval aOnreadystatechange);
1141 nsresult SetOnreadystatechange(JSContext* cx, const jsval *aOnreadystatechange);
1142 nsresult GetOnmouseenter(JSContext* cx, jsval *aOnmouseenter);
1143 nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter);
1144 nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave) = 0;
1145 nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave);
1146 nsresult GetMozHidden(bool *aMozHidden);
1147 nsresult GetMozVisibilityState(nsAString *aMozVisibilityState);
1151 object,
1152 uuid(cc1af020-6543-429c-82d7-840cda3be0b9),
1153 local
1155 interface nsIDOMHTMLDocument : nsIDOMDocument
1157 nsresult GetURL(nsAString *aURL);
1158 nsresult GetDomain(nsAString *aDomain);
1159 nsresult SetDomain(const nsAString *aDomain);
1160 nsresult GetCookie(nsAString *aCookie);
1161 nsresult SetCookie(const nsAString *aCookie);
1162 nsresult GetCompatMode(nsAString *aCompatMode);
1163 nsresult GetHead(nsIDOMHTMLHeadElement **aHead);
1164 nsresult GetBody(nsIDOMHTMLElement **aBody);
1165 nsresult SetBody(nsIDOMHTMLElement *aBody);
1166 nsresult GetImages(nsIDOMHTMLCollection **aImages);
1167 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
1168 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1169 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
1170 nsresult GetForms(nsIDOMHTMLCollection **aForms);
1171 nsresult GetScripts(nsIDOMHTMLCollection **aScripts);
1172 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
1173 nsresult Open(const nsAString *aContentTypeOrUrl, const nsAString *aReplaceOrName, const nsAString *aFeatures,
1174 JSContext *cx, PRUint8 _argc, nsISupports **_retval);
1175 nsresult Close();
1176 nsresult Write(const nsAString *text, JSContext *cx);
1177 nsresult Writeln(const nsAString *text, JSContext *cx);
1178 nsresult GetDesignMode(nsAString *aDesignMode);
1179 nsresult SetDesignMode(const nsAString *aDesignMode);
1180 nsresult ExecCommand(const nsAString *commandID, bool doShowUI, const nsAString *value, bool *_retval);
1181 nsresult ExecCommandShowHelp(const nsAString *commandID, bool *_retval);
1182 nsresult QueryCommandEnabled(const nsAString *commandID, bool *_retval);
1183 nsresult QueryCommandIndeterm(const nsAString *commandID, bool *_retval);
1184 nsresult QueryCommandState(const nsAString *commandID, bool *_retval);
1185 nsresult QueryCommandSupported(const nsAString *commandID, bool *_retval);
1186 nsresult QueryCommandText(const nsAString *commandID, nsAString *_retval);
1187 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1188 nsresult GetFgColor(nsAString *aFgColor);
1189 nsresult SetFgColor(const nsAString *aFgColor);
1190 nsresult GetBgColor(nsAString *aBgColor);
1191 nsresult SetBgColor(const nsAString *aBgColor);
1192 nsresult GetLinkColor(nsAString *aLinkColor);
1193 nsresult SetLinkColor(const nsAString *aLinkColor);
1194 nsresult GetVlinkColor(nsAString *aVlinkColor);
1195 nsresult SetVlinkColor(const nsAString *aVlinkColor);
1196 nsresult GetAlinkColor(nsAString *aAlinkColor);
1197 nsresult SetAlinkColor(const nsAString *aAlinkColor);
1198 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
1199 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
1200 nsresult Clear();
1201 nsresult GetSelection(nsISelection **_retval);
1202 nsresult CaptureEvents(PRInt32 eventFlags);
1203 nsresult ReleaseEvents(PRInt32 eventFlags);
1204 nsresult RouteEvent(nsIDOMEvent *evt);
1208 object,
1209 uuid(a6cf90ce-15b3-11d2-932e-00805f8add32),
1210 local
1212 interface nsIDOMRange : nsISupports
1214 enum {
1215 NS_START_TO_START,
1216 NS_START_TO_END,
1217 NS_END_TO_END,
1218 NS_END_TO_START
1221 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1222 nsresult GetStartOffset(PRInt32 *aStartOffset);
1223 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1224 nsresult GetEndOffset(PRInt32 *aEndOffset);
1225 nsresult GetCollapsed(bool *aCollapsed);
1226 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1227 nsresult SetStart(nsIDOMNode *refNode, PRInt32 offset);
1228 nsresult SetEnd(nsIDOMNode *refNode, PRInt32 offset);
1229 nsresult SetStartBefore(nsIDOMNode *refNode);
1230 nsresult SetStartAfter(nsIDOMNode *refNode);
1231 nsresult SetEndBefore(nsIDOMNode *refNode);
1232 nsresult SetEndAfter(nsIDOMNode *refNode);
1233 nsresult Collapse(bool toStart);
1234 nsresult SelectNode(nsIDOMNode *refNode);
1235 nsresult SelectNodeContents(nsIDOMNode *refNode);
1236 nsresult CompareBoundaryPoints(PRUint16 how, nsIDOMRange *sourceRange, PRInt16 *_retval);
1237 nsresult DeleteContents();
1238 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1239 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1240 nsresult InsertNode(nsIDOMNode *newNode);
1241 nsresult SurroundContents(nsIDOMNode *newParent);
1242 nsresult CloneRange(nsIDOMRange **_retval);
1243 nsresult ToString(nsAString *_retval);
1244 nsresult Detach();
1248 object,
1249 uuid(fed93d11-f24d-41d8-ae55-4197927999bb),
1250 local
1252 interface nsIDOMNSRange : nsISupports
1254 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1255 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] bool *_retval);
1256 nsresult ComparePoint([in] nsIDOMNode *parent, [in] PRInt32 offset, [out] PRInt16 *_retval);
1257 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1258 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1263 object,
1264 uuid(5ac0cd5d-3c08-4c4c-8e70-230c433f5d5c),
1265 local
1267 interface nsISelection : nsISupports
1269 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1270 nsresult GetAnchorOffset(PRInt32 *aAnchorOffset);
1271 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1272 nsresult GetFocusOffset(PRInt32 *aFocusOffset);
1273 nsresult GetIsCollapsed(bool *aIsCollapsed);
1274 nsresult GetRangeCount(PRInt32 *aRangeCount);
1275 nsresult GetRangeAt(PRInt32 index, nsIDOMRange **_retval);
1276 nsresult Collapse(nsIDOMNode *parentNode, PRInt32 offset);
1277 nsresult Extend(nsIDOMNode *parentNode, PRInt32 offset);
1278 nsresult CollapseToStart();
1279 nsresult CollapseToEnd();
1280 nsresult ContainsNode(nsIDOMNode *node, bool entirelyContained, bool *_retval);
1281 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1282 nsresult AddRange(nsIDOMRange *range);
1283 nsresult RemoveRange(nsIDOMRange *range);
1284 nsresult RemoveAllRanges();
1285 nsresult DeleteFromDocument();
1286 nsresult SelectionLanguageChange(bool langRTL);
1287 nsresult ToString(PRUnichar **_retval);
1288 nsresult Modify(const nsAString *alter, const nsAString *direction, const nsAString *granularity);
1292 object,
1293 uuid(a6cf906f-15b3-11d2-932e-00805f8add32),
1294 local
1296 interface nsIDOMWindowCollection : nsISupports
1298 nsresult GetLength(PRUint32 *aLength);
1299 nsresult Item(PRUint32 index, nsIDOMWindow **_retval);
1300 nsresult NamedItem(const nsAString *name, nsIDOMWindow **_retval);
1304 object,
1305 uuid(f6e3b10d-d5f4-4fcd-aa4c-5f98626d428a),
1306 local
1308 interface nsIDOMWindow : nsISupports
1310 nsresult GetWindow(nsIDOMWindow **aWindow);
1311 nsresult GetSelf(nsIDOMWindow **aSelf);
1312 nsresult GetDocument(nsIDOMDocument **aDocument);
1313 nsresult GetName(nsAString *aName);
1314 nsresult SetName(const nsAString *aName);
1315 nsresult GetLocation(nsIDOMLocation **aLocation);
1316 nsresult GetHistory(nsIDOMHistory **aHistory);
1317 nsresult GetLocationbar(nsIDOMBarProp **aLocationbar);
1318 nsresult GetMenubar(nsIDOMBarProp **aMenubar);
1319 nsresult GetPersonalbar(nsIDOMBarProp **aPersonalbar);
1320 nsresult GetScrollbars(nsIDOMBarProp **aScrollbars);
1321 nsresult GetStatusbar(nsIDOMBarProp **aStatusbar);
1322 nsresult GetToolbar(nsIDOMBarProp **aToolbar);
1323 nsresult GetStatus(nsAString *aStatus);
1324 nsresult SetStatus(const nsAString *aStatus);
1325 nsresult Close();
1326 nsresult Stop();
1327 nsresult Focus();
1328 nsresult Blur();
1329 nsresult GetLength(PRUint32 *aLength);
1330 nsresult GetTop(nsIDOMWindow **aTop);
1331 nsresult GetOpener(nsIDOMWindow **aOpener);
1332 nsresult SetOpener(nsIDOMWindow *aOpener);
1333 nsresult GetParent(nsIDOMWindow **aParent);
1334 nsresult GetFrameElement(nsIDOMElement **aFrameElement);
1335 nsresult GetNavigator(nsIDOMNavigator **aNavigator);
1336 nsresult GetApplicationCache(nsIDOMOfflineResourceList **aApplicationCache);
1337 nsresult Alert(const nsAString *text);
1338 nsresult Confirm(const nsAString *text, bool *_retval);
1339 nsresult Prompt(const nsAString *aMessage, const nsAString *aInitial, nsAString *_retval);
1340 nsresult Print();
1341 nsresult ShowModalDialog(const nsAString *aURI, nsIVariant *aArgs, const nsAString *aOptions, nsIVariant **_retval);
1342 nsresult PostMessageMoz(const long /*jsval*/ *message, const nsAString *targetOrigin, JSContext *cx);
1343 nsresult Atob(const nsAString *aAsciiString, nsAString *_retval);
1344 nsresult Btoa(const nsAString *aBase64Data, nsAString *_retval);
1345 nsresult GetSessionStorage(nsIDOMStorage **aSessionStorage);
1346 nsresult GetLocalStorage(nsIDOMStorage **aLocalStorage);
1347 nsresult GetSelection(nsISelection **_retval);
1348 nsresult MatchMedia(const nsAString *media_query_list, nsIDOMMediaQueryList **_retval);
1349 nsresult GetScreen(nsIDOMScreen **aScreen);
1350 nsresult GetInnerWidth(PRInt32 *aInnerWidth);
1351 nsresult SetInnerWidth(PRInt32 aInnerWidth);
1352 nsresult GetInnerHeight(PRInt32 *aInnerHeight);
1353 nsresult SetInnerHeight(PRInt32 aInnerHeight);
1354 nsresult GetScrollX(PRInt32 *aScrollX);
1355 nsresult GetPageXOffset(PRInt32 *aPageXOffset);
1356 nsresult GetScrollY(PRInt32 *aScrollY);
1357 nsresult GetPageYOffset(PRInt32 *aPageYOffset);
1358 nsresult Scroll(PRInt32 xScroll, PRInt32 yScroll);
1359 nsresult ScrollTo(PRInt32 xScroll, PRInt32 yScroll);
1360 nsresult ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif);
1361 nsresult GetScreenX(PRInt32 *aScreenX);
1362 nsresult SetScreenX(PRInt32 aScreenX);
1363 nsresult GetScreenY(PRInt32 *aScreenY);
1364 nsresult SetScreenY(PRInt32 aScreenY);
1365 nsresult GetOuterWidth(PRInt32 *aOuterWidth);
1366 nsresult SetOuterWidth(PRInt32 aOuterWidth);
1367 nsresult GetOuterHeight(PRInt32 *aOuterHeight);
1368 nsresult SetOuterHeight(PRInt32 aOuterHeight);
1369 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
1370 nsresult GetWindowRoot(nsIDOMEventTarget **aWindowRoot);
1371 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1372 nsresult GetTextZoom(float *aTextZoom);
1373 nsresult SetTextZoom(float aTextZoom);
1374 nsresult ScrollByLines(PRInt32 numLines);
1375 nsresult ScrollByPages(PRInt32 numPages);
1376 nsresult SizeToContent();
1377 nsresult GetContent(nsIDOMWindow **aContent);
1378 nsresult GetPrompter(nsIPrompt **aPrompter);
1379 nsresult GetClosed(bool *aClosed);
1380 nsresult GetCrypto(nsIDOMCrypto **aCrypto);
1381 nsresult GetPkcs11(nsIDOMPkcs11 **aPkcs11);
1382 nsresult GetControllers(nsIControllers **aControllers);
1383 nsresult GetDefaultStatus(nsAString *aDefaultStatus);
1384 nsresult SetDefaultStatus(const nsAString *aDefaultStatus);
1385 nsresult GetMozInnerScreenX(float *aMozInnerScreenX);
1386 nsresult GetMozInnerScreenY(float *aMozInnerScreenY);
1387 nsresult GetScrollMaxX(PRInt32 *aScrollMaxX);
1388 nsresult GetScrollMaxY(PRInt32 *aScrollMaxY);
1389 nsresult GetFullScreen(bool *aFullScreen);
1390 nsresult SetFullScreen(bool aFullScreen);
1391 nsresult Back();
1392 nsresult Forward();
1393 nsresult Home();
1394 nsresult MoveTo(PRInt32 xPos, PRInt32 yPos);
1395 nsresult MoveBy(PRInt32 xDif, PRInt32 yDif);
1396 nsresult ResizeTo(PRInt32 width, PRInt32 height);
1397 nsresult ResizeBy(PRInt32 widthDif, PRInt32 heightDif);
1398 nsresult Open(const nsAString *url, const nsAString *name, const nsAString *options, nsIDOMWindow **_retval);
1399 nsresult OpenDialog(const nsAString *url, const nsAString *name, const nsAString *options, nsISupports *aExtraArgument,
1400 nsIDOMWindow **_retval);
1401 nsresult UpdateCommands(const nsAString *action);
1402 nsresult Find(const nsAString *str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord,
1403 bool searchInFrames, bool showDialog, bool *_retval);
1404 nsresult GetMozPaintCount(PRUint64 *aMozPaintCount);
1405 nsresult MozRequestAnimationFrame(nsIFrameRequestCallback *aCallback, PRInt32 *_retval);
1406 nsresult MozCancelAnimationFrame(PRInt32 aHandle);
1407 nsresult MozCancelRequestAnimationFrame(PRInt32 aHandle);
1408 nsresult GetMozAnimationStartTime(PRInt64 *aMozAnimationStartTime);
1409 nsresult GetURL(nsIDOMMozURLProperty **aURL);
1410 nsresult GetGlobalStorage(nsIDOMStorageList **aGlobalStorage);
1411 nsresult GetOnafterprint(JSContext *cx, jsval *aOnafterprint);
1412 nsresult SetOnafterprint(JSContext *cx, const jsval *aOnafterprint);
1413 nsresult GetOnbeforeprint(JSContext *cx, jsval *aOnbeforeprint);
1414 nsresult SetOnbeforeprint(JSContext *cx, const jsval *aOnbeforeprint);
1415 nsresult GetOnbeforeunload(JSContext *cx, jsval *aOnbeforeunload);
1416 nsresult SetOnbeforeunload(JSContext *cx, const jsval *aOnbeforeunload);
1417 nsresult GetOnhashchange(JSContext *cx, jsval *aOnhashchange);
1418 nsresult SetOnhashchange(JSContext *cx, const jsval *aOnhashchange);
1419 nsresult GetOnmessage(JSContext *cx, jsval *aOnmessage);
1420 nsresult SetOnmessage(JSContext *cx, const jsval *aOnmessage);
1421 nsresult GetOnoffline(JSContext *cx, jsval *aOnoffline);
1422 nsresult SetOnoffline(JSContext *cx, const jsval *aOnoffline);
1423 nsresult GetOnonline(JSContext *cx, jsval *aOnonline);
1424 nsresult SetOnonline(JSContext *cx, const jsval *aOnonline);
1425 nsresult GetOnpopstate(JSContext *cx, jsval *aOnpopstate);
1426 nsresult SetOnpopstate(JSContext *cx, const jsval *aOnpopstate);
1427 nsresult GetOnpagehide(JSContext *cx, jsval *aOnpagehide);
1428 nsresult SetOnpagehide(JSContext *cx, const jsval *aOnpagehide);
1429 nsresult GetOnpageshow(JSContext *cx, jsval *aOnpageshow);
1430 nsresult SetOnpageshow(JSContext *cx, const jsval *aOnpageshow);
1431 nsresult GetOnresize(JSContext *cx, jsval *aOnresize);
1432 nsresult SetOnresize(JSContext *cx, const jsval *aOnresize);
1433 nsresult GetOnunload(JSContext *cx, jsval *aOnunload);
1434 nsresult SetOnunload(JSContext *cx, const jsval *aOnunload);
1435 nsresult GetOndevicemotion(JSContext *cx, jsval *aOndevicemotion);
1436 nsresult SetOndevicemotion(JSContext *cx, const jsval *aOndevicemotion);
1437 nsresult GetOndeviceorientation(JSContext *cx, jsval *aOndeviceorientation);
1438 nsresult SetOndeviceorientation(JSContext *cx, const jsval *aOndeviceorientation);
1439 nsresult GetOnmouseenter(JSContext* cx, jsval *aOnmouseenter);
1440 nsresult SetOnmouseenter(JSContext* cx, const jsval *aOnmouseenter);
1441 nsresult GetOnmouseleave(JSContext* cx, jsval *aOnmouseleave) = 0;
1442 nsresult SetOnmouseleave(JSContext* cx, const jsval *aOnmouseleave);
1446 object,
1447 uuid(fbc08701-776e-47d8-8b14-12b27aadc180),
1448 local
1450 interface nsIDOMHTMLBodyElement : nsIDOMHTMLElement
1452 nsresult GetALink(nsAString *aALink);
1453 nsresult SetALink(const nsAString *aALink);
1454 nsresult GetBackground(nsAString *aBackground);
1455 nsresult SetBackground(const nsAString *aBackground);
1456 nsresult GetBgColor(nsAString *aBgColor);
1457 nsresult SetBgColor(const nsAString *aBgColor);
1458 nsresult GetLink(nsAString *aLink);
1459 nsresult SetLink(const nsAString *aLink);
1460 nsresult GetText(nsAString *aText);
1461 nsresult SetText(const nsAString *aText);
1462 nsresult GetVLink(nsAString *aVLink);
1463 nsresult SetVLink(const nsAString *aVLink);
1464 nsresult GetOnafterprint(JSContext *cx, jsval *aOnafterprint);
1465 nsresult SetOnafterprint(JSContext *cx, const jsval *aOnafterprint);
1466 nsresult GetOnbeforeprint(JSContext *cx, jsval *aOnbeforeprint);
1467 nsresult SetOnbeforeprint(JSContext *cx, const jsval *aOnbeforeprint);
1468 nsresult GetOnbeforeunload(JSContext *cx, jsval *aOnbeforeunload);
1469 nsresult SetOnbeforeunload(JSContext *cx, const jsval *aOnbeforeunload);
1470 nsresult GetOnhashchange(JSContext *cx, jsval *aOnhashchange);
1471 nsresult SetOnhashchange(JSContext *cx, const jsval *aOnhashchange);
1472 nsresult GetOnmessage(JSContext *cx, jsval *aOnmessage);
1473 nsresult SetOnmessage(JSContext *cx, const jsval *aOnmessage);
1474 nsresult GetOnoffline(JSContext *cx, jsval *aOnoffline);
1475 nsresult SetOnoffline(JSContext *cx, const jsval *aOnoffline);
1476 nsresult GetOnonline(JSContext *cx, jsval *aOnonline);
1477 nsresult SetOnonline(JSContext *cx, const jsval *aOnonline);
1478 nsresult GetOnpagehide(JSContext *cx, jsval *aOnpagehide);
1479 nsresult SetOnpagehide(JSContext *cx, const jsval *aOnpagehide);
1480 nsresult GetOnpageshow(JSContext *cx, jsval *aOnpageshow);
1481 nsresult SetOnpageshow(JSContext *cx, const jsval *aOnpageshow);
1482 nsresult GetOnpopstate(JSContext *cx, jsval *aOnpopstate);
1483 nsresult SetOnpopstate(JSContext *cx, const jsval *aOnpopstate);
1484 nsresult GetOnresize(JSContext *cx, jsval *aOnresize);
1485 nsresult SetOnresize(JSContext *cx, const jsval *aOnresize);
1486 nsresult GetOnunload(JSContext *cx, jsval *aOnunload);
1487 nsresult SetOnunload(JSContext *cx, const jsval *aOnunload);
1491 object,
1492 uuid(b0fa651a-134c-4b20-ba4d-35b956a4fc50),
1493 local
1495 interface nsIDOMHTMLFormElement : nsIDOMHTMLElement
1497 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1498 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1499 nsresult GetAction(nsAString *aAction);
1500 nsresult SetAction(const nsAString *aAction);
1501 nsresult GetAutocomplete(nsAString *aAutocomplete);
1502 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1503 nsresult GetEnctype(nsAString *aEnctype);
1504 nsresult SetEnctype(const nsAString *aEnctype);
1505 nsresult GetEncoding(nsAString *aEncoding);
1506 nsresult SetEncoding(const nsAString *aEncoding);
1507 nsresult GetMethod(nsAString *aMethod);
1508 nsresult SetMethod(const nsAString *aMethod);
1509 nsresult GetName(nsAString *aName);
1510 nsresult SetName(const nsAString *aName);
1511 nsresult GetNoValidate(bool *aNoValidate);
1512 nsresult SetNoValidate(bool aNoValidate);
1513 nsresult GetTarget(nsAString *aTarget);
1514 nsresult SetTarget(const nsAString *aTarget);
1515 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1516 nsresult GetLength(PRInt32 *aLength);
1517 nsresult Submit();
1518 nsresult Reset();
1519 nsresult CheckValidity(bool *_retval);
1523 object,
1524 uuid(6b1175a5-70dd-4c26-be99-9e780c32550d),
1525 local
1527 interface nsIDOMHTMLInputElement : nsIDOMHTMLElement
1529 nsresult GetAccept(nsAString *aAccept);
1530 nsresult SetAccept(const nsAString *aAccept);
1531 nsresult GetAlt(nsAString *aAlt);
1532 nsresult SetAlt(const nsAString *aAlt);
1533 nsresult GetAutocomplete(nsAString *aAutocomplete);
1534 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1535 nsresult GetAutofocus(bool *aAutofocus);
1536 nsresult SetAutofocus(bool aAutofocus);
1537 nsresult GetDefaultChecked(bool *aDefaultChecked);
1538 nsresult SetDefaultChecked(bool aDefaultChecked);
1539 nsresult GetChecked(bool *aChecked);
1540 nsresult SetChecked(bool aChecked);
1541 nsresult GetDisabled(bool *aDisabled);
1542 nsresult SetDisabled(bool aDisabled);
1543 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1544 nsresult GetFormAction(nsAString *aFormAction);
1545 nsresult SetFormAction(const nsAString *aFormAction);
1546 nsresult GetFormEnctype(nsAString *aFormEnctype);
1547 nsresult SetFormEnctype(const nsAString *aFormEnctype);
1548 nsresult GetFormMethod(nsAString *aFormMethod);
1549 nsresult SetFormMethod(const nsAString *aFormMethod);
1550 nsresult GetFormNoValidate(bool *aFormNoValidate);
1551 nsresult SetFormNoValidate(bool aFormNoValidate);
1552 nsresult GetFormTarget(nsAString *aFormTarget);
1553 nsresult SetFormTarget(const nsAString *aFormTarget);
1554 nsresult GetFiles(nsIDOMFileList **aFiles);
1555 nsresult GetIndeterminate(bool *aIndeterminate);
1556 nsresult SetIndeterminate(bool aIndeterminate);
1557 nsresult GetList(nsIDOMHTMLElement **aList);
1558 nsresult GetMaxLength(PRInt32 *aMaxLength);
1559 nsresult SetMaxLength(PRInt32 aMaxLength);
1560 nsresult GetMultiple(bool *aMultiple);
1561 nsresult SetMultiple(bool aMultiple);
1562 nsresult GetName(nsAString *aName);
1563 nsresult SetName(const nsAString *aName);
1564 nsresult GetPattern(nsAString *aPattern);
1565 nsresult SetPattern(const nsAString *aPattern);
1566 nsresult GetPlaceholder(nsAString *aPlaceholder);
1567 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1568 nsresult GetReadOnly(bool *aReadOnly);
1569 nsresult SetReadOnly(bool aReadOnly);
1570 nsresult GetRequired(bool *aRequired);
1571 nsresult SetRequired(bool aRequired);
1572 nsresult GetAlign(nsAString *aAlign);
1573 nsresult SetAlign(const nsAString *aAlign);
1574 nsresult GetSize(PRUint32 *aSize);
1575 nsresult SetSize(PRUint32 aSize);
1576 nsresult GetSrc(nsAString *aSrc);
1577 nsresult SetSrc(const nsAString *aSrc);
1578 nsresult GetType(nsAString *aType);
1579 nsresult SetType(const nsAString *aType);
1580 nsresult GetDefaultValue(nsAString *aDefaultValue);
1581 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1582 nsresult GetValue(nsAString *aValue);
1583 nsresult SetValue(const nsAString *aValue);
1584 nsresult GetWillValidate(bool *aWillValidate);
1585 nsresult GetValidity(nsIDOMValidityState **aValidity);
1586 nsresult GetValidationMessage(nsAString *aValidationMessage);
1587 nsresult CheckValidity(bool *_retval);
1588 nsresult SetCustomValidity(const nsAString *error);
1589 nsresult Select();
1590 nsresult GetSelectionStart(PRInt32 *aSelectionStart);
1591 nsresult SetSelectionStart(PRInt32 aSelectionStart);
1592 nsresult GetSelectionEnd(PRInt32 *aSelectionEnd);
1593 nsresult SetSelectionEnd(PRInt32 aSelectionEnd);
1594 nsresult SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd, const nsAString *direction);
1595 nsresult GetSelectionDirection(nsAString *aSelectionDirection);
1596 nsresult SetSelectionDirection(const nsAString *aSelectionDirection);
1597 nsresult GetUseMap(nsAString *aUseMap);
1598 nsresult SetUseMap(const nsAString *aUseMap);
1599 nsresult GetControllers(nsIControllers **aControllers);
1600 nsresult GetTextLength(PRInt32 *aTextLength);
1601 nsresult MozGetFileNameArray(PRUint32 *aLength, PRUnichar ***aFileNames);
1602 nsresult MozSetFileNameArray(const PRUnichar **aFileNames, PRUint32 aLength);
1603 nsresult MozIsTextField(bool aExcludePassword, bool *_retval);
1607 object,
1608 uuid(ec3cfb59-a945-4821-8ea6-2448970e7639),
1609 local
1611 interface nsIDOMHTMLOptionElement : nsIDOMHTMLElement
1613 nsresult GetDisabled(bool *aDisabled);
1614 nsresult SetDisabled(bool aDisabled);
1615 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1616 nsresult GetLabel(nsAString *aLabel);
1617 nsresult SetLabel(const nsAString *aLabel);
1618 nsresult GetDefaultSelected(bool *aDefaultSelected);
1619 nsresult SetDefaultSelected(bool aDefaultSelected);
1620 nsresult GetSelected(bool *aSelected);
1621 nsresult SetSelected(bool aSelected);
1622 nsresult GetValue(nsAString *aValue);
1623 nsresult SetValue(const nsAString *aValue);
1624 nsresult GetText(nsAString *aText);
1625 nsresult SetText(const nsAString *aText);
1626 nsresult GetIndex(PRInt32 *aIndex);
1630 object,
1631 uuid(429b041b-06df-486c-9a3a-a1d901cc76a2),
1632 local
1634 interface nsIDOMHTMLOptionsCollection : nsISupports
1636 typedef int nsWrapperCache;
1638 nsresult GetLength(PRUint32 *aLength);
1639 nsresult SetLength(PRUint32 aLength);
1640 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1641 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1642 nsISupports* __cdecl GetNamedItem(const nsAString *name, nsWrapperCache **cache);
1643 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1644 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1645 nsresult SetOption(PRUint32 index, nsIDOMHTMLOptionElement *option);
1646 nsresult GetSelect(nsIDOMHTMLSelectElement **aSelect);
1647 nsresult Add(nsIDOMHTMLOptionElement *option, nsIVariant *before);
1648 nsresult Remove(PRInt32 index);
1652 object,
1653 uuid(6f0a4fee-3aea-4bb7-85cb-d4881a55ca43),
1654 local
1656 interface nsIDOMHTMLSelectElement : nsIDOMHTMLElement
1658 nsresult GetAutofocus(bool *aAutofocus);
1659 nsresult SetAutofocus(bool aAutofocus);
1660 nsresult GetDisabled(bool *aDisabled);
1661 nsresult SetDisabled(bool aDisabled);
1662 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1663 nsresult GetMultiple(bool *aMultiple);
1664 nsresult SetMultiple(bool aMultiple);
1665 nsresult GetName(nsAString *aName);
1666 nsresult SetName(const nsAString *aName);
1667 nsresult GetSize(PRInt32 *aSize);
1668 nsresult SetSize(PRInt32 aSize);
1669 nsresult GetType(nsAString *aType);
1670 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1671 nsresult GetLength(PRUint32 *aLength);
1672 nsresult SetLength(PRUint32 aLength);
1673 nsresult Item(PRUint32 index, nsIDOMNode **_retval);
1674 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1675 nsresult Add(nsIDOMHTMLElement *element, nsIVariant *before);
1676 nsresult Remove(PRInt32 index);
1677 nsresult GetSelectedIndex(PRInt32 *aSelectedIndex);
1678 nsresult SetSelectedIndex(PRInt32 aSelectedIndex);
1679 nsresult GetValue(nsAString *aValue);
1680 nsresult SetValue(const nsAString *aValue);
1681 nsresult GetWillValidate(bool *aWillValidate);
1682 nsresult GetValidity(nsIDOMValidityState **aValidity);
1683 nsresult GetValidationMessage(nsAString *aValidationMessage);
1684 nsresult CheckValidity(bool *_retval);
1685 nsresult SetCustomValidity(const nsAString *error);
1686 nsresult GetRequired(bool *aRequired);
1687 nsresult SetRequired(bool aRequired);
1691 object,
1692 uuid(0ad0571c-f8ba-44e2-b5aa-5e1c93fae7c0),
1693 local
1695 interface nsIDOMHTMLTextAreaElement : nsIDOMHTMLElement
1697 nsresult GetAutofocus(bool *aAutofocus);
1698 nsresult SetAutofocus(bool aAutofocus);
1699 nsresult GetCols(PRUint32 *aCols);
1700 nsresult SetCols(PRUint32 aCols);
1701 nsresult GetDisabled(bool *aDisabled);
1702 nsresult SetDisabled(bool aDisabled);
1703 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1704 nsresult GetMaxLength(PRInt32 *aMaxLength);
1705 nsresult SetMaxLength(PRInt32 aMaxLength);
1706 nsresult GetName(nsAString *aName);
1707 nsresult SetName(const nsAString *aName);
1708 nsresult GetPlaceholder(nsAString *aPlaceholder);
1709 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1710 nsresult GetReadOnly(bool *aReadOnly);
1711 nsresult SetReadOnly(bool aReadOnly);
1712 nsresult GetRequired(bool *aRequired);
1713 nsresult SetRequired(bool aRequired);
1714 nsresult GetRows(PRUint32 *aRows);
1715 nsresult SetRows(PRUint32 aRows);
1716 nsresult GetWrap(nsAString *aWrap);
1717 nsresult SetWrap(const nsAString *aWrap);
1718 nsresult GetType(nsAString *aType);
1719 nsresult GetDefaultValue(nsAString *aDefaultValue);
1720 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1721 nsresult GetValue(nsAString *aValue);
1722 nsresult SetValue(const nsAString *aValue);
1723 nsresult GetTextLength(PRInt32 *aTextLength);
1724 nsresult GetWillValidate(bool *aWillValidate);
1725 nsresult GetValidity(nsIDOMValidityState **aValidity);
1726 nsresult GetValidationMessage(nsAString *aValidationMessage);
1727 nsresult CheckValidity(bool *_retval);
1728 nsresult SetCustomValidity(const nsAString *error);
1729 nsresult Select();
1730 nsresult GetSelectionStart(PRInt32 *aSelectionStart);
1731 nsresult SetSelectionStart(PRInt32 aSelectionStart);
1732 nsresult GetSelectionEnd(PRInt32 *aSelectionEnd);
1733 nsresult SetSelectionEnd(PRInt32 aSelectionEnd);
1734 nsresult SetSelectionRange(PRInt32 selectionStart, PRInt32 selectionEnd, const nsAString *direction);
1735 nsresult GetSelectionDirection(nsAString *aSelectionDirection);
1736 nsresult SetSelectionDirection(const nsAString *aSelectionDirection);
1737 nsresult GetControllers(nsIControllers **aControllers);
1741 object,
1742 uuid(8b79bf24-d127-4b63-a798-f44bee76204d),
1743 local
1745 interface nsIDOMHTMLScriptElement : nsIDOMHTMLElement
1747 nsresult GetSrc(nsAString *aSrc);
1748 nsresult SetSrc(const nsAString *aSrc);
1749 nsresult GetAsync(bool *aAsync);
1750 nsresult SetAsync(bool aAsync);
1751 nsresult GetDefer(bool *aDefer);
1752 nsresult SetDefer(bool aDefer);
1753 nsresult GetType(nsAString *aType);
1754 nsresult SetType(const nsAString *aType);
1755 nsresult GetCharset(nsAString *aCharset);
1756 nsresult SetCharset(const nsAString *aCharset);
1757 nsresult GetText(nsAString *aText);
1758 nsresult SetText(const nsAString *aText);
1759 nsresult GetHtmlFor(nsAString *aHtmlFor);
1760 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1761 nsresult GetEvent(nsAString *aEvent);
1762 nsresult SetEvent(const nsAString *aEvent);
1766 object,
1767 uuid(3ed7023f-24be-4cd6-984c-c182a6b67bf9),
1768 local
1770 interface nsIDOMHTMLImageElement : nsIDOMHTMLElement
1772 nsresult GetAlt(nsAString *aAlt);
1773 nsresult SetAlt(const nsAString *aAlt);
1774 nsresult GetSrc(nsAString *aSrc);
1775 nsresult SetSrc(const nsAString *aSrc);
1776 nsresult GetCrossOrigin(nsAString *aCrossOrigin);
1777 nsresult SetCrossOrigin(const nsAString *aCrossOrigin);
1778 nsresult GetUseMap(nsAString *aUseMap);
1779 nsresult SetUseMap(const nsAString *aUseMap);
1780 nsresult GetIsMap(bool *aIsMap);
1781 nsresult SetIsMap(bool aIsMap);
1782 nsresult GetWidth(PRUint32 *aWidth);
1783 nsresult SetWidth(PRUint32 aWidth);
1784 nsresult GetHeight(PRUint32 *aHeight);
1785 nsresult SetHeight(PRUint32 aHeight);
1786 nsresult GetNaturalWidth(PRUint32 *aNaturalWidth);
1787 nsresult GetNaturalHeight(PRUint32 *aNaturalHeight);
1788 nsresult GetComplete(bool *aComplete);
1789 nsresult GetName(nsAString *aName);
1790 nsresult SetName(const nsAString *aName);
1791 nsresult GetAlign(nsAString *aAlign);
1792 nsresult SetAlign(const nsAString *aAlign);
1793 nsresult GetBorder(nsAString *aBorder);
1794 nsresult SetBorder(const nsAString *aBorder);
1795 nsresult GetHspace(PRInt32 *aHspace);
1796 nsresult SetHspace(PRInt32 aHspace);
1797 nsresult GetLongDesc(nsAString *aLongDesc);
1798 nsresult SetLongDesc(const nsAString *aLongDesc);
1799 nsresult GetVspace(PRInt32 *aVspace);
1800 nsresult SetVspace(PRInt32 aVspace);
1801 nsresult GetLowsrc(nsAString *aLowsrc);
1802 nsresult SetLowsrc(const nsAString *aLowsrc);
1806 object,
1807 uuid(44a9c8e1-2c95-41e4-86f1-96033a452a4d),
1808 local
1810 interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement
1812 nsresult GetHref(nsAString *aHref);
1813 nsresult SetHref(const nsAString *aHref);
1814 nsresult GetTarget(nsAString *aTarget);
1815 nsresult SetTarget(const nsAString *aTarget);
1816 nsresult GetPing(nsAString *aPing);
1817 nsresult SetPing(const nsAString *aPing);
1818 nsresult GetRel(nsAString *aRel);
1819 nsresult SetRel(const nsAString *aRel);
1820 nsresult GetHreflang(nsAString *aHreflang);
1821 nsresult SetHreflang(const nsAString *aHreflang);
1822 nsresult GetType(nsAString *aType);
1823 nsresult SetType(const nsAString *aType);
1824 nsresult GetText(nsAString *aText);
1825 nsresult SetText(const nsAString *aText);
1826 nsresult GetProtocol(nsAString *aProtocol);
1827 nsresult SetProtocol(const nsAString *aProtocol);
1828 nsresult GetHost(nsAString *aHost);
1829 nsresult SetHost(const nsAString *aHost);
1830 nsresult GetHostname(nsAString *aHostname);
1831 nsresult SetHostname(const nsAString *aHostname);
1832 nsresult GetPort(nsAString *aPort);
1833 nsresult SetPort(const nsAString *aPort);
1834 nsresult GetPathname(nsAString *aPathname);
1835 nsresult SetPathname(const nsAString *aPathname);
1836 nsresult GetSearch(nsAString *aSearch);
1837 nsresult SetSearch(const nsAString *aSearch);
1838 nsresult GetHash(nsAString *aHash);
1839 nsresult SetHash(const nsAString *aHash);
1840 nsresult GetCharset(nsAString *aCharset);
1841 nsresult SetCharset(const nsAString *aCharset);
1842 nsresult GetCoords(nsAString *aCoords);
1843 nsresult SetCoords(const nsAString *aCoords);
1844 nsresult GetName(nsAString *aName);
1845 nsresult SetName(const nsAString *aName);
1846 nsresult GetRev(nsAString *aRev);
1847 nsresult SetRev(const nsAString *aRev);
1848 nsresult GetShape(nsAString *aShape);
1849 nsresult SetShape(const nsAString *aShape);
1850 nsresult ToString(nsAString *_retval);
1854 object,
1855 uuid(7b9d43a6-7e9e-4618-970b-29eb3547d506),
1856 local
1858 interface nsIDOMHTMLTableElement : nsIDOMHTMLElement
1860 nsresult GetCaption(nsIDOMHTMLTableCaptionElement **aCaption);
1861 nsresult SetCaption(nsIDOMHTMLTableCaptionElement *aCaption);
1862 nsresult GetTHead(nsIDOMHTMLTableSectionElement **aTHead);
1863 nsresult SetTHead(nsIDOMHTMLTableSectionElement *aTHead);
1864 nsresult GetTFoot(nsIDOMHTMLTableSectionElement **aTFoot);
1865 nsresult SetTFoot(nsIDOMHTMLTableSectionElement *aTFoot);
1866 nsresult GetRows(nsIDOMHTMLCollection **aRows);
1867 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
1868 nsresult GetAlign(nsAString *aAlign);
1869 nsresult SetAlign(const nsAString *aAlign);
1870 nsresult GetBgColor(nsAString *aBgColor);
1871 nsresult SetBgColor(const nsAString *aBgColor);
1872 nsresult GetBorder(nsAString *aBorder);
1873 nsresult SetBorder(const nsAString *aBorder);
1874 nsresult GetCellPadding(nsAString *aCellPadding);
1875 nsresult SetCellPadding(const nsAString *aCellPadding);
1876 nsresult GetCellSpacing(nsAString *aCellSpacing);
1877 nsresult SetCellSpacing(const nsAString *aCellSpacing);
1878 nsresult GetFrame(nsAString *aFrame);
1879 nsresult SetFrame(const nsAString *aFrame);
1880 nsresult GetRules(nsAString *aRules);
1881 nsresult SetRules(const nsAString *aRules);
1882 nsresult GetSummary(nsAString *aSummary);
1883 nsresult SetSummary(const nsAString *aSummary);
1884 nsresult GetWidth(nsAString *aWidth);
1885 nsresult SetWidth(const nsAString *aWidth);
1886 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
1887 nsresult DeleteTHead();
1888 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
1889 nsresult DeleteTFoot();
1890 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
1891 nsresult DeleteCaption();
1892 nsresult InsertRow(PRInt32 index, nsIDOMHTMLElement **_retval);
1893 nsresult DeleteRow(PRInt32 index);
1897 object,
1898 uuid(f76a1d42-25b9-41b9-a58e-7d934e1be0a2),
1899 local
1901 interface nsIDOMHTMLTableRowElement : nsIDOMHTMLElement
1903 nsresult GetRowIndex(PRInt32 *aRowIndex);
1904 nsresult GetSectionRowIndex(PRInt32 *aSectionRowIndex);
1905 nsresult GetCells(nsIDOMHTMLCollection **aCells);
1906 nsresult GetAlign(nsAString *aAlign);
1907 nsresult SetAlign(const nsAString *aAlign);
1908 nsresult GetBgColor(nsAString *aBgColor);
1909 nsresult SetBgColor(const nsAString *aBgColor);
1910 nsresult GetCh(nsAString *aCh);
1911 nsresult SetCh(const nsAString *aCh);
1912 nsresult GetChOff(nsAString *aChOff);
1913 nsresult SetChOff(const nsAString *aChOff);
1914 nsresult GetVAlign(nsAString *aVAlign);
1915 nsresult SetVAlign(const nsAString *aVAlign);
1916 nsresult InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval);
1917 nsresult DeleteCell(PRInt32 index);
1921 object,
1922 uuid(d4e870bd-452c-4860-b93c-f4ee00ba33f6),
1923 local
1925 interface nsIDOMHTMLIFrameElement : nsIDOMHTMLElement
1927 nsresult GetAlign(nsAString *aAlign);
1928 nsresult SetAlign(const nsAString *aAlign);
1929 nsresult GetFrameBorder(nsAString *aFrameBorder);
1930 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1931 nsresult GetHeight(nsAString *aHeight);
1932 nsresult SetHeight(const nsAString *aHeight);
1933 nsresult GetLongDesc(nsAString *aLongDesc);
1934 nsresult SetLongDesc(const nsAString *aLongDesc);
1935 nsresult GetMarginHeight(nsAString *aMarginHeight);
1936 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1937 nsresult GetMarginWidth(nsAString *aMarginWidth);
1938 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1939 nsresult GetName(nsAString *aName);
1940 nsresult SetName(const nsAString *aName);
1941 nsresult GetScrolling(nsAString *aScrolling);
1942 nsresult SetScrolling(const nsAString *aScrolling);
1943 nsresult GetSrc(nsAString *aSrc);
1944 nsresult SetSrc(const nsAString *aSrc);
1945 nsresult GetWidth(nsAString *aWidth);
1946 nsresult SetWidth(const nsAString *aWidth);
1947 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1948 nsresult GetContentWindow(nsIDOMWindow **aContentWindow);
1949 nsresult GetMozAllowFullScreen(bool *aMozAllowFullScreen);
1950 nsresult SetMozAllowFullScreen(bool aMozAllowFullScreen);
1954 object,
1955 uuid(4b529afd-ada8-4a2c-a70b-a4e2ead2329d),
1956 local
1958 interface nsIDOMHTMLFrameElement : nsIDOMHTMLElement
1960 nsresult GetFrameBorder(nsAString *aFrameBorder);
1961 nsresult SetFrameBorder(const nsAString *aFrameBorder);
1962 nsresult GetLongDesc(nsAString *aLongDesc);
1963 nsresult SetLongDesc(const nsAString *aLongDesc);
1964 nsresult GetMarginHeight(nsAString *aMarginHeight);
1965 nsresult SetMarginHeight(const nsAString *aMarginHeight);
1966 nsresult GetMarginWidth(nsAString *aMarginWidth);
1967 nsresult SetMarginWidth(const nsAString *aMarginWidth);
1968 nsresult GetName(nsAString *aName);
1969 nsresult SetName(const nsAString *aName);
1970 nsresult GetNoResize(bool *aNoResize);
1971 nsresult SetNoResize(bool aNoResize);
1972 nsresult GetScrolling(nsAString *aScrolling);
1973 nsresult SetScrolling(const nsAString *aScrolling);
1974 nsresult GetSrc(nsAString *aSrc);
1975 nsresult SetSrc(const nsAString *aSrc);
1976 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
1977 nsresult GetContentWindow(nsIDOMWindow **aContentWindow);
1981 object,
1982 uuid(dbb14d7b-05ce-4abd-a980-9aedede612af),
1983 local
1985 interface nsIDOMHTMLObjectElement : nsIDOMHTMLElement
1987 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1988 nsresult GetCode(nsAString *aCode);
1989 nsresult SetCode(const nsAString *aCode);
1990 nsresult GetAlign(nsAString *aAlign);
1991 nsresult SetAlign(const nsAString *aAlign);
1992 nsresult GetArchive(nsAString *aArchive);
1993 nsresult SetArchive(const nsAString *aArchive);
1994 nsresult GetBorder(nsAString *aBorder);
1995 nsresult SetBorder(const nsAString *aBorder);
1996 nsresult GetCodeBase(nsAString *aCodeBase);
1997 nsresult SetCodeBase(const nsAString *aCodeBase);
1998 nsresult GetCodeType(nsAString *aCodeType);
1999 nsresult SetCodeType(const nsAString *aCodeType);
2000 nsresult GetData(nsAString *aData);
2001 nsresult SetData(const nsAString *aData);
2002 nsresult GetDeclare(bool *aDeclare);
2003 nsresult SetDeclare(bool aDeclare);
2004 nsresult GetHeight(nsAString *aHeight);
2005 nsresult SetHeight(const nsAString *aHeight);
2006 nsresult GetHspace(PRInt32 *aHspace);
2007 nsresult SetHspace(PRInt32 aHspace);
2008 nsresult GetName(nsAString *aName);
2009 nsresult SetName(const nsAString *aName);
2010 nsresult GetStandby(nsAString *aStandby);
2011 nsresult SetStandby(const nsAString *aStandby);
2012 nsresult GetType(nsAString *aType);
2013 nsresult SetType(const nsAString *aType);
2014 nsresult GetUseMap(nsAString *aUseMap);
2015 nsresult SetUseMap(const nsAString *aUseMap);
2016 nsresult GetVspace(PRInt32 *aVspace);
2017 nsresult SetVspace(PRInt32 aVspace);
2018 nsresult GetWidth(nsAString *aWidth);
2019 nsresult SetWidth(const nsAString *aWidth);
2020 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2021 nsresult GetWillValidate(bool *aWillValidate);
2022 nsresult GetValidity(nsIDOMValidityState **aValidity);
2023 nsresult GetValidationMessage(nsAString *aValidationMessage);
2024 nsresult CheckValidity(bool *_retval);
2025 nsresult SetCustomValidity(const nsAString *error);
2029 object,
2030 uuid(1f0685fb-bf49-4c39-b08d-7d75b1e5e493),
2031 local
2033 interface nsIDOMHTMLParamElement : nsIDOMHTMLElement
2035 nsresult GetName(nsAString *aName);
2036 nsresult SetName(const nsAString *aName);
2037 nsresult GetType(nsAString *aType);
2038 nsresult SetType(const nsAString *aType);
2039 nsresult GetValue(nsAString *aValue);
2040 nsresult SetValue(const nsAString *aValue);
2041 nsresult GetValueType(nsAString *aValueType);
2042 nsresult SetValueType(const nsAString *aValueType);
2046 object,
2047 uuid(04c29aaa-2239-42a9-ade0-0ba3134c1a8e),
2048 local
2050 interface nsIDOMHTMLStyleElement : nsIDOMHTMLElement
2052 nsresult GetDisabled(bool *aDisabled);
2053 nsresult SetDisabled(bool aDisabled);
2054 nsresult GetMedia(nsAString *aMedia);
2055 nsresult SetMedia(const nsAString *aMedia);
2056 nsresult GetType(nsAString *aType);
2057 nsresult SetType(const nsAString *aType);
2061 object,
2062 uuid(94928ab3-8b63-11d3-989d-001083010e9b),
2063 local
2065 interface nsIURIContentListener : nsISupports
2067 nsresult OnStartURIOpen(nsIURI *aURI, bool *_retval);
2068 nsresult DoContent(const char *aContentType, bool aIsContentPreferred, nsIRequest *aRequest,
2069 nsIStreamListener **aContentHandler, bool *_retval);
2070 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, bool *_retval);
2071 nsresult CanHandleContent(const char *aContentType, bool aIsContentPreferred,
2072 char **aDesiredContentType, bool *_retval);
2073 nsresult GetLoadCookie(nsISupports **aLoadCookie);
2074 nsresult SetLoadCookie(nsISupports *aLoadCookie);
2075 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
2076 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
2080 object,
2081 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
2082 local
2084 interface nsITooltipListener : nsISupports
2086 nsresult OnShowTooltip(PRInt32 aXCoords, PRInt32 aYCoords, const PRUnichar *aTipText);
2087 nsresult OnHideTooltip();
2091 object,
2092 uuid(33e9d001-caab-4ba9-8961-54902f197202),
2093 local
2095 interface nsIWebBrowser : nsISupports
2097 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
2098 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
2099 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
2100 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
2101 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
2102 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
2103 nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
2104 nsresult GetIsActive(bool *aIsActive);
2105 nsresult SetIsActive(bool aIsActive);
2108 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
2109 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
2112 object,
2113 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
2114 local
2116 interface nsIWebBrowserSetup : nsISupports
2118 nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
2121 typedef void* nativeWindow;
2124 object,
2125 uuid(7144ac8b-6702-4a4b-a73d-d1d4e9717e46),
2126 local
2128 interface nsIBaseWindow : nsISupports
2130 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
2131 PRInt32 y, PRInt32 cx, PRInt32 cy);
2132 nsresult Create();
2133 nsresult Destroy();
2134 nsresult SetPosition(PRInt32 x, PRInt32 y);
2135 nsresult GetPosition(PRInt32 *x, PRInt32 *y);
2136 nsresult SetSize(PRInt32 cx, PRInt32 cy, bool fRepaint);
2137 nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
2138 nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, bool fRepaint);
2139 nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2140 nsresult Repaint(bool force);
2141 nsresult GetParentWidget(nsIWidget **aParentWidget);
2142 nsresult SetParentWidget(nsIWidget *aParentWidget);
2143 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
2144 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
2145 nsresult GetVisibility(bool *aVisibility);
2146 nsresult SetVisibility(bool aVisibility);
2147 nsresult GetEnabled(bool *aEnabled);
2148 nsresult SetEnabled(bool aEnabled);
2149 nsresult GetMainWidget(nsIWidget **aMainWidget);
2150 nsresult SetFocus();
2151 nsresult GetTitle(PRUnichar **aTitle);
2152 nsresult SetTitle(const PRUnichar *aTitle);
2155 cpp_quote("#define LOAD_FLAGS_NONE 0x00000000")
2156 cpp_quote("#define LOAD_REPLACE 0x00040000")
2157 cpp_quote("#define LOAD_INITIAL_DOCUMENT_URI 0x00080000")
2160 object,
2161 uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c),
2162 local
2164 interface nsIWebNavigation : nsISupports
2166 nsresult GetCanGoBack(bool *aCanGoBack);
2167 nsresult GetCanGoForward(bool *aCanGoForward);
2168 nsresult GoBack();
2169 nsresult GoForward();
2170 nsresult GotoIndex(PRInt32 index);
2171 nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
2172 nsIInputStream *aPostData, nsIInputStream *aHeaders);
2173 nsresult Reload(PRUint32 aReloadFlags);
2174 nsresult Stop(PRUint32 aStopFlags);
2175 nsresult GetDocument(nsIDOMDocument **aDocument);
2176 nsresult GetCurrentURI(nsIURI **aCurrentURI);
2177 nsresult GetReferringURI(nsIURI **aReferringURI);
2178 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
2179 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
2183 object,
2184 uuid(570f39d0-efd0-11d3-b093-00a024ffc08c),
2185 local
2187 interface nsIWebProgress : nsISupports
2189 nsresult AddProgressListener(nsIWebProgressListener *aListener, PRUint32 aNotifyMask);
2190 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
2191 nsresult GetDOMWindow(nsIDOMWindow **aDOMWindow);
2192 nsresult GetIsLoadingDocument(bool *aIsLoadingDocument);
2196 object,
2197 uuid(4404c94b-0506-4255-9e3c-4582dba6cfbb),
2198 local
2200 interface nsIPrintSettings : nsISupports
2202 typedef struct { char dummy; } nsIntMargin;
2204 nsresult SetPrintOptions(PRInt32 aType, bool aTurnOnOff);
2205 nsresult GetPrintOptions(PRInt32 aType, bool *_retval);
2206 nsresult GetPrintOptionsBits(PRInt32 *_retval);
2207 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
2208 nsresult Clone(nsIPrintSettings **_retval);
2209 nsresult Assign(nsIPrintSettings *aPS);
2210 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
2211 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
2212 nsresult GetStartPageRange(PRInt32 *aStartPageRange);
2213 nsresult SetStartPageRange(PRInt32 aStartPageRange);
2214 nsresult GetEndPageRange(PRInt32 *aEndPageRange);
2215 nsresult SetEndPageRange(PRInt32 aEndPageRange);
2216 nsresult GetEdgeTop(double *aEdgeTop);
2217 nsresult SetEdgeTop(double aEdgeTop);
2218 nsresult GetEdgeLeft(double *aEdgeLeft);
2219 nsresult SetEdgeLeft(double aEdgeLeft);
2220 nsresult GetEdgeBottom(double *aEdgeBottom);
2221 nsresult SetEdgeBottom(double aEdgeBottom);
2222 nsresult GetEdgeRight(double *aEdgeRight);
2223 nsresult SetEdgeRight(double aEdgeRight);
2224 nsresult GetMarginTop(double *aMarginTop);
2225 nsresult SetMarginTop(double aMarginTop);
2226 nsresult GetMarginLeft(double *aMarginLeft);
2227 nsresult SetMarginLeft(double aMarginLeft);
2228 nsresult GetMarginBottom(double *aMarginBottom);
2229 nsresult SetMarginBottom(double aMarginBottom);
2230 nsresult GetMarginRight(double *aMarginRight);
2231 nsresult SetMarginRight(double aMarginRight);
2232 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
2233 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
2234 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
2235 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
2236 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
2237 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
2238 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
2239 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
2240 nsresult GetScaling(double *aScaling);
2241 nsresult SetScaling(double aScaling);
2242 nsresult GetPrintBGColors(bool *aPrintBGColors);
2243 nsresult SetPrintBGColors(bool aPrintBGColors);
2244 nsresult GetPrintBGImages(bool *aPrintBGImages);
2245 nsresult SetPrintBGImages(bool aPrintBGImages);
2246 nsresult GetPrintRange(PRInt16 *aPrintRange);
2247 nsresult SetPrintRange(PRInt16 aPrintRange);
2248 nsresult GetTitle(PRUnichar **aTitle);
2249 nsresult SetTitle(const PRUnichar *aTitle);
2250 nsresult GetDocURL(PRUnichar **aDocURL);
2251 nsresult SetDocURL(const PRUnichar *aDocURL);
2252 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
2253 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
2254 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
2255 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
2256 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
2257 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
2258 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
2259 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
2260 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
2261 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
2262 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
2263 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
2264 nsresult GetHowToEnableFrameUI(PRInt16 *aHowToEnableFrameUI);
2265 nsresult SetHowToEnableFrameUI(PRInt16 aHowToEnableFrameUI);
2266 nsresult GetIsCancelled(bool *aIsCancelled);
2267 nsresult SetIsCancelled(bool aIsCancelled);
2268 nsresult GetPrintFrameTypeUsage(PRInt16 *aPrintFrameTypeUsage);
2269 nsresult SetPrintFrameTypeUsage(PRInt16 aPrintFrameTypeUsage);
2270 nsresult GetPrintFrameType(PRInt16 *aPrintFrameType);
2271 nsresult SetPrintFrameType(PRInt16 aPrintFrameType);
2272 nsresult GetPrintSilent(bool *aPrintSilent);
2273 nsresult SetPrintSilent(bool aPrintSilent);
2274 nsresult GetShrinkToFit(bool *aShrinkToFit);
2275 nsresult SetShrinkToFit(bool aShrinkToFit);
2276 nsresult GetShowPrintProgress(bool *aShowPrintProgress);
2277 nsresult SetShowPrintProgress(bool aShowPrintProgress);
2278 nsresult GetPaperName(PRUnichar **aPaperName);
2279 nsresult SetPaperName(const PRUnichar *aPaperName);
2280 nsresult GetPaperSizeType(PRInt16 *aPaperSizeType);
2281 nsresult SetPaperSizeType(PRInt16 aPaperSizeType);
2282 nsresult GetPaperData(PRInt16 *aPaperData);
2283 nsresult SetPaperData(PRInt16 aPaperData);
2284 nsresult GetPaperWidth(double *aPaperWidth);
2285 nsresult SetPaperWidth(double aPaperWidth);
2286 nsresult GetPaperHeight(double *aPaperHeight);
2287 nsresult SetPaperHeight(double aPaperHeight);
2288 nsresult GetPaperSizeUnit(PRInt16 *aPaperSizeUnit);
2289 nsresult SetPaperSizeUnit(PRInt16 aPaperSizeUnit);
2290 nsresult GetPlexName(PRUnichar **aPlexName);
2291 nsresult SetPlexName(const PRUnichar *aPlexName);
2292 nsresult GetColorspace(PRUnichar **aColorspace);
2293 nsresult SetColorspace(const PRUnichar *aColorspace);
2294 nsresult GetResolutionName(PRUnichar **aResolutionName);
2295 nsresult SetResolutionName(const PRUnichar aResolutionName);
2296 nsresult GetDownloadFonts(bool *aDownloadFonts);
2297 nsresult SetDownloadFonts(bool aDownloadFonts);
2298 nsresult GetPrintReversed(bool *aPrintReversed);
2299 nsresult SetPrintReversed(bool aPrintReversed);
2300 nsresult GetPrintInColor(bool *aPrintInColor);
2301 nsresult SetPrintInColor(bool aPrintInColor);
2302 nsresult GetOrientation(PRInt32 *aOrientation);
2303 nsresult SetOrientation(PRInt32 aOrientation);
2304 nsresult GetPrintCommand(PRUnichar **aPrintCommand);
2305 nsresult SetPrintCommand(const PRUnichar *aPrintCommand);
2306 nsresult GetNumCopies(PRInt32 *aNumCopies);
2307 nsresult SetNumCopies(PRInt32 aNumCopies);
2308 nsresult GetPrinterName(PRUnichar **aPrinterName);
2309 nsresult SetPrinterName(const PRUnichar *aPrinterName);
2310 nsresult GetPrintToFile(bool *aPrintToFile);
2311 nsresult SetPrintToFile(bool aPrintToFile);
2312 nsresult GetToFileName(PRUnichar **aToFileName);
2313 nsresult SetToFileName(const PRUnichar *aToFileName);
2314 nsresult GetOutputFormat(PRInt16 *aOutputFormat);
2315 nsresult SetOutputFormat(PRInt16 aOutputFormat);
2316 nsresult GetPrintPageDelay(PRInt32 *aPrintPageDelay);
2317 nsresult SetPrintPageDelay(PRInt32 aPrintPageDelay);
2318 nsresult GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter);
2319 nsresult SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter);
2320 nsresult GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs);
2321 nsresult SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs);
2322 nsresult SetMarginInTwips(nsIntMargin *aMargin);
2323 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
2324 nsresult GetMarginInTwips(nsIntMargin *aMargin);
2325 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
2326 nsresult SetupSilentPrinting();
2327 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2328 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2329 nsresult GetPageRanges(void * /*nsTArray<PRInt32>&*/ aPages);
2333 object,
2334 uuid(9a7ca4b0-fbba-11d4-a869-00105a183419),
2335 local
2337 interface nsIWebBrowserPrint : nsISupports
2339 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
2340 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
2341 nsresult GetCurrentChildDOMWindow(nsIDOMWindow **aCurrentChildDOMWindow);
2342 nsresult GetDoingPrint(bool *aDoingPrint);
2343 nsresult GetDoingPrintPreview(bool *aDoingPrintPreview);
2344 nsresult GetIsFramesetDocument(bool *aIsFramesetDocument);
2345 nsresult GetIsFramesetFrameSelected(bool *aIsFramesetFrameSelected);
2346 nsresult GetIsIFrameSelected(bool *aIsIFrameSelected);
2347 nsresult GetIsRangeSelection(bool *aIsRangeSelection);
2348 nsresult GetPrintPreviewNumPages(PRInt32 *aPrintPreviewNumPages);
2349 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
2350 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, nsIDOMWindow *aChildDOMWin,
2351 nsIWebProgressListener *aWPListener);
2352 nsresult PrintPreviewNavigate(PRInt16 aNavType, PRInt32 aPageNum);
2353 nsresult Cancel();
2354 nsresult EnumerateDocumentNames(PRUint32 *aCount, PRUnichar ***aResult);
2355 nsresult ExitPrintPreview();
2359 object,
2360 uuid(919e792a-6490-40b8-bba5-f9e9ad5640c8),
2361 local
2363 interface nsIScrollable : nsISupports
2365 enum {
2366 ScrollOrientation_X = 1,
2367 ScrollOrientation_Y = 2
2370 enum {
2371 Scrollbar_Auto = 1,
2372 Scrollbar_Never = 2,
2373 Scrollbar_Always = 3
2376 nsresult GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *curPos);
2377 nsresult SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos);
2378 nsresult SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos);
2379 nsresult GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos, PRInt32 *maxPos);
2380 nsresult SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos);
2381 nsresult SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos,
2382 PRInt32 minVerticalPos, PRInt32 maxVerticalPos);
2383 nsresult GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *scrollbarPref);
2384 nsresult SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref);
2385 nsresult GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible);
2389 object,
2390 uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c),
2391 local
2393 interface nsIFile : nsISupports
2395 nsresult Append(const nsAString *node);
2396 nsresult AppendNative(const nsAString *node);
2397 nsresult Normalize();
2398 nsresult Create(PRUint32 type, PRUint32 permission);
2399 nsresult GetLeafName(nsAString *aLeafName);
2400 nsresult SetLeafName(const nsAString *aLeafName);
2401 nsresult GetNativeLeafName(nsAString *aLeafName);
2402 nsresult SetNativeLeafName(const nsAString *aLeafName);
2403 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
2404 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
2405 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
2406 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
2407 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
2408 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
2409 nsresult Remove(bool recursive);
2410 nsresult GetPermissions(PRUint32 *aPermissions);
2411 nsresult SetPermissions(PRUint32 pPermissions);
2412 nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
2413 nsresult SetPermissionsOfLink(PRUint32 pPermissions);
2414 nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
2415 nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
2416 nsresult GetLastModifiedTimeOfLink(PRInt64 *aLastModifiedTimeOfLink);
2417 nsresult SetLastModifiedTimeOfLink(PRInt64 aLastModifiedTimeOfLink);
2418 nsresult GetFileSize(PRInt64 *aFileSize);
2419 nsresult SetFileSize(PRInt64 aFileSize);
2420 nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
2421 nsresult GetTarget(nsAString *aTarget);
2422 nsresult GetNativeTarget(nsACString *aNativeTarget);
2423 nsresult GetPath(nsAString *aPath);
2424 nsresult GetNativePath(nsACString *aNativePath);
2425 nsresult Exists(bool *_retval);
2426 nsresult IsWritable(bool *_retval);
2427 nsresult IsReadable(bool *_retval);
2428 nsresult IsExecutable(bool *_retval);
2429 nsresult IsHidden(bool *_retval);
2430 nsresult IsDirectory(bool *_retval);
2431 nsresult IsFile(bool *_retval);
2432 nsresult IsSymlink(bool *_retval);
2433 nsresult IsSpecial(bool *_retval);
2434 nsresult CreateUnique(PRUint32 type, PRUint32 permission);
2435 nsresult Clone(nsIFile **_retval);
2436 nsresult Equals(nsIFile *inFile, bool *_retval);
2437 nsresult Contains(nsIFile *inFile, bool recir, bool *_retval);
2438 nsresult GetParent(nsIFile **aParent);
2439 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2443 object,
2444 uuid(e162bfa0-01bd-4e9f-9843-8fb2efcd6d1f),
2445 local
2447 interface nsIPrefBranch : nsISupports
2449 nsresult GetRoot(char **aRoot);
2450 nsresult GetPrefType(const char *aPrefName, PRInt32 *_retval);
2451 nsresult GetBoolPref(const char *aPrefName, bool *_retval);
2452 nsresult SetBoolPref(const char *aPrefName, bool aValue);
2453 nsresult GetCharPref(const char *aPrefName, char **_retval);
2454 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2455 nsresult GetIntPref(const char *aPrefName, PRInt32 *_retval);
2456 nsresult SetIntPref(const char *aPrefName, PRInt32 aValue);
2457 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2458 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2459 nsresult ClearUserPref(const char *aPrefName);
2460 nsresult LockPref(const char *aPrefName);
2461 nsresult PrefHasUserValue(const char *aPrefName, bool *_retval);
2462 nsresult PrefIsLocked(const char *aPrefName, bool *_retval);
2463 nsresult UnlockPref(const char *aPrefName);
2464 nsresult DeleteBranch(const char *aStartingAt);
2465 nsresult GetChildList(const char *aStartingAt, PRUint32 *aCount, char ***aChildArray);
2466 nsresult ResetBranch(const char *aStartingAt);
2470 object,
2471 uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2472 local
2474 interface nsIDirectoryServiceProvider : nsISupports
2476 nsresult GetFile(const char *prop, bool *persistent, nsIFile **_retval);
2480 object,
2481 uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40),
2482 local
2484 interface nsIProtocolHandler : nsISupports
2486 nsresult GetScheme(nsACString *aScheme);
2487 nsresult GetDefaultPort(PRInt32 *aDefaultPort);
2488 nsresult GetProtocolFlags(PRUint32 *aProtocolFlags);
2489 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2490 nsIURI *aBaseURI, nsIURI **_retval);
2491 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2492 nsresult AllowPort(PRInt32 port, const char *scheme, bool *_retval);
2496 object,
2497 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2498 local
2500 interface nsIExternalProtocolHandler : nsIProtocolHandler
2502 nsresult ExternalAppExistsForScheme(const nsACString *scheme, bool *_retval);
2506 object,
2507 uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e),
2508 local
2510 interface nsIIOService : nsISupports
2512 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2513 nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
2514 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2515 nsIURI **_retval);
2516 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2517 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2518 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2519 nsIChannel **_retval);
2520 nsresult GetOffline(bool *aOffline);
2521 nsresult SetOffline(bool aOffline);
2522 nsresult AllowPort(PRInt32 aPort, const char *aScheme, bool *_retval);
2523 nsresult ExtractScheme(const nsACString *urlString, nsACString *_retval);
2527 object,
2528 uuid(ca68c485-9db3-4c12-82a6-4fab7948e2d5),
2529 local,
2531 interface nsINetUtil : nsISupports
2533 nsresult ParseContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2534 bool *aHadCharset, nsACString *_retval);
2535 nsresult ProtocolHasFlags(nsIURI *aURI, PRUint32 aFlag, bool *_retval);
2536 nsresult URIChainHasFlags(nsIURI *aURI, PRUint32 aFlags, bool *_retval);
2537 nsresult ToImmutableURI(nsIURI *aURI, nsIURI **_retval);
2538 nsresult NewSimpleNestedURI(nsIURI *aURI, nsIURI **_retval);
2539 nsresult EscapeString(const nsACString *aString, PRUint32 aEscapeType, nsACString *_retval);
2540 nsresult EscapeURL(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2541 nsresult UnescapeString(const nsACString *aStr, PRUint32 aFlags, nsACString *_retval);
2542 nsresult ExtractCharsetFromContentType(const nsACString *aTypeHeader, nsACString *aCharset,
2543 PRInt32 *aCharsetStart, PRInt32 *aCharsetEnd, bool *_retval);
2547 object,
2548 uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a),
2549 local
2551 interface nsIWebBrowserFocus : nsISupports
2553 nsresult Activate();
2554 nsresult Deactivate();
2555 nsresult SetFocusAtFirstElement();
2556 nsresult SetFocusAtLastElement();
2557 nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
2558 nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
2559 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2560 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2564 object,
2565 uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c),
2566 local
2568 interface nsIWebBrowserChrome : nsISupports
2570 nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
2571 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2572 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2573 nsresult GetChromeFlags(PRUint32 *aChromeFlags);
2574 nsresult SetChromeFlags(PRUint32 aChromeFlags);
2575 nsresult DestroyBrowserWindow();
2576 nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
2577 nsresult ShowAsModal();
2578 nsresult IsWindowModal(bool *_retval);
2579 nsresult ExitModalEventLoop(nsresult aStatus);
2583 object,
2584 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2585 local
2587 interface nsIDOMEventListener : nsISupports
2589 nsresult HandleEvent(nsIDOMEvent *event);
2593 object,
2594 uuid(8e375931-298d-4d0a-9cb4-5668f0cdc5a8),
2595 local
2597 interface nsIDOMEventTarget : nsISupports
2599 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture, bool wantsUntrusted, PRUint8 _argc);
2600 nsresult AddSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture, bool aWantsUntrusted, PRUint8 _argc);
2601 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture);
2602 nsresult RemoveSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture);
2603 nsresult DispatchEvent(nsIDOMEvent *evt, bool *_retval);
2605 /* Followed by methods we should try to avoid using */
2609 object,
2610 uuid(e85cff74-951f-45c1-be0c-89442ea2f500),
2611 local
2613 interface nsIDOMEvent : nsISupports
2615 nsresult GetType(nsAString *aType);
2616 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2617 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2618 nsresult GetEventPhase(PRUint16 *aEventPhase);
2619 nsresult GetBubbles(bool *aBubbles);
2620 nsresult GetCancelable(bool *aCancelable);
2621 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2622 nsresult StopPropagation();
2623 nsresult PreventDefault();
2624 nsresult InitEvent(const nsAString *eventTypeArg, bool canBubbleArg, bool cancelableArg);
2625 nsresult GetDefaultPrevented(bool *aDefaultPrevented);
2626 nsresult StopImmediatePropagation();
2629 cpp_quote("#define CONTEXT_NONE 0x00")
2630 cpp_quote("#define CONTEXT_LINK 0x01")
2631 cpp_quote("#define CONTEXT_IMAGE 0x02")
2632 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
2633 cpp_quote("#define CONTEXT_TEXT 0x08")
2634 cpp_quote("#define CONTEXT_INPUT 0x10")
2635 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2638 object,
2639 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
2640 local
2642 interface nsIContextMenuListener : nsISupports
2644 nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
2648 object,
2649 uuid(af3f130e-0c22-4613-a150-780a46c22e3a),
2650 local
2652 interface nsIDOMUIEvent : nsIDOMEvent
2654 nsresult GetView(nsIDOMWindow **aView);
2655 nsresult GetDetail(PRInt32 *aDetail);
2656 nsresult InitUIEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
2657 nsIDOMWindow *viewArg, PRInt32 detailArg);
2658 nsresult GetLayerX(PRInt32 *aLayerX);
2659 nsresult GetLayerY(PRInt32 *aLayerY);
2660 nsresult GetPageX(PRInt32 *aPageX);
2661 nsresult GetPageY(PRInt32 *aPageY);
2662 nsresult GetWhich(PRUint32 *aWhich);
2663 nsresult GetRangeParent(nsIDOMNode * *aRangeParent);
2664 nsresult GetRangeOffset(PRInt32 *aRangeOffset);
2665 nsresult GetCancelBubble(bool *aCancelBubble);
2666 nsresult SetCancelBubble(bool aCancelBubble);
2667 nsresult GetIsChar(bool *aIsChar);
2671 object,
2672 uuid(7f57aa45-6792-4d8b-ba5b-201533cf0b2f),
2673 local
2675 interface nsIDOMMouseEvent : nsIDOMUIEvent
2677 nsresult GetScreenX(PRInt32 *aScreenX);
2678 nsresult GetScreenY(PRInt32 *aScreenY);
2679 nsresult GetClientX(PRInt32 *aClientX);
2680 nsresult GetClientY(PRInt32 *aClientY);
2681 nsresult GetCtrlKey(bool *aCtrlKey);
2682 nsresult GetShiftKey(bool *aShiftKey);
2683 nsresult GetAltKey(bool *aAltKey);
2684 nsresult GetMetaKey(bool *aMetaKey);
2685 nsresult GetButton(PRUint16 *aButton);
2686 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
2687 nsresult InitMouseEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
2688 nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2689 PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg,
2690 bool shiftKeyArg, bool metaKeyArg, PRUint16 buttonArg,
2691 nsIDOMEventTarget *relatedTargetArg);
2692 nsresult GetMozPressure(float *aMozPressure);
2693 nsresult GetMozInputSource(PRUint16 *aMozInputSource);
2694 nsresult InitNSMouseEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
2695 nsIDOMWindow *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
2696 PRInt32 clientXArg, PRInt32 clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg,
2697 bool metaKeyArg, PRUint16 buttonArg, nsIDOMEventTarget *relatedTargetArg, float pressure,
2698 PRUint16 inputSourceArg);
2702 object,
2703 uuid(def974c3-b491-481b-bc67-29174af4b26a),
2704 local
2706 interface nsIDOMKeyEvent : nsIDOMUIEvent
2708 nsresult GetCharCode(PRUint32 *aCharCode);
2709 nsresult GetKeyCode(PRUint32 *aKeyCode);
2710 nsresult GetAltKey(bool *aAltKey);
2711 nsresult GetCtrlKey(bool *aCtrlKey);
2712 nsresult GetShiftKey(bool *aShiftKey);
2713 nsresult GetMetaKey(bool *aMetaKey);
2714 nsresult InitKeyEvent(const nsAString *typeArg, bool canBubbleArg,
2715 bool cancelableArg, nsIDOMWindow *viewArg, bool ctrlKeyArg,
2716 bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, PRUint32 keyCodeArg,
2717 PRUint32 charCodeArg);
2721 object,
2722 uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743),
2723 local
2725 interface nsIEmbeddingSiteWindow : nsISupports
2727 nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
2728 nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
2729 nsresult SetFocus();
2730 nsresult GetVisibility(bool *aVisibility);
2731 nsresult SetVisibility(bool aVisibility);
2732 nsresult GetTitle(PRUnichar **aTitle);
2733 nsresult SetTitle(const PRUnichar *aTitle);
2734 nsresult GetSiteWindow(void **aSiteWindow);
2738 object,
2739 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
2740 local
2742 interface nsIComponentRegistrar : nsISupports
2744 nsresult AutoRegister(nsIFile *aSpec);
2745 nsresult AutoUnregister(nsIFile *aSpec);
2746 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
2747 const char *aContractID, nsIFactory *aFactory);
2748 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
2749 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
2750 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
2751 const char *aType);
2752 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
2753 nsresult IsCIDRegistered(const nsCID *aClass, bool *_retval);
2754 nsresult IsContractIDRegistered(const char *aContractID, bool *_retval);
2755 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
2756 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
2757 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
2758 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
2762 object,
2763 uuid(1630c61a-325e-49ca-8759-a31b16c47aa5),
2764 local
2766 interface nsIPromptService : nsISupports
2768 nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2769 const PRUnichar *aText);
2770 nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2771 const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState);
2772 nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2773 const PRUnichar *aText, bool *_retval);
2774 nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2775 const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState,
2776 bool *_retval);
2777 nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2778 const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
2779 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
2780 const PRUnichar *aCheckMsg, bool *aCheckState, PRInt32 *_retval);
2781 nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2782 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
2783 bool *aCheckState, bool *_retval);
2784 nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2785 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
2786 const PRUnichar *aCheckMsg, bool *aCheckState, bool *_retval);
2787 nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2788 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
2789 bool *aCheckState, bool *_retval);
2790 nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
2791 const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
2792 PRInt32 *aOutSelection, bool *_retval);
2796 object,
2797 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
2798 local
2800 interface nsITooltipTextProvider : nsISupports
2802 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, bool *_retval);
2806 object,
2807 uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9),
2808 local
2810 interface nsIProfile : nsISupports
2812 nsresult GetProfileCount(PRInt32 *aProfileCount);
2813 nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
2814 nsresult ProfileExists(const PRUnichar *profileName, bool *_retval);
2815 nsresult GetCurrentProfile(PRUnichar **aCurrentProfile);
2816 nsresult SetCurrentProfile(const PRUnichar *aCurrentProfile);
2817 nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
2818 nsresult CreateNewProfile(const PRUnichar *profileName,
2819 const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
2820 bool useExistingDir);
2821 nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
2822 nsresult DeleteProfile(const PRUnichar *name, bool canDeleteFiles);
2823 nsresult CloneProfile(const PRUnichar *profileName);
2827 object,
2828 uuid(30465632-a777-44cc-90f9-8145475ef999),
2829 local
2831 interface nsIWindowCreator : nsISupports
2833 nsresult CreateChromeWindow(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2834 nsIWebBrowserChrome **_retval);
2838 object,
2839 uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc),
2840 local
2842 interface nsIWindowCreator2 : nsIWindowCreator
2844 nsresult CreateChromeWindow2(nsIWebBrowserChrome *parent, PRUint32 chromeFlags,
2845 PRUint32 contextFlags, nsIURI *uri, bool *cancel,
2846 nsIWebBrowserChrome **_retval);
2850 object,
2851 uuid(002286a8-494b-43b3-8ddd-49e3fc50622b),
2852 local
2854 interface nsIWindowWatcher : nsISupports
2856 nsresult OpenWindow(nsIDOMWindow *aParent, const char *aUrl, const char *aName,
2857 const char *aFeatures, nsISupports *aArguments, nsIDOMWindow **_retval);
2858 nsresult RegisterNotification(nsIObserver *aObserver);
2859 nsresult UnregisterNotification(nsIObserver *aObserver);
2860 nsresult GetWindowEnumerator(nsISimpleEnumerator **_retval);
2861 nsresult GetNewPrompter(nsIDOMWindow *aParent, nsIPrompt **_retval);
2862 nsresult GetNewAuthPrompter(nsIDOMWindow *aParent, nsIAuthPrompt **_retval);
2863 nsresult SetWindowCreator(nsIWindowCreator *creator);
2864 nsresult GetChromeForWindow(nsIDOMWindow *aWindow, nsIWebBrowserChrome **_retval);
2865 nsresult GetWindowByName(const PRUnichar *aTargetName, nsIDOMWindow *aCurrentWindow,
2866 nsIDOMWindow **_retval);
2867 nsresult GetActiveWindow(nsIDOMWindow **aActiveWindow);
2868 nsresult SetActiveWindow(nsIDOMWindow *aActiveWindow);
2872 object,
2873 uuid(24f3f4da-18a4-448d-876d-7360fefac029),
2874 local
2876 interface nsIEditingSession : nsISupports
2878 nsresult GetEditorStatus(PRUint32 *aEditorStatus);
2879 nsresult MakeWindowEditable(nsIDOMWindow *window, const char *aEditorType,
2880 bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive);
2881 nsresult WindowIsEditable(nsIDOMWindow *window, bool *_retval);
2882 nsresult GetEditorForWindow(nsIDOMWindow *window, nsIEditor **_retval);
2883 nsresult SetupEditorOnWindow(nsIDOMWindow *window);
2884 nsresult TearDownEditorOnWindow(nsIDOMWindow *window);
2885 nsresult SetEditorOnControllers(nsIDOMWindow *aWindow, nsIEditor *aEditor);
2886 nsresult DisableJSAndPlugins(nsIDOMWindow *aWindow);
2887 nsresult RestoreJSAndPlugins(nsIDOMWindow *aWindow);
2888 nsresult DetachFromWindow(nsIDOMWindow *aWindow);
2889 nsresult ReattachToWindow(nsIDOMWindow *aWindow);
2890 nsresult GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled);
2894 object,
2895 uuid(83f892cf-7ed3-490e-967a-62640f3158e1),
2896 local
2898 interface nsICommandParams : nsISupports
2900 nsresult GetValueType(const char *name, PRInt16 *_retval);
2901 nsresult GetBooleanValue(const char *name, bool *_retval);
2902 nsresult GetLongValue(const char *name, PRInt32 *_retval);
2903 nsresult GetDoubleValue(const char *name, double *_retval);
2904 nsresult GetStringValue(const char *name, nsAString *_retval);
2905 nsresult GetCStringValue(const char *name, char **_retval);
2906 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
2907 nsresult SetBooleanValue(const char *name, bool value);
2908 nsresult SetLongValue(const char *name, PRInt32 value);
2909 nsresult SetDoubleValue(const char *name, double value);
2910 nsresult SetStringValue(const char *name, const nsAString *value);
2911 nsresult SetCStringValue(const char *name, const char *value);
2912 nsresult SetISupportsValue(const char *name, nsISupports *value);
2913 nsresult RemoveValue(const char *name);
2914 nsresult HasMoreElements(bool *_retval);
2915 nsresult First();
2916 nsresult GetNext(char **_retval);
2920 object,
2921 uuid(080d2001-f91e-11d4-a73c-f9242928207c),
2922 local
2924 interface nsICommandManager : nsISupports
2926 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
2927 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
2928 nsresult IsCommandSupported(const char *aCommandName, nsIDOMWindow *aTargetWindow, bool *_retval);
2929 nsresult IsCommandEnabled(const char *aCommandName, nsIDOMWindow *aTargetWindow, bool *_retval);
2930 nsresult GetCommandState(const char *aCommandName, nsIDOMWindow *aTargetWindow,
2931 nsICommandParams *aCommandParams);
2932 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
2933 nsIDOMWindow *aTargetWindow);
2937 object,
2938 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
2939 local
2941 interface nsIControllerContext : nsISupports
2943 nsresult Init(nsIControllerCommandTable *aCommandTable);
2944 nsresult SetCommandContext(nsISupports *aCommandContext);
2948 object,
2949 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
2950 local
2952 interface nsIController : nsISupports
2954 nsresult IsCommandEnabled(const char *command, bool *_retval);
2955 nsresult SupportsCommand(const char *command, bool *_retval);
2956 nsresult DoCommand(const char *command);
2957 nsresult OnEvent(const char *eventName);
2961 object,
2962 uuid(dc68f070-226d-11e1-bfc2-0800200c9a66),
2963 local
2965 interface nsIContent : nsISupports
2967 /* This is not a real interface declaration. It's too internal for us. */
2971 object,
2972 uuid(283ec27d-5b23-49b2-94d9-09b5db453073),
2973 local
2975 interface nsIDocument : nsISupports
2977 /* This is not a real interface declaration. It's too internal for us. */
2981 object,
2982 uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
2983 local
2985 interface nsIContentSerializer : nsISupports
2987 nsresult Init(PRUint32 flags, PRUint32 aWrapColumn, const char *aCharSet, bool aIsCopying,
2988 bool aIsWholeDocument);
2989 nsresult AppendText(nsIContent *aText, PRInt32 aStartOffset, PRInt32 aEndOffset, nsAString *aStr);
2990 nsresult AppendCDATASection(nsIContent *aCDATASection, PRInt32 aStartOffset,
2991 PRInt32 aEndOffset, nsAString *aStr);
2992 nsresult AppendProcessingInstruction(nsIContent *aPI, PRInt32 aStartOffset,
2993 PRInt32 aEndOffset, nsAString *aStr);
2994 nsresult AppendComment(nsIContent *aComment, PRInt32 aStartOffset, PRInt32 aEndOffset,
2995 nsAString *aStr);
2996 nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
2997 nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
2998 nsAString *aStr);
2999 nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
3000 nsresult Flush(nsAString *aStr);
3001 nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
3005 object,
3006 uuid(20ee0b70-c528-11e0-9572-0800200c9a66),
3007 local
3009 interface nsIEditor : nsISupports
3011 typedef void *nsIContentPtr;
3013 nsresult GetSelection([out] nsISelection *_retval);
3014 nsresult Init([in] nsIDOMDocument *doc, [in] nsIContentPtr aRoot, [in] nsISelectionController *aSelCon, [in] PRUint32 aFlags);
3015 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] bool aSuppressTransaction);
3016 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] bool aSuppressTransaction);
3017 nsresult PostCreate();
3018 nsresult PreDestroy();
3019 nsresult GetFlags([out] PRUint32 *_retval);
3020 nsresult SetFlags([in] PRUint32 val);
3021 nsresult GetContentsMIMEType([out] char **_retval);
3022 nsresult SetContentsMIMEType([in] const char *val);
3023 nsresult GetIsDocumentEditable([out] bool *_retval);
3024 nsresult GetIsSelectionEditable(bool *aIsSelectionEditable);
3025 nsresult GetDocument([out] nsIDOMDocument **_retval);
3026 nsresult GetRootElement([out] nsIDOMElement **_retval);
3027 nsresult GetSelectionController([out] nsISelectionController **_retval);
3028 nsresult DeleteSelection([in] PRInt16 action);
3029 nsresult GetDocumentIsEmpty([out] bool *_retval);
3030 nsresult GetDocumentModified([out] bool *_retval);
3031 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
3032 nsresult SetDocumentCharacterSet([in] const nsACString *val);
3033 nsresult ResetModificationCount();
3034 nsresult GetModificationCount([out] PRInt32 *_retval);
3035 nsresult IncrementModificationCount([in] PRInt32 aModCount);
3036 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
3037 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
3038 nsresult DoTransaction([in] nsITransaction *txn);
3039 nsresult EnableUndo([in] bool enable);
3040 nsresult Undo([in] PRUint32 count);
3041 nsresult CanUndo([out] bool *isEnabled, [out] bool *canUndo);
3042 nsresult Redo([in] PRUint32 count);
3043 nsresult CanRedo([out] bool *isEnabled, [out] bool *canRedo);
3044 nsresult BeginTransaction();
3045 nsresult EndTransaction();
3046 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
3047 nsresult EndPlaceHolderTransaction();
3048 nsresult ShouldTxnSetSelection([out] bool *_retval);
3049 nsresult SetShouldTxnSetSelection([in] bool should);
3050 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
3051 nsresult SyncRealTimeSpell();
3052 nsresult SetSpellcheckUserOverride(bool enable);
3053 nsresult Cut();
3054 nsresult CanCut([out] bool *_retval);
3055 nsresult Copy();
3056 nsresult CanCopy([out] bool *_retval);
3057 nsresult Paste([in] PRInt32 aSelectionType);
3058 nsresult PasteTransferable(nsITransferable *aTransferable);
3059 nsresult CanPaste([in] PRInt32 aSelectionType, [out] bool *_retval);
3060 nsresult CanPasteTransferable(nsITransferable *aTransferable, bool *_retval);
3061 nsresult SelectAll();
3062 nsresult BeginningOfDocument();
3063 nsresult EndOfDocument();
3064 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] bool *_retval);
3065 nsresult DoDrag([in] nsIDOMEvent *aEvent);
3066 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
3067 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
3068 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, bool *_retval);
3069 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
3070 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
3071 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
3072 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] PRInt32 position, [out] nsIDOMNode **_retval);
3073 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] PRInt32 aPosition);
3074 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] PRInt32 offset, [out] nsIDOMNode **newLeftNode);
3075 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
3076 nsresult DeleteNode([in] nsIDOMNode *child);
3077 nsresult MarkNodeDirty([in] nsIDOMNode *node);
3078 nsresult SwitchTextDirection();
3079 nsresult OutputToString([in] nsAString formatType, [in] PRUint32 flags, [out] nsAString *_retval);
3080 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] PRUint32 flags);
3081 nsresult AddEditorObserver([in] nsIEditorObserver *observer);
3082 nsresult RemoveEditorObserver([in] nsIEditorObserver *observer);
3083 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
3084 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
3085 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
3086 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
3087 nsresult DumpContentTree();
3088 nsresult DebugDumpContent();
3089 nsresult DebugUnitTests([out] PRInt32 *outNumTests, [out] PRInt32 *outNumTestsFailed);
3090 bool IsModifiableNode(nsIDOMNode *aNode);
3091 nsresult GetLastKeypressEventTrusted(bool *aLastKeypressEventTrusted);
3095 object,
3096 uuid(d58f35a7-c269-4292-b9aa-a79e200a7c99),
3097 local
3099 interface nsIHTMLEditor : nsISupports
3101 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3102 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3103 nsresult RemoveAllDefaultProperties();
3104 nsresult SetCSSInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3105 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3106 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll);
3107 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll, [out] nsAString *_retval);
3108 nsresult RemoveAllInlineProperties();
3109 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
3110 nsresult IncreaseFontSize();
3111 nsresult DecreaseFontSize();
3112 nsresult CanDrag([in] nsIDOMEvent *aEvent, [out] bool *_retval);
3113 nsresult DoDrag([in] nsIDOMEvent *aEvent);
3114 nsresult InsertFromDrop([in] nsIDOMEvent *aEvent);
3115 nsresult NodeIsBlock([in] nsIDOMNode *node, bool *_retval);
3116 nsresult InsertHTML([in] nsAString *aInputString);
3117 nsresult PasteNoFormatting([in] PRInt32 aSelectionType);
3118 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
3119 nsresult InsertHTMLWithContext([in] nsAString *aInputString, [in] nsAString *aContextStr, [in] nsAString *aInfoStr, [in] nsAString *aFlavor, [in] nsIDOMDocument *aSourceDoc, [in] nsIDOMNode *aDestinationNode, [in] PRInt32 aDestinationOffset, [in] bool aDeleteSelection);
3120 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] bool aDeleteSelection);
3121 nsresult SetDocumentTitle([in] nsAString *aTitle);
3122 nsresult UpdateBaseURL();
3123 nsresult SelectElement([in] nsIDOMElement *aElement);
3124 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
3125 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
3126 nsresult GetParagraphState([out] bool *aMixed, [out] nsAString *_retval);
3127 nsresult GetFontFaceState([out] bool *aMixed, [out] nsAString *_retval);
3128 nsresult GetFontColorState([out] bool *aMixed, [out] nsAString *_retval);
3129 nsresult GetBackgroundColorState([out] bool *aMixed, [out] nsAString *_retval);
3130 nsresult GetHighlightColorState([out] bool *aMixed, [out] nsAString *_retval);
3131 nsresult GetListState([out] bool *aMixed, [out] bool *aOL, [out] bool *aUL, [out] bool *aDL);
3132 nsresult GetListItemState([out] bool *aMixed, [out] bool *aLI, [out] bool *aDT, [out] bool *aDD);
3133 nsresult GetAlignment([out] bool *aMixed, [out] PRInt16 *aAlign);
3134 nsresult GetIndentState([out] bool *aCanIndent, [out] bool *aCanOutdent);
3135 nsresult MakeOrChangeList([in] nsAString *aListType, [in] bool entireList, [in] nsAString *aBulletType);
3136 nsresult RemoveList([in] nsAString *aListType);
3137 nsresult Indent([in] nsAString *aIndent);
3138 nsresult Align([in] nsAString *aAlign);
3139 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
3140 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
3141 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
3142 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
3143 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
3144 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
3145 nsresult SetBackgroundColor([in] nsAString *aColor);
3146 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
3147 nsresult IgnoreSpuriousDragEvent([in] bool aIgnoreSpuriousDragEvent);
3148 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
3149 nsresult GetIsCSSEnabled([out] bool *_retval);
3150 nsresult SetIsCSSEnabled([in] bool prb);
3151 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
3152 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
3153 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] bool aIsCreatedHidden, [out] nsIDOMElement **_retval);
3154 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
3155 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
3156 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] bool *_retval);
3157 nsresult GetReturnInParagraphCreatesNewParagraph([out] bool *_retval);
3158 nsresult SetReturnInParagraphCreatesNewParagraph([in] bool prb);
3159 nsresult BreakIsVisible(nsIDOMNode *aNode, bool *_retval);
3160 nsIContent *GetActiveEditingHost();
3164 object,
3165 uuid(0666adf8-8738-4ca7-a917-0348f47d2f40),
3166 local
3168 interface nsIDocShell : nsISupports
3170 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, PRUint32 aLoadFlags, bool firstParty);
3171 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
3172 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
3173 nsresult InternalLoad(nsIURI *aURI, nsIURI *aReferrer, nsISupports *aOwner, PRUint32 aFlags, const PRUnichar *aWindowTarget,
3174 const char *aTypeHint, nsIInputStream *aPostDataStream, nsIInputStream *aHeadersStream, PRUint32 aLoadFlags,
3175 nsISHEntry *aSHEntry, bool firstParty, nsIDocShell **aDocShell, nsIRequest **aRequest);
3176 nsresult AddState(nsIVariant *aData, const nsAString *aTitle, const nsAString *aURL, bool aReplace, JSContext *cx);
3177 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
3178 nsresult PrepareForNewContentModel();
3179 nsresult SetCurrentURI(nsIURI *aURI);
3180 nsresult FirePageHideNotification(bool isUnload);
3181 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
3182 nsresult GetPresShell(nsIPresShell **aPresShell);
3183 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
3184 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
3185 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
3186 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
3187 nsresult GetDocumentCharsetInfo(nsIDocumentCharsetInfo **aDocumentCharsetInfo);
3188 nsresult SetDocumentCharsetInfo(nsIDocumentCharsetInfo *aDocumentCharsetInfo);
3189 nsresult GetAllowPlugins(bool *aAllowPlugins);
3190 nsresult SetAllowPlugins(bool aAllowPlugins);
3191 nsresult GetAllowJavascript(bool *aAllowJavascript);
3192 nsresult SetAllowJavascript(bool aAllowJavascript);
3193 nsresult GetAllowMetaRedirects(bool *aAllowMetaRedirects);
3194 nsresult SetAllowMetaRedirects(bool aAllowMetaRedirects);
3195 nsresult GetAllowSubframes(bool *aAllowSubframes);
3196 nsresult SetAllowSubframes(bool aAllowSubframes);
3197 nsresult GetAllowImages(bool *aAllowImages);
3198 nsresult SetAllowImages(bool aAllowImages);
3199 nsresult GetAllowDNSPrefetch(bool *aAllowDNSPrefetch);
3200 nsresult SetAllowDNSPrefetch(bool aAllowDNSPrefetch);
3201 nsresult GetAllowWindowControl(bool *aAllowWindowControl);
3202 nsresult SetAllowWindowControl(bool aAllowWindowControl);
3203 nsresult GetDocShellEnumerator(PRInt32 aItemType, PRInt32 aDirection, nsISimpleEnumerator **_retval);
3204 nsresult GetAppType(PRUint32 *aAppType);
3205 nsresult SetAppType(PRUint32 aAppType);
3206 nsresult GetAllowAuth(bool *aAllowAuth);
3207 nsresult SetAllowAuth(bool aAllowAuth);
3208 nsresult GetZoom(float *aZoom);
3209 nsresult SetZoom(float aZoom);
3210 nsresult GetMarginWidth(PRInt32 *aMarginWidth);
3211 nsresult SetMarginWidth(PRInt32 aMarginWidth);
3212 nsresult GetMarginHeight(PRInt32 *aMarginHeight);
3213 nsresult SetMarginHeight(PRInt32 aMarginHeight);
3214 nsresult TabToTreeOwner(bool forward, bool *tookFocus);
3215 nsresult GetBusyFlags(PRUint32 *aBusyFlags);
3216 nsresult GetLoadType(PRUint32 *aLoadType);
3217 nsresult SetLoadType(PRUint32 aLoadType);
3218 nsresult IsBeingDestroyed(bool *_retval);
3219 nsresult GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler);
3220 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
3221 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
3222 nsresult GetShouldSaveLayoutState(bool *aShouldSaveLayoutState);
3223 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
3224 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
3225 nsresult SuspendRefreshURIs();
3226 nsresult ResumeRefreshURIs();
3227 nsresult BeginRestore(nsIContentViewer *viewer, bool top);
3228 nsresult FinishRestore();
3229 nsresult GetRestoringDocument(bool *aRestoringDocument);
3230 nsresult GetUseErrorPages(bool *aUseErrorPages);
3231 nsresult SetUseErrorPages(bool aUseErrorPages);
3232 nsresult GetPreviousTransIndex(PRInt32 *aPreviousTransIndex);
3233 nsresult GetLoadedTransIndex(PRInt32 *aLoadedTransIndex);
3234 nsresult HistoryPurged(PRInt32 numEntries);
3235 nsresult GetSessionStorageForURI(nsIURI *uri, const nsAString *documentURI, nsIDOMStorage **_retval);
3236 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
3237 bool create, nsIDOMStorage **_retval);
3238 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
3239 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
3240 nsresult SetChildOffset(PRUint32 offset);
3241 nsresult GetIsInUnload(bool *aIsInUnload);
3242 nsresult GetChannelIsUnsafe(bool *aChannelIsUnsafe);
3243 void DetachEditorFromWindow();
3244 nsresult GetIsOffScreenBrowser(bool *aIsOffScreenBrowser);
3245 nsresult SetIsOffScreenBrowser(bool aIsOffScreenBrowser);
3246 nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
3247 nsresult GetCanExecuteScripts(bool *aCanExecuteScripts);
3248 nsresult GetIsActive(bool *aIsActive);
3249 nsresult SetIsActive(bool aIsActive);
3250 nsresult GetHistoryID(PRUint64 *aHistoryID);
3251 nsresult GetIsAppTab(bool *aIsAppTab);
3252 nsresult SetIsAppTab(bool aIsAppTab);
3253 nsresult CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal);
3257 object,
3258 uuid(85eea794-ed8e-4e1b-a128-d09300ae51aa),
3259 local
3261 interface nsIMutationObserver : nsISupports
3263 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
3264 void /*CharacterDataChangeInfo*/ *aInfo);
3265 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
3266 void /*CharacterDataChangeInfo*/ *aInfo);
3267 void AttributeWillChange(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
3268 nsIAtom *aAttribute, PRInt32 aModType);
3269 void AttributeChanged(nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID,
3270 nsIAtom *aAttribute, PRInt32 aModType);
3271 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aFirstNewContent,
3272 PRInt32 aNewIndexInContainer);
3273 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
3274 PRInt32 aIndexInContainer);
3275 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
3276 PRInt32 aIndexInContainer, nsIContent *aPreviousSibling);
3277 void NodeWillBeDestroyed(const nsINode *aNode);
3278 void ParentChainChanged(nsIContent *aContent);
3282 object,
3283 uuid(c9169398-897a-481d-a95f-d6606ef83756),
3284 local
3286 interface nsIParser : nsISupports
3288 typedef int nsDTDMode;
3289 typedef int eParserCommands;
3291 void SetContentSink(nsIContentSink *aSink);
3292 nsIContentSink *GetContentSink();
3293 void GetCommand(nsACString *aCommand);
3294 void SetCommand2(const char *aCommand);
3295 void SetCommand(eParserCommands aParserCommand);
3296 void SetDocumentCharset(const nsACString *aCharset, PRInt32 aSource);
3297 void GetDocumentCharset(nsACString *oCharset, PRInt32 *oSource);
3298 void SetParserFilter(nsIParserFilter *aFilter);
3299 nsresult GetChannel(nsIChannel **aChannel);
3300 nsresult GetDTD(nsIDTD **aDTD);
3301 nsIStreamListener *GetStreamListener();
3302 nsresult ContinueInterruptedParsing();
3303 void BlockParser();
3304 void UnblockParser();
3305 bool IsParserEnabled();
3306 bool IsComplete();
3307 nsresult Parse(nsIURI *aURL, nsIRequestObserver *aListener, void *aKey, nsDTDMode aMode);
3308 nsresult Parse2(const nsAString *aSourceBuffer, void *aKey, const nsACString *aMimeType, bool aLastCall, nsDTDMode aMode);
3309 void *GetRootContextKey();
3310 nsresult Terminate();
3311 nsresult ParseFragment(const nsAString *aSourceBuffer, void /*nsTArray<nsString>*/ *aTagStack);
3312 nsresult BuildModel();
3313 nsresult CancelParsingEvents();
3314 void Reset();
3315 bool CanInterrupt();
3316 bool IsInsertionPointDefined();
3317 void BeginEvaluatingParserInsertedScript();
3318 void EndEvaluatingParserInsertedScript();
3319 void MarkAsNotScriptCreated(const char *aCommand);
3320 bool IsScriptCreated();
3324 object,
3325 uuid(900bc4bc-8b6c-4cba-82fa-568a80fffd3e),
3326 local
3328 interface nsIDocumentObserver : nsIMutationObserver
3330 typedef PRUint32 nsUpdateType;
3332 typedef struct {
3333 PRUint64 mStates;
3334 } nsEventStates;
3336 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
3337 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
3338 void BeginLoad(nsIDocument *aDocument);
3339 void EndLoad(nsIDocument *aDocument);
3340 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent, nsEventStates *aStateMask);
3341 void DocumentStatesChanged(nsIDocument *aDocument, nsEventStates *aStateMask);
3342 void StyleSheetAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, bool aDocumentSheet);
3343 void StyleSheetRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, bool aDocumentSheet);
3344 void StyleSheetApplicableStateChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet,
3345 bool aApplicable);
3346 void StyleRuleChanged(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aOldStyleRule,
3347 nsIStyleRule *aNewStyleRule);
3348 void StyleRuleAdded(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
3349 void StyleRuleRemoved(nsIDocument *aDocument, nsIStyleSheet *aStyleSheet, nsIStyleRule *aStyleRule);
3350 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
3351 void AttemptToExecuteScript(nsIContent *aContent, nsIParser *aParser, bool *aBlock);
3355 object,
3356 uuid(3682dd99-8560-44f4-9b8f-ccce9d7b96fb),
3357 local
3359 interface nsIContentUtils : nsISupports
3361 bool IsSafeToRunScript();
3362 nsresult AddDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
3363 nsresult RemoveDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
3364 nsresult AddMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
3365 nsresult RemoveMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
3366 nsresult AddScriptRunner(nsIRunnable *aRunnable);
3370 object,
3371 uuid(8f672000-bab9-4c60-aaaf-2673c4e2a4c6),
3372 local
3374 interface nsIPluginInstance : nsISupports
3376 nsresult GetDOMElement(nsIDOMElement **aDOMElement);