mshtml: Add separate task list for tasks dispatching events.
[wine.git] / dlls / mshtml / nsiface.idl
blob1e97f1fc63b4058d4df90b98117b5676347a8890
1 /*
2 * Copyright 2005-2012 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 #pragma makedep header
28 cpp_quote("#define GECKO_VERSION \"2.47.3\"")
29 cpp_quote("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
31 import "wtypes.idl";
33 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
34 cpp_quote("#undef GetForm")
35 cpp_quote("#undef SetPort")
36 cpp_quote("#undef GetClassName")
37 cpp_quote("#endif")
39 typedef HRESULT nsresult;
40 typedef ULONG nsrefcnt;
42 typedef IID nsID;
43 typedef IID nsIID;
44 typedef nsIID nsCID;
45 typedef REFIID nsIIDRef;
46 typedef nsIIDRef nsCIDRef;
48 typedef WCHAR PRUnichar;
51 * Mozilla uses stdint.h types for its headers. Following defines make this IDL file
52 * more similar to original declarations. Note that it's only a widl trick, we can't
53 * use stdint.h types in C.
55 #define int16_t short
56 #define int32_t LONG
57 #define int64_t INT64
59 #define uint8_t UINT8
60 #define uint16_t UINT16
61 #define uint32_t UINT32
62 #define uint64_t UINT64
64 #define char16_t PRUnichar
66 typedef uint64_t DOMTimeStamp;
67 typedef uint32_t nsLoadFlags;
68 typedef int64_t PRTime;
70 /* Similar trick to stdint.h types for C++ bool type */
71 typedef unsigned char cpp_bool;
72 #define bool cpp_bool
74 typedef struct {
75 void *v;
76 void *d1;
77 uint32_t d2;
78 void *d3;
79 } nsCStringContainer;
81 typedef struct {
82 void *v;
83 void *d1;
84 uint32_t d2;
85 void *d3;
86 } nsStringContainer;
88 typedef nsCStringContainer nsACString;
89 typedef nsStringContainer nsAString;
91 interface nsIWebBrowserChrome;
92 interface nsILoadGroup;
93 interface nsIDOMNode;
94 interface nsIDOMAttr;
95 interface nsIDOMDocument;
96 interface nsIDOMEvent;
97 interface nsIEditor;
98 interface nsISelectionController;
99 interface nsITransactionManager;
100 interface nsITransaction;
101 interface nsIInlineSpellChecker;
102 interface nsIOutputStream;
103 interface nsIEditorObserver;
104 interface nsIEditActionListener;
105 interface nsIDocumentStateListener;
106 interface nsIDOMCSSStyleSheet;
107 interface nsIDOMDocumentView;
108 interface nsIDOMWindow;
109 interface nsIDOMElement;
110 interface nsIDOMRange;
111 interface nsIDOMEventTarget;
112 interface nsISelection;
113 interface nsIDOMHTMLSelectElement;
114 interface nsIFile;
115 interface nsIDocShell;
116 interface mozIDOMWindowProxy;
118 interface IMoniker;
121 object,
122 uuid(00000000-0000-0000-c000-000000000046),
123 local
125 interface nsISupports
127 nsresult QueryInterface(nsIIDRef riid, void **result);
128 nsrefcnt AddRef();
129 nsrefcnt Release();
132 /* Currently we don't need a full declaration of these interfaces */
133 typedef nsISupports nsISHistory;
134 typedef nsISupports nsIWidget;
135 typedef nsISupports nsIPrompt;
136 typedef nsISupports nsIAuthPrompt;
137 typedef nsISupports nsIDOMCDATASection;
138 typedef nsISupports nsIDOMProcessingInstruction;
139 typedef nsISupports nsIDOMEntityReference;
140 typedef nsISupports nsIWebProgressListener;
141 typedef nsISupports nsIDOMCSSValue;
142 typedef nsISupports nsIPrintSession;
143 typedef nsISupports nsIControllerCommandTable;
144 typedef nsISupports nsIPrincipal;
145 typedef nsISupports nsIAtom;
146 typedef nsISupports nsISupportsArray;
147 typedef nsISupports nsIContentFilter;
148 typedef nsISupports nsIDOMMediaList;
149 typedef nsISupports nsIDOMHTMLTableSectionElement;
150 typedef nsISupports nsINode;
151 typedef nsISupports nsIDOMUserDataHandler;
152 typedef nsISupports nsISHEntry;
153 typedef nsISupports nsIPresShell;
154 typedef nsISupports nsIDocumentCharsetInfo;
155 typedef nsISupports nsILayoutHistoryState;
156 typedef nsISupports nsISecureBrowserUI;
157 typedef nsISupports nsIDOMStorage;
158 typedef nsISupports nsIDOMDOMTokenList;
159 typedef nsISupports nsITransferable;
160 typedef nsISupports nsIDOMFileList;
161 typedef nsISupports nsIDOMFile;
162 typedef nsISupports nsIControllers;
163 typedef nsISupports nsIDOMValidityState;
164 typedef nsISupports nsIPluginInstanceOwner;
165 typedef nsISupports nsIPluginStreamListener;
166 typedef nsISupports nsIContentSink;
167 typedef nsISupports nsIParserFilter;
168 typedef nsISupports nsIDTD;
169 typedef nsISupports nsIObserver;
170 typedef nsISupports nsIDOMNodeFilter;
171 typedef nsISupports nsIDOMNodeIterator;
172 typedef nsISupports nsIDOMTreeWalker;
173 typedef nsISupports nsIHttpUpgradeListener;
174 typedef nsISupports nsIDOMOfflineResourceList;
175 typedef nsISupports nsIDOMNavigator;
176 typedef nsISupports nsIDOMScreen;
177 typedef nsISupports nsIAnimationFrameListener;
178 typedef nsISupports nsIDOMStorageList;
179 typedef nsISupports nsILocalFile;
180 typedef nsISupports nsIDOMHTMLMenuElement;
181 typedef nsISupports nsIDOMCaretPosition;
182 typedef nsISupports nsIFrameRequestCallback;
183 typedef nsISupports nsICycleCollectorListener;
184 typedef nsISupports nsIDOMHTMLCanvasElement;
185 typedef nsISupports nsIQueryContentEventResult;
186 typedef nsISupports nsIDOMBlob;
187 typedef nsISupports nsIPrivacyTransitionObserver;
188 typedef nsISupports nsIDOMHTMLPropertiesCollection;
189 typedef nsISupports mozIDOMApplication;
190 typedef nsISupports nsIDOMCrypto;
191 typedef nsISupports nsIDOMPkcs11;
192 typedef nsISupports nsIDocShellTreeOwner;
193 typedef nsISupports nsIArray;
194 typedef nsISupports nsILoadInfo;
195 typedef nsISupports nsIContentSecurityPolicy;
196 typedef nsISupports nsIXMLHttpRequestUpload;
197 typedef nsISupports nsIClassInfo;
198 typedef nsISupports nsILoadContext;
199 typedef nsISupports nsIDomainPolicy;
200 typedef nsISupports nsIScriptContext;
201 typedef nsISupports nsIObjectInputStream;
202 typedef nsISupports nsIObjectOutputStream;
204 typedef void *JSContext;
205 typedef void *JSObject;
206 typedef uint64_t jsval;
209 object,
210 uuid(8bb35ed9-e332-462d-9155-4a002ab5c958),
211 local
213 interface nsIServiceManager : nsISupports
215 nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
216 nsresult GetServiceByContractID(const char *aContractID, nsIIDRef aIID, void **result);
217 nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
218 nsresult IsServiceInstantiatedByContractID(const char *aContractID, nsIIDRef aIID, BOOL *_retval);
222 object,
223 uuid(00000001-0000-0000-c000-000000000046),
224 local
226 interface nsIFactory : nsISupports
228 nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
229 nsresult LockFactory(bool lock);
233 object,
234 uuid(9188bc85-f92e-11d2-81ef-0060083a0bcf),
235 local
237 interface nsIWeakReference : nsISupports
239 nsresult QueryReferent(const nsIID *riid, void **result);
243 object,
244 uuid(9188bc86-f92e-11d2-81ef-0060083a0bcf),
245 local
247 interface nsISupportsWeakReference : nsISupports
249 nsresult GetWeakReference(nsIWeakReference **_retval);
253 object,
254 uuid(033a1470-8b2a-11d3-af88-00a024ffc08c),
255 local
257 interface nsIInterfaceRequestor : nsISupports
259 nsresult GetInterface(const nsIID *riid, void **result);
263 object,
264 uuid(4a2abaf0-6886-11d3-9382-00104ba0fd40),
265 local
267 interface nsIRunnable : nsISupports
269 nsresult Run();
273 object,
274 uuid(d1899240-f9d2-11d2-bdd6-000064657374),
275 local
277 interface nsISimpleEnumerator : nsISupports
279 nsresult HasMoreElements(bool *_retval);
280 nsresult GetNext(nsISupports **_retval);
284 object,
285 uuid(81e4c2de-acac-4ad6-901a-b5fb1b851a0d),
286 local
288 interface nsIVariant : nsISupports
290 nsresult GetDataType(uint16_t *aDataType);
291 nsresult GetAsInt8(uint8_t *_retval);
292 nsresult GetAsInt16(int16_t *_retval);
293 nsresult GetAsInt32(int32_t *_retval);
294 nsresult GetAsInt64(int64_t *_retval);
295 nsresult GetAsUint8(uint8_t *_retval);
296 nsresult GetAsUint16(uint16_t *_retval);
297 nsresult GetAsUint32(uint32_t *_retval);
298 nsresult GetAsUint64(uint64_t *_retval);
299 nsresult GetAsFloat(float *_retval);
300 nsresult GetAsDouble(double *_retval);
301 nsresult GetAsBool(bool *_retval);
302 nsresult GetAsChar(char *_retval);
303 nsresult GetAsWChar(PRUnichar *_retval);
304 nsresult GetAsID(nsID *retval);
305 nsresult GetAsAString(nsAString *_retval);
306 nsresult GetAsDOMString(nsAString *_retval);
307 nsresult GetAsACString(nsACString *_retval);
308 nsresult GetAsAUTF8String(nsACString *_retval);
309 nsresult GetAsString(char * *_retval);
310 nsresult GetAsWString(PRUnichar * *_retval);
311 nsresult GetAsISupports(nsISupports * *_retval);
312 nsresult GetAsJSVal(long /*jsval*/ *_retval);
313 nsresult GetAsInterface(nsIID **iid, void **iface);
314 nsresult GetAsArray(uint16_t *type, nsIID *iid, uint32_t *count, void **ptr);
315 nsresult GetAsStringWithSize(uint32_t *size, char **str);
316 nsresult GetAsWStringWithSize(uint32_t *size, PRUnichar **str);
320 object,
321 uuid(5586a590-8c82-11d5-90f3-0010a4e73d9a),
322 local
324 interface nsIWritableVariant : nsIVariant
326 nsresult GetWritable(bool *aWritable);
327 nsresult SetWritable(bool aWritable);
328 nsresult SetAsInt8(uint8_t aValue);
329 nsresult SetAsInt16(int16_t aValue);
330 nsresult SetAsInt32(int32_t aValue);
331 nsresult SetAsInt64(int64_t aValue);
332 nsresult SetAsUint8(uint8_t aValue);
333 nsresult SetAsUint16(uint16_t aValue);
334 nsresult SetAsUint32(uint32_t aValue);
335 nsresult SetAsUint64(uint64_t aValue);
336 nsresult SetAsFloat(float aValue);
337 nsresult SetAsDouble(double aValue);
338 nsresult SetAsBool(bool aValue);
339 nsresult SetAsChar(char aValue);
340 nsresult SetAsWChar(PRUnichar aValue);
341 nsresult SetAsID(const nsID *aValue);
342 nsresult SetAsAString(const nsAString *aValue);
343 nsresult SetAsDOMString(const nsAString *aValue);
344 nsresult SetAsACString(const nsACString *aValue);
345 nsresult SetAsAUTF8String(const nsACString *aValue);
346 nsresult SetAsString(const char * aValue);
347 nsresult SetAsWString(const PRUnichar * aValue);
348 nsresult SetAsISupports(nsISupports *aValue);
349 nsresult SetAsInterface(const nsIID *iid, void *iface);
350 nsresult SetAsArray(uint16_t type, const nsIID *iid, uint32_t count, void *ptr);
351 nsresult SetAsStringWithSize(uint32_t size, const char *str);
352 nsresult SetAsWStringWithSize(uint32_t size, const PRUnichar *str);
353 nsresult SetAsVoid();
354 nsresult SetAsEmpty();
355 nsresult SetAsEmptyArray();
356 nsresult SetFromVariant(nsIVariant *aValue);
360 object,
361 uuid(53cdbc97-c2d7-4e30-b2c3-45b2ee79db18),
362 local
364 interface nsIInputStream : nsISupports
366 nsresult Close();
367 nsresult Available(uint64_t *_retval);
368 nsresult Read(char *aBuf, uint32_t aCount, uint32_t *_retval);
369 nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
370 void *aClosure, const char *aFromSegment, uint32_t aToOffset,
371 uint32_t aCount, uint32_t *aWriteCount),
372 void *aClosure, uint32_t aCount, uint32_t *_retval);
373 nsresult IsNonBlocking(bool *_retval);
377 object,
378 uuid(8429d350-1040-4661-8b71-f2a6ba455980),
379 local
381 interface nsISeekableStream : nsISupports
383 enum {
384 NS_SEEK_SET = 0,
385 NS_SEEK_CUR = 1,
386 NS_SEEK_END = 2
389 nsresult Seek(int32_t whence, int64_t offset);
390 nsresult Tell(int64_t *_retval);
391 nsresult SetEOF();
395 object,
396 uuid(92073a54-6d78-4f30-913a-b871813208c6),
397 local
399 interface nsIURI : nsISupports
401 nsresult GetSpec(nsACString *aSpec);
402 nsresult SetSpec(const nsACString *aSpec);
403 nsresult GetPrePath(nsACString *aPrePath);
404 nsresult GetScheme(nsACString *aScheme);
405 nsresult SetScheme(const nsACString *aScheme);
406 nsresult GetUserPass(nsACString *aUserPass);
407 nsresult SetUserPass(const nsACString *aUserPass);
408 nsresult GetUsername(nsACString *aUsername);
409 nsresult SetUsername(const nsACString *aUsername);
410 nsresult GetPassword(nsACString *aPassword);
411 nsresult SetPassword(const nsACString *aPassword);
412 nsresult GetHostPort(nsACString *aHostPort);
413 nsresult SetHostPort(const nsACString *aHostPort);
414 nsresult GetHost(nsACString *aHost);
415 nsresult SetHost(const nsACString *aHost);
416 nsresult GetPort(int32_t *aPort);
417 nsresult SetPort(int32_t aPort);
418 nsresult GetPath(nsACString *aPath);
419 nsresult SetPath(const nsACString *aPath);
420 nsresult Equals(nsIURI *other, bool *_retval);
421 nsresult SchemeIs(const char *scheme, bool *_retval);
422 nsresult Clone(nsIURI **_retval);
423 nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
424 nsresult GetAsciiSpec(nsACString *aAsciiSpec);
425 nsresult GetAsciiHostPort(nsACString *aAsciiHostPort);
426 nsresult GetAsciiHost(nsACString *aAsciiHost);
427 nsresult GetOriginCharset(nsACString *aOriginCharset);
428 nsresult GetRef(nsACString *aRef);
429 nsresult SetRef(const nsACString *aRef);
430 nsresult EqualsExceptRef(nsIURI *other, bool *_retval);
431 nsresult CloneIgnoringRef(nsIURI **_retval);
432 nsresult GetSpecIgnoringRef(nsACString *aSpecIgnoringRef);
433 nsresult GetHasRef(bool *aHasRef);
437 object,
438 uuid(86adcd89-0b70-47a2-b0fe-5bb2c5f37e31),
439 local
441 interface nsIURL : nsIURI
443 nsresult GetFilePath(nsACString *aFilePath);
444 nsresult SetFilePath(const nsACString *aFilePath);
445 nsresult GetQuery(nsACString *aQuery);
446 nsresult SetQuery(const nsACString *aQuery);
447 nsresult GetDirectory(nsACString *aDirectory);
448 nsresult SetDirectory(const nsACString *aDirectory);
449 nsresult GetFileName(nsACString *aFileName);
450 nsresult SetFileName(const nsACString *aFileName);
451 nsresult GetFileBaseName(nsACString *aFileBaseName);
452 nsresult SetFileBaseName(const nsACString *aFileBaseName);
453 nsresult GetFileExtension(nsACString *aFileExtension);
454 nsresult SetFileExtension(const nsACString *aFileExtension);
455 nsresult GetCommonBaseSpec(nsIURI *aURIToCompare, nsACString *_retval);
456 nsresult GetRelativeSpec(nsIURI *aURIToCompare, nsACString *_retval);
460 object,
461 uuid(e91ac988-27c2-448b-b1a1-3822e1ef1987),
462 local
464 interface nsIFileURL : nsIURL
466 nsresult GetFile(nsIFile **aFile);
467 nsresult SetFile(nsIFile *aFile);
471 object,
472 uuid(321578d0-03c1-4d95-8821-021ac612d18d),
473 local
475 interface nsIMutable : nsISupports
477 nsresult GetMutable(bool *aMutable);
478 nsresult SetMutable(bool aMutable);
482 object,
483 uuid(babd6cca-ebe7-4329-967c-d6b9e33caa81),
484 local
486 interface nsIStandardURL : nsIMutable
488 nsresult Init(uint32_t aUrlType, int32_t aDefaultPort, const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI);
489 nsresult SetDefaultPort(int32_t aNewDefaultPort);
493 object,
494 uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe),
495 local
497 interface nsIRequest : nsISupports
499 const UINT LOAD_NORMAL = 0;
500 const UINT LOAD_BACKGROUND = 1 << 1;
501 const UINT INHIBIT_CACHING = 1 << 7;
502 const UINT INHIBIT_PERSISTENT_CACHING = 1 << 8;
503 const UINT LOAD_BYPASS_CACHE = 1 << 9;
504 const UINT LOAD_FROM_CACHE = 1 << 10;
505 const UINT VALIDATE_ALWAYS = 1 << 11;
506 const UINT VALIDATE_NEVER = 1 << 12;
507 const UINT VALIDATE_ONCE_PER_SESSION = 1 << 13;
509 nsresult GetName(nsACString *aName);
510 nsresult IsPending(bool *_retval);
511 nsresult GetStatus(nsresult *aStatus);
512 nsresult Cancel(nsresult aStatus);
513 nsresult Suspend();
514 nsresult Resume();
515 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
516 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
517 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
518 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
522 object,
523 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
524 local
526 interface nsIRequestObserver : nsISupports
528 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
529 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
533 object,
534 uuid(3b4c8a77-76ba-4610-b316-678c73a3b88c),
535 local
537 interface nsIStreamListener : nsIRequestObserver
539 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
540 nsIInputStream *aInputStream, uint64_t aOffset, uint32_t aCount);
544 object,
545 uuid(f0c87725-7a35-463c-9ceb-2c07f23406cc),
546 local
548 interface nsILoadGroup : nsIRequest
550 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
551 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
552 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
553 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
554 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
555 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
556 nsresult GetRequests(nsISimpleEnumerator **aRequests);
557 nsresult GetActiveCount(uint32_t *aActiveCount);
558 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
559 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
560 nsresult GetSchedulingContextID(nsID *aSchedulingContextID);
561 nsresult GetDefaultLoadFlags(nsLoadFlags *aDefaultLoadFlags);
562 nsresult SetDefaultLoadFlags(nsLoadFlags aDefaultLoadFlags);
563 nsresult GetUserAgentOverrideCache(nsACString *aUserAgentOverrideCache);
564 nsresult SetUserAgentOverrideCache(const nsACString *aUserAgentOverrideCache);
568 object,
569 uuid(2c389865-23db-4aa7-9fe5-60cc7b00697e),
570 local
572 interface nsIChannel : nsIRequest
574 const UINT LOAD_DOCUMENT_URI = 1 << 16;
575 const UINT LOAD_RETARGETED_DOCUMENT_URI = 1 << 17;
576 const UINT LOAD_REPLACE = 1 << 18;
577 const UINT LOAD_INITIAL_DOCUMENT_URI = 1 << 19;
578 const UINT LOAD_TARGETED = 1 << 20;
579 const UINT LOAD_CALL_CONTENT_SNIFFERS = 1 << 21;
580 const UINT LOAD_CLASSIFY_URI = 1 << 22;
581 const UINT LOAD_MEDIA_SNIFFER_OVERRIDES_CONTENT_TYPE = 1 << 23;
582 const UINT LOAD_EXPLICIT_CREDENTIALS = 1 << 24;
583 const UINT LOAD_BYPASS_SERVICE_WORKER = 1 << 25;
585 nsresult GetOriginalURI(nsIURI **aOriginalURI);
586 nsresult SetOriginalURI(nsIURI *aOriginalURI);
587 nsresult GetURI(nsIURI **aURI);
588 nsresult GetOwner(nsISupports **aOwner);
589 nsresult SetOwner(nsISupports *aOwner);
590 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
591 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
592 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
593 nsresult GetContentType(nsACString *aContentType);
594 nsresult SetContentType(const nsACString *aContentType);
595 nsresult GetContentCharset(nsACString *aContentCharset);
596 nsresult SetContentCharset(const nsACString *aContentCharset);
597 nsresult GetContentLength(int64_t *aContentLength);
598 nsresult SetContentLength(int64_t aContentLength);
599 nsresult Open(nsIInputStream **_retval);
600 nsresult Open2(nsIInputStream **_retval);
601 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
602 nsresult AsyncOpen2(nsIStreamListener *aListener);
603 nsresult GetContentDisposition(uint32_t *aContentDisposition);
604 nsresult SetContentDisposition(uint32_t aContentDisposition);
605 nsresult GetContentDispositionFilename(nsAString *aContentDispositionFilename);
606 nsresult SetContentDispositionFilename(const nsAString *aContentDispositionFilename);
607 nsresult GetContentDispositionHeader(nsACString *aContentDispositionHeader);
608 nsresult GetLoadInfo(nsILoadInfo **aLoadInfo);
609 nsresult SetLoadInfo(nsILoadInfo *aLoadInfo);
613 object,
614 uuid(35412859-b9d9-423c-8866-2d4559fdd2be),
615 local
617 interface nsIHttpHeaderVisitor : nsISupports
619 nsresult VisitHeader(const nsACString *aHeader, const nsACString *aValue);
623 object,
624 uuid(b2596105-3d0d-4e6a-824f-0539713bb879),
625 local
627 interface nsIHttpChannel : nsIChannel
629 nsresult GetRequestMethod(nsACString *aRequestMethod);
630 nsresult SetRequestMethod(const nsACString *aRequestMethod);
631 nsresult GetReferrer(nsIURI **aReferrer);
632 nsresult SetReferrer(nsIURI *aReferrer);
633 nsresult GetReferrerPolicy(uint32_t *aReferrerPolicy);
634 nsresult SetReferrerWithPolicy(nsIURI *referrer, uint32_t referrerPolicy);
635 nsresult GetProtocolVersion(nsACString *aProtocolVersion);
636 nsresult GetTransferSize(uint64_t *aTransferSize);
637 nsresult GetDecodedBodySize(uint64_t *aDecodedBodySize);
638 nsresult GetEncodedBodySize(uint64_t *aEncodedBodySize);
639 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
640 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, bool aMerge);
641 nsresult SetEmptyRequestHeader(const nsACString *aHeader);
642 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
643 nsresult VisitNonDefaultRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
644 nsresult GetAllowPipelining(bool *aAllowPipelining);
645 nsresult SetAllowPipelining(bool aAllowPipelining);
646 nsresult GetAllowSTS(bool *aAllowSTS);
647 nsresult SetAllowSTS(bool aAllowSTS);
648 nsresult GetRedirectionLimit(uint32_t *aRedirectionLimit);
649 nsresult SetRedirectionLimit(uint32_t aRedirectionLimit);
650 nsresult GetResponseStatus(uint32_t *aResponseStatus);
651 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
652 nsresult GetRequestSucceeded(bool *aRequestSucceeded);
653 nsresult GetIsMainDocumentChannel(bool *aIsMainDocumentChannel);
654 nsresult SetIsMainDocumentChannel(bool aIsMainDocumentChannel);
655 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
656 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, bool merge);
657 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
658 nsresult IsNoStoreResponse(bool *_retval);
659 nsresult IsNoCacheResponse(bool *_retval);
660 nsresult IsPrivateResponse(bool *_retval);
661 nsresult RedirectTo(nsIURI *aTargetURI);
662 nsresult GetSchedulingContextID(nsID *aSchedulingContextID);
663 nsresult SetSchedulingContextID(const nsID aSchedulingContextID);
667 object,
668 uuid(4e28263d-1e03-46f4-aa5c-9512f91957f9),
669 local
671 interface nsIHttpChannelInternal : nsISupports
673 nsresult GetDocumentURI(nsIURI **aDocumentURI);
674 nsresult SetDocumentURI(nsIURI *aDocumentURI);
675 nsresult GetRequestVersion(uint32_t *major, uint32_t *minor);
676 nsresult GetResponseVersion(uint32_t *major, uint32_t *minor);
677 nsresult TakeAllSecurityMessages(void /*nsCOMArray<nsISecurityConsoleMessage>*/ *aMessages);
678 nsresult SetCookie(const char *aCookieHeader);
679 nsresult SetupFallbackChannel(const char *aFallbackKey);
680 nsresult GetThirdPartyFlags(uint32_t *aThirdPartyFlags);
681 nsresult SetThirdPartyFlags(uint32_t aThirdPartyFlags);
682 nsresult GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie);
683 nsresult SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie);
684 nsresult GetCanceled(bool *aCanceled);
685 nsresult GetChannelIsForDownload(bool *aChannelIsForDownload);
686 nsresult SetChannelIsForDownload(bool aChannelIsForDownload);
687 nsresult GetLocalAddress(nsACString *aLocalAddress);
688 nsresult GetLocalPort(int32_t *aLocalPort);
689 nsresult GetRemoteAddress(nsACString *aRemoteAddress);
690 nsresult GetRemotePort(int32_t *aRemotePort);
691 nsresult SetCacheKeysRedirectChain(void /*nsTArray<nsCString>*/ *cacheKeys);
692 nsresult HTTPUpgrade(const nsACString *aProtocolName, nsIHttpUpgradeListener *aListener);
693 nsresult GetAllowSpdy(bool *aAllowSpdy);
694 nsresult SetAllowSpdy(bool aAllowSpdy);
695 nsresult GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled);
696 nsresult SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled);
697 nsresult GetInitialRwin(uint32_t *aInitialRwin) ;
698 nsresult SetInitialRwin(uint32_t aInitialRwin);
699 nsresult GetApiRedirectToURI(nsIURI **aApiRedirectToURI);
700 nsresult GetAllowAltSvc(bool *aAllowAltSvc);
701 nsresult SetAllowAltSvc(bool aAllowAltSvc);
702 nsresult GetLastModifiedTime(PRTime *aLastModifiedTime);
703 nsresult ForceIntercepted(uint64_t aInterceptionID);
704 nsresult GetResponseSynthesized(bool *aResponseSynthesized);
705 nsresult GetCorsIncludeCredentials(bool *aCorsIncludeCredentials);
706 nsresult SetCorsIncludeCredentials(bool aCorsIncludeCredentials);
707 nsresult GetCorsMode(uint32_t *aCorsMode);
708 nsresult SetCorsMode(uint32_t aCorsMode);
709 nsresult GetRedirectMode(uint32_t *aRedirectMode);
710 nsresult SetRedirectMode(uint32_t aRedirectMode);
711 nsresult GetTopWindowURI(nsIURI **aTopWindowURI);
712 nsresult GetNetworkInterfaceId(nsACString *aNetworkInterfaceId);
713 nsresult SetNetworkInterfaceId(const nsACString *aNetworkInterfaceId);
714 nsresult GetProxyURI(nsIURI **aProxyURI);
715 nsresult SetCorsPreflightParameters(const void /*nsTArray<nsCString>*/ *unsafeHeaders);
716 nsresult GetBlockAuthPrompt(bool *aBlockAuthPrompt) ;
717 nsresult SetBlockAuthPrompt(bool aBlockAuthPrompt);
721 object,
722 uuid(5cfe15bd-5adb-4a7f-9e55-4f5a67d15794),
723 local
725 interface nsIUploadChannel : nsISupports
727 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
728 int64_t aContentLength);
729 nsresult GetUploadStream(nsIInputStream **aUploadStream);
733 object,
734 uuid(fc826b53-0db8-42b4-aa6a-5dd2cfca52a4),
735 local
737 interface nsIFormPOSTActionChannel : nsIUploadChannel
742 object,
743 uuid(72c34415-c6eb-48af-851f-772fa9ee5972),
744 local
746 interface nsICacheInfoChannel : nsISupports
748 nsresult GetCacheTokenExpirationTime(uint32_t *aCacheTokenExpirationTime);
749 nsresult GetCacheTokenCachedCharset(nsACString *aCacheTokenCachedCharset);
750 nsresult SetCacheTokenCachedCharset(const nsACString *aCacheTokenCachedCharset);
751 nsresult IsFromCache(bool *_retval);
752 nsresult GetCacheKey(nsISupports **aCacheKey);
753 nsresult SetCacheKey(nsISupports *aCacheKey);
754 nsresult GetAllowStaleCacheContent(bool *aAllowStaleCacheContent);
755 nsresult SetAllowStaleCacheContent(bool aAllowStaleCacheContent);
759 object,
760 uuid(8d171460-a716-41f1-92be-8c659db39b45),
761 local
763 interface nsIAsyncVerifyRedirectCallback : nsISupports
765 nsresult OnRedirectVerifyCallback(nsresult result);
769 object,
770 uuid(0197720d-37ed-4e75-8956-d0d296e4d8a6),
771 local
773 interface nsIChannelEventSink : nsISupports
775 const UINT REDIRECT_TEMPORARY = 1;
776 const UINT REDIRECT_PERMANENT = 2;
777 const UINT REDIRECT_INTERNAL = 4;
778 const UINT REDIRECT_STS_UPGRADE = 8;
780 nsresult AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags,
781 nsIAsyncVerifyRedirectCallback *callback);
785 object,
786 uuid(87d55fba-cb7e-4f38-84c1-5c6c2b2a55e9),
787 local
789 interface nsIProgressEventSink : nsISupports
791 nsresult OnProgress(nsIRequest *aRequest, nsISupports *aContext, int64_t aProgress, int64_t aProgressMax);
792 nsresult OnStatus(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus, const char16_t *aStatusArg);
796 object,
797 uuid(79de76e5-994e-4f6b-81aa-42d9adb6e67e),
798 local
800 interface nsIDOMLocation : nsISupports
802 nsresult GetHash(nsAString *aHash);
803 nsresult SetHash(const nsAString *aHash);
804 nsresult GetHost(nsAString *aHost);
805 nsresult SetHost(const nsAString *aHost);
806 nsresult GetHostname(nsAString *aHostname);
807 nsresult SetHostname(const nsAString *aHostname);
808 nsresult GetHref(nsAString *aHref);
809 nsresult SetHref(const nsAString *aHref);
810 nsresult GetPathname(nsAString *aPathname);
811 nsresult SetPathname(const nsAString *aPathname);
812 nsresult GetPort(nsAString *aPort);
813 nsresult SetPort(const nsAString *aPort);
814 nsresult GetProtocol(nsAString *aProtocol);
815 nsresult SetProtocol(const nsAString *aProtocol);
816 nsresult GetSearch(nsAString *aSearch);
817 nsresult SetSearch(const nsAString *aSearch);
818 nsresult GetOrigin(nsAString *aOrigin);
819 nsresult Reload(bool forceget);
820 nsresult Replace(const nsAString *url);
821 nsresult Assign(const nsAString *url);
822 nsresult ToString(nsAString *_retval);
823 nsresult ValueOf(nsIDOMLocation **_retval);
827 object,
828 uuid(4d6b3bad-f53c-4585-82f6-62982e27ede8),
829 local
831 interface nsIDOMCSSRule : nsISupports
833 nsresult GetType(uint16_t *aType);
834 nsresult GetCssText(nsAString *aCssText);
835 nsresult SetCssText(const nsAString *aCssText);
836 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
837 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
838 int /* thiscall mozilla::css::Rule */ GetCSSRule();
842 object,
843 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
844 local
846 interface nsIDOMCSSStyleDeclaration : nsISupports
848 nsresult GetCssText(nsAString *aCssText);
849 nsresult SetCssText(const nsAString *aCssText);
850 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
851 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
852 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
853 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
854 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
855 const nsAString *priority);
856 nsresult GetLength(uint32_t *aLength);
857 nsresult Item(uint32_t index, nsAString *_retval);
858 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
862 object,
863 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
864 local
866 interface nsIDOMCSSRuleList : nsISupports
868 nsresult GetLength(uint32_t *aLength);
869 nsresult Item(uint32_t index, nsIDOMCSSRule **_retval);
873 object,
874 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
875 local
877 interface nsIDOMStyleSheet : nsISupports
879 nsresult GetType(nsAString *aType);
880 nsresult GetDisabled(bool *aDisabled);
881 nsresult SetDisabled(bool aDisabled);
882 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
883 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
884 nsresult GetHref(nsAString *aHref);
885 nsresult GetTitle(nsAString *aTitle);
886 nsresult GetMedia(nsIDOMMediaList **aMedia);
890 object,
891 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
892 local
894 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
896 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
897 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
898 nsresult InsertRule(const nsAString *rule, uint32_t index, uint32_t *_retval);
899 nsresult DeleteRule(uint32_t index);
903 object,
904 uuid(0e424250-ac2a-4fe2-bccd-a45824af090e),
905 local
907 interface nsIDOMStyleSheetList : nsISupports
909 nsresult GetLength(uint32_t *aLength);
910 nsresult Item(uint32_t index, nsIDOMStyleSheet **_retval);
914 object,
915 uuid(e0e49c52-915b-40f9-9cba-6026305cdf3e),
916 local
918 interface nsIDOMMediaQueryList : nsISupports
920 nsresult GetMedia(nsAString *aMedia);
921 nsresult GetMatches(bool *_retval);
925 object,
926 uuid(450cf0ba-de90-4f86-85bf-e10cc8b8713f),
927 local
929 interface nsIDOMNodeList : nsISupports
931 nsresult Item(uint32_t index, nsIDOMNode **_retval);
932 nsresult GetLength(uint32_t *aLength);
936 object,
937 uuid(bb07f567-5b37-4172-92aa-7d00ceed4809),
938 local
940 interface nsIDOMHTMLCollection : nsISupports
942 nsresult GetLength(uint32_t *aLength);
943 nsresult Item(uint32_t index, nsIDOMNode **_retval);
944 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
948 object,
949 uuid(cb5564cd-26ec-418f-a6d6-1d57cd2c971c),
950 local
952 interface nsIDOMMozNamedAttrMap : nsISupports
954 nsresult GetNamedItem(const nsAString *name, nsIDOMAttr **_retval);
955 nsresult SetNamedItem(nsIDOMAttr *arg, nsIDOMAttr **_retval);
956 nsresult RemoveNamedItem(const nsAString *name, nsIDOMAttr **_retval);
957 nsresult Item(uint32_t index, nsIDOMAttr **_retval);
958 nsresult GetLength(uint32_t *aLength);
959 nsresult GetNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMAttr **_retval);
960 nsresult SetNamedItemNS(nsIDOMAttr *arg, nsIDOMAttr **_retval);
961 nsresult RemoveNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMAttr **_retval);
965 object,
966 uuid(cc35b412-009b-46a3-9be0-76448f12548d),
967 local
969 interface nsIDOMNode : nsISupports
971 enum NSNODETYPE {
972 ELEMENT_NODE = 1,
973 ATTRIBUTE_NODE = 2,
974 TEXT_NODE = 3,
975 CDATA_SELECTION_NODE = 4,
976 ENTITY_REFERENCE_NODE = 5,
977 ENTITY_NODE = 6,
978 PROCESSING_INSTRUCTION_NODE = 7,
979 COMMENT_NODE = 8,
980 DOCUMENT_NODE = 9,
981 DOCUMENT_TYPE_NODE = 10,
982 DOCUMENT_FRAGMENT_NODE = 11,
983 NOTATION_NODE = 12
986 enum {
987 DOCUMENT_POSITION_DISCONNECTED = 1,
988 DOCUMENT_POSITION_PRECEDING = 2,
989 DOCUMENT_POSITION_FOLLOWING = 4,
990 DOCUMENT_POSITION_CONTAINS = 8,
991 DOCUMENT_POSITION_CONTAINED_BY = 16,
992 DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32
995 nsresult GetNodeName(nsAString *aNodeName);
996 nsresult GetNodeValue(nsAString *aNodeValue);
997 nsresult SetNodeValue(const nsAString *aNodeValue);
998 nsresult GetNodeType(uint16_t *aNodeType);
999 nsresult GetParentNode(nsIDOMNode **aParentNode);
1000 nsresult GetParentElement(nsIDOMElement **aParentElement);
1001 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
1002 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
1003 nsresult GetLastChild(nsIDOMNode **aLastChild);
1004 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
1005 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
1006 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
1007 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
1008 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
1009 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
1010 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
1011 nsresult HasChildNodes(bool *_retval);
1012 nsresult CloneNode(bool deep, uint8_t _argc, nsIDOMNode **_retval);
1013 nsresult Normalize();
1014 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
1015 nsresult GetPrefix(nsAString *aPrefix);
1016 nsresult GetLocalName(nsAString *aLocalName);
1017 nsresult UnusedPlaceholder(bool *_retval);
1018 nsresult GetDOMBaseURI(nsAString *aBaseURI);
1019 nsresult CompareDocumentPosition(nsIDOMNode *other, uint16_t *_retval);
1020 nsresult GetTextContent(nsAString *aTextContent);
1021 nsresult SetTextContent(const nsAString *aTextContent);
1022 nsresult LookupPrefix(const nsAString *namespaceURI, nsAString *_retval);
1023 nsresult IsDefaultNamespace(const nsAString *namespaceURI, bool *_retval);
1024 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString *_retval);
1025 nsresult IsEqualNode(nsIDOMNode *arg, bool *_retval);
1026 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIVariant **_retval);
1027 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
1028 nsresult Contains(nsIDOMNode *aOther, bool *_retval);
1030 nsresult GetMshtmlNode(nsISupports **aMshtmlNode);
1031 nsresult SetMshtmlNode(nsISupports *aMshtmlNode);
1035 object,
1036 uuid(7db491e8-a3a3-4432-ad67-e6c33e24ac6d),
1037 local
1039 interface nsIDOMAttr : nsIDOMNode
1041 nsresult GetName(nsAString *aName);
1042 nsresult GetSpecified(bool *aSpecified);
1043 nsresult GetValue(nsAString *aValue);
1044 nsresult SetValue(const nsAString *aValue);
1045 nsresult GetOwnerElement(nsIDOMElement **aOwnerElement);
1046 nsresult GetIsId(bool *aIsId);
1050 object,
1051 uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
1052 local
1054 interface nsIDOMClientRect : nsISupports
1056 nsresult GetLeft(float *aLeft);
1057 nsresult GetTop(float *aTop);
1058 nsresult GetRight(float *aRight);
1059 nsresult GetBottom(float *aBottom);
1060 nsresult GetWidth(float *aWidth);
1061 nsresult GetHeight(float *aHeight);
1065 object,
1066 uuid(f474c567-cbcb-458f-abad-ae42363da287),
1067 local
1069 interface nsIDOMClientRectList : nsISupports
1071 nsresult GetLength(uint32_t *aLength);
1072 nsresult Item(UINT32 index, nsIDOMClientRect **_retval);
1076 object,
1077 uuid(6289999b-1008-4269-b42a-413ec5a9d3f4),
1078 local
1080 interface nsIDOMElement : nsIDOMNode
1082 nsresult GetTagName(nsAString *aTagName);
1083 nsresult GetId(nsAString *aId);
1084 nsresult SetId(const nsAString *aId);
1085 nsresult GetClassName(nsAString *aClassName);
1086 nsresult SetClassName(const nsAString *aClassName) ;
1087 nsresult GetClassList(nsISupports **aClassList);
1088 nsresult GetAttributes(nsIDOMMozNamedAttrMap **aAttributes);
1089 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
1090 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName, nsAString *_retval);
1091 nsresult SetAttribute(const nsAString *name, const nsAString *value);
1092 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, const nsAString *value);
1093 nsresult RemoveAttribute(const nsAString *name);
1094 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
1095 nsresult HasAttribute(const nsAString *name, bool *_retval);
1096 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName, bool *_retval);
1097 nsresult HasAttributes(bool *_retval);
1098 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
1099 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
1100 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
1101 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMAttr **_retval);
1102 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
1103 nsresult GetElementsByTagName(const nsAString *name, nsIDOMHTMLCollection **_retval);
1104 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMHTMLCollection **_retval);
1105 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMHTMLCollection **_retval);
1106 nsresult GetChildElements(nsIDOMNodeList **aChildren);
1107 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
1108 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
1109 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
1110 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
1111 nsresult GetChildElementCount(uint32_t *aChildElementCount);
1112 nsresult Remove();
1113 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1114 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1115 nsresult GetScrollTop(int32_t *aScrollTop);
1116 nsresult SetScrollTop(int32_t aScrollTop);
1117 nsresult GetScrollLeft(int32_t *aScrollLeft);
1118 nsresult SetScrollLeft(int32_t aScrollLeft);
1119 nsresult GetScrollWidth(int32_t *aScrollWidth);
1120 nsresult GetScrollHeight(int32_t *aScrollHeight);
1121 nsresult GetClientTop(int32_t *aClientTop);
1122 nsresult GetClientLeft(int32_t *aClientLeft);
1123 nsresult GetClientWidth(int32_t *aClientWidth);
1124 nsresult GetClientHeight(int32_t *aClientHeight);
1125 nsresult GetScrollLeftMax(int32_t *aScrollLeftMax);
1126 nsresult GetScrollTopMax(int32_t *aScrollTopMax);
1127 nsresult MozMatchesSelector(const nsAString *selector, bool *_retval);
1128 nsresult SetCapture(bool retargetToElement);
1129 nsresult ReleaseCapture();
1130 nsresult MozRequestFullScreen();
1131 nsresult MozRequestPointerLock();
1132 nsresult QuerySelector(const nsAString *selectors, nsIDOMElement **_retval);
1133 nsresult QuerySelectorAll(const nsAString *selectors, nsIDOMNodeList **_retval);
1137 object,
1138 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
1139 local
1141 interface nsIDOMElementCSSInlineStyle : nsISupports
1143 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
1147 object,
1148 uuid(b0c42392-d0e7-4f6a-beb5-a698ce648945),
1149 local
1151 interface nsIDOMHTMLElement : nsIDOMElement
1153 nsresult GetTitle(nsAString *aTitle);
1154 nsresult SetTitle(const nsAString *aTitle);
1155 nsresult GetLang(nsAString *aLang);
1156 nsresult SetLang(const nsAString *aLang);
1157 nsresult GetDir(nsAString *aDir);
1158 nsresult SetDir(const nsAString *aDir);
1159 nsresult GetDataset(nsISupports **aDataset);
1160 nsresult GetItemScope(bool *aItemScope);
1161 nsresult SetItemScope(bool aItemScope);
1162 nsresult GetItemType(nsIVariant **aItemType);
1163 nsresult SetItemType(nsIVariant *aItemType);
1164 nsresult GetItemId(nsAString *aItemId);
1165 nsresult SetItemId(const nsAString *aItemId);
1166 nsresult GetProperties(nsISupports **aProperties);
1167 nsresult GetItemValue(nsIVariant **aItemValue);
1168 nsresult SetItemValue(nsIVariant *aItemValue);
1169 nsresult GetItemProp(nsIVariant **aItemProp);
1170 nsresult SetItemProp(nsIVariant *aItemProp);
1171 nsresult GetItemRef(nsIVariant **aItemRef);
1172 nsresult SetItemRef(nsIVariant *aItemRef);
1173 nsresult GetHidden(bool *aHidden);
1174 nsresult SetHidden(bool aHidden);
1175 nsresult Click();
1176 nsresult GetTabIndex(int32_t *aTabIndex);
1177 nsresult SetTabIndex(int32_t aTabIndex);
1178 nsresult Focus();
1179 nsresult Blur();
1180 nsresult GetAccessKey(nsAString *aAccessKey);
1181 nsresult SetAccessKey(const nsAString *aAccessKey);
1182 nsresult GetAccessKeyLabel(nsAString *aAccessKeyLabel);
1183 nsresult GetDraggable(bool *aDraggable);
1184 nsresult SetDraggable(bool aDraggable);
1185 nsresult GetContentEditable(nsAString *aContentEditable);
1186 nsresult SetContentEditable(const nsAString *aContentEditable);
1187 nsresult GetIsContentEditable(bool *aIsContentEditable);
1188 nsresult GetContextMenu(nsIDOMHTMLMenuElement **aContextMenu);
1189 nsresult GetSpellcheck(bool *aSpellcheck);
1190 nsresult SetSpellcheck(bool aSpellcheck);
1191 nsresult GetInnerHTML(nsAString *aInnerHTML);
1192 nsresult SetInnerHTML(const nsAString *aInnerHTML);
1193 nsresult GetOuterHTML(nsAString *aInnerHTML);
1194 nsresult SetOuterHTML(const nsAString *aInnerHTML);
1195 nsresult InsertAdjacentHTML(const nsAString *position, const nsAString *text);
1196 nsresult ScrollIntoView(bool top, uint8_t _argc);
1197 nsresult GetOffsetParent(nsIDOMElement * *aOffsetParent);
1198 nsresult GetOffsetTop(int32_t *aOffsetTop);
1199 nsresult GetOffsetLeft(int32_t *aOffsetLeft);
1200 nsresult GetOffsetWidth(int32_t *aOffsetWidth);
1201 nsresult GetOffsetHeight(int32_t *aOffsetHeight);
1205 object,
1206 uuid(c63517c5-8bab-4cd1-8694-bccafc32a195),
1207 local
1209 interface nsIDOMSVGElement : nsIDOMElement
1211 nsresult GetOwnerSVGElement(nsIDOMSVGElement **aOwnerSVGElement);
1212 nsresult GetViewportElement(nsIDOMSVGElement **aViewportElement);
1213 nsresult GetSVGClassName(nsISupports **aClassName);
1214 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
1218 object,
1219 uuid(59b80014-00f5-412d-846f-725494122d42),
1220 local
1222 interface nsIDOMHTMLHeadElement : nsISupports
1227 object,
1228 uuid(2a3f789e-0667-464f-a8d7-6f58513443d9),
1229 local
1231 interface nsIDOMHTMLMetaElement : nsISupports
1233 nsresult GetContent(nsAString *aContent);
1234 nsresult SetContent(const nsAString *aContent);
1235 nsresult GetHttpEquiv(nsAString *aHttpEquiv);
1236 nsresult SetHttpEquiv(const nsAString *aHttpEquiv);
1237 nsresult GetName(nsAString *aName);
1238 nsresult SetName(const nsAString *aName);
1239 nsresult GetScheme(nsAString *aScheme);
1240 nsresult SetScheme(const nsAString *aScheme);
1244 object,
1245 uuid(4109a2d2-e7af-445d-bb72-c7c9b875f35e),
1246 local
1248 interface nsIDOMCharacterData : nsIDOMNode
1250 nsresult GetData(nsAString *aData);
1251 nsresult SetData(const nsAString *aData);
1252 nsresult GetLength(uint32_t *aLength);
1253 nsresult SubstringData(uint32_t offset, uint32_t count, nsAString *_retval);
1254 nsresult AppendData(const nsAString *arg);
1255 nsresult InsertData(uint32_t offset, const nsAString *arg);
1256 nsresult DeleteData(uint32_t offset, uint32_t count);
1257 nsresult ReplaceData(uint32_t offset, uint32_t count, const nsAString *arg);
1258 nsresult Remove();
1262 object,
1263 uuid(67273994-6aff-4091-9de9-b788a249f783),
1264 local
1266 interface nsIDOMText : nsIDOMCharacterData
1268 nsresult SplitText(uint32_t offset, nsIDOMText **_retval);
1269 nsresult GetWholeText(nsAString *aWholeText);
1273 object,
1274 uuid(e7866ff8-b7fc-494f-87c0-fb017d8a4d30),
1275 local
1277 interface nsIDOMComment : nsIDOMCharacterData
1282 object,
1283 uuid(cd7467b9-0f26-4787-a359-66e80ba8db92),
1284 local
1286 interface nsIDOMDocumentType : nsIDOMNode
1288 nsresult GetName(nsAString *aName);
1289 nsresult GetPublicId(nsAString *aPublicId);
1290 nsresult GetSystemId(nsAString *aSystemId);
1291 nsresult GetInternalSubset(nsAString *aInternalSubset);
1292 nsresult MozRemove();
1296 object,
1297 uuid(03a6f574-99ec-42f8-9e6c-812a4a9bcbf7),
1298 local
1300 interface nsIDOMDOMImplementation : nsISupports
1302 nsresult HasFeature(const nsAString *feature, const nsAString *version, bool *_retval);
1303 nsresult CreateDocumentType(const nsAString *qualifiedName, const nsAString *publicId,
1304 const nsAString *systemId, nsIDOMDocumentType **_retval);
1305 nsresult CreateDocument(const nsAString *namespaceURI, const nsAString *qualifiedName,
1306 nsIDOMDocumentType *doctype, nsIDOMDocument **_retval);
1307 nsresult CreateHTMLDocument(const nsAString *title, nsIDOMDocument **_retval);
1311 object,
1312 uuid(48eb8d72-95bb-402e-a8fc-f2b187abcbdb),
1313 local
1315 interface nsIDOMDocumentFragment : nsIDOMNode
1317 nsresult QuerySelector(const nsAString *selectors, nsIDOMElement **_retval);
1318 nsresult QuerySelectorAll(const nsAString *selectors, nsIDOMNodeList **_retval);
1322 object,
1323 uuid(b15fa0f4-97c1-4388-af62-2ceff7a89bdf),
1324 local
1326 interface nsIDOMDocument : nsIDOMNode
1328 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
1329 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
1330 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
1331 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
1332 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
1333 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
1334 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
1335 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
1336 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data, nsIDOMProcessingInstruction **_retval);
1337 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
1338 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
1339 nsresult ImportNode(nsIDOMNode *importedNode, bool deep, uint8_t _argc, nsIDOMNode **_retval);
1340 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMElement **_retval);
1341 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMAttr **_retval);
1342 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNodeList **_retval);
1343 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
1344 nsresult GetInputEncoding(nsAString *aInputEncoding);
1345 nsresult GetDocumentURI(nsAString *aDocumentURI);
1346 nsresult GetURL(nsAString *aURL);
1347 nsresult AdoptNode(nsIDOMNode *source, nsIDOMNode **_retval);
1348 nsresult CreateRange(nsIDOMRange **_retval);
1349 nsresult CreateNodeIterator(nsIDOMNode *root, uint32_t whatToShow, nsIDOMNodeFilter *filter, uint8_t _argc,
1350 nsIDOMNodeIterator **_retval);
1351 nsresult CreateTreeWalker(nsIDOMNode *root, uint32_t whatToShow, nsIDOMNodeFilter *filter, uint8_t _argc,
1352 nsIDOMTreeWalker **_retval);
1353 cpp_quote("#undef CreateEvent")
1354 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1355 nsresult GetDefaultView(mozIDOMWindowProxy **aDefaultView);
1356 nsresult GetCharacterSet(nsAString *aCharacterSet);
1357 nsresult GetDir(nsAString *aDir);
1358 nsresult SetDir(const nsAString *aDir);
1359 nsresult GetLocation(nsIDOMLocation **aLocation);
1360 nsresult GetTitle(nsAString *aTitle);
1361 nsresult SetTitle(const nsAString *aTitle);
1362 nsresult GetReadyState(nsAString *aReadyState);
1363 nsresult GetLastModified(nsAString *aLastModified);
1364 nsresult GetReferrer(nsAString *aReferrer);
1365 nsresult HasFocus(bool *_retval);
1366 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
1367 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
1368 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1369 nsresult GetPreferredStyleSheetSet(nsAString *aPreferredStyleSheetSet);
1370 nsresult GetSelectedStyleSheetSet(nsAString *aSelectedStyleSheetSet);
1371 nsresult SetSelectedStyleSheetSet(const nsAString *aSelectedStyleSheetSet);
1372 nsresult GetLastStyleSheetSet(nsAString *aLastStyleSheetSet);
1373 nsresult GetStyleSheetSets(nsISupports **aStyleSheetSets);
1374 nsresult EnableStyleSheetsForSet(const nsAString *name);
1375 nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
1376 nsresult GetContentType(nsAString *aContentType);
1377 nsresult GetMozSyntheticDocument(bool *aMozSyntheticDocument);
1378 nsresult GetCurrentScript(nsIDOMElement **aCurrentScript);
1379 nsresult ReleaseCapture();
1380 nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
1381 nsresult GetMozFullScreenElement(nsIDOMElement **aMozFullScreenElement);
1382 nsresult MozCancelFullScreen();
1383 nsresult GetMozFullScreen(bool *aMozFullScreen);
1384 nsresult GetMozFullScreenEnabled(bool *aMozFullScreenEnabled);
1385 nsresult GetMozPointerLockElement(nsIDOMElement **aMozPointerLockElement);
1386 nsresult CaretPositionFromPoint(float x, float y, nsISupports **_retval);
1387 nsresult MozExitPointerLock();
1388 nsresult GetHidden(bool *aHidden);
1389 nsresult GetMozHidden(bool *aMozHidden);
1390 nsresult GetVisibilityState(nsAString *aVisibilityState);
1391 nsresult GetMozVisibilityState(nsAString *aMozVisibilityState);
1392 nsresult GetCompatMode(nsAString *aCompatMode);
1393 nsresult QuerySelector(const nsAString *selectors, nsIDOMElement **_retval);
1394 nsresult QuerySelectorAll(const nsAString *selectors, nsIDOMNodeList **_retval);
1398 object,
1399 uuid(cd31e61f-cfc2-4b91-9385-17b6a2d0633d),
1400 local
1402 interface nsIDOMHTMLDocument : nsIDOMDocument
1404 nsresult GetDomain(nsAString *aDomain);
1405 nsresult SetDomain(const nsAString *aDomain);
1406 nsresult GetCookie(nsAString *aCookie);
1407 nsresult SetCookie(const nsAString *aCookie);
1408 nsresult GetHead(nsIDOMHTMLHeadElement **aHead);
1409 nsresult GetBody(nsIDOMHTMLElement **aBody);
1410 nsresult SetBody(nsIDOMHTMLElement *aBody);
1411 nsresult GetImages(nsIDOMHTMLCollection **aImages);
1412 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
1413 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1414 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
1415 nsresult GetForms(nsIDOMHTMLCollection **aForms);
1416 nsresult GetScripts(nsIDOMHTMLCollection **aScripts);
1417 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
1418 nsresult GetItems(const nsAString *types, nsIDOMNodeList **_retval);
1419 nsresult Open(const nsAString *aContentTypeOrUrl, const nsAString *aReplaceOrName, const nsAString *aFeatures,
1420 JSContext *cx, uint8_t _argc, nsISupports **_retval);
1421 nsresult Close();
1422 nsresult Write(const nsAString *text, JSContext *cx);
1423 nsresult Writeln(const nsAString *text, JSContext *cx);
1424 nsresult GetDesignMode(nsAString *aDesignMode);
1425 nsresult SetDesignMode(const nsAString *aDesignMode);
1426 nsresult ExecCommand(const nsAString *commandID, bool doShowUI, const nsAString *value, bool *_retval);
1427 nsresult QueryCommandEnabled(const nsAString *commandID, bool *_retval);
1428 nsresult QueryCommandIndeterm(const nsAString *commandID, bool *_retval);
1429 nsresult QueryCommandState(const nsAString *commandID, bool *_retval);
1430 nsresult QueryCommandSupported(const nsAString *commandID, bool *_retval);
1431 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1432 nsresult GetFgColor(nsAString *aFgColor);
1433 nsresult SetFgColor(const nsAString *aFgColor);
1434 nsresult GetBgColor(nsAString *aBgColor);
1435 nsresult SetBgColor(const nsAString *aBgColor);
1436 nsresult GetLinkColor(nsAString *aLinkColor);
1437 nsresult SetLinkColor(const nsAString *aLinkColor);
1438 nsresult GetVlinkColor(nsAString *aVlinkColor);
1439 nsresult SetVlinkColor(const nsAString *aVlinkColor);
1440 nsresult GetAlinkColor(nsAString *aAlinkColor);
1441 nsresult SetAlinkColor(const nsAString *aAlinkColor);
1442 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
1443 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
1444 nsresult Clear();
1445 nsresult GetSelection(nsISelection **_retval);
1446 nsresult CaptureEvents();
1447 nsresult ReleaseEvents();
1451 object,
1452 uuid(1f94055c-42e7-4a30-96a1-6a804f1c2d1e),
1453 local
1455 interface nsIDOMRange : nsISupports
1457 enum {
1458 NS_START_TO_START,
1459 NS_START_TO_END,
1460 NS_END_TO_END,
1461 NS_END_TO_START
1464 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1465 nsresult GetStartOffset(int32_t *aStartOffset);
1466 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1467 nsresult GetEndOffset(int32_t *aEndOffset);
1468 nsresult GetCollapsed(bool *aCollapsed);
1469 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1470 nsresult SetStart(nsIDOMNode *refNode, int32_t offset);
1471 nsresult SetEnd(nsIDOMNode *refNode, int32_t offset);
1472 nsresult SetStartBefore(nsIDOMNode *refNode);
1473 nsresult SetStartAfter(nsIDOMNode *refNode);
1474 nsresult SetEndBefore(nsIDOMNode *refNode);
1475 nsresult SetEndAfter(nsIDOMNode *refNode);
1476 nsresult Collapse(bool toStart);
1477 nsresult SelectNode(nsIDOMNode *refNode);
1478 nsresult SelectNodeContents(nsIDOMNode *refNode);
1479 nsresult CompareBoundaryPoints(uint16_t how, nsIDOMRange *sourceRange, int16_t *_retval);
1480 nsresult DeleteContents();
1481 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1482 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1483 nsresult InsertNode(nsIDOMNode *newNode);
1484 nsresult SurroundContents(nsIDOMNode *newParent);
1485 nsresult CloneRange(nsIDOMRange **_retval);
1486 nsresult ToString(nsAString *_retval);
1487 nsresult Detach();
1488 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1489 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] int32_t offset, [out] bool *_retval);
1490 nsresult ComparePoint([in] nsIDOMNode *parent, [in] int32_t offset, [out] int16_t *_retval);
1491 nsresult IntersectsNode(nsIDOMNode *node, bool *_retval);
1492 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1493 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1497 object,
1498 uuid(e0a4d4b3-f34e-44bd-b1f2-4e3bde9b6915),
1499 local
1501 interface nsISelection : nsISupports
1503 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1504 nsresult GetAnchorOffset(int32_t *aAnchorOffset);
1505 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1506 nsresult GetFocusOffset(int32_t *aFocusOffset);
1507 nsresult GetIsCollapsed(bool *aIsCollapsed);
1508 bool /* don't use */ Collapsed();
1509 nsresult GetRangeCount(int32_t *aRangeCount);
1510 nsresult GetRangeAt(int32_t index, nsIDOMRange **_retval);
1511 nsresult Collapse(nsIDOMNode *parentNode, int32_t offset);
1512 nsresult CollapseNative(nsINode *parentNode, int32_t offset);
1513 nsresult Extend(nsIDOMNode *parentNode, int32_t offset);
1514 nsresult ExtendNative(nsINode *parentNode, int32_t offset);
1515 nsresult CollapseToStart();
1516 nsresult CollapseToEnd();
1517 nsresult ContainsNode(nsIDOMNode *node, bool entirelyContained, bool *_retval);
1518 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1519 nsresult AddRange(nsIDOMRange *range);
1520 nsresult RemoveRange(nsIDOMRange *range);
1521 nsresult RemoveAllRanges();
1522 nsresult DeleteFromDocument();
1523 nsresult ToString(nsAString *_retval);
1524 nsresult Modify(const nsAString *alter, const nsAString *direction, const nsAString *granularity);
1528 object,
1529 uuid(8d64f457-fb8c-49ea-a359-cef30eed9774),
1530 local
1532 interface nsIDOMWindowCollection : nsISupports
1534 nsresult GetLength(uint32_t *aLength);
1535 nsresult Item(uint32_t index, mozIDOMWindowProxy **_retval);
1536 nsresult NamedItem(const nsAString *name, mozIDOMWindowProxy **_retval);
1540 object,
1541 uuid(75fbabd6-7a2e-4787-aa33-449a33512135),
1542 local
1544 interface mozIDOMWindow : nsISupports
1549 object,
1550 uuid(53ca090c-e739-48b9-8911-208c72f9191e),
1551 local
1553 interface mozIDOMWindowProxy : nsISupports
1558 object,
1559 uuid(ab30b7cc-f7f9-4b9b-befb-7dbf6cf86d46),
1560 local
1562 interface nsIDOMWindow : nsISupports
1564 nsresult GetDocument(nsIDOMDocument **aDocument);
1565 nsresult GetName(nsAString *aName);
1566 nsresult SetName(const nsAString *aName);
1567 nsresult GetLocation(nsIDOMLocation **aLocation);
1568 nsresult Close();
1569 nsresult Stop();
1570 nsresult Focus();
1571 nsresult Blur();
1572 nsresult GetLength(uint32_t *aLength);
1573 nsresult GetRealTop(nsIDOMWindow **aTop);
1574 nsresult GetRealParent(nsIDOMWindow **aParent);
1575 nsresult GetOpener(mozIDOMWindowProxy **aOpenerWindow);
1576 nsresult SetOpener(mozIDOMWindowProxy *aOpenerWindow);
1577 nsresult GetRealFrameElement(nsIDOMElement **aFrameElement);
1578 nsresult GetNavigator(nsIDOMNavigator **aNavigator);
1579 nsresult Print();
1580 nsresult GetSessionStorage(nsISupports **aSessionStorage);
1581 nsresult GetLocalStorage(nsISupports **aLocalStorage);
1582 nsresult GetIndexedDB(nsISupports **aIndexedDB);
1583 nsresult GetSelection(nsISelection **_retval);
1584 nsresult MatchMedia(const nsAString *media_query_list, nsISupports **_retval);
1585 nsresult GetInnerWidth(int32_t *aInnerWidth);
1586 nsresult SetInnerWidth(int32_t aInnerWidth);
1587 nsresult GetInnerHeight(int32_t *aInnerHeight);
1588 nsresult SetInnerHeight(int32_t aInnerHeight);
1589 nsresult GetScrollX(int32_t *aScrollX);
1590 nsresult GetPageXOffset(int32_t *aPageXOffset);
1591 nsresult GetScrollY(int32_t *aScrollY);
1592 nsresult GetPageYOffset(int32_t *aPageYOffset);
1593 nsresult Scroll(int32_t xScroll, int32_t yScroll);
1594 nsresult ScrollTo(int32_t xScroll, int32_t yScroll);
1595 nsresult ScrollBy(int32_t xScrollDif, int32_t yScrollDif);
1596 nsresult GetScreenX(int32_t *aScreenX);
1597 nsresult SetScreenX(int32_t aScreenX);
1598 nsresult GetScreenY(int32_t *aScreenY);
1599 nsresult SetScreenY(int32_t aScreenY);
1600 nsresult GetOuterWidth(int32_t *aOuterWidth);
1601 nsresult SetOuterWidth(int32_t aOuterWidth);
1602 nsresult GetOuterHeight(int32_t *aOuterHeight);
1603 nsresult SetOuterHeight(int32_t aOuterHeight);
1604 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
1605 nsresult GetDefaultComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
1606 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1607 nsresult GetTextZoom(float *aTextZoom);
1608 nsresult SetTextZoom(float aTextZoom);
1609 nsresult ScrollByLines(int32_t numLines);
1610 nsresult ScrollByPages(int32_t numPages);
1611 nsresult GetMozInnerScreenX(float *aMozInnerScreenX);
1612 nsresult GetMozInnerScreenY(float *aMozInnerScreenY);
1613 nsresult GetDevicePixelRatio(float *aDevicePixelRatio);
1614 nsresult GetScrollMaxX(int32_t *aScrollMaxX);
1615 nsresult GetScrollMaxY(int32_t *aScrollMaxY);
1616 nsresult GetFullScreen(bool *aFullScreen);
1617 nsresult SetFullScreen(bool aFullScreen);
1618 nsresult Back();
1619 nsresult Forward();
1620 nsresult Home();
1621 nsresult Open(const nsAString *url, const nsAString *name, const nsAString *options, nsIDOMWindow **_retval);
1622 nsresult Find(const nsAString *str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord,
1623 bool searchInFrames, bool showDialog, bool *_retval);
1624 nsresult GetInnerWindow(mozIDOMWindow **aInnerWindow);
1625 nsresult GetOuterWindow(mozIDOMWindowProxy **aOuterWindow);
1629 object,
1630 uuid(068630db-2c00-43dd-b167-495757a88236),
1631 local
1633 interface nsIDOMHTMLBodyElement : nsISupports
1635 nsresult GetALink(nsAString *aALink);
1636 nsresult SetALink(const nsAString *aALink);
1637 nsresult GetBackground(nsAString *aBackground);
1638 nsresult SetBackground(const nsAString *aBackground);
1639 nsresult GetBgColor(nsAString *aBgColor);
1640 nsresult SetBgColor(const nsAString *aBgColor);
1641 nsresult GetLink(nsAString *aLink);
1642 nsresult SetLink(const nsAString *aLink);
1643 nsresult GetText(nsAString *aText);
1644 nsresult SetText(const nsAString *aText);
1645 nsresult GetVLink(nsAString *aVLink);
1646 nsresult SetVLink(const nsAString *aVLink);
1650 object,
1651 uuid(ad9b2ad0-9d29-43f6-b1a2-a1fd24627e6b),
1652 local
1654 interface nsIDOMHTMLFormElement : nsISupports
1656 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1657 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1658 nsresult GetAction(nsAString *aAction);
1659 nsresult SetAction(const nsAString *aAction);
1660 nsresult GetAutocomplete(nsAString *aAutocomplete);
1661 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1662 nsresult GetEnctype(nsAString *aEnctype);
1663 nsresult SetEnctype(const nsAString *aEnctype);
1664 nsresult GetEncoding(nsAString *aEncoding);
1665 nsresult SetEncoding(const nsAString *aEncoding);
1666 nsresult GetMethod(nsAString *aMethod);
1667 nsresult SetMethod(const nsAString *aMethod);
1668 nsresult GetName(nsAString *aName);
1669 nsresult SetName(const nsAString *aName);
1670 nsresult GetNoValidate(bool *aNoValidate);
1671 nsresult SetNoValidate(bool aNoValidate);
1672 nsresult GetTarget(nsAString *aTarget);
1673 nsresult SetTarget(const nsAString *aTarget);
1674 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1675 nsresult GetLength(int32_t *aLength);
1676 nsresult Submit();
1677 nsresult Reset();
1678 nsresult CheckValidity(bool *_retval);
1679 nsresult GetFormData(nsIDOMHTMLElement *aOriginatingElement, nsAString *aActionURI, nsIInputStream **aPostDataStream);
1683 object,
1684 uuid(64aeda0b-e9b5-4868-a4f9-e4776e32e733),
1685 local
1687 interface nsIDOMHTMLInputElement : nsISupports
1689 nsresult GetAccept(nsAString *aAccept);
1690 nsresult SetAccept(const nsAString *aAccept);
1691 nsresult GetAlt(nsAString *aAlt);
1692 nsresult SetAlt(const nsAString *aAlt);
1693 nsresult GetAutocomplete(nsAString *aAutocomplete);
1694 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1695 nsresult GetAutofocus(bool *aAutofocus);
1696 nsresult SetAutofocus(bool aAutofocus);
1697 nsresult GetDefaultChecked(bool *aDefaultChecked);
1698 nsresult SetDefaultChecked(bool aDefaultChecked);
1699 nsresult GetChecked(bool *aChecked);
1700 nsresult SetChecked(bool aChecked);
1701 nsresult GetDisabled(bool *aDisabled);
1702 nsresult SetDisabled(bool aDisabled);
1703 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1704 nsresult GetFormAction(nsAString *aFormAction);
1705 nsresult SetFormAction(const nsAString *aFormAction);
1706 nsresult GetFormEnctype(nsAString *aFormEnctype);
1707 nsresult SetFormEnctype(const nsAString *aFormEnctype);
1708 nsresult GetFormMethod(nsAString *aFormMethod);
1709 nsresult SetFormMethod(const nsAString *aFormMethod);
1710 nsresult GetFormNoValidate(bool *aFormNoValidate);
1711 nsresult SetFormNoValidate(bool aFormNoValidate);
1712 nsresult GetFormTarget(nsAString *aFormTarget);
1713 nsresult SetFormTarget(const nsAString *aFormTarget);
1714 nsresult GetFiles(nsIDOMFileList **aFiles);
1715 nsresult GetHeight(uint32_t *aHeight);
1716 nsresult SetHeight(uint32_t aHeight);
1717 nsresult GetIndeterminate(bool *aIndeterminate);
1718 nsresult SetIndeterminate(bool aIndeterminate);
1719 nsresult GetInputMode(nsAString *aInputMode);
1720 nsresult SetInputMode(const nsAString *aInputMode);
1721 nsresult GetList(nsIDOMHTMLElement **aList);
1722 nsresult GetMax(nsAString *aMax);
1723 nsresult SetMax(const nsAString *aMax);
1724 nsresult GetMaxLength(int32_t *aMaxLength);
1725 nsresult SetMaxLength(int32_t aMaxLength);
1726 nsresult GetMin(nsAString *aMin);
1727 nsresult SetMin(const nsAString *aMin);
1728 nsresult GetMultiple(bool *aMultiple);
1729 nsresult SetMultiple(bool aMultiple);
1730 nsresult GetName(nsAString *aName);
1731 nsresult SetName(const nsAString *aName);
1732 nsresult GetPattern(nsAString *aPattern);
1733 nsresult SetPattern(const nsAString *aPattern);
1734 nsresult GetPlaceholder(nsAString *aPlaceholder);
1735 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1736 nsresult GetReadOnly(bool *aReadOnly);
1737 nsresult SetReadOnly(bool aReadOnly);
1738 nsresult GetRequired(bool *aRequired);
1739 nsresult SetRequired(bool aRequired);
1740 nsresult GetStep(nsAString *aStep);
1741 nsresult SetStep(const nsAString *aStep);
1742 nsresult GetAlign(nsAString *aAlign);
1743 nsresult SetAlign(const nsAString *aAlign);
1744 nsresult GetSize(uint32_t *aSize);
1745 nsresult SetSize(uint32_t aSize);
1746 nsresult GetWidth(uint32_t *aWidth);
1747 nsresult SetWidth(uint32_t aWidth);
1748 nsresult GetSrc(nsAString *aSrc);
1749 nsresult SetSrc(const nsAString *aSrc);
1750 nsresult GetType(nsAString *aType);
1751 nsresult SetType(const nsAString *aType);
1752 nsresult GetDefaultValue(nsAString *aDefaultValue);
1753 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1754 nsresult GetValue(nsAString *aValue);
1755 nsresult SetValue(const nsAString *aValue);
1756 nsresult GetValueAsNumber(double *aValueAsNumber);
1757 nsresult SetValueAsNumber(double aValueAsNumber);
1758 nsresult StepDown(int32_t n, uint8_t _argc);
1759 nsresult StepUp(int32_t n, uint8_t _argc);
1760 nsresult GetWillValidate(bool *aWillValidate);
1761 nsresult GetValidity(nsIDOMValidityState **aValidity);
1762 nsresult GetValidationMessage(nsAString *aValidationMessage);
1763 nsresult CheckValidity(bool *_retval);
1764 nsresult SetCustomValidity(const nsAString *error);
1765 nsresult Select();
1766 nsresult GetSelectionStart(int32_t *aSelectionStart);
1767 nsresult SetSelectionStart(int32_t aSelectionStart);
1768 nsresult GetSelectionEnd(int32_t *aSelectionEnd);
1769 nsresult SetSelectionEnd(int32_t aSelectionEnd);
1770 nsresult SetSelectionRange(int32_t selectionStart, int32_t selectionEnd, const nsAString *direction);
1771 nsresult GetSelectionDirection(nsAString *aSelectionDirection);
1772 nsresult SetSelectionDirection(const nsAString *aSelectionDirection);
1773 nsresult GetUseMap(nsAString *aUseMap);
1774 nsresult SetUseMap(const nsAString *aUseMap);
1775 nsresult GetControllers(nsIControllers **aControllers);
1776 nsresult GetTextLength(int32_t *aTextLength);
1777 nsresult MozGetFileNameArray(uint32_t *aLength, PRUnichar ***aFileNames);
1778 nsresult MozSetFileNameArray(const PRUnichar **aFileNames, uint32_t aLength);
1779 nsresult MozIsTextField(bool aExcludePassword, bool *_retval);
1783 object,
1784 uuid(c2b3e9ff-6b36-4158-ace3-05a9c5b8e1c1),
1785 local
1787 interface nsIDOMHTMLOptionElement : nsISupports
1789 nsresult GetDisabled(bool *aDisabled);
1790 nsresult SetDisabled(bool aDisabled);
1791 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1792 nsresult GetLabel(nsAString *aLabel);
1793 nsresult SetLabel(const nsAString *aLabel);
1794 nsresult GetDefaultSelected(bool *aDefaultSelected);
1795 nsresult SetDefaultSelected(bool aDefaultSelected);
1796 nsresult GetSelected(bool *aSelected);
1797 nsresult SetSelected(bool aSelected);
1798 nsresult GetValue(nsAString *aValue);
1799 nsresult SetValue(const nsAString *aValue);
1800 nsresult GetText(nsAString *aText);
1801 nsresult SetText(const nsAString *aText);
1802 nsresult GetIndex(int32_t *aIndex);
1806 object,
1807 uuid(44b7a468-7dba-4f0c-9b4e-ee46dc0f26c7),
1808 local
1810 interface nsIDOMHTMLButtonElement : nsISupports
1812 nsresult GetAutofocus(bool *aAutofocus);
1813 nsresult SetAutofocus(bool aAutofocus);
1814 nsresult GetDisabled(bool *aDisabled);
1815 nsresult SetDisabled(bool aDisabled);
1816 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1817 nsresult GetFormAction(nsAString *aFormAction);
1818 nsresult SetFormAction(const nsAString *aFormAction);
1819 nsresult GetFormEnctype(nsAString *aFormEnctype);
1820 nsresult SetFormEnctype(const nsAString *aFormEnctype);
1821 nsresult GetFormMethod(nsAString *aFormMethod);
1822 nsresult SetFormMethod(const nsAString *aFormMethod);
1823 nsresult GetFormNoValidate(bool *aFormNoValidate);
1824 nsresult SetFormNoValidate(bool aFormNoValidate);
1825 nsresult GetFormTarget(nsAString *aFormTarget);
1826 nsresult SetFormTarget(const nsAString *aFormTarget);
1827 nsresult GetName(nsAString *aName);
1828 nsresult SetName(const nsAString *aName);
1829 nsresult GetType(nsAString *aType);
1830 nsresult SetType(const nsAString *aType);
1831 nsresult GetValue(nsAString *aValue);
1832 nsresult SetValue(const nsAString *aValue);
1833 nsresult GetWillValidate(bool *aWillValidate);
1834 nsresult GetValidity(nsIDOMValidityState **aValidity);
1835 nsresult GetValidationMessage(nsAString *aValidationMessage);
1836 nsresult CheckValidity(bool *_retval);
1837 nsresult SetCustomValidity(const nsAString *error);
1841 object,
1842 uuid(4173cc53-30f6-4d12-a770-981ba53164e2),
1843 local
1845 interface nsIDOMHTMLOptionsCollection : nsISupports
1847 typedef int nsWrapperCache;
1849 nsresult GetLength(uint32_t *aLength);
1850 nsresult SetLength(uint32_t aLength);
1851 nsresult Item(uint32_t index, nsIDOMNode **_retval);
1852 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1853 nsresult GetSelectedIndex(int32_t *aSelectedIndex);
1854 nsresult SetSelectedIndex(int32_t aSelectedIndex);
1855 nsresult SetOption(uint32_t index, nsIDOMHTMLOptionElement *option);
1856 nsresult GetSelect(nsIDOMHTMLSelectElement **aSelect);
1857 nsresult Add(nsIDOMHTMLOptionElement *option, nsIVariant *before);
1858 nsresult Remove(int32_t index);
1862 object,
1863 uuid(d8914a2d-3556-4b66-911c-a84c4394e7fa),
1864 local
1866 interface nsIDOMHTMLSelectElement : nsISupports
1868 nsresult GetAutofocus(bool *aAutofocus);
1869 nsresult SetAutofocus(bool aAutofocus);
1870 nsresult GetDisabled(bool *aDisabled);
1871 nsresult SetDisabled(bool aDisabled);
1872 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1873 nsresult GetMultiple(bool *aMultiple);
1874 nsresult SetMultiple(bool aMultiple);
1875 nsresult GetName(nsAString *aName);
1876 nsresult SetName(const nsAString *aName);
1877 nsresult GetSize(uint32_t *aSize);
1878 nsresult SetSize(uint32_t aSize);
1879 nsresult GetType(nsAString *aType);
1880 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1881 nsresult GetLength(uint32_t *aLength);
1882 nsresult SetLength(uint32_t aLength);
1883 nsresult Item(uint32_t index, nsIDOMNode **_retval);
1884 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1885 nsresult Add(nsIDOMHTMLElement *element, nsIVariant *before);
1886 nsresult select_Remove(int32_t index);
1887 nsresult GetSelectedOptions(nsIDOMHTMLCollection **aSelectedOptions);
1888 nsresult GetSelectedIndex(int32_t *aSelectedIndex);
1889 nsresult SetSelectedIndex(int32_t aSelectedIndex);
1890 nsresult GetValue(nsAString *aValue);
1891 nsresult SetValue(const nsAString *aValue);
1892 nsresult GetWillValidate(bool *aWillValidate);
1893 nsresult GetValidity(nsIDOMValidityState **aValidity);
1894 nsresult GetValidationMessage(nsAString *aValidationMessage);
1895 nsresult CheckValidity(bool *_retval);
1896 nsresult SetCustomValidity(const nsAString *error);
1897 nsresult GetRequired(bool *aRequired);
1898 nsresult SetRequired(bool aRequired);
1902 object,
1903 uuid(7a4aeb2e-fcf3-443e-b002-ca1c8ea322e9),
1904 local
1906 interface nsIDOMHTMLTextAreaElement : nsISupports
1908 nsresult GetAutofocus(bool *aAutofocus);
1909 nsresult SetAutofocus(bool aAutofocus);
1910 nsresult GetCols(uint32_t *aCols);
1911 nsresult SetCols(uint32_t aCols);
1912 nsresult GetDisabled(bool *aDisabled);
1913 nsresult SetDisabled(bool aDisabled);
1914 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1915 nsresult GetMaxLength(int32_t *aMaxLength);
1916 nsresult SetMaxLength(int32_t aMaxLength);
1917 nsresult GetName(nsAString *aName);
1918 nsresult SetName(const nsAString *aName);
1919 nsresult GetPlaceholder(nsAString *aPlaceholder);
1920 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1921 nsresult GetReadOnly(bool *aReadOnly);
1922 nsresult SetReadOnly(bool aReadOnly);
1923 nsresult GetRequired(bool *aRequired);
1924 nsresult SetRequired(bool aRequired);
1925 nsresult GetRows(uint32_t *aRows);
1926 nsresult SetRows(uint32_t aRows);
1927 nsresult GetWrap(nsAString *aWrap);
1928 nsresult SetWrap(const nsAString *aWrap);
1929 nsresult GetType(nsAString *aType);
1930 nsresult GetDefaultValue(nsAString *aDefaultValue);
1931 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1932 nsresult GetValue(nsAString *aValue);
1933 nsresult SetValue(const nsAString *aValue);
1934 nsresult GetTextLength(int32_t *aTextLength);
1935 nsresult GetWillValidate(bool *aWillValidate);
1936 nsresult GetValidity(nsIDOMValidityState **aValidity);
1937 nsresult GetValidationMessage(nsAString *aValidationMessage);
1938 nsresult CheckValidity(bool *_retval);
1939 nsresult SetCustomValidity(const nsAString *error);
1940 nsresult Select();
1941 nsresult GetSelectionStart(int32_t *aSelectionStart);
1942 nsresult SetSelectionStart(int32_t aSelectionStart);
1943 nsresult GetSelectionEnd(int32_t *aSelectionEnd);
1944 nsresult SetSelectionEnd(int32_t aSelectionEnd);
1945 nsresult SetSelectionRange(int32_t selectionStart, int32_t selectionEnd, const nsAString *direction);
1946 nsresult GetSelectionDirection(nsAString *aSelectionDirection);
1947 nsresult SetSelectionDirection(const nsAString *aSelectionDirection);
1948 nsresult GetControllers(nsIControllers **aControllers);
1952 object,
1953 uuid(fe96dc1c-40e4-4974-9354-e3fce663c3d5),
1954 local
1956 interface nsIDOMHTMLScriptElement : nsISupports
1958 nsresult GetSrc(nsAString *aSrc);
1959 nsresult SetSrc(const nsAString *aSrc);
1960 nsresult GetAsync(bool *aAsync);
1961 nsresult SetAsync(bool aAsync);
1962 nsresult GetDefer(bool *aDefer);
1963 nsresult SetDefer(bool aDefer);
1964 nsresult GetType(nsAString *aType);
1965 nsresult SetType(const nsAString *aType);
1966 nsresult GetCharset(nsAString *aCharset);
1967 nsresult SetCharset(const nsAString *aCharset);
1968 nsresult GetText(nsAString *aText);
1969 nsresult SetText(const nsAString *aText);
1970 nsresult GetHtmlFor(nsAString *aHtmlFor);
1971 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1972 nsresult GetEvent(nsAString *aEvent);
1973 nsresult SetEvent(const nsAString *aEvent);
1977 object,
1978 uuid(ec18e71c-4f5c-4cc3-aa36-5273168644dc),
1979 local
1981 interface nsIDOMHTMLImageElement : nsISupports
1983 nsresult GetAlt(nsAString *aAlt);
1984 nsresult SetAlt(const nsAString *aAlt);
1985 nsresult GetSrc(nsAString *aSrc);
1986 nsresult SetSrc(const nsAString *aSrc);
1987 nsresult GetSrcset(nsAString *aSrcset);
1988 nsresult SetSrcset(const nsAString *aSrcset) ;
1989 nsresult GetSizes(nsAString *aSizes);
1990 nsresult SetSizes(const nsAString *aSizes);
1991 nsresult GetUseMap(nsAString *aUseMap);
1992 nsresult SetUseMap(const nsAString *aUseMap);
1993 nsresult GetIsMap(bool *aIsMap);
1994 nsresult SetIsMap(bool aIsMap);
1995 nsresult GetWidth(uint32_t *aWidth);
1996 nsresult SetWidth(uint32_t aWidth);
1997 nsresult GetHeight(uint32_t *aHeight);
1998 nsresult SetHeight(uint32_t aHeight);
1999 nsresult GetNaturalWidth(uint32_t *aNaturalWidth);
2000 nsresult GetNaturalHeight(uint32_t *aNaturalHeight);
2001 nsresult GetComplete(bool *aComplete);
2002 nsresult GetName(nsAString *aName);
2003 nsresult SetName(const nsAString *aName);
2004 nsresult GetAlign(nsAString *aAlign);
2005 nsresult SetAlign(const nsAString *aAlign);
2006 nsresult GetBorder(nsAString *aBorder);
2007 nsresult SetBorder(const nsAString *aBorder);
2008 nsresult GetHspace(int32_t *aHspace);
2009 nsresult SetHspace(int32_t aHspace);
2010 nsresult GetLongDesc(nsAString *aLongDesc);
2011 nsresult SetLongDesc(const nsAString *aLongDesc);
2012 nsresult GetVspace(int32_t *aVspace);
2013 nsresult SetVspace(int32_t aVspace);
2014 nsresult GetLowsrc(nsAString *aLowsrc);
2015 nsresult SetLowsrc(const nsAString *aLowsrc);
2016 nsresult GetCurrentSrc(nsAString *aCurrentSrc);
2017 nsresult GetX(int32_t *aX);
2018 nsresult GetY(int32_t *aY);
2022 object,
2023 uuid(339c01c8-2d41-4626-b231-eec63f0241b6),
2024 local
2026 interface nsIDOMHTMLAnchorElement : nsISupports
2028 nsresult GetHref(nsAString *aHref);
2029 nsresult SetHref(const nsAString *aHref);
2030 nsresult GetTarget(nsAString *aTarget);
2031 nsresult SetTarget(const nsAString *aTarget);
2032 nsresult GetPing(nsAString *aPing);
2033 nsresult SetPing(const nsAString *aPing);
2034 nsresult GetDownload(nsAString *aPing);
2035 nsresult SetDownload(const nsAString *aPing);
2036 nsresult GetRel(nsAString *aRel);
2037 nsresult SetRel(const nsAString *aRel);
2038 nsresult GetHreflang(nsAString *aHreflang);
2039 nsresult SetHreflang(const nsAString *aHreflang);
2040 nsresult GetType(nsAString *aType);
2041 nsresult SetType(const nsAString *aType);
2042 nsresult GetText(nsAString *aText);
2043 nsresult SetText(const nsAString *aText);
2044 nsresult GetProtocol(nsAString *aProtocol);
2045 nsresult SetProtocol(const nsAString *aProtocol);
2046 nsresult GetHost(nsAString *aHost);
2047 nsresult SetHost(const nsAString *aHost);
2048 nsresult GetHostname(nsAString *aHostname);
2049 nsresult SetHostname(const nsAString *aHostname);
2050 nsresult GetPort(nsAString *aPort);
2051 nsresult SetPort(const nsAString *aPort);
2052 nsresult GetPathname(nsAString *aPathname);
2053 nsresult SetPathname(const nsAString *aPathname);
2054 nsresult GetSearch(nsAString *aSearch);
2055 nsresult SetSearch(const nsAString *aSearch);
2056 nsresult GetHash(nsAString *aHash);
2057 nsresult SetHash(const nsAString *aHash);
2058 nsresult GetCharset(nsAString *aCharset);
2059 nsresult SetCharset(const nsAString *aCharset);
2060 nsresult GetCoords(nsAString *aCoords);
2061 nsresult SetCoords(const nsAString *aCoords);
2062 nsresult GetName(nsAString *aName);
2063 nsresult SetName(const nsAString *aName);
2064 nsresult GetRev(nsAString *aRev);
2065 nsresult SetRev(const nsAString *aRev);
2066 nsresult GetShape(nsAString *aShape);
2067 nsresult SetShape(const nsAString *aShape);
2068 nsresult ToString(nsAString *_retval);
2072 object,
2073 uuid(40c78026-36dc-40ca-9221-de73267e9e99),
2074 local
2076 interface nsIDOMHTMLAreaElement : nsISupports
2078 nsresult GetAlt(const nsAString *aAlt);
2079 nsresult SetAlt(nsAString *aAlt);
2080 nsresult GetCoords(const nsAString *aCoords);
2081 nsresult SetCoords(nsAString *aCoords);
2082 nsresult GetShape(const nsAString *aShape);
2083 nsresult SetShape(nsAString *aShape);
2084 nsresult GetHref(const nsAString *aHref);
2085 nsresult SetHref(nsAString *aHref);
2086 nsresult GetTarget(const nsAString *aTarget);
2087 nsresult SetTarget(nsAString *aTarget);
2088 nsresult GetPing(const nsAString *aPing);
2089 nsresult SetPing(nsAString *aPing);
2090 nsresult GetDownload(const nsAString *aDownload);
2091 nsresult SetDownload(nsAString *aDownload);
2092 nsresult GetProtocol(const nsAString *aProtocol);
2093 nsresult SetProtocol(nsAString *aProtocol);
2094 nsresult GetHost(const nsAString *aHost);
2095 nsresult SetHost(nsAString *aHost);
2096 nsresult GetPort(const nsAString *aPort);
2097 nsresult SetPort(nsAString *aPort);
2098 nsresult GetPathname(const nsAString *aPathname);
2099 nsresult SetPathname(nsAString *aPathname);
2100 nsresult GetSearch(const nsAString *aSearch);
2101 nsresult SetSearch(nsAString *aSearch);
2102 nsresult GetHash(const nsAString *aHash);
2103 nsresult SetHash(nsAString *aHash);
2104 nsresult GetNoHref(const nsAString *aNoHref);
2105 nsresult SetNoHref(nsAString *aNoHref);
2106 nsresult ToString(nsAString *_retval);
2110 object,
2111 uuid(ee50b7ab-0015-4fbe-89e0-e3feacd4ffde),
2112 local
2114 interface nsIDOMHTMLLinkElement : nsISupports
2116 nsresult GetDisabled(bool *aDisabled);
2117 nsresult SetDisabled(bool aDisabled);
2118 nsresult GetCharset(nsAString *aCharset);
2119 nsresult SetCharset(const nsAString *aCharset);
2120 nsresult GetHref(nsAString *aHref);
2121 nsresult SetHref(const nsAString *aHref);
2122 nsresult GetHreflang(nsAString *aHreflang);
2123 nsresult SetHreflang(const nsAString *aHreflang);
2124 nsresult GetMedia(nsAString *aMedia);
2125 nsresult SetMedia(const nsAString *aMedia);
2126 nsresult GetRel(nsAString *aRel);
2127 nsresult SetRel(const nsAString *aRel);
2128 nsresult GetRev(nsAString *aRev);
2129 nsresult SetRev(const nsAString *aRev);
2130 nsresult GetTarget(nsAString *aTarget);
2131 nsresult SetTarget(const nsAString *aTarget);
2132 nsresult GetType(nsAString *aType);
2133 nsresult SetType(const nsAString *aType);
2137 object,
2138 uuid(135a30ee-0374-4ee7-9d36-91736bff5fb1),
2139 local
2141 interface nsIDOMHTMLTableElement : nsISupports
2143 nsresult GetCaption(nsIDOMHTMLElement **aCaption);
2144 nsresult SetCaption(nsIDOMHTMLElement *aCaption);
2145 nsresult GetTHead(nsIDOMHTMLElement **aTHead);
2146 nsresult SetTHead(nsIDOMHTMLElement *aTHead);
2147 nsresult GetTFoot(nsIDOMHTMLElement **aTFoot);
2148 nsresult SetTFoot(nsIDOMHTMLElement *aTFoot);
2149 nsresult GetRows(nsIDOMHTMLCollection **aRows);
2150 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
2151 nsresult GetAlign(nsAString *aAlign);
2152 nsresult SetAlign(const nsAString *aAlign);
2153 nsresult GetBgColor(nsAString *aBgColor);
2154 nsresult SetBgColor(const nsAString *aBgColor);
2155 nsresult GetBorder(nsAString *aBorder);
2156 nsresult SetBorder(const nsAString *aBorder);
2157 nsresult GetCellPadding(nsAString *aCellPadding);
2158 nsresult SetCellPadding(const nsAString *aCellPadding);
2159 nsresult GetCellSpacing(nsAString *aCellSpacing);
2160 nsresult SetCellSpacing(const nsAString *aCellSpacing);
2161 nsresult GetFrame(nsAString *aFrame);
2162 nsresult SetFrame(const nsAString *aFrame);
2163 nsresult GetRules(nsAString *aRules);
2164 nsresult SetRules(const nsAString *aRules);
2165 nsresult GetSummary(nsAString *aSummary);
2166 nsresult SetSummary(const nsAString *aSummary);
2167 nsresult GetWidth(nsAString *aWidth);
2168 nsresult SetWidth(const nsAString *aWidth);
2169 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
2170 nsresult xpidlDeleteTHead();
2171 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
2172 nsresult xpidlDeleteTFoot();
2173 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
2174 nsresult xpidlDeleteCaption();
2175 nsresult InsertRow(int32_t index, nsIDOMHTMLElement **_retval);
2176 nsresult DeleteRow(int32_t index);
2180 object,
2181 uuid(02094366-0d3d-47e3-949c-89113a9bcc15),
2182 local
2184 interface nsIDOMHTMLTableRowElement : nsISupports
2186 nsresult GetRowIndex(int32_t *aRowIndex);
2187 nsresult GetSectionRowIndex(int32_t *aSectionRowIndex);
2188 nsresult GetCells(nsIDOMHTMLCollection **aCells);
2189 nsresult GetAlign(nsAString *aAlign);
2190 nsresult SetAlign(const nsAString *aAlign);
2191 nsresult GetBgColor(nsAString *aBgColor);
2192 nsresult SetBgColor(const nsAString *aBgColor);
2193 nsresult GetCh(nsAString *aCh);
2194 nsresult SetCh(const nsAString *aCh);
2195 nsresult GetChOff(nsAString *aChOff);
2196 nsresult SetChOff(const nsAString *aChOff);
2197 nsresult GetVAlign(nsAString *aVAlign);
2198 nsresult SetVAlign(const nsAString *aVAlign);
2199 nsresult InsertCell(int32_t index, nsIDOMHTMLElement * *_retval);
2200 nsresult DeleteCell(int32_t index);
2204 object,
2205 uuid(3203c36f-33fd-4628-8c88-77e82d38df1e),
2206 local
2208 interface nsIDOMHTMLTableCellElement : nsISupports
2210 nsresult GetCellIndex(int32_t *aCellIndex);
2211 nsresult GetAbbr(nsAString *aAbbr);
2212 nsresult SetAbbr(const nsAString *aAbbr);
2213 nsresult GetAlign(nsAString *aAlign);
2214 nsresult SetAlign(const nsAString *aAlign);
2215 nsresult GetAxis(nsAString *aAxis);
2216 nsresult SetAxis(const nsAString *aAxis);
2217 nsresult GetBgColor(nsAString *aBgColor);
2218 nsresult SetBgColor(const nsAString *aBgColor);
2219 nsresult GetCh(nsAString *aCh);
2220 nsresult SetCh(const nsAString *aCh);
2221 nsresult GetChOff(nsAString *aChOff);
2222 nsresult SetChOff(const nsAString *aChOff);
2223 nsresult GetColSpan(int32_t *aColSpan);
2224 nsresult SetColSpan(int32_t aColSpan);
2225 nsresult GetHeaders(nsAString *aHeaders);
2226 nsresult SetHeaders(const nsAString *aHeaders);
2227 nsresult GetHeight(nsAString *aHeight);
2228 nsresult SetHeight(const nsAString *aHeight);
2229 nsresult GetNoWrap(bool *aNoWrap);
2230 nsresult SetNoWrap(bool aNoWrap);
2231 nsresult GetRowSpan(int32_t *aRowSpan);
2232 nsresult SetRowSpan(int32_t aRowSpan);
2233 nsresult GetScope(nsAString *aScope);
2234 nsresult SetScope(const nsAString *aScope);
2235 nsresult GetVAlign(nsAString *aVAlign);
2236 nsresult SetVAlign(const nsAString *aVAlign);
2237 nsresult GetWidth(nsAString *aWidth);
2238 nsresult SetWidth(const nsAString *aWidth);
2242 object,
2243 uuid(9fd7b656-1055-4cb2-b8b1-ed13efe24457),
2244 local
2246 interface nsIDOMHTMLIFrameElement : nsISupports
2248 nsresult GetAlign(nsAString *aAlign);
2249 nsresult SetAlign(const nsAString *aAlign);
2250 nsresult GetFrameBorder(nsAString *aFrameBorder);
2251 nsresult SetFrameBorder(const nsAString *aFrameBorder);
2252 nsresult GetHeight(nsAString *aHeight);
2253 nsresult SetHeight(const nsAString *aHeight);
2254 nsresult GetLongDesc(nsAString *aLongDesc);
2255 nsresult SetLongDesc(const nsAString *aLongDesc);
2256 nsresult GetMarginHeight(nsAString *aMarginHeight);
2257 nsresult SetMarginHeight(const nsAString *aMarginHeight);
2258 nsresult GetMarginWidth(nsAString *aMarginWidth);
2259 nsresult SetMarginWidth(const nsAString *aMarginWidth);
2260 nsresult GetName(nsAString *aName);
2261 nsresult SetName(const nsAString *aName);
2262 nsresult GetScrolling(nsAString *aScrolling);
2263 nsresult SetScrolling(const nsAString *aScrolling);
2264 nsresult GetSrc(nsAString *aSrc);
2265 nsresult SetSrc(const nsAString *aSrc);
2266 nsresult GetSrcdoc(nsAString *aSrcdoc);
2267 nsresult SetSrcdoc(const nsAString *aSrcdoc);
2268 nsresult GetWidth(nsAString *aWidth);
2269 nsresult SetWidth(const nsAString *aWidth);
2270 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2271 nsresult GetAllowFullscreen(bool *aAllowFullscreen);
2272 nsresult SetAllowFullscreen(bool aAllowFullscreen);
2276 object,
2277 uuid(012a8982-c9d3-4614-91e2-18ee51c97c06),
2278 local
2280 interface nsIDOMHTMLFrameElement : nsISupports
2282 nsresult GetFrameBorder(nsAString *aFrameBorder);
2283 nsresult SetFrameBorder(const nsAString *aFrameBorder);
2284 nsresult GetLongDesc(nsAString *aLongDesc);
2285 nsresult SetLongDesc(const nsAString *aLongDesc);
2286 nsresult GetMarginHeight(nsAString *aMarginHeight);
2287 nsresult SetMarginHeight(const nsAString *aMarginHeight);
2288 nsresult GetMarginWidth(nsAString *aMarginWidth);
2289 nsresult SetMarginWidth(const nsAString *aMarginWidth);
2290 nsresult GetName(nsAString *aName);
2291 nsresult SetName(const nsAString *aName);
2292 nsresult GetNoResize(bool *aNoResize);
2293 nsresult SetNoResize(bool aNoResize);
2294 nsresult GetScrolling(nsAString *aScrolling);
2295 nsresult SetScrolling(const nsAString *aScrolling);
2296 nsresult GetSrc(nsAString *aSrc);
2297 nsresult SetSrc(const nsAString *aSrc);
2298 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2302 object,
2303 uuid(baf443d2-da5d-40c9-be3c-c65a69a25250),
2304 local
2306 interface nsIDOMHTMLObjectElement : nsISupports
2308 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
2309 nsresult GetCode(nsAString *aCode);
2310 nsresult SetCode(const nsAString *aCode);
2311 nsresult GetAlign(nsAString *aAlign);
2312 nsresult SetAlign(const nsAString *aAlign);
2313 nsresult GetArchive(nsAString *aArchive);
2314 nsresult SetArchive(const nsAString *aArchive);
2315 nsresult GetBorder(nsAString *aBorder);
2316 nsresult SetBorder(const nsAString *aBorder);
2317 nsresult GetCodeBase(nsAString *aCodeBase);
2318 nsresult SetCodeBase(const nsAString *aCodeBase);
2319 nsresult GetCodeType(nsAString *aCodeType);
2320 nsresult SetCodeType(const nsAString *aCodeType);
2321 nsresult GetData(nsAString *aData);
2322 nsresult SetData(const nsAString *aData);
2323 nsresult GetDeclare(bool *aDeclare);
2324 nsresult SetDeclare(bool aDeclare);
2325 nsresult GetHeight(nsAString *aHeight);
2326 nsresult SetHeight(const nsAString *aHeight);
2327 nsresult GetHspace(int32_t *aHspace);
2328 nsresult SetHspace(int32_t aHspace);
2329 nsresult GetName(nsAString *aName);
2330 nsresult SetName(const nsAString *aName);
2331 nsresult GetStandby(nsAString *aStandby);
2332 nsresult SetStandby(const nsAString *aStandby);
2333 nsresult GetType(nsAString *aType);
2334 nsresult SetType(const nsAString *aType);
2335 nsresult GetUseMap(nsAString *aUseMap);
2336 nsresult SetUseMap(const nsAString *aUseMap);
2337 nsresult GetVspace(int32_t *aVspace);
2338 nsresult SetVspace(int32_t aVspace);
2339 nsresult GetWidth(nsAString *aWidth);
2340 nsresult SetWidth(const nsAString *aWidth);
2341 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2342 nsresult GetWillValidate(bool *aWillValidate);
2343 nsresult GetValidity(nsIDOMValidityState **aValidity);
2344 nsresult GetValidationMessage(nsAString *aValidationMessage);
2345 nsresult CheckValidity(bool *_retval);
2346 nsresult SetCustomValidity(const nsAString *error);
2350 object,
2351 uuid(fa326d22-8739-4eef-a80e-6449bde605d2),
2352 local
2354 interface nsIDOMHTMLStyleElement : nsISupports
2356 nsresult GetDisabled(bool *aDisabled);
2357 nsresult SetDisabled(bool aDisabled);
2358 nsresult GetMedia(nsAString *aMedia);
2359 nsresult SetMedia(const nsAString *aMedia);
2360 nsresult GetType(nsAString *aType);
2361 nsresult SetType(const nsAString *aType);
2362 nsresult GetScoped(bool *aScoped);
2363 nsresult SetScoped(bool aScoped);
2364 nsresult GetDOMStyleSheet(nsIDOMStyleSheet **aDOMStyleSheet);
2368 object,
2369 uuid(10a28f38-32e8-4c63-8aa1-12eaaebc369a),
2370 local
2372 interface nsIURIContentListener : nsISupports
2374 nsresult OnStartURIOpen(nsIURI *aURI, bool *_retval);
2375 nsresult DoContent(const nsACString *aContentType, bool aIsContentPreferred, nsIRequest *aRequest,
2376 nsIStreamListener **aContentHandler, bool *_retval);
2377 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, bool *_retval);
2378 nsresult CanHandleContent(const char *aContentType, bool aIsContentPreferred,
2379 char **aDesiredContentType, bool *_retval);
2380 nsresult GetLoadCookie(nsISupports **aLoadCookie);
2381 nsresult SetLoadCookie(nsISupports *aLoadCookie);
2382 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
2383 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
2387 object,
2388 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
2389 local
2391 interface nsITooltipListener : nsISupports
2393 nsresult OnShowTooltip(int32_t aXCoords, int32_t aYCoords, const PRUnichar *aTipText);
2394 nsresult OnHideTooltip();
2398 object,
2399 uuid(4052b6da-4faa-4646-b3a1-7e16a01c2dc2),
2400 local
2402 interface nsIWebBrowser : nsISupports
2404 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
2405 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
2406 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
2407 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
2408 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
2409 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
2410 nsresult GetContentDOMWindow(mozIDOMWindowProxy **aContentDOMWindow);
2411 nsresult GetIsActive(bool *aIsActive);
2412 nsresult SetIsActive(bool aIsActive);
2415 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
2416 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
2417 cpp_quote("#define SETUP_DISABLE_NOSCRIPT 16")
2420 object,
2421 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
2422 local
2424 interface nsIWebBrowserSetup : nsISupports
2426 nsresult SetProperty(uint32_t aId, uint32_t aValue);
2429 typedef void* nativeWindow;
2432 object,
2433 uuid(ca635529-a977-4552-9b8a-66187e54d882),
2434 local
2436 interface nsIBaseWindow : nsISupports
2438 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, int32_t x,
2439 int32_t y, int32_t cx, int32_t cy);
2440 nsresult Create();
2441 nsresult Destroy();
2442 nsresult SetPosition(int32_t x, int32_t y);
2443 nsresult SetPositionDesktopPix(int32_t x, int32_t y);
2444 nsresult GetPosition(int32_t *x, int32_t *y);
2445 nsresult SetSize(int32_t cx, int32_t cy, bool fRepaint);
2446 nsresult GetSize(int32_t *cx, int32_t *cy);
2447 nsresult SetPositionAndSize(int32_t x, int32_t y, int32_t cx, int32_t cy, bool fRepaint);
2448 nsresult GetPositionAndSize(int32_t *x, int32_t *y, int32_t *cx, int32_t *cy);
2449 nsresult Repaint(bool force);
2450 nsresult GetParentWidget(nsIWidget **aParentWidget);
2451 nsresult SetParentWidget(nsIWidget *aParentWidget);
2452 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
2453 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
2454 nsresult GetNativeHandle(nsAString *aNativeHandle);
2455 nsresult GetVisibility(bool *aVisibility);
2456 nsresult SetVisibility(bool aVisibility);
2457 nsresult GetEnabled(bool *aEnabled);
2458 nsresult SetEnabled(bool aEnabled);
2459 nsresult GetMainWidget(nsIWidget **aMainWidget);
2460 nsresult GetUnscaledDevicePixelsPerCSSPixel(double *aUnscaledDevicePixelsPerCSSPixel);
2461 nsresult GetDevicePixelsPerDesktopPixel(double *aDevicePixelsPerDesktopPixel);
2462 nsresult SetFocus();
2463 nsresult GetTitle(PRUnichar **aTitle);
2464 nsresult SetTitle(const PRUnichar *aTitle);
2468 object,
2469 uuid(3ade79d4-8cb9-4952-b18d-4f9b63ca0d31),
2470 local
2472 interface nsIWebNavigation : nsISupports
2474 const UINT LOAD_FLAGS_MASK = 0xffff;
2475 const UINT LOAD_FLAGS_NONE = 0;
2476 const UINT LOAD_FLAGS_IS_REFRESH = 0x0010;
2477 const UINT LOAD_FLAGS_IS_LINK = 0x0020;
2478 const UINT LOAD_FLAGS_BYPASS_HISTORY = 0x0040;
2479 const UINT LOAD_FLAGS_REPLACE_HISTORY = 0x0080;
2480 const UINT LOAD_FLAGS_BYPASS_CACHE = 0x0100;
2481 const UINT LOAD_FLAGS_BYPASS_PROXY = 0x0200;
2482 const UINT LOAD_FLAGS_CHARSET_CHANGE = 0x0400;
2483 const UINT LOAD_FLAGS_STOP_CONTENT = 0x0800;
2484 const UINT LOAD_FLAGS_FROM_EXTERNAL = 0x1000;
2485 const UINT LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP = 0x2000;
2486 const UINT LOAD_FLAGS_FIRST_LOAD = 0x4000;
2487 const UINT LOAD_FLAGS_ALLOW_POPUPS = 0x8000;
2488 const UINT LOAD_FLAGS_BYPASS_CLASSIFIER = 0x10000;
2489 const UINT LOAD_FLAGS_FORCE_ALLOW_COOKIES = 0x20000;
2490 const UINT LOAD_FLAGS_DISALLOW_INHERIT_OWNER = 0x40000;
2491 const UINT LOAD_FLAGS_ERROR_LOAD_CHANGES_RV = 0x80000;
2493 nsresult GetCanGoBack(bool *aCanGoBack);
2494 nsresult GetCanGoForward(bool *aCanGoForward);
2495 nsresult GoBack();
2496 nsresult GoForward();
2497 nsresult GotoIndex(int32_t index);
2498 nsresult LoadURI(const PRUnichar *aURI, uint32_t aLoadFlags, nsIURI *aReferrer,
2499 nsIInputStream *aPostData, nsIInputStream *aHeaders);
2500 nsresult LoadURIWithOptions(const PRUnichar *aURI, uint32_t aLoadFlags, nsIURI *aReferrer, uint32_t aReferrerPolicy,
2501 nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIURI *aBaseURI);
2502 nsresult Reload(uint32_t aReloadFlags);
2503 nsresult Stop(uint32_t aStopFlags);
2504 nsresult GetDocument(nsIDOMDocument **aDocument);
2505 nsresult GetCurrentURI(nsIURI **aCurrentURI);
2506 nsresult GetReferringURI(nsIURI **aReferringURI);
2507 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
2508 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
2512 object,
2513 uuid(c4d64640-b332-4db6-a2a5-e08566000dc9),
2514 local
2516 interface nsIWebProgress : nsISupports
2518 nsresult AddProgressListener(nsIWebProgressListener *aListener, uint32_t aNotifyMask);
2519 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
2520 nsresult GetDOMWindow(mozIDOMWindowProxy **aDOMWindow);
2521 nsresult GetDOMWindowID(uint64_t *aDOMWindowID);
2522 nsresult GetIsTopLevel(bool *aIsTopLevel);
2523 nsresult GetIsLoadingDocument(bool *aIsLoadingDocument);
2524 nsresult GetLoadType(uint32_t *aLoadType);
2528 object,
2529 uuid(ecc5cbad-57fc-4731-b0bd-09e865bd62ad),
2530 local
2532 interface nsIPrintSettings : nsISupports
2534 typedef struct { char dummy; } nsIntMargin;
2536 nsresult SetPrintOptions(int32_t aType, bool aTurnOnOff);
2537 nsresult GetPrintOptions(int32_t aType, bool *_retval);
2538 nsresult GetPrintOptionsBits(int32_t *_retval);
2539 nsresult SetPrintOptionsBits(int32_t bits);
2540 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
2541 nsresult Clone(nsIPrintSettings **_retval);
2542 nsresult Assign(nsIPrintSettings *aPS);
2543 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
2544 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
2545 nsresult GetStartPageRange(int32_t *aStartPageRange);
2546 nsresult SetStartPageRange(int32_t aStartPageRange);
2547 nsresult GetEndPageRange(int32_t *aEndPageRange);
2548 nsresult SetEndPageRange(int32_t aEndPageRange);
2549 nsresult GetEdgeTop(double *aEdgeTop);
2550 nsresult SetEdgeTop(double aEdgeTop);
2551 nsresult GetEdgeLeft(double *aEdgeLeft);
2552 nsresult SetEdgeLeft(double aEdgeLeft);
2553 nsresult GetEdgeBottom(double *aEdgeBottom);
2554 nsresult SetEdgeBottom(double aEdgeBottom);
2555 nsresult GetEdgeRight(double *aEdgeRight);
2556 nsresult SetEdgeRight(double aEdgeRight);
2557 nsresult GetMarginTop(double *aMarginTop);
2558 nsresult SetMarginTop(double aMarginTop);
2559 nsresult GetMarginLeft(double *aMarginLeft);
2560 nsresult SetMarginLeft(double aMarginLeft);
2561 nsresult GetMarginBottom(double *aMarginBottom);
2562 nsresult SetMarginBottom(double aMarginBottom);
2563 nsresult GetMarginRight(double *aMarginRight);
2564 nsresult SetMarginRight(double aMarginRight);
2565 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
2566 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
2567 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
2568 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
2569 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
2570 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
2571 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
2572 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
2573 nsresult GetScaling(double *aScaling);
2574 nsresult SetScaling(double aScaling);
2575 nsresult GetPrintBGColors(bool *aPrintBGColors);
2576 nsresult SetPrintBGColors(bool aPrintBGColors);
2577 nsresult GetPrintBGImages(bool *aPrintBGImages);
2578 nsresult SetPrintBGImages(bool aPrintBGImages);
2579 nsresult GetPrintRange(int16_t *aPrintRange);
2580 nsresult SetPrintRange(int16_t aPrintRange);
2581 nsresult GetTitle(PRUnichar **aTitle);
2582 nsresult SetTitle(const PRUnichar *aTitle);
2583 nsresult GetDocURL(PRUnichar **aDocURL);
2584 nsresult SetDocURL(const PRUnichar *aDocURL);
2585 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
2586 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
2587 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
2588 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
2589 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
2590 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
2591 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
2592 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
2593 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
2594 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
2595 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
2596 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
2597 nsresult GetHowToEnableFrameUI(int16_t *aHowToEnableFrameUI);
2598 nsresult SetHowToEnableFrameUI(int16_t aHowToEnableFrameUI);
2599 nsresult GetIsCancelled(bool *aIsCancelled);
2600 nsresult SetIsCancelled(bool aIsCancelled);
2601 nsresult GetPrintFrameTypeUsage(int16_t *aPrintFrameTypeUsage);
2602 nsresult SetPrintFrameTypeUsage(int16_t aPrintFrameTypeUsage);
2603 nsresult GetPrintFrameType(int16_t *aPrintFrameType);
2604 nsresult SetPrintFrameType(int16_t aPrintFrameType);
2605 nsresult GetPrintSilent(bool *aPrintSilent);
2606 nsresult SetPrintSilent(bool aPrintSilent);
2607 nsresult GetShrinkToFit(bool *aShrinkToFit);
2608 nsresult SetShrinkToFit(bool aShrinkToFit);
2609 nsresult GetShowPrintProgress(bool *aShowPrintProgress);
2610 nsresult SetShowPrintProgress(bool aShowPrintProgress);
2611 nsresult GetPaperName(PRUnichar **aPaperName);
2612 nsresult SetPaperName(const PRUnichar *aPaperName);
2613 nsresult GetPaperData(int16_t *aPaperData);
2614 nsresult SetPaperData(int16_t aPaperData);
2615 nsresult GetPaperWidth(double *aPaperWidth);
2616 nsresult SetPaperWidth(double aPaperWidth);
2617 nsresult GetPaperHeight(double *aPaperHeight);
2618 nsresult SetPaperHeight(double aPaperHeight);
2619 nsresult GetPaperSizeUnit(int16_t *aPaperSizeUnit);
2620 nsresult SetPaperSizeUnit(int16_t aPaperSizeUnit);
2621 nsresult GetPrintReversed(bool *aPrintReversed);
2622 nsresult SetPrintReversed(bool aPrintReversed);
2623 nsresult GetPrintInColor(bool *aPrintInColor);
2624 nsresult SetPrintInColor(bool aPrintInColor);
2625 nsresult GetOrientation(int32_t *aOrientation);
2626 nsresult SetOrientation(int32_t aOrientation);
2627 nsresult GetNumCopies(int32_t *aNumCopies);
2628 nsresult SetNumCopies(int32_t aNumCopies);
2629 nsresult GetPrinterName(PRUnichar **aPrinterName);
2630 nsresult SetPrinterName(const PRUnichar *aPrinterName);
2631 nsresult GetPrintToFile(bool *aPrintToFile);
2632 nsresult SetPrintToFile(bool aPrintToFile);
2633 nsresult GetToFileName(PRUnichar **aToFileName);
2634 nsresult SetToFileName(const PRUnichar *aToFileName);
2635 nsresult GetOutputFormat(int16_t *aOutputFormat);
2636 nsresult SetOutputFormat(int16_t aOutputFormat);
2637 nsresult GetPrintPageDelay(int32_t *aPrintPageDelay);
2638 nsresult SetPrintPageDelay(int32_t aPrintPageDelay);
2639 nsresult GetResolution(int32_t *aResolution) = 0;
2640 nsresult SetResolution(int32_t aResolution) = 0;
2641 nsresult GetDuplex(int32_t *aDuplex);
2642 nsresult SetDuplex(int32_t aDuplex);
2643 nsresult GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter);
2644 nsresult SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter);
2645 nsresult GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs);
2646 nsresult SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs);
2647 nsresult GetPersistMarginBoxSettings(bool *aPersistMarginBoxSettings);
2648 nsresult SetPersistMarginBoxSettings(bool aPersistMarginBoxSettings);
2649 nsresult SetMarginInTwips(nsIntMargin *aMargin);
2650 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
2651 nsresult GetMarginInTwips(nsIntMargin *aMargin);
2652 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
2653 nsresult SetupSilentPrinting();
2654 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2655 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2656 nsresult GetPageRanges(void * /*nsTArray<int32_t>*/ aPages);
2660 object,
2661 uuid(c9a934ed-fff1-4971-bfba-6c25ad70e1e6),
2662 local
2664 interface nsIWebBrowserPrint : nsISupports
2666 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
2667 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
2668 nsresult GetCurrentChildDOMWindow(mozIDOMWindowProxy **aCurrentChildDOMWindow);
2669 nsresult GetDoingPrint(bool *aDoingPrint);
2670 nsresult GetDoingPrintPreview(bool *aDoingPrintPreview);
2671 nsresult GetIsFramesetDocument(bool *aIsFramesetDocument);
2672 nsresult GetIsFramesetFrameSelected(bool *aIsFramesetFrameSelected);
2673 nsresult GetIsIFrameSelected(bool *aIsIFrameSelected);
2674 nsresult GetIsRangeSelection(bool *aIsRangeSelection);
2675 nsresult GetPrintPreviewNumPages(int32_t *aPrintPreviewNumPages);
2676 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
2677 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, mozIDOMWindowProxy *aChildDOMWin,
2678 nsIWebProgressListener *aWPListener);
2679 nsresult PrintPreviewNavigate(int16_t aNavType, int32_t aPageNum);
2680 nsresult Cancel();
2681 nsresult EnumerateDocumentNames(uint32_t *aCount, PRUnichar ***aResult);
2682 nsresult ExitPrintPreview();
2686 object,
2687 uuid(3507fc93-313e-4a4c-8ca8-4d0ea0f97315),
2688 local
2690 interface nsIScrollable : nsISupports
2692 enum {
2693 ScrollOrientation_X = 1,
2694 ScrollOrientation_Y = 2
2697 enum {
2698 Scrollbar_Auto = 1,
2699 Scrollbar_Never = 2,
2700 Scrollbar_Always = 3
2703 nsresult GetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t *_retval);
2704 nsresult SetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t scrollbarPref);
2705 nsresult GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible);
2709 object,
2710 uuid(2fa6884a-ae65-412a-9d4c-ce6e34544ba1),
2711 local
2713 interface nsIFile : nsISupports
2715 typedef struct {
2716 /* Currently not needed */
2717 char dummy;
2718 } PRFileDesc, PRLibrary, widl_FILE;
2719 #define FILE widl_FILE
2721 nsresult Append(const nsAString *node);
2722 nsresult AppendNative(const nsAString *node);
2723 nsresult Normalize();
2724 nsresult Create(uint32_t type, uint32_t permission);
2725 nsresult GetLeafName(nsAString *aLeafName);
2726 nsresult SetLeafName(const nsAString *aLeafName);
2727 nsresult GetNativeLeafName(nsAString *aLeafName);
2728 nsresult SetNativeLeafName(const nsAString *aLeafName);
2729 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
2730 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
2731 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
2732 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
2733 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
2734 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
2735 nsresult RenameTo(nsIFile *newParentDir, const nsAString *newName);
2736 nsresult RenameToNative(nsIFile *newParentDir, const nsACString *newName);
2737 nsresult Remove(bool recursive);
2738 nsresult GetPermissions(uint32_t *aPermissions);
2739 nsresult SetPermissions(uint32_t pPermissions);
2740 nsresult GetPermissionsOfLink(uint32_t *aPermissions);
2741 nsresult SetPermissionsOfLink(uint32_t pPermissions);
2742 nsresult GetLastModifiedTime(PRTime *aLastModifiedTime);
2743 nsresult SetLastModifiedTime(PRTime aLastModifiedTime);
2744 nsresult GetLastModifiedTimeOfLink(PRTime *aLastModifiedTimeOfLink);
2745 nsresult SetLastModifiedTimeOfLink(PRTime aLastModifiedTimeOfLink);
2746 nsresult GetFileSize(int64_t *aFileSize);
2747 nsresult SetFileSize(int64_t aFileSize);
2748 nsresult GetFileSizeOfLink(int64_t *aFileSizeOfLink);
2749 nsresult GetTarget(nsAString *aTarget);
2750 nsresult GetNativeTarget(nsACString *aNativeTarget);
2751 nsresult GetPath(nsAString *aPath);
2752 nsresult GetNativePath(nsACString *aNativePath);
2753 nsresult Exists(bool *_retval);
2754 nsresult IsWritable(bool *_retval);
2755 nsresult IsReadable(bool *_retval);
2756 nsresult IsExecutable(bool *_retval);
2757 nsresult IsHidden(bool *_retval);
2758 nsresult IsDirectory(bool *_retval);
2759 nsresult IsFile(bool *_retval);
2760 nsresult IsSymlink(bool *_retval);
2761 nsresult IsSpecial(bool *_retval);
2762 nsresult CreateUnique(uint32_t type, uint32_t permission);
2763 nsresult Clone(nsIFile **_retval);
2764 nsresult Equals(nsIFile *inFile, bool *_retval);
2765 nsresult Contains(nsIFile *inFile, bool *_retval);
2766 nsresult GetParent(nsIFile **aParent);
2767 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2768 nsresult InitWithPath(const nsAString *filePath);
2769 nsresult InitWithNativePath(const nsACString *filePath);
2770 nsresult InitWithFile(nsIFile *aFile);
2771 nsresult GetFollowLinks(bool *aFollowLinks);
2772 nsresult SetFollowLinks(bool aFollowLinks);
2773 nsresult OpenNSPRFileDesc(int32_t flags, int32_t mode, PRFileDesc **_retval);
2774 nsresult OpenANSIFileDesc(const char *mode, FILE **_retval);
2775 nsresult Load(PRLibrary **_retval);
2776 nsresult GetDiskSpaceAvailable(int64_t *aDiskSpaceAvailable);
2777 nsresult AppendRelativePath(const nsAString *relativeFilePath);
2778 nsresult AppendRelativeNativePath(const nsACString *relativeFilePath);
2779 nsresult GetPersistentDescriptor(nsACString *aPersistentDescriptor);
2780 nsresult SetPersistentDescriptor(const nsACString *aPersistentDescriptor);
2781 nsresult Reveal();
2782 nsresult Launch();
2783 nsresult GetRelativeDescriptor(nsIFile *fromFile, nsACString *_retval);
2784 nsresult SetRelativeDescriptor(nsIFile *fromFile, const nsACString *relativeDesc);
2785 nsresult GetRelativePath(nsIFile *fromFile, nsACString *_retval);
2786 nsresult SetRelativePath(nsIFile *fromFile, const nsACString *relativeDesc);
2790 object,
2791 uuid(d604ffc3-1ba3-4f6c-b65f-1ed4199364c3),
2792 local
2794 interface nsIComponentManager : nsISupports
2796 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, void **result);
2797 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, void **result);
2798 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
2799 void **result);
2800 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
2801 nsIIDRef aIID, void **result);
2802 nsresult AddBootstrappedManifestLocation(nsIFile *aLocation);
2803 nsresult RemoveBootstrappedManifestLocation(nsIFile *aLocation);
2804 nsresult GetManifestLocations(nsIArray **_retval);
2808 object,
2809 uuid(55d25e49-793f-4727-a69f-de8b15f4b985),
2810 local
2812 interface nsIPrefBranch : nsISupports
2814 nsresult GetRoot(char **aRoot);
2815 nsresult GetPrefType(const char *aPrefName, int32_t *_retval);
2816 nsresult GetBoolPref(const char *aPrefName, bool *_retval);
2817 nsresult SetBoolPref(const char *aPrefName, bool aValue);
2818 nsresult GetFloatPref(const char *aPrefName, float *_retval);
2819 nsresult GetCharPref(const char *aPrefName, char **_retval);
2820 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2821 nsresult GetIntPref(const char *aPrefName, int32_t *_retval);
2822 nsresult SetIntPref(const char *aPrefName, int32_t aValue);
2823 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2824 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2825 nsresult ClearUserPref(const char *aPrefName);
2826 nsresult LockPref(const char *aPrefName);
2827 nsresult PrefHasUserValue(const char *aPrefName, bool *_retval);
2828 nsresult PrefIsLocked(const char *aPrefName, bool *_retval);
2829 nsresult UnlockPref(const char *aPrefName);
2830 nsresult DeleteBranch(const char *aStartingAt);
2831 nsresult GetChildList(const char *aStartingAt, uint32_t *aCount, char ***aChildArray);
2832 nsresult ResetBranch(const char *aStartingAt);
2833 nsresult AddObserver(const char *aDomain, nsIObserver *aObserver, bool aHoldWeak);
2834 nsresult RemoveObserver(const char *aDomain, nsIObserver *aObserver);
2838 object,
2839 uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2840 local
2842 interface nsIDirectoryServiceProvider : nsISupports
2844 nsresult GetFile(const char *prop, bool *persistent, nsIFile **_retval);
2848 object,
2849 uuid(2f977d4b-5485-11d4-87e2-0010a4e75ef2),
2850 local
2852 interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider
2854 nsresult GetFiles(const char *prop, nsISimpleEnumerator **_retval);
2858 object,
2859 uuid(a87210e6-7c8c-41f7-864d-df809015193e),
2860 local
2862 interface nsIProtocolHandler : nsISupports
2864 const unsigned long URI_STD = 0;
2865 const unsigned long URI_NORELATIVE = (1<<0);
2866 const unsigned long URI_NOAUTH = (1<<1);
2867 const unsigned long ALLOWS_PROXY = (1<<2);
2868 const unsigned long ALLOWS_PROXY_HTTP = (1<<3);
2869 const unsigned long URI_INHERITS_SECURITY_CONTEXT = (1<<4);
2870 const unsigned long URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT = (1<<5);
2871 const unsigned long URI_LOADABLE_BY_ANYONE = (1<<6);
2872 const unsigned long URI_DANGEROUS_TO_LOAD = (1<<7);
2873 const unsigned long URI_IS_UI_RESOURCE = (1<<8);
2874 const unsigned long URI_IS_LOCAL_FILE = (1<<9);
2875 const unsigned long URI_LOADABLE_BY_SUBSUMERS = (1<<10);
2876 const unsigned long URI_DOES_NOT_RETURN_DATA = (1<<11);
2877 const unsigned long URI_IS_LOCAL_RESOURCE = (1<<12);
2878 const unsigned long URI_OPENING_EXECUTES_SCRIPT = (1<<13);
2879 const unsigned long URI_NON_PERSISTABLE = (1<<14);
2880 const unsigned long URI_FORBIDS_COOKIE_ACCESS = (1<<15);
2881 const unsigned long URI_CROSS_ORIGIN_NEEDS_WEBAPPS_PERM = (1<<16);
2882 const unsigned long URI_SYNC_LOAD_IS_OK = (1<<17);
2883 const unsigned long URI_SAFE_TO_LOAD_IN_SECURE_CONTEXT = (1<<18);
2884 const unsigned long URI_FETCHABLE_BY_ANYONE = (1 << 19);
2886 nsresult GetScheme(nsACString *aScheme);
2887 nsresult GetDefaultPort(int32_t *aDefaultPort);
2888 nsresult GetProtocolFlags(uint32_t *aProtocolFlags);
2889 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2890 nsIURI *aBaseURI, nsIURI **_retval);
2891 nsresult NewChannel2(nsIURI *aURI, nsILoadInfo *aLoadinfo, nsIChannel **_retval);
2892 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2893 nsresult AllowPort(int32_t port, const char *scheme, bool *_retval);
2897 object,
2898 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2899 local
2901 interface nsIExternalProtocolHandler : nsIProtocolHandler
2903 nsresult ExternalAppExistsForScheme(const nsACString *scheme, bool *_retval);
2907 object,
2908 uuid(d13c21ca-7329-45a5-8912-9d2e2fef1231),
2909 local
2911 interface nsIIOServiceHook : nsISupports
2913 nsresult NewChannel(nsIURI *aURI, nsILoadInfo *aLoadInfo, nsIChannel **_retval);
2914 nsresult GetProtocolHandler(nsIProtocolHandler *aHandler, nsIProtocolHandler **_retval);
2915 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI, nsIURI **_retval);
2916 nsresult ProtocolHasFlags(nsIURI *aURI, uint32_t aFlag, bool *_retval);
2917 nsresult URIChainHasFlags(nsIURI *aURI, uint32_t aFlags, bool *_retval);
2921 object,
2922 uuid(4286de5a-b2ea-446f-8f70-e2a461f42694),
2923 local
2925 interface nsIIOService : nsISupports
2927 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2928 nsresult GetProtocolFlags(const char *aScheme, uint32_t *_retval);
2929 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2930 nsIURI **_retval);
2931 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2932 nsresult NewChannelFromURI2(nsIURI *aURI, nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal,
2933 nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType,
2934 nsIChannel **_retval);
2935 nsresult NewChannelFromURIWithLoadInfo(nsIURI *aURI, nsILoadInfo *aLoadInfo, nsIChannel **_retval);
2936 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2937 nsresult NewChannel2(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2938 nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal,
2939 uint32_t aSecurityFlags, uint32_t aContentPolicyType, nsIChannel **_retval);
2940 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2941 nsIChannel **_retval);
2942 nsresult GetOffline(bool *aOffline);
2943 nsresult SetOffline(bool aOffline);
2944 nsresult GetConnectivity(bool *aConnectivity);
2945 nsresult SetAppOffline(uint32_t appId, int32_t state);
2946 nsresult IsAppOffline(uint32_t appId, bool *_retval);
2947 nsresult GetAppOfflineState(uint32_t appId, int32_t *_retval);
2948 nsresult AllowPort(int32_t aPort, const char *aScheme, bool *_retval);
2949 nsresult ExtractScheme(const nsACString *urlString, nsACString *_retval);
2950 nsresult SetHook(nsIIOServiceHook *aHook);
2954 object,
2955 uuid(7f8c754e-5b36-44be-bc96-191b49f08ea6),
2956 local
2958 interface nsIWebBrowserFocus : nsISupports
2960 nsresult Activate();
2961 nsresult Deactivate();
2962 nsresult SetFocusAtFirstElement();
2963 nsresult SetFocusAtLastElement();
2964 nsresult GetFocusedWindow(mozIDOMWindowProxy **aFocusedWindow);
2965 nsresult SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow);
2966 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2967 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2971 object,
2972 uuid(e8c414c4-dc38-4ba3-ab4e-ec4cbbe22907),
2973 local
2975 interface nsIWebBrowserChrome : nsISupports
2977 nsresult SetStatus(uint32_t statusType, const PRUnichar *status);
2978 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2979 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2980 nsresult GetChromeFlags(uint32_t *aChromeFlags);
2981 nsresult SetChromeFlags(uint32_t aChromeFlags);
2982 nsresult DestroyBrowserWindow();
2983 nsresult SizeBrowserTo(int32_t aCX, int32_t aCY);
2984 nsresult ShowAsModal();
2985 nsresult IsWindowModal(bool *_retval);
2986 nsresult ExitModalEventLoop(nsresult aStatus);
2990 object,
2991 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2992 local
2994 interface nsIDOMEventListener : nsISupports
2996 nsresult HandleEvent(nsIDOMEvent *event);
3000 object,
3001 uuid(9a78ac3c-9507-4d00-b2d6-10b508d2ec31),
3002 local
3004 interface nsIDOMEventTarget : nsISupports
3006 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture, bool wantsUntrusted, uint8_t _argc);
3007 nsresult AddSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture, bool aWantsUntrusted, uint8_t _argc);
3008 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture);
3009 nsresult RemoveSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture);
3010 nsresult DispatchEvent(nsIDOMEvent *evt, bool *_retval);
3012 /* Followed by methods we should try to avoid using */
3016 object,
3017 uuid(f58daacf-4d1a-4002-8fd7-06b614dfbcf6),
3018 local
3020 interface nsIDOMEvent : nsISupports
3022 nsresult GetType(nsAString *aType);
3023 nsresult GetTarget(nsIDOMEventTarget **aTarget);
3024 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
3025 nsresult GetEventPhase(uint16_t *aEventPhase);
3026 nsresult GetBubbles(bool *aBubbles);
3027 nsresult GetCancelable(bool *aCancelable);
3028 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
3029 nsresult StopPropagation();
3030 nsresult PreventDefault();
3031 void /* thiscall */ InitEvent(const nsAString *eventTypeArg, bool canBubbleArg, bool cancelableArg);
3032 nsresult GetDefaultPrevented(bool *aDefaultPrevented);
3033 nsresult StopImmediatePropagation();
3034 nsresult GetOriginalTarget(nsIDOMEventTarget **aOriginalTarget);
3035 nsresult GetExplicitOriginalTarget(nsIDOMEventTarget * *aExplicitOriginalTarget);
3036 nsresult GetPreventDefault(bool *_retval);
3037 nsresult GetIsTrusted(bool *aIsTrusted);
3038 nsresult DuplicatePrivateData();
3039 nsresult SetTarget(nsIDOMEventTarget *aTarget);
3040 bool IsDispatchStopped();
3041 /*WidgetEvent*/ void *WidgetEventPtr();
3042 void SetTrusted(bool aTrusted);
3043 void Serialize(/*IPC::Message*/ void *aMsg, bool aSerializeInterfaceType);
3044 bool Deserialize(const /*IPC::Message*/ void *aMsg, void **aIter);
3045 void SetOwner(void /*mozilla::dom::EventTarget*/ *aOwner);
3046 void /*nsDOMEvent*/ *InternalDOMEvent();
3047 nsresult StopCrossProcessForwarding();
3051 object,
3052 uuid(46b44e33-13c2-4eb3-bf80-76a4e0857ccc),
3053 local
3055 interface nsIDOMWindowUtils : nsISupports
3057 nsresult GetImageAnimationMode(uint16_t *aImageAnimationMode);
3058 nsresult SetImageAnimationMode(uint16_t aImageAnimationMode);
3059 nsresult GetDocCharsetIsForced(bool *aDocCharsetIsForced);
3060 nsresult GetCursorType(int16_t *_retval);
3061 nsresult GetDocumentMetadata(const nsAString *aName, nsAString *_retval);
3062 nsresult Redraw(uint32_t aCount, uint32_t *_retval);
3063 nsresult UpdateLayerTree();
3064 nsresult GetViewportInfo(uint32_t aDisplayWidth, uint32_t aDisplayHeight, double *aDefaultZoom, bool *aAllowZoom,
3065 double *aMinZoom, double *aMaxZoom, uint32_t *aWidth, uint32_t *aHeight, bool *aAutoSize);
3066 nsresult SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx,
3067 nsIDOMElement *aElement, uint32_t aPriority);
3068 nsresult SetDisplayPortMarginsForElement(float aLeftMargin, float aTopMargin, float aRightMargin, float aBottomMargin,
3069 nsIDOMElement *aElement, uint32_t aPriority);
3070 nsresult SetDisplayPortBaseForElement(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, nsIDOMElement *aElement);
3071 nsresult SetResolution(float aResolution);
3072 nsresult GetResolution(float *aResolution);
3073 nsresult SetResolutionAndScaleTo(float aResolution);
3074 nsresult GetIsResolutionSet(bool *aIsResolutionSet);
3075 nsresult GetIsFirstPaint(bool *aIsFirstPaint);
3076 nsresult SetIsFirstPaint(bool aIsFirstPaint);
3077 nsresult GetPresShellId(uint32_t *aPresShellId);
3078 nsresult SendMouseEvent(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
3079 int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsSynthesized,
3080 uint8_t _argc, bool *_retval);
3081 nsresult SendPointerEvent(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
3082 int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, int32_t aPointerId,
3083 int32_t aWidth, int32_t aHeight, int32_t tiltX, int32_t tiltY, bool aIsPrimary, bool aIsSynthesized,
3084 uint8_t _argc, bool *_retval);
3085 nsresult SendTouchEvent(const nsAString *aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs,
3086 uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers,
3087 bool aIgnoreRootScrollFrame, bool *_retval);
3088 nsresult SendMouseEventToWindow(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
3089 int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsSynthesized,
3090 uint8_t _argc);
3091 nsresult SendPointerEventToWindow(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
3092 int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, int32_t aPointerId,
3093 int32_t aWidth, int32_t aHeight, int32_t aTiltX, int32_t aTiltY, bool aIsPrimary, bool aIsSynthesized, uint8_t _argc);
3094 nsresult SendTouchEventToWindow(const nsAString *aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs,
3095 uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers,
3096 bool aIgnoreRootScrollFrame, bool *_retval);
3097 nsresult SendWheelEvent(float aX, float aY, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aDeltaMode,
3098 int32_t aModifiers, int32_t aLineOrPageDeltaX, int32_t aLineOrPageDeltaY, uint32_t aOptions);
3099 nsresult SendKeyEvent(const nsAString *aType, int32_t aKeyCode, int32_t aCharCode, int32_t aModifiers,
3100 uint32_t aAdditionalFlags, bool *_retval);
3101 nsresult SendNativeKeyEvent(int32_t aNativeKeyboardLayout, int32_t aNativeKeyCode, int32_t aModifierFlags,
3102 const nsAString *aCharacters, const nsAString *aUnmodifiedCharacters, nsIObserver *aObserver);
3103 nsresult SendNativeMouseEvent(int32_t aScreenX, int32_t aScreenY, int32_t aNativeMessage, int32_t aModifierFlags,
3104 nsIDOMElement *aElement, nsIObserver *aObserver);
3105 nsresult SendNativeMouseMove(int32_t aScreenX, int32_t aScreenY, nsIDOMElement *aElement, nsIObserver *aObserver);
3106 nsresult SendNativeMouseScrollEvent(int32_t aScreenX, int32_t aScreenY, uint32_t aNativeMessage, double aDeltaX,
3107 double aDeltaY, double aDeltaZ, uint32_t aModifierFlags, uint32_t aAdditionalFlags, nsIDOMElement *aElement,
3108 nsIObserver *aObserver);
3109 nsresult SendNativeTouchPoint(uint32_t aPointerId, uint32_t aTouchState, int32_t aScreenX, int32_t aScreenY,
3110 double aPressure, uint32_t aOrientation, nsIObserver *aObserver);
3111 nsresult SendNativeTouchTap(int32_t aScreenX, int32_t aScreenY, bool aLongTap, nsIObserver *aObserver);
3112 nsresult ClearNativeTouchSequence(nsIObserver *aObserver);
3113 nsresult ActivateNativeMenuItemAt(const nsAString *indexString);
3114 nsresult ForceUpdateNativeMenuAt(const nsAString *indexString);
3115 nsresult Focus(nsIDOMElement *aElement);
3116 nsresult GarbageCollect(nsICycleCollectorListener *aListener, int32_t aExtraForgetSkippableCalls);
3117 nsresult CycleCollect(nsICycleCollectorListener *aListener, int32_t aExtraForgetSkippableCalls);
3118 nsresult RunNextCollectorTimer();
3119 nsresult SendSimpleGestureEvent(const nsAString *aType, float aX, float aY, uint32_t aDirection, double aDelta,
3120 int32_t aModifiers, uint32_t aClickCount);
3121 nsresult ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMElement **_retval);
3122 nsresult NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize,
3123 bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMNodeList **_retval);
3124 nsresult GetTranslationNodes(nsIDOMNode *aRoot, int /*nsITranslationNodeList*/ **_retval);
3125 nsresult CompareCanvases(nsIDOMHTMLCanvasElement *aCanvas1, nsIDOMHTMLCanvasElement *aCanvas2,
3126 uint32_t *aMaxDifference, uint32_t *_retval);
3127 nsresult GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending);
3128 nsresult SuppressEventHandling(bool aSuppress);
3129 nsresult ClearMozAfterPaintEvents();
3130 nsresult DisableNonTestMouseEvents(bool aDisable);
3131 nsresult GetScrollXY(bool aFlushLayout, int32_t *aScrollX, int32_t *aScrollY);
3132 nsresult GetScrollXYFloat(bool aFlushLayout, float *aScrollX, float *aScrollY);
3133 nsresult GetScrollbarSize(bool aFlushLayout, int32_t *aWidth, int32_t *aHeight);
3134 nsresult GetBoundsWithoutFlushing(nsIDOMElement *aElement, nsIDOMClientRect **_retval);
3135 nsresult GetRootBounds(nsIDOMClientRect **_retval);
3136 nsresult GetIMEIsOpen(bool *aIMEIsOpen);
3137 nsresult GetIMEStatus(uint32_t *aIMEStatus);
3138 nsresult GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel);
3139 nsresult GetFullZoom(float *aFullZoom);
3140 nsresult DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval);
3141 nsresult DispatchEventToChromeOnly(nsIDOMEventTarget *aTarget, nsIDOMEvent *aEvent, bool *_retval);
3142 nsresult GetClassName(const /*JS::Value*/ void *aObject, JSContext *cx, char **_retval);
3143 nsresult SendContentCommandEvent(const nsAString *aType, nsITransferable *aTransferable);
3144 nsresult SendQueryContentEvent(uint32_t aType, uint32_t aOffset, uint32_t aLength, int32_t aX, int32_t aY,
3145 uint32_t aAdditionalFlags, nsIQueryContentEventResult **_retval);
3146 nsresult RemoteFrameFullscreenChanged(nsIDOMElement *aFrameElement);
3147 nsresult RemoteFrameFullscreenReverted();
3148 nsresult HandleFullscreenRequests(bool *_retval);
3149 nsresult ExitFullscreen();
3150 nsresult SendSelectionSetEvent(uint32_t aOffset, uint32_t aLength, uint32_t aAdditionalFlags, bool *_retval);
3151 nsresult SelectAtPoint(float aX, float aY, uint32_t aSelectBehavior, bool *_retval);
3152 nsresult GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString *aPseudoElement,
3153 const nsAString *aPropertyName, nsAString *_retval);
3154 nsresult GetOuterWindowID(uint64_t *aOuterWindowID);
3155 nsresult GetCurrentInnerWindowID(uint64_t *aCurrentInnerWindowID);
3156 nsresult EnterModalState();
3157 nsresult LeaveModalState();
3158 nsresult IsInModalState(bool *_retval);
3159 nsresult SetDesktopModeViewport(bool aDesktopModeViewport);
3160 nsresult SuspendTimeouts();
3161 nsresult ResumeTimeouts();
3162 nsresult GetLayerManagerType(nsAString *aLayerManagerType);
3163 nsresult GetLayerManagerRemote(bool *aLayerManagerRemote);
3164 nsresult GetSupportsHardwareH264Decoding(void /* JS::MutableHandleValue */ *aSupportsHardwareH264Decoding);
3165 nsresult StartFrameTimeRecording(uint32_t *startIndex);
3166 nsresult StopFrameTimeRecording(uint32_t startIndex, uint32_t *frameCount, float **frameIntervals);
3167 nsresult BeginTabSwitch();
3168 nsresult GetDisplayDPI(float *aDisplayDPI);
3169 nsresult GetOuterWindowWithId(uint64_t aOuterWindowID, nsIDOMWindow **_retval);
3170 nsresult GetContainerElement(nsIDOMElement **aContainerElement);
3171 nsresult RenderDocument(const void /*nsRect*/ *aRect, uint32_t aFlags, int /*nscolor*/ aBackgroundColor,
3172 void /*gfxContext*/ *aThebesContext);
3173 nsresult AdvanceTimeAndRefresh(int64_t aMilliseconds);
3174 nsresult RestoreNormalRefresh();
3175 nsresult GetIsTestControllingRefreshes(bool *aIsTestControllingRefreshes);
3176 nsresult GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled);
3177 nsresult SetAsyncScrollOffset(nsIDOMNode *aNode, float aX, float aY);
3178 nsresult SetAsyncZoom(nsIDOMNode *aRootElement, float aValue);
3179 nsresult FlushApzRepaints(bool *_retval);
3180 nsresult ZoomToFocusedInput();
3181 nsresult ComputeAnimationDistance(nsIDOMElement *element, const nsAString *property, const nsAString *value1,
3182 const nsAString *value2, double *_retval);
3183 nsresult WrapDOMFile(nsIFile *aFile, nsISupports **_retval);
3184 nsresult GetFocusedInputType(char **aFocusedInputType);
3185 nsresult GetViewId(nsIDOMElement *aElement, long /*nsViewID*/ *_retval);
3186 nsresult LeafLayersPartitionWindow(bool *_retval);
3187 nsresult CheckAndClearPaintedState(nsIDOMElement *aElement, bool *_retval);
3188 nsresult IsPartOfOpaqueLayer(nsIDOMElement *aElement, bool *_retval);
3189 nsresult NumberOfAssignedPaintedLayers(nsIDOMElement **aElements, uint32_t count, uint32_t *_retval);
3190 nsresult GetFileId(const /*JS::Value*/ void *aFile, JSContext *cx, int64_t *_retval);
3191 nsresult GetFilePath(void /*JS::HandleValue*/ *aFile, JSContext *cx, nsAString *_retval);
3192 nsresult GetFileReferences(const nsAString *aDatabaseName, int64_t aId, void /*JS::HandleValue*/ *aOptions,
3193 int32_t *aRefCnt, int32_t *aDBRefCnt, int32_t *aSliceRefCnt, JSContext* cx, bool *_retval);
3194 nsresult FlushPendingFileDeletions();
3195 nsresult IsIncrementalGCEnabled(JSContext *cx, bool *_retval);
3196 nsresult StartPCCountProfiling(JSContext *cx);
3197 nsresult StopPCCountProfiling(JSContext *cx);
3198 nsresult PurgePCCounts(JSContext *cx);
3199 nsresult GetPCCountScriptCount(JSContext *cx, int32_t *_retval);
3200 nsresult GetPCCountScriptSummary(int32_t script, JSContext *cx, nsAString *_retval);
3201 nsresult GetPCCountScriptContents(int32_t script, JSContext *cx, nsAString *_retval);
3202 nsresult GetPaintingSuppressed(bool *aPaintingSuppressed);
3203 nsresult GetPlugins(JSContext *cx, /*JS::Value*/ void *aPlugins);
3204 nsresult SetScrollPositionClampingScrollPortSize(float aWidth, float aHeight);
3205 nsresult DisableDialogs();
3206 nsresult EnableDialogs();
3207 nsresult AreDialogsEnabled(bool *_retval);
3208 nsresult LoadSheet(nsIURI *sheetURI, uint32_t type);
3209 nsresult LoadSheetUsingURIString(const nsACString *sheetURI, uint32_t type);
3210 nsresult AddSheet(nsIDOMStyleSheet *sheet, uint32_t type);
3211 nsresult RemoveSheet(nsIURI *sheetURI, uint32_t type);
3212 nsresult RemoveSheetUsingURIString(const nsACString *sheetURI, uint32_t type);
3213 nsresult GetIsHandlingUserInput(bool *aIsHandlingUserInput);
3214 nsresult AllowScriptsToClose();
3215 nsresult GetIsParentWindowMainWidgetVisible(bool *aIsParentWindowMainWidgetVisible);
3216 nsresult IsNodeDisabledForEvents(nsIDOMNode *aNode, bool *_retval);
3217 nsresult GetPaintFlashing(bool *aPaintFlashing);
3218 nsresult SetPaintFlashing(bool aPaintFlashing);
3219 nsresult GetOMTAStyle(nsIDOMElement *aElement, const nsAString *aProperty,
3220 const nsAString *aPseudoElement, nsAString *_retval);
3221 nsresult RequestCompositorProperty(const nsAString *aProperty, float *_retval);
3222 nsresult SetHandlingUserInput(bool aHandlingInput, void /*nsIJSRAIIHelper*/ **_retval);
3223 nsresult GetContentAPZTestData(JSContext *cx, int /*JS::MutableHandleValue*/ _retval);
3224 nsresult GetCompositorAPZTestData(JSContext *cx, void /*JS::MutableHandleValue*/ *_retval);
3225 nsresult PostRestyleSelfEvent(nsIDOMElement *aElement);
3226 nsresult GetAudioMuted(bool *aAudioMuted) ;
3227 nsresult SetAudioMuted(bool aAudioMuted);
3228 nsresult GetAudioVolume(float *aAudioVolume);
3229 nsresult SetAudioVolume(float aAudioVolume);
3230 nsresult XpconnectArgument(nsIDOMWindowUtils *aThis);
3231 nsresult AskPermission(void /*nsIContentPermissionRequest*/ *aRequest);
3232 nsresult GetFramesConstructed(uint64_t *aFramesConstructed);
3233 nsresult GetFramesReflowed(uint64_t *aFramesReflowed);
3234 nsresult SetChromeMargin(int32_t aTop, int32_t aRight, int32_t aBottom, int32_t aLeft);
3235 nsresult GetServiceWorkersTestingEnabled(bool *aServiceWorkersTestingEnabled);
3236 nsresult SetServiceWorkersTestingEnabled(bool aServiceWorkersTestingEnabled);
3237 nsresult GetFrameUniformityTestData(JSContext* cx, int /*JS::MutableHandleValue*/ *_retval);
3238 nsresult EnterChaosMode();
3239 nsresult LeaveChaosMode();
3240 nsresult HasRuleProcessorUsedByMultipleStyleSets(uint32_t aSheetType, bool *_retval);
3241 nsresult ForceUseCounterFlush(nsIDOMNode *aNode);
3242 nsresult SetNextPaintSyncId(int32_t aSyncId);
3245 cpp_quote("#define CONTEXT_NONE 0x00")
3246 cpp_quote("#define CONTEXT_LINK 0x01")
3247 cpp_quote("#define CONTEXT_IMAGE 0x02")
3248 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
3249 cpp_quote("#define CONTEXT_TEXT 0x08")
3250 cpp_quote("#define CONTEXT_INPUT 0x10")
3251 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
3254 object,
3255 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
3256 local
3258 interface nsIContextMenuListener : nsISupports
3260 nsresult OnShowContextMenu(uint32_t aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
3264 object,
3265 uuid(85ae52eb-37fa-4fd9-a2e6-c7d0f2a521b3),
3266 local
3268 interface nsIDOMUIEvent : nsISupports
3270 nsresult GetView(mozIDOMWindowProxy **aView);
3271 nsresult GetDetail(int32_t *aDetail);
3272 nsresult InitUIEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
3273 mozIDOMWindow *viewArg, int32_t detailArg);
3274 nsresult GetLayerX(int32_t *aLayerX);
3275 nsresult GetLayerY(int32_t *aLayerY);
3276 nsresult GetPageX(int32_t *aPageX);
3277 nsresult GetPageY(int32_t *aPageY);
3278 nsresult GetWhich(uint32_t *aWhich);
3279 nsresult GetRangeParent(nsIDOMNode **aRangeParent);
3280 nsresult GetRangeOffset(int32_t *aRangeOffset);
3281 nsresult GetCancelBubble(bool *aCancelBubble);
3282 nsresult SetCancelBubble(bool aCancelBubble);
3283 nsresult GetIsChar(bool *aIsChar);
3284 void* /* mozilla::dom::Event thiscall */ AsEvent();
3288 object,
3289 uuid(5bdab8d8-7933-4c5c-b6d1-ab34481237f7),
3290 local
3292 interface nsIDOMMouseEvent : nsIDOMUIEvent
3294 nsresult GetScreenX(int32_t *aScreenX);
3295 nsresult GetScreenY(int32_t *aScreenY);
3296 nsresult GetMozMovementX(int32_t *aMozMovementX);
3297 nsresult GetMozMovementY(int32_t *aMozMovementY);
3298 nsresult GetClientX(int32_t *aClientX);
3299 nsresult GetClientY(int32_t *aClientY);
3300 nsresult GetCtrlKey(bool *aCtrlKey);
3301 nsresult GetShiftKey(bool *aShiftKey);
3302 nsresult GetAltKey(bool *aAltKey);
3303 nsresult GetMetaKey(bool *aMetaKey);
3304 nsresult GetButton(int16_t *aButton);
3305 nsresult GetButtons(uint16_t *aButtons);
3306 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
3307 nsresult InitMouseEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
3308 mozIDOMWindow *viewArg, int32_t detailArg, int32_t screenXArg, int32_t screenYArg,
3309 int32_t clientXArg, int32_t clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg,
3310 bool metaKeyArg, uint16_t buttonArg, nsIDOMEventTarget *relatedTargetArg);
3311 nsresult GetMozPressure(float *aMozPressure);
3312 nsresult GetMozInputSource(uint16_t *aMozInputSource);
3313 nsresult GetModifierState(const nsAString *keyArg, bool *_retval);
3317 object,
3318 uuid(2e52eb99-670d-469a-b51f-8efee2dd091d),
3319 local
3321 interface nsIDOMKeyEvent : nsIDOMUIEvent
3323 nsresult GetCharCode(uint32_t *aCharCode);
3324 nsresult GetKeyCode(uint32_t *aKeyCode);
3325 nsresult GetAltKey(bool *aAltKey);
3326 nsresult GetCtrlKey(bool *aCtrlKey);
3327 nsresult GetShiftKey(bool *aShiftKey);
3328 nsresult GetMetaKey(bool *aMetaKey);
3329 nsresult InitKeyEvent(const nsAString *typeArg, bool canBubbleArg,
3330 bool cancelableArg, mozIDOMWindowProxy *viewArg, bool ctrlKeyArg,
3331 bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, uint32_t keyCodeArg,
3332 uint32_t charCodeArg);
3333 nsresult GetModifierState(const nsAString *keyArg, bool *_retval);
3334 nsresult GetLocation(uint32_t *aLocation);
3335 nsresult GetRepeat(bool *aRepeat);
3336 nsresult GetKey(nsAString *aKey);
3340 object,
3341 uuid(e0682338-4c3f-4d3a-9487-d7492ea76335),
3342 local
3344 interface nsIDOMProgressEvent : nsISupports
3346 nsresult GetLengthComputable(bool *aLengthComputable);
3347 nsresult GetLoaded(uint64_t *aLoaded);
3348 nsresult GetTotal(uint64_t *aTotal);
3349 nsresult InitProgressEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
3350 bool lengthComputableArg, uint64_t loadedArg, uint64_t totalArg);
3354 object,
3355 uuid(5be16b03-36f9-4ca8-b2c5-0daadf3cd1b3),
3356 local
3358 interface nsIDOMCustomEvent : nsISupports
3360 nsresult GetDetail(nsIVariant **aDetail);
3361 nsresult InitCustomEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
3362 nsIVariant *detailArg);
3366 object,
3367 uuid(0b976267-4aaa-4f36-a2d4-27b5ca8d73bb),
3368 local
3370 interface nsIEmbeddingSiteWindow : nsISupports
3372 nsresult SetDimensions(uint32_t flags, int32_t x, int32_t y, int32_t cx, int32_t cy);
3373 nsresult GetDimensions(uint32_t flags, int32_t *x, int32_t *y, int32_t *cx, int32_t *cy);
3374 nsresult SetFocus();
3375 nsresult GetVisibility(bool *aVisibility);
3376 nsresult SetVisibility(bool aVisibility);
3377 nsresult GetTitle(PRUnichar **aTitle);
3378 nsresult SetTitle(const PRUnichar *aTitle);
3379 nsresult GetSiteWindow(void **aSiteWindow);
3380 nsresult Blur();
3384 object,
3385 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
3386 local
3388 interface nsIComponentRegistrar : nsISupports
3390 nsresult AutoRegister(nsIFile *aSpec);
3391 nsresult AutoUnregister(nsIFile *aSpec);
3392 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
3393 const char *aContractID, nsIFactory *aFactory);
3394 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
3395 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
3396 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
3397 const char *aType);
3398 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
3399 nsresult IsCIDRegistered(const nsCID *aClass, bool *_retval);
3400 nsresult IsContractIDRegistered(const char *aContractID, bool *_retval);
3401 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
3402 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
3403 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
3404 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
3408 object,
3409 uuid(404ebfa2-d8f4-4c94-8416-e65a55f9df5a),
3410 local
3412 interface nsIPromptService : nsISupports
3414 nsresult Alert(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3415 const PRUnichar *aText);
3416 nsresult AlertCheck(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3417 const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState);
3418 nsresult Confirm(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3419 const PRUnichar *aText, bool *_retval);
3420 nsresult ConfirmCheck(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3421 const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState,
3422 bool *_retval);
3423 nsresult ConfirmEx(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3424 const PRUnichar *aText, uint32_t aButtonFlags, const PRUnichar *aButton0Title,
3425 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
3426 const PRUnichar *aCheckMsg, bool *aCheckState, int32_t *_retval);
3427 nsresult Prompt(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3428 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
3429 bool *aCheckState, bool *_retval);
3430 nsresult PromptUsernameAndPassword(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3431 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
3432 const PRUnichar *aCheckMsg, bool *aCheckState, bool *_retval);
3433 nsresult PromptPassword(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3434 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
3435 bool *aCheckState, bool *_retval);
3436 nsresult Select(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3437 const PRUnichar *aText, uint32_t aCount, const PRUnichar **aSelectList,
3438 int32_t *aOutSelection, bool *_retval);
3442 object,
3443 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
3444 local
3446 interface nsITooltipTextProvider : nsISupports
3448 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, bool *_retval);
3452 object,
3453 uuid(24f963d1-e6fc-43ea-a206-99ac5fcc5265),
3454 local
3456 interface nsIEditingSession : nsISupports
3458 nsresult GetEditorStatus(uint32_t *aEditorStatus);
3459 nsresult MakeWindowEditable(mozIDOMWindowProxy *window, const char *aEditorType,
3460 bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive);
3461 nsresult WindowIsEditable(mozIDOMWindowProxy *window, bool *_retval);
3462 nsresult GetEditorForWindow(mozIDOMWindowProxy *window, nsIEditor **_retval);
3463 nsresult SetupEditorOnWindow(mozIDOMWindowProxy *window);
3464 nsresult TearDownEditorOnWindow(mozIDOMWindowProxy *window);
3465 nsresult SetEditorOnControllers(mozIDOMWindowProxy *aWindow, nsIEditor *aEditor);
3466 nsresult DisableJSAndPlugins(mozIDOMWindowProxy *aWindow);
3467 nsresult RestoreJSAndPlugins(mozIDOMWindowProxy *aWindow);
3468 nsresult DetachFromWindow(mozIDOMWindowProxy *aWindow);
3469 nsresult ReattachToWindow(mozIDOMWindowProxy *aWindow);
3470 nsresult GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled);
3474 object,
3475 uuid(b1fdf3c4-74e3-4f7d-a14d-2b76bcf53482),
3476 local
3478 interface nsICommandParams : nsISupports
3480 nsresult GetValueType(const char *name, int16_t *_retval);
3481 nsresult GetBooleanValue(const char *name, bool *_retval);
3482 nsresult GetLongValue(const char *name, int32_t *_retval);
3483 nsresult GetDoubleValue(const char *name, double *_retval);
3484 nsresult GetStringValue(const char *name, nsAString *_retval);
3485 nsresult GetCStringValue(const char *name, char **_retval);
3486 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
3487 nsresult SetBooleanValue(const char *name, bool value);
3488 nsresult SetLongValue(const char *name, int32_t value);
3489 nsresult SetDoubleValue(const char *name, double value);
3490 nsresult SetStringValue(const char *name, const nsAString *value);
3491 nsresult SetCStringValue(const char *name, const char *value);
3492 nsresult SetISupportsValue(const char *name, nsISupports *value);
3493 nsresult RemoveValue(const char *name);
3497 object,
3498 uuid(bb5a1730-d83b-4fa2-831b-35b9d5842e84),
3499 local
3501 interface nsICommandManager : nsISupports
3503 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
3504 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
3505 nsresult IsCommandSupported(const char *aCommandName, mozIDOMWindowProxy *aTargetWindow, bool *_retval);
3506 nsresult IsCommandEnabled(const char *aCommandName, mozIDOMWindowProxy *aTargetWindow, bool *_retval);
3507 nsresult GetCommandState(const char *aCommandName, mozIDOMWindowProxy *aTargetWindow,
3508 nsICommandParams *aCommandParams);
3509 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
3510 mozIDOMWindowProxy *aTargetWindow);
3514 object,
3515 uuid(3275b2cd-af6d-429a-80d7-f0c5120342ac),
3516 local
3518 interface nsICategoryManager : nsISupports
3520 nsresult GetCategoryEntry(const char *aCategory, const char *aEntry, char **_retval);
3521 nsresult AddCategoryEntry(const char *aCategory, const char *aEntry, const char *aValue, bool aPersist,
3522 bool aReplace, char **_retval);
3523 nsresult DeleteCategoryEntry(const char *aCategory, const char *aEntry, bool aPersist);
3524 nsresult DeleteCategory(const char *aCategory);
3525 nsresult EnumerateCategory(const char *aCategory, nsISimpleEnumerator **_retval);
3526 nsresult EnumerateCategories(nsISimpleEnumerator **_retval);
3530 object,
3531 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
3532 local
3534 interface nsIControllerContext : nsISupports
3536 nsresult Init(nsIControllerCommandTable *aCommandTable);
3537 nsresult SetCommandContext(nsISupports *aCommandContext);
3541 object,
3542 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
3543 local
3545 interface nsIController : nsISupports
3547 nsresult IsCommandEnabled(const char *command, bool *_retval);
3548 nsresult SupportsCommand(const char *command, bool *_retval);
3549 nsresult DoCommand(const char *command);
3550 nsresult OnEvent(const char *eventName);
3554 object,
3555 uuid(8e1bab9d-8815-4d2c-a24d-7aba5239dc22),
3556 local
3558 interface nsIContent : nsISupports
3560 /* This is not a real interface declaration. It's too internal for us. */
3564 object,
3565 uuid(ce1f7627-7109-4977-ba77-490ffde07aaa),
3566 local
3568 interface nsIDocument : nsISupports
3570 /* This is not a real interface declaration. It's too internal for us. */
3574 object,
3575 uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
3576 local
3578 interface nsIContentSerializer : nsISupports
3580 nsresult Init(uint32_t flags, uint32_t aWrapColumn, const char *aCharSet, bool aIsCopying,
3581 bool aIsWholeDocument);
3582 nsresult AppendText(nsIContent *aText, int32_t aStartOffset, int32_t aEndOffset, nsAString *aStr);
3583 nsresult AppendCDATASection(nsIContent *aCDATASection, int32_t aStartOffset,
3584 int32_t aEndOffset, nsAString *aStr);
3585 nsresult AppendProcessingInstruction(nsIContent *aPI, int32_t aStartOffset,
3586 int32_t aEndOffset, nsAString *aStr);
3587 nsresult AppendComment(nsIContent *aComment, int32_t aStartOffset, int32_t aEndOffset,
3588 nsAString *aStr);
3589 nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
3590 nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
3591 nsAString *aStr);
3592 nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
3593 nsresult Flush(nsAString *aStr);
3594 nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
3598 object,
3599 uuid(094be624-f0bf-400f-89e2-6a84baab9474),
3600 local
3602 interface nsIEditor : nsISupports
3604 nsresult GetSelection([out] nsISelection *_retval);
3605 nsresult FinalizeSelection();
3606 nsresult Init([in] nsIDOMDocument *doc, nsIContent *aRoot, nsISelectionController *aSelCon, uint32_t aFlags, nsAString *initialValue);
3607 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] bool aSuppressTransaction);
3608 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] bool aSuppressTransaction);
3609 nsresult PostCreate();
3610 nsresult PreDestroy();
3611 nsresult GetFlags([out] uint32_t *_retval);
3612 nsresult SetFlags([in] uint32_t val);
3613 nsresult GetContentsMIMEType([out] char **_retval);
3614 nsresult SetContentsMIMEType([in] const char *val);
3615 nsresult GetIsDocumentEditable([out] bool *_retval);
3616 nsresult GetIsSelectionEditable(bool *aIsSelectionEditable);
3617 nsresult GetDocument([out] nsIDOMDocument **_retval);
3618 nsresult GetRootElement([out] nsIDOMElement **_retval);
3619 nsresult GetSelectionController([out] nsISelectionController **_retval);
3620 nsresult DeleteSelection(int16_t action, int16_t aStripWrappers);
3621 nsresult GetDocumentIsEmpty([out] bool *_retval);
3622 nsresult GetDocumentModified([out] bool *_retval);
3623 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
3624 nsresult SetDocumentCharacterSet([in] const nsACString *val);
3625 nsresult ResetModificationCount();
3626 nsresult GetModificationCount([out] int32_t *_retval);
3627 nsresult IncrementModificationCount([in] int32_t aModCount);
3628 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
3629 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
3630 nsresult DoTransaction([in] nsITransaction *txn);
3631 nsresult EnableUndo([in] bool enable);
3632 nsresult GetNumberOfUndoItems(int32_t *aNumberOfUndoItems);
3633 nsresult GetNumberOfRedoItems(int32_t *aNumberOfRedoItems);
3634 nsresult Undo([in] uint32_t count);
3635 nsresult CanUndo([out] bool *isEnabled, [out] bool *canUndo);
3636 nsresult Redo([in] uint32_t count);
3637 nsresult CanRedo([out] bool *isEnabled, [out] bool *canRedo);
3638 nsresult BeginTransaction();
3639 nsresult EndTransaction();
3640 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
3641 nsresult EndPlaceHolderTransaction();
3642 nsresult ShouldTxnSetSelection([out] bool *_retval);
3643 nsresult SetShouldTxnSetSelection([in] bool should);
3644 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
3645 nsresult SyncRealTimeSpell();
3646 nsresult SetSpellcheckUserOverride(bool enable);
3647 nsresult Cut();
3648 nsresult CanCut([out] bool *_retval);
3649 nsresult Copy();
3650 nsresult CanCopy([out] bool *_retval);
3651 nsresult CanDelete(bool *_retval);
3652 nsresult Paste([in] int32_t aSelectionType);
3653 nsresult PasteTransferable(nsITransferable *aTransferable);
3654 nsresult CanPaste([in] int32_t aSelectionType, [out] bool *_retval);
3655 nsresult CanPasteTransferable(nsITransferable *aTransferable, bool *_retval);
3656 nsresult SelectAll();
3657 nsresult BeginningOfDocument();
3658 nsresult EndOfDocument();
3659 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
3660 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, bool *_retval);
3661 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
3662 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
3663 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
3664 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] int32_t position, [out] nsIDOMNode **_retval);
3665 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] int32_t aPosition);
3666 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] int32_t offset, [out] nsIDOMNode **newLeftNode);
3667 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
3668 nsresult DeleteNode([in] nsIDOMNode *child);
3669 bool OutputsMozDirty();
3670 nsresult MarkNodeDirty([in] nsIDOMNode *node);
3671 nsresult SwitchTextDirection();
3672 nsresult OutputToString([in] nsAString formatType, [in] uint32_t flags, [out] nsAString *_retval);
3673 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] uint32_t flags);
3674 nsresult AddEditorObserver(nsIEditorObserver *observer);
3675 nsresult RemoveEditorObserver(nsIEditorObserver *observer);
3676 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
3677 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
3678 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
3679 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
3680 nsresult DumpContentTree();
3681 nsresult DebugDumpContent();
3682 nsresult DebugUnitTests([out] int32_t *outNumTests, [out] int32_t *outNumTestsFailed);
3683 bool IsModifiableNode(nsIDOMNode *aNode);
3684 nsresult GetSuppressDispatchingInputEvent(bool *aSuppressDispatchingInputEvent);
3685 nsresult SetSuppressDispatchingInputEvent(bool aSuppressDispatchingInputEvent);
3686 nsresult GetIsInEditAction(bool *aIsInEditAction);
3690 object,
3691 uuid(87ee993e-985f-4a43-a974-0d9512da2fb0),
3692 local
3694 interface nsIHTMLEditor : nsISupports
3696 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3697 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3698 nsresult RemoveAllDefaultProperties();
3699 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3700 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll);
3701 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll, [out] nsAString *_retval);
3702 nsresult RemoveAllInlineProperties();
3703 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
3704 nsresult IncreaseFontSize();
3705 nsresult DecreaseFontSize();
3706 nsresult NodeIsBlock([in] nsIDOMNode *node, bool *_retval);
3707 nsresult InsertHTML([in] nsAString *aInputString);
3708 nsresult PasteNoFormatting([in] int32_t aSelectionType);
3709 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
3710 nsresult InsertHTMLWithContext([in] nsAString *aInputString, [in] nsAString *aContextStr, [in] nsAString *aInfoStr, [in] nsAString *aFlavor, [in] nsIDOMDocument *aSourceDoc, [in] nsIDOMNode *aDestinationNode, [in] int32_t aDestinationOffset, [in] bool aDeleteSelection);
3711 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] bool aDeleteSelection);
3712 nsresult SetDocumentTitle([in] nsAString *aTitle);
3713 nsresult UpdateBaseURL();
3714 nsresult SelectElement([in] nsIDOMElement *aElement);
3715 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
3716 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
3717 nsresult GetParagraphState([out] bool *aMixed, [out] nsAString *_retval);
3718 nsresult GetFontFaceState([out] bool *aMixed, [out] nsAString *_retval);
3719 nsresult GetFontColorState([out] bool *aMixed, [out] nsAString *_retval);
3720 nsresult GetBackgroundColorState([out] bool *aMixed, [out] nsAString *_retval);
3721 nsresult GetHighlightColorState([out] bool *aMixed, [out] nsAString *_retval);
3722 nsresult GetListState([out] bool *aMixed, [out] bool *aOL, [out] bool *aUL, [out] bool *aDL);
3723 nsresult GetListItemState([out] bool *aMixed, [out] bool *aLI, [out] bool *aDT, [out] bool *aDD);
3724 nsresult GetAlignment([out] bool *aMixed, [out] int16_t *aAlign);
3725 nsresult GetIndentState([out] bool *aCanIndent, [out] bool *aCanOutdent);
3726 nsresult MakeOrChangeList([in] nsAString *aListType, [in] bool entireList, [in] nsAString *aBulletType);
3727 nsresult RemoveList([in] nsAString *aListType);
3728 nsresult Indent([in] nsAString *aIndent);
3729 nsresult Align([in] nsAString *aAlign);
3730 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
3731 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
3732 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
3733 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
3734 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
3735 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
3736 nsresult SetBackgroundColor([in] nsAString *aColor);
3737 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
3738 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
3739 nsresult GetIsCSSEnabled([out] bool *_retval);
3740 nsresult SetIsCSSEnabled([in] bool prb);
3741 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
3742 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
3743 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] bool aIsCreatedHidden, [out] nsIDOMElement **_retval);
3744 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
3745 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
3746 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] bool *_retval);
3747 nsresult GetReturnInParagraphCreatesNewParagraph([out] bool *_retval);
3748 nsresult SetReturnInParagraphCreatesNewParagraph([in] bool prb);
3749 void /*Element*/ *GetActiveEditingHost();
3753 object,
3754 uuid(b8100c90-73be-11d2-92a5-00105a1b0d64),
3755 local
3757 interface nsIClipboardCommands : nsISupports
3759 nsresult CanCutSelection(bool *_retval);
3760 nsresult CanCopySelection(bool *_retval);
3761 nsresult CanCopyLinkLocation(bool *_retval);
3762 nsresult CanCopyImageLocation(bool *_retval);
3763 nsresult CanCopyImageContents(bool *_retval);
3764 nsresult CanPaste(bool *_retval);
3765 nsresult CutSelection();
3766 nsresult CopySelection();
3767 nsresult CopyLinkLocation();
3768 nsresult CopyImageLocation();
3769 nsresult CopyImageContents();
3770 nsresult Paste();
3771 nsresult SelectAll();
3772 nsresult SelectNone();
3776 object,
3777 uuid(9b7c586f-9214-480c-a2c4-49b526fff1a6),
3778 local
3780 interface nsIDocShellTreeItem : nsISupports
3782 nsresult GetName(nsAString *aName);
3783 nsresult SetName(const nsAString *aName);
3784 nsresult NameEquals(const PRUnichar *name, bool *_retval);
3785 nsresult GetItemType(int32_t *aItemType);
3786 nsresult SetItemType(int32_t aItemType);
3787 int32_t ItemType();
3788 nsresult GetParent(nsIDocShellTreeItem **aParent);
3789 nsresult GetSameTypeParent(nsIDocShellTreeItem **aSameTypeParent);
3790 nsresult GetRootTreeItem(nsIDocShellTreeItem **aRootTreeItem);
3791 nsresult GetSameTypeRootTreeItem(nsIDocShellTreeItem **aSameTypeRootTreeItem);
3792 nsresult FindItemWithName(const PRUnichar *name, nsISupports *aRequestor, nsIDocShellTreeItem *aOriginalRequestor,
3793 nsIDocShellTreeItem **_retval);
3794 nsresult GetTreeOwner(nsIDocShellTreeOwner **aTreeOwner);
3795 nsresult SetTreeOwner(nsIDocShellTreeOwner *treeOwner);
3796 nsresult GetChildCount(int32_t *aChildCount);
3797 nsresult AddChild(nsIDocShellTreeItem *child);
3798 nsresult RemoveChild(nsIDocShellTreeItem *child);
3799 nsresult GetChildAt(int32_t index, nsIDocShellTreeItem **_retval);
3800 nsresult FindChildWithName(const PRUnichar *aName, bool aRecurse, bool aSameType, nsIDocShellTreeItem *aRequestor,
3801 nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem **_retval);
3802 nsIDocument /* thiscall */ *GetDocument();
3803 void /* thiscall nsPIDOMWindowOuter */ *GetWindow();
3807 object,
3808 uuid(2da17016-7851-4a45-a7a8-00b360e01595),
3809 local
3811 interface nsIContentViewer : nsISupports
3813 nsresult Init(nsIWidget *aParentWidget, const void /*nsIntRect*/ *aBounds);
3814 nsresult GetContainer(nsIDocShell **aContainer);
3815 nsresult SetContainer(nsIDocShell *aContainer);
3816 void /* thiscall */ LoadStart(nsIDocument *aDoc);
3817 nsresult LoadComplete(nsresult aStatus);
3818 nsresult PermitUnload(bool *_retval);
3819 nsresult GetInPermitUnload(bool *aInPermitUnload);
3820 nsresult /* thiscall */ PermitUnloadInternal(bool *aShouldPrompt, bool *_retval);
3821 nsresult GetBeforeUnloadFiring(bool *aBeforeUnloadFiring);
3822 nsresult PageHide(bool isUnload);
3823 nsresult Close(nsISHEntry *historyEntry);
3824 nsresult Destroy();
3825 nsresult Stop();
3826 nsresult GetDOMDocument(nsIDOMDocument **aDOMDocument);
3827 nsresult SetDOMDocument(nsIDOMDocument *aDOMDocument);
3828 void /* thiscall nsresult_(nsIDocument *) */ GetDocument();
3829 nsresult GetBounds(void /*nsIntRect*/ *aBounds);
3830 nsresult SetBounds(const void /*nsIntRect*/ *aBounds);
3831 nsresult GetPreviousViewer(nsIContentViewer **aPreviousViewer);
3832 nsresult SetPreviousViewer(nsIContentViewer *aPreviousViewer);
3833 nsresult Move(int32_t aX, int32_t aY);
3834 nsresult Show();
3835 nsresult Hide();
3836 nsresult GetSticky(bool *aSticky);
3837 nsresult SetSticky(bool aSticky);
3838 nsresult RequestWindowClose(bool *_retval);
3839 nsresult Open(nsISupports *aState, nsISHEntry *aSHEntry);
3840 nsresult ClearHistoryEntry();
3841 nsresult SetPageMode(bool aPageMode, nsIPrintSettings *aPrintSettings);
3842 nsresult GetHistoryEntry(nsISHEntry **aHistoryEntry);
3843 nsresult GetIsTabModalPromptAllowed(bool *aIsTabModalPromptAllowed);
3844 nsresult GetIsHidden(bool *aIsHidden);
3845 nsresult SetIsHidden(bool aIsHidden);
3846 nsresult GetPresShell(nsIPresShell **aPresShell);
3847 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
3848 nsresult SetDocumentInternal(nsIDocument *aDocument, bool aForceReuseInnerWindow);
3849 void /* thiscall nsView */ *FindContainerView(void);
3850 void /* thiscall */ SetNavigationTiming(void /*nsDOMNavigationTiming*/ *aTiming);
3851 nsresult ScrollToNode(nsIDOMNode *node);
3852 nsresult GetTextZoom(float *aTextZoom);
3853 nsresult SetTextZoom(float aTextZoom);
3854 nsresult GetFullZoom(float *aFullZoom);
3855 nsresult SetFullZoom(float aFullZoom);
3856 nsresult GetAuthorStyleDisabled(bool *aAuthorStyleDisabled);
3857 nsresult SetAuthorStyleDisabled(bool aAuthorStyleDisabled);
3858 nsresult GetForceCharacterSet(nsACString *aForceCharacterSet);
3859 nsresult SetForceCharacterSet(const nsACString *aForceCharacterSet);
3860 nsresult GetHintCharacterSet(nsACString *aHintCharacterSet);
3861 nsresult SetHintCharacterSet(const nsACString *aHintCharacterSet);
3862 nsresult GetHintCharacterSetSource(int32_t *aHintCharacterSetSource);
3863 nsresult SetHintCharacterSetSource(int32_t aHintCharacterSetSource);
3864 nsresult GetContentSize(int32_t *width, int32_t *height);
3865 nsresult GetMinFontSize(int32_t *aMinFontSize);
3866 nsresult SetMinFontSize(int32_t aMinFontSize);
3867 nsresult AppendSubtree(void /*nsTArray<nsCOMPtr<nsIContentViewer> >*/ *array);
3868 nsresult PausePainting();
3869 nsresult ResumePainting();
3870 nsresult EmulateMedium(const nsAString *aMediaType);
3871 nsresult StopEmulatingMedium();
3875 object,
3876 uuid(e7570e5a-f1d6-452d-b4f8-b35fdc63aa03),
3877 local
3879 interface nsIDocShellLoadInfo : nsISupports
3881 typedef uint32_t nsDocShellInfoReferrerPolicy;
3883 typedef enum {
3884 loadNormal = 0,
3885 loadNormalReplace = 1,
3886 loadHistory = 2,
3887 loadReloadNormal = 3,
3888 loadReloadBypassCache = 4,
3889 loadReloadBypassProxy = 5,
3890 loadReloadBypassProxyAndCache = 6,
3891 loadLink = 7,
3892 loadRefresh = 8,
3893 loadReloadCharsetChange = 9,
3894 loadBypassHistory = 10,
3895 loadStopContent = 11,
3896 loadStopContentAndReplace = 12,
3897 loadNormalExternal = 13,
3898 loadNormalBypassCache = 14,
3899 loadNormalBypassProxy = 15,
3900 loadNormalBypassProxyAndCache = 16,
3901 loadPushState = 17,
3902 loadReplaceBypassCache = 18,
3903 loadReloadMixedContent = 19,
3904 loadNormalAllowMixedContent = 20
3905 } nsDocShellInfoLoadType;
3907 nsresult GetReferrer(nsIURI **aReferrer);
3908 nsresult SetReferrer(nsIURI *aReferrer);
3909 nsresult GetOriginalURI(nsIURI **aOriginalURI);
3910 nsresult SetOriginalURI(nsIURI *aOriginalURI);
3911 nsresult GetLoadReplace(bool *aLoadReplace);
3912 nsresult SetLoadReplace(bool aLoadReplace);
3913 nsresult GetOwner(nsISupports **aOwner);
3914 nsresult SetOwner(nsISupports *aOwner);
3915 nsresult GetInheritOwner(bool *aInheritOwner);
3916 nsresult SetInheritOwner(bool aInheritOwner);
3917 nsresult GetOwnerIsExplicit(bool *aOwnerIsExplicit);
3918 nsresult SetOwnerIsExplicit(bool aOwnerIsExplicit);
3919 nsresult GetLoadType(nsDocShellInfoLoadType *aLoadType);
3920 nsresult SetLoadType(nsDocShellInfoLoadType aLoadType);
3921 nsresult GetSHEntry(nsISHEntry **aSHEntry);
3922 nsresult SetSHEntry(nsISHEntry *aSHEntry);
3923 nsresult GetTarget(char16_t **aTarget);
3924 nsresult SetTarget(const char16_t * aTarget);
3925 nsresult GetPostDataStream(nsIInputStream **aPostDataStream);
3926 nsresult SetPostDataStream(nsIInputStream *aPostDataStream);
3927 nsresult GetHeadersStream(nsIInputStream * *aHeadersStream);
3928 nsresult SetHeadersStream(nsIInputStream *aHeadersStream);
3929 nsresult GetSendReferrer(bool *aSendReferrer);
3930 nsresult SetSendReferrer(bool aSendReferrer);
3931 nsresult GetReferrerPolicy(nsDocShellInfoReferrerPolicy *aReferrerPolicy);
3932 nsresult SetReferrerPolicy(nsDocShellInfoReferrerPolicy aReferrerPolicy);
3933 nsresult GetIsSrcdocLoad(bool *aIsSrcdocLoad);
3934 nsresult GetSrcdocData(nsAString *aSrcdocData);
3935 nsresult SetSrcdocData(const nsAString *aSrcdocData);
3936 nsresult GetSourceDocShell(nsIDocShell * *aSourceDocShell);
3937 nsresult SetSourceDocShell(nsIDocShell *aSourceDocShell);
3938 nsresult GetBaseURI(nsIURI **aBaseURI);
3939 nsresult SetBaseURI(nsIURI *aBaseURI);
3943 object,
3944 uuid(049234fe-da10-478b-bc5d-bc6f9a1ba63d),
3945 local
3947 interface nsIDocShell : nsIDocShellTreeItem
3949 const UINT LOAD_CMD_NORMAL = 1;
3950 const UINT LOAD_CMD_RELOAD = 2;
3951 const UINT LOAD_CMD_HISTORY = 4;
3952 const UINT LOAD_CMD_PUSHSTATE = 8;
3954 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, uint32_t aLoadFlags, bool firstParty);
3955 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
3956 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
3957 nsresult InternalLoad(nsIURI *aURI, nsIURI *aOriginalURI, bool aLoadReplace, nsIURI *aReferrer,
3958 uint32_t aReferrerPolicy, nsISupports *aOwner, uint32_t aFlags, const PRUnichar *aWindowTarget,
3959 const char *aTypeHint, nsACString *aFileName, nsIInputStream *aPostDataStream,
3960 nsIInputStream *aHeadersStream, uint32_t aLoadFlags, nsISHEntry *aSHEntry, bool firstParty,
3961 const nsAString *aSrcdoc, nsIDocShell *aSourceDocShell, nsIURI *aBaseURI, nsIDocShell **aDocShell,
3962 nsIRequest **aRequest);
3963 nsresult AddState(jsval *aData, const nsAString *aTitle, const nsAString *aURL, bool aReplace, JSContext *cx);
3964 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
3965 nsresult PrepareForNewContentModel();
3966 nsresult SetCurrentURI(nsIURI *aURI);
3967 nsresult FirePageHideNotification(bool isUnload);
3968 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
3969 nsIPresShell *GetPresShell();
3970 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
3971 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
3972 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
3973 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
3974 nsresult GetCustomUserAgent(nsAString *aCustomUserAgent);
3975 nsresult SetCustomUserAgent(const nsAString *aCustomUserAgent);
3976 nsresult GetAllowPlugins(bool *aAllowPlugins);
3977 nsresult SetAllowPlugins(bool aAllowPlugins);
3978 nsresult GetAllowJavascript(bool *aAllowJavascript);
3979 nsresult SetAllowJavascript(bool aAllowJavascript);
3980 nsresult GetDisableNoScript(bool *aDisableNoScript);
3981 nsresult SetDisableNoScript(bool aDisableNoScript);
3982 nsresult GetAllowMetaRedirects(bool *aAllowMetaRedirects);
3983 nsresult SetAllowMetaRedirects(bool aAllowMetaRedirects);
3984 nsresult GetAllowSubframes(bool *aAllowSubframes);
3985 nsresult SetAllowSubframes(bool aAllowSubframes);
3986 nsresult GetAllowImages(bool *aAllowImages);
3987 nsresult SetAllowImages(bool aAllowImages);
3988 nsresult GetAllowMedia(bool *aAllowMedia);
3989 nsresult SetAllowMedia(bool aAllowMedia);
3990 nsresult GetAllowDNSPrefetch(bool *aAllowDNSPrefetch);
3991 nsresult SetAllowDNSPrefetch(bool aAllowDNSPrefetch);
3992 nsresult GetAllowWindowControl(bool *aAllowWindowControl);
3993 nsresult SetAllowWindowControl(bool aAllowWindowControl);
3994 nsresult GetAllowContentRetargeting(bool *aAllowContentRetargeting);
3995 nsresult SetAllowContentRetargeting(bool aAllowContentRetargeting);
3996 nsresult GetAllowContentRetargetingOnChildren(bool *aAllowContentRetargetingOnChildren);
3997 nsresult SetAllowContentRetargetingOnChildren(bool aAllowContentRetargetingOnChildren);
3998 nsresult GetDocShellEnumerator(int32_t aItemType, int32_t aDirection, nsISimpleEnumerator **_retval);
3999 nsresult GetAppType(uint32_t *aAppType);
4000 nsresult SetAppType(uint32_t aAppType);
4001 nsresult GetAllowAuth(bool *aAllowAuth);
4002 nsresult SetAllowAuth(bool aAllowAuth);
4003 nsresult GetZoom(float *aZoom);
4004 nsresult SetZoom(float aZoom);
4005 nsresult GetMarginWidth(int32_t *aMarginWidth);
4006 nsresult SetMarginWidth(int32_t aMarginWidth);
4007 nsresult GetMarginHeight(int32_t *aMarginHeight);
4008 nsresult SetMarginHeight(int32_t aMarginHeight);
4009 nsresult TabToTreeOwner(bool forward, bool forDocumentNavigation, bool *_retval);
4010 nsresult GetBusyFlags(uint32_t *aBusyFlags);
4011 nsresult GetLoadType(uint32_t *aLoadType);
4012 nsresult SetLoadType(uint32_t aLoadType);
4013 nsresult GetDefaultLoadFlags(nsLoadFlags *aDefaultLoadFlags);
4014 nsresult SetDefaultLoadFlags(nsLoadFlags aDefaultLoadFlags);
4015 nsresult IsBeingDestroyed(bool *_retval);
4016 nsresult GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler);
4017 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
4018 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
4019 nsresult GetShouldSaveLayoutState(bool *aShouldSaveLayoutState);
4020 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
4021 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
4022 nsresult SuspendRefreshURIs();
4023 nsresult ResumeRefreshURIs();
4024 nsresult BeginRestore(nsIContentViewer *viewer, bool top);
4025 nsresult FinishRestore();
4026 nsresult GetRestoringDocument(bool *aRestoringDocument);
4027 nsresult GetUseErrorPages(bool *aUseErrorPages);
4028 nsresult SetUseErrorPages(bool aUseErrorPages);
4029 nsresult DisplayLoadError(nsresult aError, nsIURI *aURI, const char16_t *aURL, nsIChannel *aFailedChannel, bool *_retval);
4030 nsresult GetFailedChannel(nsIChannel **aFailedChannel);
4031 nsresult GetPreviousTransIndex(int32_t *aPreviousTransIndex);
4032 nsresult GetLoadedTransIndex(int32_t *aLoadedTransIndex);
4033 nsresult HistoryPurged(int32_t numEntries);
4034 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
4035 bool create, nsIDOMStorage **_retval);
4036 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
4037 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
4038 nsresult SetChildOffset(uint32_t offset);
4039 nsresult GetIsInUnload(bool *aIsInUnload);
4040 nsresult GetChannelIsUnsafe(bool *aChannelIsUnsafe);
4041 nsresult GetHasMixedActiveContentLoaded(bool *aHasMixedActiveContentLoaded);
4042 nsresult GetHasMixedActiveContentBlocked(bool *aHasMixedActiveContentBlocked);
4043 nsresult GetHasMixedDisplayContentLoaded(bool *aHasMixedDisplayContentLoaded);
4044 nsresult GetHasMixedDisplayContentBlocked(bool *aHasMixedDisplayContentBlocked);
4045 nsresult GetHasTrackingContentBlocked(bool *aHasTrackingContentBlocked);
4046 nsresult GetHasTrackingContentLoaded(bool *aHasTrackingContentLoaded);
4047 void DetachEditorFromWindow();
4048 nsresult GetIsOffScreenBrowser(bool *aIsOffScreenBrowser);
4049 nsresult SetIsOffScreenBrowser(bool aIsOffScreenBrowser);
4050 nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
4051 nsresult GetCanExecuteScripts(bool *aCanExecuteScripts);
4052 nsresult GetIsActive(bool *aIsActive);
4053 nsresult SetIsActive(bool aIsActive);
4054 nsresult SetIsActiveAndForeground(bool aIsActive);
4055 nsresult SetIsPrerendered(bool prerendered);
4056 nsresult GetIsPrerendered(bool *aIsPrerendered);
4057 nsresult GetHistoryID(uint64_t *aHistoryID);
4058 nsresult GetIsAppTab(bool *aIsAppTab);
4059 nsresult SetIsAppTab(bool aIsAppTab);
4060 nsresult CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal);
4061 nsresult GetCharset(nsACString *aCharset);
4062 nsresult SetCharset(nsACString *aCharset);
4063 nsresult GatherCharsetMenuTelemetry();
4064 nsresult GetForcedCharset(nsIAtom **aForcedCharset);
4065 nsresult SetForcedCharset(nsIAtom *aForcedCharset);
4066 void /* thiscall */ SetParentCharset(const nsACString *parentCharset, int32_t parentCharsetSource, nsIPrincipal *parentCharsetPrincipal);
4067 void /* thiscall */ GetParentCharset(nsACString *parentCharset, int32_t *parentCharsetSource, nsIPrincipal **parentCharsetPrincipal);
4068 nsresult GetRecordProfileTimelineMarkers(bool *aRecordProfileTimelineMarkers);
4069 nsresult SetRecordProfileTimelineMarkers(bool aRecordProfileTimelineMarkers);
4070 nsresult Now(int /* DOMHighResTimeStamp */ *_retval);
4071 nsresult PopProfileTimelineMarkers(JSContext *cx, void /*JS::MutableHandleValue*/ *_retval);
4072 nsresult AddWeakPrivacyTransitionObserver(nsIPrivacyTransitionObserver *obs);
4073 nsresult AddWeakReflowObserver(nsISupports /*nsIReflowObserver*/ *obs);
4074 nsresult RemoveWeakReflowObserver(nsISupports /*nsIReflowObserver*/ *obs);
4075 nsresult NotifyReflowObservers(bool interruptible, int /*DOMHighResTimeStamp*/ start, int /*DOMHighResTimeStamp*/ end);
4076 nsresult AddWeakScrollObserver(void /*nsIScrollObserver*/ *obs);
4077 nsresult RemoveWeakScrollObserver(void /*nsIScrollObserver*/ *obs);
4078 nsresult NotifyScrollObservers();
4079 nsresult GetIsApp(bool *aIsApp);
4080 nsresult GetFrameType(uint32_t *aFrameType);
4081 nsresult SetFrameType(uint32_t aFrameType);
4082 nsresult GetIsMozBrowserOrApp(bool *aIsMozBrowserOrApp);
4083 nsresult GetIsIsolatedMozBrowserElement(bool *aIsIsolatedMozBrowserElement);
4084 nsresult GetIsInIsolatedMozBrowserElement(bool *aIsInIsolatedMozBrowserElement);
4085 nsresult SetIsInIsolatedMozBrowserElement(bool aIsInIsolatedMozBrowserElement);
4086 nsresult GetIsInMozBrowserOrApp(bool *aIsInMozBrowserOrApp);
4087 nsresult GetAppId(uint32_t *aAppId);
4088 nsresult GetAppManifestURL(nsAString *aAppManifestURL);
4089 nsresult GetSameTypeParentIgnoreBrowserAndAppBoundaries(nsIDocShell **_retval);
4090 nsresult GetSameTypeRootTreeItemIgnoreBrowserAndAppBoundaries(nsIDocShell **_retval);
4091 nsresult GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled);
4092 nsresult GetSandboxFlags(uint32_t *aSandboxFlags);
4093 nsresult SetSandboxFlags(uint32_t aSandboxFlags);
4094 nsresult GetOnePermittedSandboxedNavigator(nsIDocShell **aOnePermittedSandboxedNavigator);
4095 nsresult SetOnePermittedSandboxedNavigator(nsIDocShell *aOnePermittedSandboxedNavigator);
4096 bool /* thiscall */ IsSandboxedFrom(nsIDocShell *aTargetDocShell);
4097 nsresult GetMixedContentChannel(nsIChannel **aMixedContentChannel);
4098 nsresult SetMixedContentChannel(nsIChannel *aMixedContentChannel);
4099 nsresult GetAllowMixedContentAndConnectionData(bool *rootHasSecureConnection, bool *allowMixedContent, bool *isRootDocShell);
4100 bool PluginsAllowedInCurrentDoc();
4101 nsresult GetFullscreenAllowed(bool *aFullscreenAllowed);
4102 nsresult SetFullscreenAllowed(bool allowed);
4103 uint32_t OrientationLock();
4104 void SetOrientationLock(uint32_t orientationLock);
4105 nsresult GetAffectPrivateSessionLifetime(bool *aAffectPrivateSessionLifetime);
4106 nsresult SetAffectPrivateSessionLifetime(bool aAffectPrivateSessionLifetime);
4107 nsresult GetMayEnableCharacterEncodingMenu(bool *aMayEnableCharacterEncodingMenu);
4108 nsresult GetEditor(nsIEditor **aEditor);
4109 nsresult SetEditor(nsIEditor *aEditor);
4110 nsresult GetEditable(bool *aEditable);
4111 nsresult GetHasEditingSession(bool *aHasEditingSession);
4112 nsresult MakeEditable(bool inWaitForUriLoad);
4113 nsresult GetChildSHEntry(int32_t aChildOffset, nsISHEntry **_retval);
4114 nsresult AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, int32_t aChildOffset, uint32_t aLoadType, bool aCloneChildren);
4115 nsresult GetUseGlobalHistory(bool *aUseGlobalHistory);
4116 nsresult SetUseGlobalHistory(bool aUseGlobalHistory);
4117 nsresult RemoveFromSessionHistory();
4118 nsresult GetCreatedDynamically(bool *aCreatedDynamically);
4119 nsresult SetCreatedDynamically(bool aCreatedDynamically);
4120 nsresult GetCurrentSHEntry(nsISHEntry **aEntry, bool *_retval);
4121 nsresult IsCommandEnabled(const char *command, bool *_retval);
4122 nsresult DoCommand(const char *command);
4123 bool IsInvisible();
4124 void SetInvisible(bool aIsInvisibleDochsell);
4125 void /* nsIScriptGlobalObject thiscall */ *GetScriptGlobalObject();
4126 nsresult GetDeviceSizeIsPageSize(bool *aDeviceSizeIsPageSize);
4127 nsresult SetDeviceSizeIsPageSize(bool aDeviceSizeIsPageSize);
4128 void /* thiscall */ SetOpener(void /*nsITabParent*/ *aOpener);
4129 void /* thiscall nsITabParent */ *GetOpener();
4130 void /* thiscall */ NotifyJSRunToCompletionStart(const char *aReason, const char16_t *functionName,
4131 const char16_t *fileName, uint32_t lineNumber);
4132 void /* thiscall */ NotifyJSRunToCompletionStop();
4133 nsresult GetHasLoadedNonBlankURI(bool *aHasLoadedNonBlankURI);
4134 nsresult GetPaymentRequestId(nsAString *aPaymentRequestId);
4135 nsresult SetPaymentRequestId(const nsAString *aPaymentRequestId);
4136 nsresult GetWindowDraggingAllowed(bool *aWindowDraggingAllowed);
4137 nsresult SetWindowDraggingAllowed(bool aWindowDraggingAllowed);
4138 nsresult GetCurrentScrollRestorationIsManual(bool *aCurrentScrollRestorationIsManual);
4139 nsresult SetCurrentScrollRestorationIsManual(bool aCurrentScrollRestorationIsManual);
4140 nsresult GetOriginAttributes(JSContext* cx, void* /* JS::MutableHandleValue */ _retval);
4141 nsresult SetOriginAttributes(int /* JS::HandleValue */ aAttrs, JSContext *cx);
4145 object,
4146 uuid(6d674c17-0fbc-4633-8f46-734e87ebf0c7),
4147 local
4149 interface nsIMutationObserver : nsISupports
4151 typedef struct {} nsAttrValue;
4153 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
4154 void /*CharacterDataChangeInfo*/ *aInfo);
4155 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
4156 void /*CharacterDataChangeInfo*/ *aInfo);
4157 void AttributeWillChange(nsIDocument *aDocument, /*mozilla::dom::Element*/ void *aElement, int32_t aNameSpaceID,
4158 nsIAtom *aAttribute, int32_t aModType, const nsAttrValue *aNewValue);
4159 void AttributeChanged(nsIDocument *aDocument, /*mozilla::dom::Element*/ void *aElement, int32_t aNameSpaceID,
4160 nsIAtom *aAttribute, int32_t aModType, const nsAttrValue *aOldValue);
4161 void NativeAnonymousChildListChange(nsIDocument *aDocument, nsIContent *aContent, bool aIsRemove);
4162 void AttributeSetToCurrentValue(nsIDocument *aDocument, /*mozilla::dom::Element*/ void *aElement,
4163 int32_t aNameSpaceID, nsIAtom *aAttribute);
4164 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aFirstNewContent,
4165 int32_t aNewIndexInContainer);
4166 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
4167 int32_t aIndexInContainer);
4168 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
4169 int32_t aIndexInContainer, nsIContent *aPreviousSibling);
4170 void NodeWillBeDestroyed(const nsINode *aNode);
4171 void ParentChainChanged(nsIContent *aContent);
4175 object,
4176 uuid(2c4ad90a-740e-4212-ba3f-feacda4b929e),
4177 local
4179 interface nsIParser : nsISupports
4181 typedef int nsDTDMode;
4182 typedef int eParserCommands;
4184 /* From nsParserBase: */
4185 bool IsParserEnabled();
4186 nsresult GetChannel(nsIChannel **aChannel);
4188 void SetContentSink(nsIContentSink *aSink);
4189 nsIContentSink *GetContentSink();
4190 void GetCommand(nsACString *aCommand);
4191 void SetCommand2(const char *aCommand);
4192 void SetCommand(eParserCommands aParserCommand);
4193 void SetDocumentCharset(const nsACString *aCharset, int32_t aSource);
4194 void GetDocumentCharset(nsACString *oCharset, int32_t *oSource);
4195 /* nsresult GetChannel(nsIChannel **aChannel); in nsParserBase */
4196 nsresult GetDTD(nsIDTD **aDTD);
4197 nsIStreamListener *GetStreamListener();
4198 nsresult ContinueInterruptedParsing();
4199 void BlockParser();
4200 void UnblockParser();
4201 void ContinueInterruptedParsingAsync();
4202 /* bool IsParserEnabled(); in nsParserBase */
4203 bool IsComplete();
4204 nsresult Parse(nsIURI *aURL, nsIRequestObserver *aListener, void *aKey, nsDTDMode aMode);
4205 nsresult Terminate();
4206 nsresult ParseFragment(const nsAString *aSourceBuffer, void /*nsTArray<nsString>*/ *aTagStack);
4207 nsresult BuildModel();
4208 nsresult CancelParsingEvents();
4209 void Reset();
4210 bool IsInsertionPointDefined();
4211 void BeginEvaluatingParserInsertedScript();
4212 void EndEvaluatingParserInsertedScript();
4213 void MarkAsNotScriptCreated(const char *aCommand);
4214 bool IsScriptCreated();
4218 object,
4219 uuid(71041fa3-6dd7-4cde-bb76-aecc69e17578),
4220 local
4222 interface nsIDocumentObserver : nsIMutationObserver
4224 typedef uint32_t nsUpdateType;
4226 typedef struct {
4227 void *dummy;
4228 } mozilla_StyleSheetHandle;
4230 typedef struct {
4231 uint64_t mStates;
4232 } EventStates;
4234 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
4235 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
4236 void BeginLoad(nsIDocument *aDocument);
4237 void EndLoad(nsIDocument *aDocument);
4238 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent, EventStates aStateMask);
4239 void DocumentStatesChanged(nsIDocument *aDocument, EventStates aStateMask);
4240 void StyleSheetAdded(mozilla_StyleSheetHandle aStyleSheet, bool aDocumentSheet);
4241 void StyleSheetRemoved(mozilla_StyleSheetHandle aStyleSheet, bool aDocumentSheet);
4242 void StyleSheetApplicableStateChanged(mozilla_StyleSheetHandle aStyleSheet);
4243 void StyleRuleChanged(mozilla_StyleSheetHandle aStyleSheet);
4244 void StyleRuleAdded(mozilla_StyleSheetHandle aStyleSheet);
4245 void StyleRuleRemoved(mozilla_StyleSheetHandle aStyleSheet);
4246 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
4247 void AttemptToExecuteScript(nsIContent *aContent, nsIParser *aParser, bool *aBlock);
4251 object,
4252 uuid(3682dd99-8560-44f4-9b8f-ccce9d7b96fb),
4253 local
4255 interface nsIContentUtils : nsISupports
4257 bool IsSafeToRunScript();
4258 nsresult AddDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
4259 nsresult RemoveDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
4260 nsresult AddMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
4261 nsresult RemoveMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
4262 nsresult AddScriptRunner(nsIRunnable *aRunnable);
4263 JSContext *GetContextFromDocument(nsIDocument *aDocument);
4267 object,
4268 uuid(15c05894-408e-4798-b527-a8c32d9c5f8c),
4269 local
4271 interface nsIAudioChannelAgentCallback : nsISupports
4273 nsresult WindowVolumeChanged(float aVolume, bool aMuted);
4274 nsresult WindowAudioCaptureChanged(bool aCapture);
4278 object,
4279 uuid(8f672000-bab9-4c60-aaaf-2673c4e2a4c6),
4280 local
4282 interface nsIPluginInstance : nsIAudioChannelAgentCallback
4284 nsresult GetDOMElement(nsIDOMElement **aDOMElement);
4288 object,
4289 uuid(11afa8be-d997-4e07-a6a3-6f872ec3ee7f),
4290 local
4292 interface nsIGlobalObject : nsISupports
4297 object,
4298 uuid(3eedba38-8d22-41e1-817a-0e43e165b664),
4299 local
4301 interface nsIScriptObjectPrincipal : nsISupports
4303 nsIPrincipal* /* thiscall */ GetPrincipal();
4307 object,
4308 uuid(6f54214c-7175-498d-9d2d-0429e38c2869),
4309 local
4311 interface nsIXMLHttpRequest : nsISupports
4313 nsresult GetChannel(nsIChannel **aChannel);
4314 nsresult GetResponseXML(nsIDOMDocument **aResponseXML);
4315 nsresult GetResponseText(nsAString *aResponseText);
4316 nsresult GetResponseType(nsAString *aResponseType);
4317 nsresult SetResponseType(const nsAString *aResponseType);
4318 nsresult GetResponse(JSContext*cx, int /*JS::MutableHandleValue*/ aResponse);
4319 nsresult GetStatus(uint32_t *aStatus);
4320 nsresult GetStatusText(nsACString *aStatusText);
4321 nsresult SlowAbort();
4322 nsresult GetAllResponseHeaders(nsACString *_retval);
4323 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
4324 nsresult Open(const nsACString *method, const nsACString *url, bool async, const nsAString *user, const nsAString *password, uint8_t _argc);
4325 nsresult Send(nsIVariant *body);
4326 nsresult SetRequestHeader(const nsACString *header, const nsACString *value);
4327 nsresult GetTimeout(uint32_t *aTimeout);
4328 nsresult SetTimeout(uint32_t aTimeout);
4329 nsresult GetReadyState(uint16_t *aReadyState);
4330 nsresult SlowOverrideMimeType(const nsAString *mimetype);
4331 nsresult GetMozBackgroundRequest(bool *aMozBackgroundRequest);
4332 nsresult SetMozBackgroundRequest(bool aMozBackgroundRequest);
4333 nsresult GetWithCredentials(bool *aWithCredentials);
4334 nsresult SetWithCredentials(bool aWithCredentials);
4335 nsresult Init(nsIPrincipal *principal, nsIScriptContext *scriptContext, nsIGlobalObject *globalObject, nsIURI *baseURI, nsILoadGroup *loadGroup);
4336 nsresult GetUpload(nsIXMLHttpRequestUpload **aUpload);
4337 nsresult GetOnreadystatechange(JSContext*cx, int /*JS::MutableHandleValue*/ aOnreadystatechange);
4338 nsresult SetOnreadystatechange(JSContext*cx, int /*JS::HandleValue*/ aOnreadystatechange);
4339 nsresult GetMozAnon(bool *aMozAnon);
4340 nsresult GetMozSystem(bool *aMozSystem);
4341 nsresult GetResponseBuffer(void *buffer, uint32_t buffer_size, uint32_t *_retval);
4344 cpp_quote("DEFINE_GUID(IID_nsCycleCollectionISupports, 0xc61eac14,0x5f7a,0x4481,0x96,0x5e,0x7e,0xaa,0x6e,0xff,0xa8,0x5f);")