ntdll: Allow NtQueryVolumeInformationFile to make async volume information queries.
[wine/zf.git] / dlls / mshtml / nsiface.idl
bloba621007b0ccc1dc46357d4bbc706981ecc4d1ef0
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.2\"")
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 nsresult GetName(nsACString *aName);
500 nsresult IsPending(bool *_retval);
501 nsresult GetStatus(nsresult *aStatus);
502 nsresult Cancel(nsresult aStatus);
503 nsresult Suspend();
504 nsresult Resume();
505 nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
506 nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
507 nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
508 nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
512 object,
513 uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40),
514 local
516 interface nsIRequestObserver : nsISupports
518 nsresult OnStartRequest(nsIRequest *aRequest, nsISupports *aContext);
519 nsresult OnStopRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatusCode);
523 object,
524 uuid(3b4c8a77-76ba-4610-b316-678c73a3b88c),
525 local
527 interface nsIStreamListener : nsIRequestObserver
529 nsresult OnDataAvailable(nsIRequest *aRequest, nsISupports *aContext,
530 nsIInputStream *aInputStream, uint64_t aOffset, uint32_t aCount);
534 object,
535 uuid(f0c87725-7a35-463c-9ceb-2c07f23406cc),
536 local
538 interface nsILoadGroup : nsIRequest
540 nsresult GetGroupObserver(nsIRequestObserver **aGroupObserver);
541 nsresult SetGroupObserver(nsIRequestObserver *aGroupObserver);
542 nsresult GetDefaultLoadRequest(nsIRequest **aDefaultLoadRequest);
543 nsresult SetDefaultLoadRequest(nsIRequest *aDefaultLoadRequest);
544 nsresult AddRequest(nsIRequest *aRequest, nsISupports *aContext);
545 nsresult RemoveRequest(nsIRequest *aRequest, nsISupports *aContext, nsresult aStatus);
546 nsresult GetRequests(nsISimpleEnumerator **aRequests);
547 nsresult GetActiveCount(uint32_t *aActiveCount);
548 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
549 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
550 nsresult GetSchedulingContextID(nsID *aSchedulingContextID);
551 nsresult GetDefaultLoadFlags(nsLoadFlags *aDefaultLoadFlags);
552 nsresult SetDefaultLoadFlags(nsLoadFlags aDefaultLoadFlags);
553 nsresult GetUserAgentOverrideCache(nsACString *aUserAgentOverrideCache);
554 nsresult SetUserAgentOverrideCache(const nsACString *aUserAgentOverrideCache);
558 object,
559 uuid(2c389865-23db-4aa7-9fe5-60cc7b00697e),
560 local
562 interface nsIChannel : nsIRequest
564 const UINT LOAD_DOCUMENT_URI = 1 << 16;
565 const UINT LOAD_RETARGETED_DOCUMENT_URI = 1 << 17;
566 const UINT LOAD_REPLACE = 1 << 18;
567 const UINT LOAD_INITIAL_DOCUMENT_URI = 1 << 19;
568 const UINT LOAD_TARGETED = 1 << 20;
569 const UINT LOAD_CALL_CONTENT_SNIFFERS = 1 << 21;
570 const UINT LOAD_CLASSIFY_URI = 1 << 22;
571 const UINT LOAD_MEDIA_SNIFFER_OVERRIDES_CONTENT_TYPE = 1 << 23;
572 const UINT LOAD_EXPLICIT_CREDENTIALS = 1 << 24;
573 const UINT LOAD_BYPASS_SERVICE_WORKER = 1 << 25;
575 nsresult GetOriginalURI(nsIURI **aOriginalURI);
576 nsresult SetOriginalURI(nsIURI *aOriginalURI);
577 nsresult GetURI(nsIURI **aURI);
578 nsresult GetOwner(nsISupports **aOwner);
579 nsresult SetOwner(nsISupports *aOwner);
580 nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
581 nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
582 nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
583 nsresult GetContentType(nsACString *aContentType);
584 nsresult SetContentType(const nsACString *aContentType);
585 nsresult GetContentCharset(nsACString *aContentCharset);
586 nsresult SetContentCharset(const nsACString *aContentCharset);
587 nsresult GetContentLength(int64_t *aContentLength);
588 nsresult SetContentLength(int64_t aContentLength);
589 nsresult Open(nsIInputStream **_retval);
590 nsresult Open2(nsIInputStream **_retval);
591 nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
592 nsresult AsyncOpen2(nsIStreamListener *aListener);
593 nsresult GetContentDisposition(uint32_t *aContentDisposition);
594 nsresult SetContentDisposition(uint32_t aContentDisposition);
595 nsresult GetContentDispositionFilename(nsAString *aContentDispositionFilename);
596 nsresult SetContentDispositionFilename(const nsAString *aContentDispositionFilename);
597 nsresult GetContentDispositionHeader(nsACString *aContentDispositionHeader);
598 nsresult GetLoadInfo(nsILoadInfo **aLoadInfo);
599 nsresult SetLoadInfo(nsILoadInfo *aLoadInfo);
603 object,
604 uuid(35412859-b9d9-423c-8866-2d4559fdd2be),
605 local
607 interface nsIHttpHeaderVisitor : nsISupports
609 nsresult VisitHeader(const nsACString *aHeader, const nsACString *aValue);
613 object,
614 uuid(b2596105-3d0d-4e6a-824f-0539713bb879),
615 local
617 interface nsIHttpChannel : nsIChannel
619 nsresult GetRequestMethod(nsACString *aRequestMethod);
620 nsresult SetRequestMethod(const nsACString *aRequestMethod);
621 nsresult GetReferrer(nsIURI **aReferrer);
622 nsresult SetReferrer(nsIURI *aReferrer);
623 nsresult GetReferrerPolicy(uint32_t *aReferrerPolicy);
624 nsresult SetReferrerWithPolicy(nsIURI *referrer, uint32_t referrerPolicy);
625 nsresult GetProtocolVersion(nsACString *aProtocolVersion);
626 nsresult GetTransferSize(uint64_t *aTransferSize);
627 nsresult GetDecodedBodySize(uint64_t *aDecodedBodySize);
628 nsresult GetEncodedBodySize(uint64_t *aEncodedBodySize);
629 nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
630 nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, bool aMerge);
631 nsresult SetEmptyRequestHeader(const nsACString *aHeader);
632 nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
633 nsresult VisitNonDefaultRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
634 nsresult GetAllowPipelining(bool *aAllowPipelining);
635 nsresult SetAllowPipelining(bool aAllowPipelining);
636 nsresult GetAllowSTS(bool *aAllowSTS);
637 nsresult SetAllowSTS(bool aAllowSTS);
638 nsresult GetRedirectionLimit(uint32_t *aRedirectionLimit);
639 nsresult SetRedirectionLimit(uint32_t aRedirectionLimit);
640 nsresult GetResponseStatus(uint32_t *aResponseStatus);
641 nsresult GetResponseStatusText(nsACString *aResponseStatusText);
642 nsresult GetRequestSucceeded(bool *aRequestSucceeded);
643 nsresult GetIsMainDocumentChannel(bool *aIsMainDocumentChannel);
644 nsresult SetIsMainDocumentChannel(bool aIsMainDocumentChannel);
645 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
646 nsresult SetResponseHeader(const nsACString *header, const nsACString *value, bool merge);
647 nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
648 nsresult IsNoStoreResponse(bool *_retval);
649 nsresult IsNoCacheResponse(bool *_retval);
650 nsresult IsPrivateResponse(bool *_retval);
651 nsresult RedirectTo(nsIURI *aTargetURI);
652 nsresult GetSchedulingContextID(nsID *aSchedulingContextID);
653 nsresult SetSchedulingContextID(const nsID aSchedulingContextID);
657 object,
658 uuid(4e28263d-1e03-46f4-aa5c-9512f91957f9),
659 local
661 interface nsIHttpChannelInternal : nsISupports
663 nsresult GetDocumentURI(nsIURI **aDocumentURI);
664 nsresult SetDocumentURI(nsIURI *aDocumentURI);
665 nsresult GetRequestVersion(uint32_t *major, uint32_t *minor);
666 nsresult GetResponseVersion(uint32_t *major, uint32_t *minor);
667 nsresult TakeAllSecurityMessages(void /*nsCOMArray<nsISecurityConsoleMessage>*/ *aMessages);
668 nsresult SetCookie(const char *aCookieHeader);
669 nsresult SetupFallbackChannel(const char *aFallbackKey);
670 nsresult GetThirdPartyFlags(uint32_t *aThirdPartyFlags);
671 nsresult SetThirdPartyFlags(uint32_t aThirdPartyFlags);
672 nsresult GetForceAllowThirdPartyCookie(bool *aForceAllowThirdPartyCookie);
673 nsresult SetForceAllowThirdPartyCookie(bool aForceAllowThirdPartyCookie);
674 nsresult GetCanceled(bool *aCanceled);
675 nsresult GetChannelIsForDownload(bool *aChannelIsForDownload);
676 nsresult SetChannelIsForDownload(bool aChannelIsForDownload);
677 nsresult GetLocalAddress(nsACString *aLocalAddress);
678 nsresult GetLocalPort(int32_t *aLocalPort);
679 nsresult GetRemoteAddress(nsACString *aRemoteAddress);
680 nsresult GetRemotePort(int32_t *aRemotePort);
681 nsresult SetCacheKeysRedirectChain(void /*nsTArray<nsCString>*/ *cacheKeys);
682 nsresult HTTPUpgrade(const nsACString *aProtocolName, nsIHttpUpgradeListener *aListener);
683 nsresult GetAllowSpdy(bool *aAllowSpdy);
684 nsresult SetAllowSpdy(bool aAllowSpdy);
685 nsresult GetResponseTimeoutEnabled(bool *aResponseTimeoutEnabled);
686 nsresult SetResponseTimeoutEnabled(bool aResponseTimeoutEnabled);
687 nsresult GetInitialRwin(uint32_t *aInitialRwin) ;
688 nsresult SetInitialRwin(uint32_t aInitialRwin);
689 nsresult GetApiRedirectToURI(nsIURI **aApiRedirectToURI);
690 nsresult GetAllowAltSvc(bool *aAllowAltSvc);
691 nsresult SetAllowAltSvc(bool aAllowAltSvc);
692 nsresult GetLastModifiedTime(PRTime *aLastModifiedTime);
693 nsresult ForceIntercepted(uint64_t aInterceptionID);
694 nsresult GetResponseSynthesized(bool *aResponseSynthesized);
695 nsresult GetCorsIncludeCredentials(bool *aCorsIncludeCredentials);
696 nsresult SetCorsIncludeCredentials(bool aCorsIncludeCredentials);
697 nsresult GetCorsMode(uint32_t *aCorsMode);
698 nsresult SetCorsMode(uint32_t aCorsMode);
699 nsresult GetRedirectMode(uint32_t *aRedirectMode);
700 nsresult SetRedirectMode(uint32_t aRedirectMode);
701 nsresult GetTopWindowURI(nsIURI **aTopWindowURI);
702 nsresult GetNetworkInterfaceId(nsACString *aNetworkInterfaceId);
703 nsresult SetNetworkInterfaceId(const nsACString *aNetworkInterfaceId);
704 nsresult GetProxyURI(nsIURI **aProxyURI);
705 nsresult SetCorsPreflightParameters(const void /*nsTArray<nsCString>*/ *unsafeHeaders);
706 nsresult GetBlockAuthPrompt(bool *aBlockAuthPrompt) ;
707 nsresult SetBlockAuthPrompt(bool aBlockAuthPrompt);
711 object,
712 uuid(5cfe15bd-5adb-4a7f-9e55-4f5a67d15794),
713 local
715 interface nsIUploadChannel : nsISupports
717 nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
718 int64_t aContentLength);
719 nsresult GetUploadStream(nsIInputStream **aUploadStream);
723 object,
724 uuid(fc826b53-0db8-42b4-aa6a-5dd2cfca52a4),
725 local
727 interface nsIFormPOSTActionChannel : nsIUploadChannel
732 object,
733 uuid(8d171460-a716-41f1-92be-8c659db39b45),
734 local
736 interface nsIAsyncVerifyRedirectCallback : nsISupports
738 nsresult OnRedirectVerifyCallback(nsresult result);
742 object,
743 uuid(0197720d-37ed-4e75-8956-d0d296e4d8a6),
744 local
746 interface nsIChannelEventSink : nsISupports
748 const UINT REDIRECT_TEMPORARY = 1;
749 const UINT REDIRECT_PERMANENT = 2;
750 const UINT REDIRECT_INTERNAL = 4;
751 const UINT REDIRECT_STS_UPGRADE = 8;
753 nsresult AsyncOnChannelRedirect(nsIChannel *oldChannel, nsIChannel *newChannel, uint32_t flags,
754 nsIAsyncVerifyRedirectCallback *callback);
758 object,
759 uuid(79de76e5-994e-4f6b-81aa-42d9adb6e67e),
760 local
762 interface nsIDOMLocation : nsISupports
764 nsresult GetHash(nsAString *aHash);
765 nsresult SetHash(const nsAString *aHash);
766 nsresult GetHost(nsAString *aHost);
767 nsresult SetHost(const nsAString *aHost);
768 nsresult GetHostname(nsAString *aHostname);
769 nsresult SetHostname(const nsAString *aHostname);
770 nsresult GetHref(nsAString *aHref);
771 nsresult SetHref(const nsAString *aHref);
772 nsresult GetPathname(nsAString *aPathname);
773 nsresult SetPathname(const nsAString *aPathname);
774 nsresult GetPort(nsAString *aPort);
775 nsresult SetPort(const nsAString *aPort);
776 nsresult GetProtocol(nsAString *aProtocol);
777 nsresult SetProtocol(const nsAString *aProtocol);
778 nsresult GetSearch(nsAString *aSearch);
779 nsresult SetSearch(const nsAString *aSearch);
780 nsresult GetOrigin(nsAString *aOrigin);
781 nsresult Reload(bool forceget);
782 nsresult Replace(const nsAString *url);
783 nsresult Assign(const nsAString *url);
784 nsresult ToString(nsAString *_retval);
785 nsresult ValueOf(nsIDOMLocation **_retval);
789 object,
790 uuid(4d6b3bad-f53c-4585-82f6-62982e27ede8),
791 local
793 interface nsIDOMCSSRule : nsISupports
795 nsresult GetType(uint16_t *aType);
796 nsresult GetCssText(nsAString *aCssText);
797 nsresult SetCssText(const nsAString *aCssText);
798 nsresult GetParentStyleSheet(nsIDOMCSSStyleSheet **aParentStyleSheet);
799 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
800 int /* thiscall mozilla::css::Rule */ GetCSSRule();
804 object,
805 uuid(a6cf90be-15b3-11d2-932e-00805f8add32),
806 local
808 interface nsIDOMCSSStyleDeclaration : nsISupports
810 nsresult GetCssText(nsAString *aCssText);
811 nsresult SetCssText(const nsAString *aCssText);
812 nsresult GetPropertyValue(const nsAString *propertyName, nsAString *_retval);
813 nsresult GetPropertyCSSValue(const nsAString *propertyName, nsIDOMCSSValue **_retval);
814 nsresult RemoveProperty(const nsAString *propertyName, nsAString *_retval);
815 nsresult GetPropertyPriority(const nsAString *propertyName, nsAString *_retval);
816 nsresult SetProperty(const nsAString *propertyName, const nsAString *value,
817 const nsAString *priority);
818 nsresult GetLength(uint32_t *aLength);
819 nsresult Item(uint32_t index, nsAString *_retval);
820 nsresult GetParentRule(nsIDOMCSSRule **aParentRule);
824 object,
825 uuid(a6cf90c0-15b3-11d2-932e-00805f8add32),
826 local
828 interface nsIDOMCSSRuleList : nsISupports
830 nsresult GetLength(uint32_t *aLength);
831 nsresult Item(uint32_t index, nsIDOMCSSRule **_retval);
835 object,
836 uuid(a6cf9080-15b3-11d2-932e-00805f8add32),
837 local
839 interface nsIDOMStyleSheet : nsISupports
841 nsresult GetType(nsAString *aType);
842 nsresult GetDisabled(bool *aDisabled);
843 nsresult SetDisabled(bool aDisabled);
844 nsresult GetOwnerNode(nsIDOMNode **aOwnerNode);
845 nsresult GetParentStyleSheet(nsIDOMStyleSheet **aParentStyleSheet);
846 nsresult GetHref(nsAString *aHref);
847 nsresult GetTitle(nsAString *aTitle);
848 nsresult GetMedia(nsIDOMMediaList **aMedia);
852 object,
853 uuid(a6cf90c2-15b3-11d2-932e-00805f8add32),
854 local
856 interface nsIDOMCSSStyleSheet : nsIDOMStyleSheet
858 nsresult GetOwnerRule(nsIDOMCSSRule **aOwnerRule);
859 nsresult GetCssRules(nsIDOMCSSRuleList **aCssRules);
860 nsresult InsertRule(const nsAString *rule, uint32_t index, uint32_t *_retval);
861 nsresult DeleteRule(uint32_t index);
865 object,
866 uuid(0e424250-ac2a-4fe2-bccd-a45824af090e),
867 local
869 interface nsIDOMStyleSheetList : nsISupports
871 nsresult GetLength(uint32_t *aLength);
872 nsresult Item(uint32_t index, nsIDOMStyleSheet **_retval);
876 object,
877 uuid(450cf0ba-de90-4f86-85bf-e10cc8b8713f),
878 local
880 interface nsIDOMNodeList : nsISupports
882 nsresult Item(uint32_t index, nsIDOMNode **_retval);
883 nsresult GetLength(uint32_t *aLength);
887 object,
888 uuid(bb07f567-5b37-4172-92aa-7d00ceed4809),
889 local
891 interface nsIDOMHTMLCollection : nsISupports
893 nsresult GetLength(uint32_t *aLength);
894 nsresult Item(uint32_t index, nsIDOMNode **_retval);
895 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
899 object,
900 uuid(cb5564cd-26ec-418f-a6d6-1d57cd2c971c),
901 local
903 interface nsIDOMMozNamedAttrMap : nsISupports
905 nsresult GetNamedItem(const nsAString *name, nsIDOMAttr **_retval);
906 nsresult SetNamedItem(nsIDOMAttr *arg, nsIDOMAttr **_retval);
907 nsresult RemoveNamedItem(const nsAString *name, nsIDOMAttr **_retval);
908 nsresult Item(uint32_t index, nsIDOMAttr **_retval);
909 nsresult GetLength(uint32_t *aLength);
910 nsresult GetNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMAttr **_retval);
911 nsresult SetNamedItemNS(nsIDOMAttr *arg, nsIDOMAttr **_retval);
912 nsresult RemoveNamedItemNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMAttr **_retval);
916 object,
917 uuid(cc35b412-009b-46a3-9be0-76448f12548d),
918 local
920 interface nsIDOMNode : nsISupports
922 enum NSNODETYPE {
923 ELEMENT_NODE = 1,
924 ATTRIBUTE_NODE = 2,
925 TEXT_NODE = 3,
926 CDATA_SELECTION_NODE = 4,
927 ENTITY_REFERENCE_NODE = 5,
928 ENTITY_NODE = 6,
929 PROCESSING_INSTRUCTION_NODE = 7,
930 COMMENT_NODE = 8,
931 DOCUMENT_NODE = 9,
932 DOCUMENT_TYPE_NODE = 10,
933 DOCUMENT_FRAGMENT_NODE = 11,
934 NOTATION_NODE = 12
937 enum {
938 DOCUMENT_POSITION_DISCONNECTED = 1,
939 DOCUMENT_POSITION_PRECEDING = 2,
940 DOCUMENT_POSITION_FOLLOWING = 4,
941 DOCUMENT_POSITION_CONTAINS = 8,
942 DOCUMENT_POSITION_CONTAINED_BY = 16,
943 DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 32
946 nsresult GetNodeName(nsAString *aNodeName);
947 nsresult GetNodeValue(nsAString *aNodeValue);
948 nsresult SetNodeValue(const nsAString *aNodeValue);
949 nsresult GetNodeType(uint16_t *aNodeType);
950 nsresult GetParentNode(nsIDOMNode **aParentNode);
951 nsresult GetParentElement(nsIDOMElement **aParentElement);
952 nsresult GetChildNodes(nsIDOMNodeList **aChildNodes);
953 nsresult GetFirstChild(nsIDOMNode **aFirstChild);
954 nsresult GetLastChild(nsIDOMNode **aLastChild);
955 nsresult GetPreviousSibling(nsIDOMNode **aPreviousSibling);
956 nsresult GetNextSibling(nsIDOMNode **aNextSibling);
957 nsresult GetOwnerDocument(nsIDOMDocument **aOwnerDocument);
958 nsresult InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval);
959 nsresult ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval);
960 nsresult RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval);
961 nsresult AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval);
962 nsresult HasChildNodes(bool *_retval);
963 nsresult CloneNode(bool deep, uint8_t _argc, nsIDOMNode **_retval);
964 nsresult Normalize();
965 nsresult GetNamespaceURI(nsAString *aNamespaceURI);
966 nsresult GetPrefix(nsAString *aPrefix);
967 nsresult GetLocalName(nsAString *aLocalName);
968 nsresult UnusedPlaceholder(bool *_retval);
969 nsresult GetDOMBaseURI(nsAString *aBaseURI);
970 nsresult CompareDocumentPosition(nsIDOMNode *other, uint16_t *_retval);
971 nsresult GetTextContent(nsAString *aTextContent);
972 nsresult SetTextContent(const nsAString *aTextContent);
973 nsresult LookupPrefix(const nsAString *namespaceURI, nsAString *_retval);
974 nsresult IsDefaultNamespace(const nsAString *namespaceURI, bool *_retval);
975 nsresult LookupNamespaceURI(const nsAString *prefix, nsAString *_retval);
976 nsresult IsEqualNode(nsIDOMNode *arg, bool *_retval);
977 nsresult SetUserData(const nsAString *key, nsIVariant *data, nsIVariant **_retval);
978 nsresult GetUserData(const nsAString *key, nsIVariant **_retval);
979 nsresult Contains(nsIDOMNode *aOther, bool *_retval);
981 nsresult GetMshtmlNode(nsISupports **aMshtmlNode);
982 nsresult SetMshtmlNode(nsISupports *aMshtmlNode);
986 object,
987 uuid(7db491e8-a3a3-4432-ad67-e6c33e24ac6d),
988 local
990 interface nsIDOMAttr : nsIDOMNode
992 nsresult GetName(nsAString *aName);
993 nsresult GetSpecified(bool *aSpecified);
994 nsresult GetValue(nsAString *aValue);
995 nsresult SetValue(const nsAString *aValue);
996 nsresult GetOwnerElement(nsIDOMElement **aOwnerElement);
997 nsresult GetIsId(bool *aIsId);
1001 object,
1002 uuid(b2f824c4-d9d3-499b-8d3b-45c8245497c6),
1003 local
1005 interface nsIDOMClientRect : nsISupports
1007 nsresult GetLeft(float *aLeft);
1008 nsresult GetTop(float *aTop);
1009 nsresult GetRight(float *aRight);
1010 nsresult GetBottom(float *aBottom);
1011 nsresult GetWidth(float *aWidth);
1012 nsresult GetHeight(float *aHeight);
1016 object,
1017 uuid(f474c567-cbcb-458f-abad-ae42363da287),
1018 local
1020 interface nsIDOMClientRectList : nsISupports
1022 nsresult GetLength(uint32_t *aLength);
1023 nsresult Item(UINT32 index, nsIDOMClientRect **_retval);
1027 object,
1028 uuid(6289999b-1008-4269-b42a-413ec5a9d3f4),
1029 local
1031 interface nsIDOMElement : nsIDOMNode
1033 nsresult GetTagName(nsAString *aTagName);
1034 nsresult GetId(nsAString *aId);
1035 nsresult SetId(const nsAString *aId);
1036 nsresult GetClassName(nsAString *aClassName);
1037 nsresult SetClassName(const nsAString *aClassName) ;
1038 nsresult GetClassList(nsISupports **aClassList);
1039 nsresult GetAttributes(nsIDOMMozNamedAttrMap **aAttributes);
1040 nsresult GetAttribute(const nsAString *name, nsAString *_retval);
1041 nsresult GetAttributeNS(const nsAString *namespaceURI, const nsAString *localName, nsAString *_retval);
1042 nsresult SetAttribute(const nsAString *name, const nsAString *value);
1043 nsresult SetAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, const nsAString *value);
1044 nsresult RemoveAttribute(const nsAString *name);
1045 nsresult RemoveAttributeNS(const nsAString *namespaceURI, const nsAString *localName);
1046 nsresult HasAttribute(const nsAString *name, bool *_retval);
1047 nsresult HasAttributeNS(const nsAString *namespaceURI, const nsAString *localName, bool *_retval);
1048 nsresult HasAttributes(bool *_retval);
1049 nsresult GetAttributeNode(const nsAString *name, nsIDOMAttr **_retval);
1050 nsresult SetAttributeNode(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
1051 nsresult RemoveAttributeNode(nsIDOMAttr *oldAttr, nsIDOMAttr **_retval);
1052 nsresult GetAttributeNodeNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMAttr **_retval);
1053 nsresult SetAttributeNodeNS(nsIDOMAttr *newAttr, nsIDOMAttr **_retval);
1054 nsresult GetElementsByTagName(const nsAString *name, nsIDOMHTMLCollection **_retval);
1055 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMHTMLCollection **_retval);
1056 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMHTMLCollection **_retval);
1057 nsresult GetChildElements(nsIDOMNodeList **aChildren);
1058 nsresult GetFirstElementChild(nsIDOMElement **aFirstElementChild);
1059 nsresult GetLastElementChild(nsIDOMElement **aLastElementChild);
1060 nsresult GetPreviousElementSibling(nsIDOMElement **aPreviousElementSibling);
1061 nsresult GetNextElementSibling(nsIDOMElement **aNextElementSibling);
1062 nsresult GetChildElementCount(uint32_t *aChildElementCount);
1063 nsresult Remove();
1064 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1065 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1066 nsresult GetScrollTop(int32_t *aScrollTop);
1067 nsresult SetScrollTop(int32_t aScrollTop);
1068 nsresult GetScrollLeft(int32_t *aScrollLeft);
1069 nsresult SetScrollLeft(int32_t aScrollLeft);
1070 nsresult GetScrollWidth(int32_t *aScrollWidth);
1071 nsresult GetScrollHeight(int32_t *aScrollHeight);
1072 nsresult GetClientTop(int32_t *aClientTop);
1073 nsresult GetClientLeft(int32_t *aClientLeft);
1074 nsresult GetClientWidth(int32_t *aClientWidth);
1075 nsresult GetClientHeight(int32_t *aClientHeight);
1076 nsresult GetScrollLeftMax(int32_t *aScrollLeftMax);
1077 nsresult GetScrollTopMax(int32_t *aScrollTopMax);
1078 nsresult MozMatchesSelector(const nsAString *selector, bool *_retval);
1079 nsresult SetCapture(bool retargetToElement);
1080 nsresult ReleaseCapture();
1081 nsresult MozRequestFullScreen();
1082 nsresult MozRequestPointerLock();
1083 nsresult QuerySelector(const nsAString *selectors, nsIDOMElement **_retval);
1084 nsresult QuerySelectorAll(const nsAString *selectors, nsIDOMNodeList **_retval);
1088 object,
1089 uuid(99715845-95fc-4a56-aa53-214b65c26e22),
1090 local
1092 interface nsIDOMElementCSSInlineStyle : nsISupports
1094 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
1098 object,
1099 uuid(b0c42392-d0e7-4f6a-beb5-a698ce648945),
1100 local
1102 interface nsIDOMHTMLElement : nsIDOMElement
1104 nsresult GetTitle(nsAString *aTitle);
1105 nsresult SetTitle(const nsAString *aTitle);
1106 nsresult GetLang(nsAString *aLang);
1107 nsresult SetLang(const nsAString *aLang);
1108 nsresult GetDir(nsAString *aDir);
1109 nsresult SetDir(const nsAString *aDir);
1110 nsresult GetDataset(nsISupports **aDataset);
1111 nsresult GetItemScope(bool *aItemScope);
1112 nsresult SetItemScope(bool aItemScope);
1113 nsresult GetItemType(nsIVariant **aItemType);
1114 nsresult SetItemType(nsIVariant *aItemType);
1115 nsresult GetItemId(nsAString *aItemId);
1116 nsresult SetItemId(const nsAString *aItemId);
1117 nsresult GetProperties(nsISupports **aProperties);
1118 nsresult GetItemValue(nsIVariant **aItemValue);
1119 nsresult SetItemValue(nsIVariant *aItemValue);
1120 nsresult GetItemProp(nsIVariant **aItemProp);
1121 nsresult SetItemProp(nsIVariant *aItemProp);
1122 nsresult GetItemRef(nsIVariant **aItemRef);
1123 nsresult SetItemRef(nsIVariant *aItemRef);
1124 nsresult GetHidden(bool *aHidden);
1125 nsresult SetHidden(bool aHidden);
1126 nsresult Click();
1127 nsresult GetTabIndex(int32_t *aTabIndex);
1128 nsresult SetTabIndex(int32_t aTabIndex);
1129 nsresult Focus();
1130 nsresult Blur();
1131 nsresult GetAccessKey(nsAString *aAccessKey);
1132 nsresult SetAccessKey(const nsAString *aAccessKey);
1133 nsresult GetAccessKeyLabel(nsAString *aAccessKeyLabel);
1134 nsresult GetDraggable(bool *aDraggable);
1135 nsresult SetDraggable(bool aDraggable);
1136 nsresult GetContentEditable(nsAString *aContentEditable);
1137 nsresult SetContentEditable(const nsAString *aContentEditable);
1138 nsresult GetIsContentEditable(bool *aIsContentEditable);
1139 nsresult GetContextMenu(nsIDOMHTMLMenuElement **aContextMenu);
1140 nsresult GetSpellcheck(bool *aSpellcheck);
1141 nsresult SetSpellcheck(bool aSpellcheck);
1142 nsresult GetInnerHTML(nsAString *aInnerHTML);
1143 nsresult SetInnerHTML(const nsAString *aInnerHTML);
1144 nsresult GetOuterHTML(nsAString *aInnerHTML);
1145 nsresult SetOuterHTML(const nsAString *aInnerHTML);
1146 nsresult InsertAdjacentHTML(const nsAString *position, const nsAString *text);
1147 nsresult ScrollIntoView(bool top, uint8_t _argc);
1148 nsresult GetOffsetParent(nsIDOMElement * *aOffsetParent);
1149 nsresult GetOffsetTop(int32_t *aOffsetTop);
1150 nsresult GetOffsetLeft(int32_t *aOffsetLeft);
1151 nsresult GetOffsetWidth(int32_t *aOffsetWidth);
1152 nsresult GetOffsetHeight(int32_t *aOffsetHeight);
1156 object,
1157 uuid(c63517c5-8bab-4cd1-8694-bccafc32a195),
1158 local
1160 interface nsIDOMSVGElement : nsIDOMElement
1162 nsresult GetOwnerSVGElement(nsIDOMSVGElement **aOwnerSVGElement);
1163 nsresult GetViewportElement(nsIDOMSVGElement **aViewportElement);
1164 nsresult GetSVGClassName(nsISupports **aClassName);
1165 nsresult GetStyle(nsIDOMCSSStyleDeclaration **aStyle);
1169 object,
1170 uuid(59b80014-00f5-412d-846f-725494122d42),
1171 local
1173 interface nsIDOMHTMLHeadElement : nsISupports
1178 object,
1179 uuid(2a3f789e-0667-464f-a8d7-6f58513443d9),
1180 local
1182 interface nsIDOMHTMLMetaElement : nsISupports
1184 nsresult GetContent(nsAString *aContent);
1185 nsresult SetContent(const nsAString *aContent);
1186 nsresult GetHttpEquiv(nsAString *aHttpEquiv);
1187 nsresult SetHttpEquiv(const nsAString *aHttpEquiv);
1188 nsresult GetName(nsAString *aName);
1189 nsresult SetName(const nsAString *aName);
1190 nsresult GetScheme(nsAString *aScheme);
1191 nsresult SetScheme(const nsAString *aScheme);
1195 object,
1196 uuid(4109a2d2-e7af-445d-bb72-c7c9b875f35e),
1197 local
1199 interface nsIDOMCharacterData : nsIDOMNode
1201 nsresult GetData(nsAString *aData);
1202 nsresult SetData(const nsAString *aData);
1203 nsresult GetLength(uint32_t *aLength);
1204 nsresult SubstringData(uint32_t offset, uint32_t count, nsAString *_retval);
1205 nsresult AppendData(const nsAString *arg);
1206 nsresult InsertData(uint32_t offset, const nsAString *arg);
1207 nsresult DeleteData(uint32_t offset, uint32_t count);
1208 nsresult ReplaceData(uint32_t offset, uint32_t count, const nsAString *arg);
1209 nsresult Remove();
1213 object,
1214 uuid(67273994-6aff-4091-9de9-b788a249f783),
1215 local
1217 interface nsIDOMText : nsIDOMCharacterData
1219 nsresult SplitText(uint32_t offset, nsIDOMText **_retval);
1220 nsresult GetWholeText(nsAString *aWholeText);
1224 object,
1225 uuid(e7866ff8-b7fc-494f-87c0-fb017d8a4d30),
1226 local
1228 interface nsIDOMComment : nsIDOMCharacterData
1233 object,
1234 uuid(cd7467b9-0f26-4787-a359-66e80ba8db92),
1235 local
1237 interface nsIDOMDocumentType : nsIDOMNode
1239 nsresult GetName(nsAString *aName);
1240 nsresult GetPublicId(nsAString *aPublicId);
1241 nsresult GetSystemId(nsAString *aSystemId);
1242 nsresult GetInternalSubset(nsAString *aInternalSubset);
1243 nsresult MozRemove();
1247 object,
1248 uuid(03a6f574-99ec-42f8-9e6c-812a4a9bcbf7),
1249 local
1251 interface nsIDOMDOMImplementation : nsISupports
1253 nsresult HasFeature(const nsAString *feature, const nsAString *version, bool *_retval);
1254 nsresult CreateDocumentType(const nsAString *qualifiedName, const nsAString *publicId,
1255 const nsAString *systemId, nsIDOMDocumentType **_retval);
1256 nsresult CreateDocument(const nsAString *namespaceURI, const nsAString *qualifiedName,
1257 nsIDOMDocumentType *doctype, nsIDOMDocument **_retval);
1258 nsresult CreateHTMLDocument(const nsAString *title, nsIDOMDocument **_retval);
1262 object,
1263 uuid(48eb8d72-95bb-402e-a8fc-f2b187abcbdb),
1264 local
1266 interface nsIDOMDocumentFragment : nsIDOMNode
1268 nsresult QuerySelector(const nsAString *selectors, nsIDOMElement **_retval);
1269 nsresult QuerySelectorAll(const nsAString *selectors, nsIDOMNodeList **_retval);
1273 object,
1274 uuid(b15fa0f4-97c1-4388-af62-2ceff7a89bdf),
1275 local
1277 interface nsIDOMDocument : nsIDOMNode
1279 nsresult GetDoctype(nsIDOMDocumentType **aDoctype);
1280 nsresult GetImplementation(nsIDOMDOMImplementation **aImplementation);
1281 nsresult GetDocumentElement(nsIDOMElement **aDocumentElement);
1282 nsresult CreateElement(const nsAString *tagName, nsIDOMElement **_retval);
1283 nsresult CreateDocumentFragment(nsIDOMDocumentFragment **_retval);
1284 nsresult CreateTextNode(const nsAString *data, nsIDOMText **_retval);
1285 nsresult CreateComment(const nsAString *data, nsIDOMComment **_retval);
1286 nsresult CreateCDATASection(const nsAString *data, nsIDOMCDATASection **_retval);
1287 nsresult CreateProcessingInstruction(const nsAString *target, const nsAString *data, nsIDOMProcessingInstruction **_retval);
1288 nsresult CreateAttribute(const nsAString *name, nsIDOMAttr **_retval);
1289 nsresult GetElementsByTagName(const nsAString *tagname, nsIDOMNodeList **_retval);
1290 nsresult ImportNode(nsIDOMNode *importedNode, bool deep, uint8_t _argc, nsIDOMNode **_retval);
1291 nsresult CreateElementNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMElement **_retval);
1292 nsresult CreateAttributeNS(const nsAString *namespaceURI, const nsAString *qualifiedName, nsIDOMAttr **_retval);
1293 nsresult GetElementsByTagNameNS(const nsAString *namespaceURI, const nsAString *localName, nsIDOMNodeList **_retval);
1294 nsresult GetElementById(const nsAString *elementId, nsIDOMElement **_retval);
1295 nsresult GetInputEncoding(nsAString *aInputEncoding);
1296 nsresult GetDocumentURI(nsAString *aDocumentURI);
1297 nsresult GetURL(nsAString *aURL);
1298 nsresult AdoptNode(nsIDOMNode *source, nsIDOMNode **_retval);
1299 nsresult CreateRange(nsIDOMRange **_retval);
1300 nsresult CreateNodeIterator(nsIDOMNode *root, uint32_t whatToShow, nsIDOMNodeFilter *filter, uint8_t _argc,
1301 nsIDOMNodeIterator **_retval);
1302 nsresult CreateTreeWalker(nsIDOMNode *root, uint32_t whatToShow, nsIDOMNodeFilter *filter, uint8_t _argc,
1303 nsIDOMTreeWalker **_retval);
1304 cpp_quote("#undef CreateEvent")
1305 nsresult CreateEvent(const nsAString *eventType, nsIDOMEvent **_retval);
1306 nsresult GetDefaultView(mozIDOMWindowProxy **aDefaultView);
1307 nsresult GetCharacterSet(nsAString *aCharacterSet);
1308 nsresult GetDir(nsAString *aDir);
1309 nsresult SetDir(const nsAString *aDir);
1310 nsresult GetLocation(nsIDOMLocation **aLocation);
1311 nsresult GetTitle(nsAString *aTitle);
1312 nsresult SetTitle(const nsAString *aTitle);
1313 nsresult GetReadyState(nsAString *aReadyState);
1314 nsresult GetLastModified(nsAString *aLastModified);
1315 nsresult GetReferrer(nsAString *aReferrer);
1316 nsresult HasFocus(bool *_retval);
1317 nsresult GetActiveElement(nsIDOMElement **aActiveElement);
1318 nsresult GetElementsByClassName(const nsAString *classes, nsIDOMNodeList **_retval);
1319 nsresult GetStyleSheets(nsIDOMStyleSheetList **aStyleSheets);
1320 nsresult GetPreferredStyleSheetSet(nsAString *aPreferredStyleSheetSet);
1321 nsresult GetSelectedStyleSheetSet(nsAString *aSelectedStyleSheetSet);
1322 nsresult SetSelectedStyleSheetSet(const nsAString *aSelectedStyleSheetSet);
1323 nsresult GetLastStyleSheetSet(nsAString *aLastStyleSheetSet);
1324 nsresult GetStyleSheetSets(nsISupports **aStyleSheetSets);
1325 nsresult EnableStyleSheetsForSet(const nsAString *name);
1326 nsresult ElementFromPoint(float x, float y, nsIDOMElement **_retval);
1327 nsresult GetContentType(nsAString *aContentType);
1328 nsresult GetMozSyntheticDocument(bool *aMozSyntheticDocument);
1329 nsresult GetCurrentScript(nsIDOMElement **aCurrentScript);
1330 nsresult ReleaseCapture();
1331 nsresult MozSetImageElement(const nsAString *aImageElementId, nsIDOMElement *aImageElement);
1332 nsresult GetMozFullScreenElement(nsIDOMElement **aMozFullScreenElement);
1333 nsresult MozCancelFullScreen();
1334 nsresult GetMozFullScreen(bool *aMozFullScreen);
1335 nsresult GetMozFullScreenEnabled(bool *aMozFullScreenEnabled);
1336 nsresult GetMozPointerLockElement(nsIDOMElement **aMozPointerLockElement);
1337 nsresult CaretPositionFromPoint(float x, float y, nsISupports **_retval);
1338 nsresult MozExitPointerLock();
1339 nsresult GetHidden(bool *aHidden);
1340 nsresult GetMozHidden(bool *aMozHidden);
1341 nsresult GetVisibilityState(nsAString *aVisibilityState);
1342 nsresult GetMozVisibilityState(nsAString *aMozVisibilityState);
1343 nsresult GetCompatMode(nsAString *aCompatMode);
1344 nsresult QuerySelector(const nsAString *selectors, nsIDOMElement **_retval);
1345 nsresult QuerySelectorAll(const nsAString *selectors, nsIDOMNodeList **_retval);
1349 object,
1350 uuid(cd31e61f-cfc2-4b91-9385-17b6a2d0633d),
1351 local
1353 interface nsIDOMHTMLDocument : nsIDOMDocument
1355 nsresult GetDomain(nsAString *aDomain);
1356 nsresult SetDomain(const nsAString *aDomain);
1357 nsresult GetCookie(nsAString *aCookie);
1358 nsresult SetCookie(const nsAString *aCookie);
1359 nsresult GetHead(nsIDOMHTMLHeadElement **aHead);
1360 nsresult GetBody(nsIDOMHTMLElement **aBody);
1361 nsresult SetBody(nsIDOMHTMLElement *aBody);
1362 nsresult GetImages(nsIDOMHTMLCollection **aImages);
1363 nsresult GetEmbeds(nsIDOMHTMLCollection **aEmbeds);
1364 nsresult GetPlugins(nsIDOMHTMLCollection **aPlugins);
1365 nsresult GetLinks(nsIDOMHTMLCollection **aLinks);
1366 nsresult GetForms(nsIDOMHTMLCollection **aForms);
1367 nsresult GetScripts(nsIDOMHTMLCollection **aScripts);
1368 nsresult GetElementsByName(const nsAString *elementName, nsIDOMNodeList **_retval);
1369 nsresult GetItems(const nsAString *types, nsIDOMNodeList **_retval);
1370 nsresult Open(const nsAString *aContentTypeOrUrl, const nsAString *aReplaceOrName, const nsAString *aFeatures,
1371 JSContext *cx, uint8_t _argc, nsISupports **_retval);
1372 nsresult Close();
1373 nsresult Write(const nsAString *text, JSContext *cx);
1374 nsresult Writeln(const nsAString *text, JSContext *cx);
1375 nsresult GetDesignMode(nsAString *aDesignMode);
1376 nsresult SetDesignMode(const nsAString *aDesignMode);
1377 nsresult ExecCommand(const nsAString *commandID, bool doShowUI, const nsAString *value, bool *_retval);
1378 nsresult QueryCommandEnabled(const nsAString *commandID, bool *_retval);
1379 nsresult QueryCommandIndeterm(const nsAString *commandID, bool *_retval);
1380 nsresult QueryCommandState(const nsAString *commandID, bool *_retval);
1381 nsresult QueryCommandSupported(const nsAString *commandID, bool *_retval);
1382 nsresult QueryCommandValue(const nsAString *commandID, nsAString *_retval);
1383 nsresult GetFgColor(nsAString *aFgColor);
1384 nsresult SetFgColor(const nsAString *aFgColor);
1385 nsresult GetBgColor(nsAString *aBgColor);
1386 nsresult SetBgColor(const nsAString *aBgColor);
1387 nsresult GetLinkColor(nsAString *aLinkColor);
1388 nsresult SetLinkColor(const nsAString *aLinkColor);
1389 nsresult GetVlinkColor(nsAString *aVlinkColor);
1390 nsresult SetVlinkColor(const nsAString *aVlinkColor);
1391 nsresult GetAlinkColor(nsAString *aAlinkColor);
1392 nsresult SetAlinkColor(const nsAString *aAlinkColor);
1393 nsresult GetAnchors(nsIDOMHTMLCollection **aAnchors);
1394 nsresult GetApplets(nsIDOMHTMLCollection **aApplets);
1395 nsresult Clear();
1396 nsresult GetSelection(nsISelection **_retval);
1397 nsresult CaptureEvents();
1398 nsresult ReleaseEvents();
1402 object,
1403 uuid(1f94055c-42e7-4a30-96a1-6a804f1c2d1e),
1404 local
1406 interface nsIDOMRange : nsISupports
1408 enum {
1409 NS_START_TO_START,
1410 NS_START_TO_END,
1411 NS_END_TO_END,
1412 NS_END_TO_START
1415 nsresult GetStartContainer(nsIDOMNode **aStartContainer);
1416 nsresult GetStartOffset(int32_t *aStartOffset);
1417 nsresult GetEndContainer(nsIDOMNode **aEndContainer);
1418 nsresult GetEndOffset(int32_t *aEndOffset);
1419 nsresult GetCollapsed(bool *aCollapsed);
1420 nsresult GetCommonAncestorContainer(nsIDOMNode **aCommonAncestorContainer);
1421 nsresult SetStart(nsIDOMNode *refNode, int32_t offset);
1422 nsresult SetEnd(nsIDOMNode *refNode, int32_t offset);
1423 nsresult SetStartBefore(nsIDOMNode *refNode);
1424 nsresult SetStartAfter(nsIDOMNode *refNode);
1425 nsresult SetEndBefore(nsIDOMNode *refNode);
1426 nsresult SetEndAfter(nsIDOMNode *refNode);
1427 nsresult Collapse(bool toStart);
1428 nsresult SelectNode(nsIDOMNode *refNode);
1429 nsresult SelectNodeContents(nsIDOMNode *refNode);
1430 nsresult CompareBoundaryPoints(uint16_t how, nsIDOMRange *sourceRange, int16_t *_retval);
1431 nsresult DeleteContents();
1432 nsresult ExtractContents(nsIDOMDocumentFragment **_retval);
1433 nsresult CloneContents(nsIDOMDocumentFragment **_retval);
1434 nsresult InsertNode(nsIDOMNode *newNode);
1435 nsresult SurroundContents(nsIDOMNode *newParent);
1436 nsresult CloneRange(nsIDOMRange **_retval);
1437 nsresult ToString(nsAString *_retval);
1438 nsresult Detach();
1439 nsresult CreateContextualFragment([in] const nsAString *fragment, [out] nsIDOMDocumentFragment **_retval);
1440 nsresult IsPointInRange([in] nsIDOMNode *parent, [in] int32_t offset, [out] bool *_retval);
1441 nsresult ComparePoint([in] nsIDOMNode *parent, [in] int32_t offset, [out] int16_t *_retval);
1442 nsresult IntersectsNode(nsIDOMNode *node, bool *_retval);
1443 nsresult GetClientRects(nsIDOMClientRectList **_retval);
1444 nsresult GetBoundingClientRect(nsIDOMClientRect **_retval);
1448 object,
1449 uuid(e0a4d4b3-f34e-44bd-b1f2-4e3bde9b6915),
1450 local
1452 interface nsISelection : nsISupports
1454 nsresult GetAnchorNode(nsIDOMNode **aAnchorNode);
1455 nsresult GetAnchorOffset(int32_t *aAnchorOffset);
1456 nsresult GetFocusNode(nsIDOMNode **aFocusNode);
1457 nsresult GetFocusOffset(int32_t *aFocusOffset);
1458 nsresult GetIsCollapsed(bool *aIsCollapsed);
1459 bool /* don't use */ Collapsed();
1460 nsresult GetRangeCount(int32_t *aRangeCount);
1461 nsresult GetRangeAt(int32_t index, nsIDOMRange **_retval);
1462 nsresult Collapse(nsIDOMNode *parentNode, int32_t offset);
1463 nsresult CollapseNative(nsINode *parentNode, int32_t offset);
1464 nsresult Extend(nsIDOMNode *parentNode, int32_t offset);
1465 nsresult ExtendNative(nsINode *parentNode, int32_t offset);
1466 nsresult CollapseToStart();
1467 nsresult CollapseToEnd();
1468 nsresult ContainsNode(nsIDOMNode *node, bool entirelyContained, bool *_retval);
1469 nsresult SelectAllChildren(nsIDOMNode *parentNode);
1470 nsresult AddRange(nsIDOMRange *range);
1471 nsresult RemoveRange(nsIDOMRange *range);
1472 nsresult RemoveAllRanges();
1473 nsresult DeleteFromDocument();
1474 nsresult ToString(nsAString *_retval);
1475 nsresult Modify(const nsAString *alter, const nsAString *direction, const nsAString *granularity);
1479 object,
1480 uuid(8d64f457-fb8c-49ea-a359-cef30eed9774),
1481 local
1483 interface nsIDOMWindowCollection : nsISupports
1485 nsresult GetLength(uint32_t *aLength);
1486 nsresult Item(uint32_t index, mozIDOMWindowProxy **_retval);
1487 nsresult NamedItem(const nsAString *name, mozIDOMWindowProxy **_retval);
1491 object,
1492 uuid(75fbabd6-7a2e-4787-aa33-449a33512135),
1493 local
1495 interface mozIDOMWindow : nsISupports
1500 object,
1501 uuid(53ca090c-e739-48b9-8911-208c72f9191e),
1502 local
1504 interface mozIDOMWindowProxy : nsISupports
1509 object,
1510 uuid(ab30b7cc-f7f9-4b9b-befb-7dbf6cf86d46),
1511 local
1513 interface nsIDOMWindow : nsISupports
1515 nsresult GetDocument(nsIDOMDocument **aDocument);
1516 nsresult GetName(nsAString *aName);
1517 nsresult SetName(const nsAString *aName);
1518 nsresult GetLocation(nsIDOMLocation **aLocation);
1519 nsresult Close();
1520 nsresult Stop();
1521 nsresult Focus();
1522 nsresult Blur();
1523 nsresult GetLength(uint32_t *aLength);
1524 nsresult GetRealTop(nsIDOMWindow **aTop);
1525 nsresult GetRealParent(nsIDOMWindow **aParent);
1526 nsresult GetOpener(mozIDOMWindowProxy **aOpenerWindow);
1527 nsresult SetOpener(mozIDOMWindowProxy *aOpenerWindow);
1528 nsresult GetRealFrameElement(nsIDOMElement **aFrameElement);
1529 nsresult GetNavigator(nsIDOMNavigator **aNavigator);
1530 nsresult Print();
1531 nsresult GetSessionStorage(nsISupports **aSessionStorage);
1532 nsresult GetLocalStorage(nsISupports **aLocalStorage);
1533 nsresult GetIndexedDB(nsISupports **aIndexedDB);
1534 nsresult GetSelection(nsISelection **_retval);
1535 nsresult MatchMedia(const nsAString *media_query_list, nsISupports **_retval);
1536 nsresult GetInnerWidth(int32_t *aInnerWidth);
1537 nsresult SetInnerWidth(int32_t aInnerWidth);
1538 nsresult GetInnerHeight(int32_t *aInnerHeight);
1539 nsresult SetInnerHeight(int32_t aInnerHeight);
1540 nsresult GetScrollX(int32_t *aScrollX);
1541 nsresult GetPageXOffset(int32_t *aPageXOffset);
1542 nsresult GetScrollY(int32_t *aScrollY);
1543 nsresult GetPageYOffset(int32_t *aPageYOffset);
1544 nsresult Scroll(int32_t xScroll, int32_t yScroll);
1545 nsresult ScrollTo(int32_t xScroll, int32_t yScroll);
1546 nsresult ScrollBy(int32_t xScrollDif, int32_t yScrollDif);
1547 nsresult GetScreenX(int32_t *aScreenX);
1548 nsresult SetScreenX(int32_t aScreenX);
1549 nsresult GetScreenY(int32_t *aScreenY);
1550 nsresult SetScreenY(int32_t aScreenY);
1551 nsresult GetOuterWidth(int32_t *aOuterWidth);
1552 nsresult SetOuterWidth(int32_t aOuterWidth);
1553 nsresult GetOuterHeight(int32_t *aOuterHeight);
1554 nsresult SetOuterHeight(int32_t aOuterHeight);
1555 nsresult GetComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
1556 nsresult GetDefaultComputedStyle(nsIDOMElement *elt, const nsAString *pseudoElt, nsIDOMCSSStyleDeclaration **_retval);
1557 nsresult GetFrames(nsIDOMWindowCollection **aFrames);
1558 nsresult GetTextZoom(float *aTextZoom);
1559 nsresult SetTextZoom(float aTextZoom);
1560 nsresult ScrollByLines(int32_t numLines);
1561 nsresult ScrollByPages(int32_t numPages);
1562 nsresult GetMozInnerScreenX(float *aMozInnerScreenX);
1563 nsresult GetMozInnerScreenY(float *aMozInnerScreenY);
1564 nsresult GetDevicePixelRatio(float *aDevicePixelRatio);
1565 nsresult GetScrollMaxX(int32_t *aScrollMaxX);
1566 nsresult GetScrollMaxY(int32_t *aScrollMaxY);
1567 nsresult GetFullScreen(bool *aFullScreen);
1568 nsresult SetFullScreen(bool aFullScreen);
1569 nsresult Back();
1570 nsresult Forward();
1571 nsresult Home();
1572 nsresult Open(const nsAString *url, const nsAString *name, const nsAString *options, nsIDOMWindow **_retval);
1573 nsresult Find(const nsAString *str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord,
1574 bool searchInFrames, bool showDialog, bool *_retval);
1575 nsresult GetInnerWindow(mozIDOMWindow **aInnerWindow);
1576 nsresult GetOuterWindow(mozIDOMWindowProxy **aOuterWindow);
1580 object,
1581 uuid(068630db-2c00-43dd-b167-495757a88236),
1582 local
1584 interface nsIDOMHTMLBodyElement : nsISupports
1586 nsresult GetALink(nsAString *aALink);
1587 nsresult SetALink(const nsAString *aALink);
1588 nsresult GetBackground(nsAString *aBackground);
1589 nsresult SetBackground(const nsAString *aBackground);
1590 nsresult GetBgColor(nsAString *aBgColor);
1591 nsresult SetBgColor(const nsAString *aBgColor);
1592 nsresult GetLink(nsAString *aLink);
1593 nsresult SetLink(const nsAString *aLink);
1594 nsresult GetText(nsAString *aText);
1595 nsresult SetText(const nsAString *aText);
1596 nsresult GetVLink(nsAString *aVLink);
1597 nsresult SetVLink(const nsAString *aVLink);
1601 object,
1602 uuid(ad9b2ad0-9d29-43f6-b1a2-a1fd24627e6b),
1603 local
1605 interface nsIDOMHTMLFormElement : nsISupports
1607 nsresult GetAcceptCharset(nsAString *aAcceptCharset);
1608 nsresult SetAcceptCharset(const nsAString *aAcceptCharset);
1609 nsresult GetAction(nsAString *aAction);
1610 nsresult SetAction(const nsAString *aAction);
1611 nsresult GetAutocomplete(nsAString *aAutocomplete);
1612 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1613 nsresult GetEnctype(nsAString *aEnctype);
1614 nsresult SetEnctype(const nsAString *aEnctype);
1615 nsresult GetEncoding(nsAString *aEncoding);
1616 nsresult SetEncoding(const nsAString *aEncoding);
1617 nsresult GetMethod(nsAString *aMethod);
1618 nsresult SetMethod(const nsAString *aMethod);
1619 nsresult GetName(nsAString *aName);
1620 nsresult SetName(const nsAString *aName);
1621 nsresult GetNoValidate(bool *aNoValidate);
1622 nsresult SetNoValidate(bool aNoValidate);
1623 nsresult GetTarget(nsAString *aTarget);
1624 nsresult SetTarget(const nsAString *aTarget);
1625 nsresult GetElements(nsIDOMHTMLCollection **aElements);
1626 nsresult GetLength(int32_t *aLength);
1627 nsresult Submit();
1628 nsresult Reset();
1629 nsresult CheckValidity(bool *_retval);
1630 nsresult GetFormData(nsIDOMHTMLElement *aOriginatingElement, nsAString *aActionURI, nsIInputStream **aPostDataStream);
1634 object,
1635 uuid(64aeda0b-e9b5-4868-a4f9-e4776e32e733),
1636 local
1638 interface nsIDOMHTMLInputElement : nsISupports
1640 nsresult GetAccept(nsAString *aAccept);
1641 nsresult SetAccept(const nsAString *aAccept);
1642 nsresult GetAlt(nsAString *aAlt);
1643 nsresult SetAlt(const nsAString *aAlt);
1644 nsresult GetAutocomplete(nsAString *aAutocomplete);
1645 nsresult SetAutocomplete(const nsAString *aAutocomplete);
1646 nsresult GetAutofocus(bool *aAutofocus);
1647 nsresult SetAutofocus(bool aAutofocus);
1648 nsresult GetDefaultChecked(bool *aDefaultChecked);
1649 nsresult SetDefaultChecked(bool aDefaultChecked);
1650 nsresult GetChecked(bool *aChecked);
1651 nsresult SetChecked(bool aChecked);
1652 nsresult GetDisabled(bool *aDisabled);
1653 nsresult SetDisabled(bool aDisabled);
1654 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1655 nsresult GetFormAction(nsAString *aFormAction);
1656 nsresult SetFormAction(const nsAString *aFormAction);
1657 nsresult GetFormEnctype(nsAString *aFormEnctype);
1658 nsresult SetFormEnctype(const nsAString *aFormEnctype);
1659 nsresult GetFormMethod(nsAString *aFormMethod);
1660 nsresult SetFormMethod(const nsAString *aFormMethod);
1661 nsresult GetFormNoValidate(bool *aFormNoValidate);
1662 nsresult SetFormNoValidate(bool aFormNoValidate);
1663 nsresult GetFormTarget(nsAString *aFormTarget);
1664 nsresult SetFormTarget(const nsAString *aFormTarget);
1665 nsresult GetFiles(nsIDOMFileList **aFiles);
1666 nsresult GetHeight(uint32_t *aHeight);
1667 nsresult SetHeight(uint32_t aHeight);
1668 nsresult GetIndeterminate(bool *aIndeterminate);
1669 nsresult SetIndeterminate(bool aIndeterminate);
1670 nsresult GetInputMode(nsAString *aInputMode);
1671 nsresult SetInputMode(const nsAString *aInputMode);
1672 nsresult GetList(nsIDOMHTMLElement **aList);
1673 nsresult GetMax(nsAString *aMax);
1674 nsresult SetMax(const nsAString *aMax);
1675 nsresult GetMaxLength(int32_t *aMaxLength);
1676 nsresult SetMaxLength(int32_t aMaxLength);
1677 nsresult GetMin(nsAString *aMin);
1678 nsresult SetMin(const nsAString *aMin);
1679 nsresult GetMultiple(bool *aMultiple);
1680 nsresult SetMultiple(bool aMultiple);
1681 nsresult GetName(nsAString *aName);
1682 nsresult SetName(const nsAString *aName);
1683 nsresult GetPattern(nsAString *aPattern);
1684 nsresult SetPattern(const nsAString *aPattern);
1685 nsresult GetPlaceholder(nsAString *aPlaceholder);
1686 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1687 nsresult GetReadOnly(bool *aReadOnly);
1688 nsresult SetReadOnly(bool aReadOnly);
1689 nsresult GetRequired(bool *aRequired);
1690 nsresult SetRequired(bool aRequired);
1691 nsresult GetStep(nsAString *aStep);
1692 nsresult SetStep(const nsAString *aStep);
1693 nsresult GetAlign(nsAString *aAlign);
1694 nsresult SetAlign(const nsAString *aAlign);
1695 nsresult GetSize(uint32_t *aSize);
1696 nsresult SetSize(uint32_t aSize);
1697 nsresult GetWidth(uint32_t *aWidth);
1698 nsresult SetWidth(uint32_t aWidth);
1699 nsresult GetSrc(nsAString *aSrc);
1700 nsresult SetSrc(const nsAString *aSrc);
1701 nsresult GetType(nsAString *aType);
1702 nsresult SetType(const nsAString *aType);
1703 nsresult GetDefaultValue(nsAString *aDefaultValue);
1704 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1705 nsresult GetValue(nsAString *aValue);
1706 nsresult SetValue(const nsAString *aValue);
1707 nsresult GetValueAsNumber(double *aValueAsNumber);
1708 nsresult SetValueAsNumber(double aValueAsNumber);
1709 nsresult StepDown(int32_t n, uint8_t _argc);
1710 nsresult StepUp(int32_t n, uint8_t _argc);
1711 nsresult GetWillValidate(bool *aWillValidate);
1712 nsresult GetValidity(nsIDOMValidityState **aValidity);
1713 nsresult GetValidationMessage(nsAString *aValidationMessage);
1714 nsresult CheckValidity(bool *_retval);
1715 nsresult SetCustomValidity(const nsAString *error);
1716 nsresult Select();
1717 nsresult GetSelectionStart(int32_t *aSelectionStart);
1718 nsresult SetSelectionStart(int32_t aSelectionStart);
1719 nsresult GetSelectionEnd(int32_t *aSelectionEnd);
1720 nsresult SetSelectionEnd(int32_t aSelectionEnd);
1721 nsresult SetSelectionRange(int32_t selectionStart, int32_t selectionEnd, const nsAString *direction);
1722 nsresult GetSelectionDirection(nsAString *aSelectionDirection);
1723 nsresult SetSelectionDirection(const nsAString *aSelectionDirection);
1724 nsresult GetUseMap(nsAString *aUseMap);
1725 nsresult SetUseMap(const nsAString *aUseMap);
1726 nsresult GetControllers(nsIControllers **aControllers);
1727 nsresult GetTextLength(int32_t *aTextLength);
1728 nsresult MozGetFileNameArray(uint32_t *aLength, PRUnichar ***aFileNames);
1729 nsresult MozSetFileNameArray(const PRUnichar **aFileNames, uint32_t aLength);
1730 nsresult MozIsTextField(bool aExcludePassword, bool *_retval);
1734 object,
1735 uuid(c2b3e9ff-6b36-4158-ace3-05a9c5b8e1c1),
1736 local
1738 interface nsIDOMHTMLOptionElement : nsISupports
1740 nsresult GetDisabled(bool *aDisabled);
1741 nsresult SetDisabled(bool aDisabled);
1742 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1743 nsresult GetLabel(nsAString *aLabel);
1744 nsresult SetLabel(const nsAString *aLabel);
1745 nsresult GetDefaultSelected(bool *aDefaultSelected);
1746 nsresult SetDefaultSelected(bool aDefaultSelected);
1747 nsresult GetSelected(bool *aSelected);
1748 nsresult SetSelected(bool aSelected);
1749 nsresult GetValue(nsAString *aValue);
1750 nsresult SetValue(const nsAString *aValue);
1751 nsresult GetText(nsAString *aText);
1752 nsresult SetText(const nsAString *aText);
1753 nsresult GetIndex(int32_t *aIndex);
1757 object,
1758 uuid(44b7a468-7dba-4f0c-9b4e-ee46dc0f26c7),
1759 local
1761 interface nsIDOMHTMLButtonElement : nsISupports
1763 nsresult GetAutofocus(bool *aAutofocus);
1764 nsresult SetAutofocus(bool aAutofocus);
1765 nsresult GetDisabled(bool *aDisabled);
1766 nsresult SetDisabled(bool aDisabled);
1767 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1768 nsresult GetFormAction(nsAString *aFormAction);
1769 nsresult SetFormAction(const nsAString *aFormAction);
1770 nsresult GetFormEnctype(nsAString *aFormEnctype);
1771 nsresult SetFormEnctype(const nsAString *aFormEnctype);
1772 nsresult GetFormMethod(nsAString *aFormMethod);
1773 nsresult SetFormMethod(const nsAString *aFormMethod);
1774 nsresult GetFormNoValidate(bool *aFormNoValidate);
1775 nsresult SetFormNoValidate(bool aFormNoValidate);
1776 nsresult GetFormTarget(nsAString *aFormTarget);
1777 nsresult SetFormTarget(const nsAString *aFormTarget);
1778 nsresult GetName(nsAString *aName);
1779 nsresult SetName(const nsAString *aName);
1780 nsresult GetType(nsAString *aType);
1781 nsresult SetType(const nsAString *aType);
1782 nsresult GetValue(nsAString *aValue);
1783 nsresult SetValue(const nsAString *aValue);
1784 nsresult GetWillValidate(bool *aWillValidate);
1785 nsresult GetValidity(nsIDOMValidityState **aValidity);
1786 nsresult GetValidationMessage(nsAString *aValidationMessage);
1787 nsresult CheckValidity(bool *_retval);
1788 nsresult SetCustomValidity(const nsAString *error);
1792 object,
1793 uuid(4173cc53-30f6-4d12-a770-981ba53164e2),
1794 local
1796 interface nsIDOMHTMLOptionsCollection : nsISupports
1798 typedef int nsWrapperCache;
1800 nsresult GetLength(uint32_t *aLength);
1801 nsresult SetLength(uint32_t aLength);
1802 nsresult Item(uint32_t index, nsIDOMNode **_retval);
1803 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1804 nsresult GetSelectedIndex(int32_t *aSelectedIndex);
1805 nsresult SetSelectedIndex(int32_t aSelectedIndex);
1806 nsresult SetOption(uint32_t index, nsIDOMHTMLOptionElement *option);
1807 nsresult GetSelect(nsIDOMHTMLSelectElement **aSelect);
1808 nsresult Add(nsIDOMHTMLOptionElement *option, nsIVariant *before);
1809 nsresult Remove(int32_t index);
1813 object,
1814 uuid(d8914a2d-3556-4b66-911c-a84c4394e7fa),
1815 local
1817 interface nsIDOMHTMLSelectElement : nsISupports
1819 nsresult GetAutofocus(bool *aAutofocus);
1820 nsresult SetAutofocus(bool aAutofocus);
1821 nsresult GetDisabled(bool *aDisabled);
1822 nsresult SetDisabled(bool aDisabled);
1823 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1824 nsresult GetMultiple(bool *aMultiple);
1825 nsresult SetMultiple(bool aMultiple);
1826 nsresult GetName(nsAString *aName);
1827 nsresult SetName(const nsAString *aName);
1828 nsresult GetSize(uint32_t *aSize);
1829 nsresult SetSize(uint32_t aSize);
1830 nsresult GetType(nsAString *aType);
1831 nsresult GetOptions(nsIDOMHTMLOptionsCollection **aOptions);
1832 nsresult GetLength(uint32_t *aLength);
1833 nsresult SetLength(uint32_t aLength);
1834 nsresult Item(uint32_t index, nsIDOMNode **_retval);
1835 nsresult NamedItem(const nsAString *name, nsIDOMNode **_retval);
1836 nsresult Add(nsIDOMHTMLElement *element, nsIVariant *before);
1837 nsresult select_Remove(int32_t index);
1838 nsresult GetSelectedOptions(nsIDOMHTMLCollection **aSelectedOptions);
1839 nsresult GetSelectedIndex(int32_t *aSelectedIndex);
1840 nsresult SetSelectedIndex(int32_t aSelectedIndex);
1841 nsresult GetValue(nsAString *aValue);
1842 nsresult SetValue(const nsAString *aValue);
1843 nsresult GetWillValidate(bool *aWillValidate);
1844 nsresult GetValidity(nsIDOMValidityState **aValidity);
1845 nsresult GetValidationMessage(nsAString *aValidationMessage);
1846 nsresult CheckValidity(bool *_retval);
1847 nsresult SetCustomValidity(const nsAString *error);
1848 nsresult GetRequired(bool *aRequired);
1849 nsresult SetRequired(bool aRequired);
1853 object,
1854 uuid(7a4aeb2e-fcf3-443e-b002-ca1c8ea322e9),
1855 local
1857 interface nsIDOMHTMLTextAreaElement : nsISupports
1859 nsresult GetAutofocus(bool *aAutofocus);
1860 nsresult SetAutofocus(bool aAutofocus);
1861 nsresult GetCols(uint32_t *aCols);
1862 nsresult SetCols(uint32_t aCols);
1863 nsresult GetDisabled(bool *aDisabled);
1864 nsresult SetDisabled(bool aDisabled);
1865 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
1866 nsresult GetMaxLength(int32_t *aMaxLength);
1867 nsresult SetMaxLength(int32_t aMaxLength);
1868 nsresult GetName(nsAString *aName);
1869 nsresult SetName(const nsAString *aName);
1870 nsresult GetPlaceholder(nsAString *aPlaceholder);
1871 nsresult SetPlaceholder(const nsAString *aPlaceholder);
1872 nsresult GetReadOnly(bool *aReadOnly);
1873 nsresult SetReadOnly(bool aReadOnly);
1874 nsresult GetRequired(bool *aRequired);
1875 nsresult SetRequired(bool aRequired);
1876 nsresult GetRows(uint32_t *aRows);
1877 nsresult SetRows(uint32_t aRows);
1878 nsresult GetWrap(nsAString *aWrap);
1879 nsresult SetWrap(const nsAString *aWrap);
1880 nsresult GetType(nsAString *aType);
1881 nsresult GetDefaultValue(nsAString *aDefaultValue);
1882 nsresult SetDefaultValue(const nsAString *aDefaultValue);
1883 nsresult GetValue(nsAString *aValue);
1884 nsresult SetValue(const nsAString *aValue);
1885 nsresult GetTextLength(int32_t *aTextLength);
1886 nsresult GetWillValidate(bool *aWillValidate);
1887 nsresult GetValidity(nsIDOMValidityState **aValidity);
1888 nsresult GetValidationMessage(nsAString *aValidationMessage);
1889 nsresult CheckValidity(bool *_retval);
1890 nsresult SetCustomValidity(const nsAString *error);
1891 nsresult Select();
1892 nsresult GetSelectionStart(int32_t *aSelectionStart);
1893 nsresult SetSelectionStart(int32_t aSelectionStart);
1894 nsresult GetSelectionEnd(int32_t *aSelectionEnd);
1895 nsresult SetSelectionEnd(int32_t aSelectionEnd);
1896 nsresult SetSelectionRange(int32_t selectionStart, int32_t selectionEnd, const nsAString *direction);
1897 nsresult GetSelectionDirection(nsAString *aSelectionDirection);
1898 nsresult SetSelectionDirection(const nsAString *aSelectionDirection);
1899 nsresult GetControllers(nsIControllers **aControllers);
1903 object,
1904 uuid(fe96dc1c-40e4-4974-9354-e3fce663c3d5),
1905 local
1907 interface nsIDOMHTMLScriptElement : nsISupports
1909 nsresult GetSrc(nsAString *aSrc);
1910 nsresult SetSrc(const nsAString *aSrc);
1911 nsresult GetAsync(bool *aAsync);
1912 nsresult SetAsync(bool aAsync);
1913 nsresult GetDefer(bool *aDefer);
1914 nsresult SetDefer(bool aDefer);
1915 nsresult GetType(nsAString *aType);
1916 nsresult SetType(const nsAString *aType);
1917 nsresult GetCharset(nsAString *aCharset);
1918 nsresult SetCharset(const nsAString *aCharset);
1919 nsresult GetText(nsAString *aText);
1920 nsresult SetText(const nsAString *aText);
1921 nsresult GetHtmlFor(nsAString *aHtmlFor);
1922 nsresult SetHtmlFor(const nsAString *aHtmlFor);
1923 nsresult GetEvent(nsAString *aEvent);
1924 nsresult SetEvent(const nsAString *aEvent);
1928 object,
1929 uuid(ec18e71c-4f5c-4cc3-aa36-5273168644dc),
1930 local
1932 interface nsIDOMHTMLImageElement : nsISupports
1934 nsresult GetAlt(nsAString *aAlt);
1935 nsresult SetAlt(const nsAString *aAlt);
1936 nsresult GetSrc(nsAString *aSrc);
1937 nsresult SetSrc(const nsAString *aSrc);
1938 nsresult GetSrcset(nsAString *aSrcset);
1939 nsresult SetSrcset(const nsAString *aSrcset) ;
1940 nsresult GetSizes(nsAString *aSizes);
1941 nsresult SetSizes(const nsAString *aSizes);
1942 nsresult GetUseMap(nsAString *aUseMap);
1943 nsresult SetUseMap(const nsAString *aUseMap);
1944 nsresult GetIsMap(bool *aIsMap);
1945 nsresult SetIsMap(bool aIsMap);
1946 nsresult GetWidth(uint32_t *aWidth);
1947 nsresult SetWidth(uint32_t aWidth);
1948 nsresult GetHeight(uint32_t *aHeight);
1949 nsresult SetHeight(uint32_t aHeight);
1950 nsresult GetNaturalWidth(uint32_t *aNaturalWidth);
1951 nsresult GetNaturalHeight(uint32_t *aNaturalHeight);
1952 nsresult GetComplete(bool *aComplete);
1953 nsresult GetName(nsAString *aName);
1954 nsresult SetName(const nsAString *aName);
1955 nsresult GetAlign(nsAString *aAlign);
1956 nsresult SetAlign(const nsAString *aAlign);
1957 nsresult GetBorder(nsAString *aBorder);
1958 nsresult SetBorder(const nsAString *aBorder);
1959 nsresult GetHspace(int32_t *aHspace);
1960 nsresult SetHspace(int32_t aHspace);
1961 nsresult GetLongDesc(nsAString *aLongDesc);
1962 nsresult SetLongDesc(const nsAString *aLongDesc);
1963 nsresult GetVspace(int32_t *aVspace);
1964 nsresult SetVspace(int32_t aVspace);
1965 nsresult GetLowsrc(nsAString *aLowsrc);
1966 nsresult SetLowsrc(const nsAString *aLowsrc);
1967 nsresult GetCurrentSrc(nsAString *aCurrentSrc);
1968 nsresult GetX(int32_t *aX);
1969 nsresult GetY(int32_t *aY);
1973 object,
1974 uuid(339c01c8-2d41-4626-b231-eec63f0241b6),
1975 local
1977 interface nsIDOMHTMLAnchorElement : nsISupports
1979 nsresult GetHref(nsAString *aHref);
1980 nsresult SetHref(const nsAString *aHref);
1981 nsresult GetTarget(nsAString *aTarget);
1982 nsresult SetTarget(const nsAString *aTarget);
1983 nsresult GetPing(nsAString *aPing);
1984 nsresult SetPing(const nsAString *aPing);
1985 nsresult GetDownload(nsAString *aPing);
1986 nsresult SetDownload(const nsAString *aPing);
1987 nsresult GetRel(nsAString *aRel);
1988 nsresult SetRel(const nsAString *aRel);
1989 nsresult GetHreflang(nsAString *aHreflang);
1990 nsresult SetHreflang(const nsAString *aHreflang);
1991 nsresult GetType(nsAString *aType);
1992 nsresult SetType(const nsAString *aType);
1993 nsresult GetText(nsAString *aText);
1994 nsresult SetText(const nsAString *aText);
1995 nsresult GetProtocol(nsAString *aProtocol);
1996 nsresult SetProtocol(const nsAString *aProtocol);
1997 nsresult GetHost(nsAString *aHost);
1998 nsresult SetHost(const nsAString *aHost);
1999 nsresult GetHostname(nsAString *aHostname);
2000 nsresult SetHostname(const nsAString *aHostname);
2001 nsresult GetPort(nsAString *aPort);
2002 nsresult SetPort(const nsAString *aPort);
2003 nsresult GetPathname(nsAString *aPathname);
2004 nsresult SetPathname(const nsAString *aPathname);
2005 nsresult GetSearch(nsAString *aSearch);
2006 nsresult SetSearch(const nsAString *aSearch);
2007 nsresult GetHash(nsAString *aHash);
2008 nsresult SetHash(const nsAString *aHash);
2009 nsresult GetCharset(nsAString *aCharset);
2010 nsresult SetCharset(const nsAString *aCharset);
2011 nsresult GetCoords(nsAString *aCoords);
2012 nsresult SetCoords(const nsAString *aCoords);
2013 nsresult GetName(nsAString *aName);
2014 nsresult SetName(const nsAString *aName);
2015 nsresult GetRev(nsAString *aRev);
2016 nsresult SetRev(const nsAString *aRev);
2017 nsresult GetShape(nsAString *aShape);
2018 nsresult SetShape(const nsAString *aShape);
2019 nsresult ToString(nsAString *_retval);
2023 object,
2024 uuid(40c78026-36dc-40ca-9221-de73267e9e99),
2025 local
2027 interface nsIDOMHTMLAreaElement : nsISupports
2029 nsresult GetAlt(const nsAString *aAlt);
2030 nsresult SetAlt(nsAString *aAlt);
2031 nsresult GetCoords(const nsAString *aCoords);
2032 nsresult SetCoords(nsAString *aCoords);
2033 nsresult GetShape(const nsAString *aShape);
2034 nsresult SetShape(nsAString *aShape);
2035 nsresult GetHref(const nsAString *aHref);
2036 nsresult SetHref(nsAString *aHref);
2037 nsresult GetTarget(const nsAString *aTarget);
2038 nsresult SetTarget(nsAString *aTarget);
2039 nsresult GetPing(const nsAString *aPing);
2040 nsresult SetPing(nsAString *aPing);
2041 nsresult GetDownload(const nsAString *aDownload);
2042 nsresult SetDownload(nsAString *aDownload);
2043 nsresult GetProtocol(const nsAString *aProtocol);
2044 nsresult SetProtocol(nsAString *aProtocol);
2045 nsresult GetHost(const nsAString *aHost);
2046 nsresult SetHost(nsAString *aHost);
2047 nsresult GetPort(const nsAString *aPort);
2048 nsresult SetPort(nsAString *aPort);
2049 nsresult GetPathname(const nsAString *aPathname);
2050 nsresult SetPathname(nsAString *aPathname);
2051 nsresult GetSearch(const nsAString *aSearch);
2052 nsresult SetSearch(nsAString *aSearch);
2053 nsresult GetHash(const nsAString *aHash);
2054 nsresult SetHash(nsAString *aHash);
2055 nsresult GetNoHref(const nsAString *aNoHref);
2056 nsresult SetNoHref(nsAString *aNoHref);
2057 nsresult ToString(nsAString *_retval);
2061 object,
2062 uuid(ee50b7ab-0015-4fbe-89e0-e3feacd4ffde),
2063 local
2065 interface nsIDOMHTMLLinkElement : nsISupports
2067 nsresult GetDisabled(bool *aDisabled);
2068 nsresult SetDisabled(bool aDisabled);
2069 nsresult GetCharset(nsAString *aCharset);
2070 nsresult SetCharset(const nsAString *aCharset);
2071 nsresult GetHref(nsAString *aHref);
2072 nsresult SetHref(const nsAString *aHref);
2073 nsresult GetHreflang(nsAString *aHreflang);
2074 nsresult SetHreflang(const nsAString *aHreflang);
2075 nsresult GetMedia(nsAString *aMedia);
2076 nsresult SetMedia(const nsAString *aMedia);
2077 nsresult GetRel(nsAString *aRel);
2078 nsresult SetRel(const nsAString *aRel);
2079 nsresult GetRev(nsAString *aRev);
2080 nsresult SetRev(const nsAString *aRev);
2081 nsresult GetTarget(nsAString *aTarget);
2082 nsresult SetTarget(const nsAString *aTarget);
2083 nsresult GetType(nsAString *aType);
2084 nsresult SetType(const nsAString *aType);
2088 object,
2089 uuid(135a30ee-0374-4ee7-9d36-91736bff5fb1),
2090 local
2092 interface nsIDOMHTMLTableElement : nsISupports
2094 nsresult GetCaption(nsIDOMHTMLElement **aCaption);
2095 nsresult SetCaption(nsIDOMHTMLElement *aCaption);
2096 nsresult GetTHead(nsIDOMHTMLElement **aTHead);
2097 nsresult SetTHead(nsIDOMHTMLElement *aTHead);
2098 nsresult GetTFoot(nsIDOMHTMLElement **aTFoot);
2099 nsresult SetTFoot(nsIDOMHTMLElement *aTFoot);
2100 nsresult GetRows(nsIDOMHTMLCollection **aRows);
2101 nsresult GetTBodies(nsIDOMHTMLCollection **aTBodies);
2102 nsresult GetAlign(nsAString *aAlign);
2103 nsresult SetAlign(const nsAString *aAlign);
2104 nsresult GetBgColor(nsAString *aBgColor);
2105 nsresult SetBgColor(const nsAString *aBgColor);
2106 nsresult GetBorder(nsAString *aBorder);
2107 nsresult SetBorder(const nsAString *aBorder);
2108 nsresult GetCellPadding(nsAString *aCellPadding);
2109 nsresult SetCellPadding(const nsAString *aCellPadding);
2110 nsresult GetCellSpacing(nsAString *aCellSpacing);
2111 nsresult SetCellSpacing(const nsAString *aCellSpacing);
2112 nsresult GetFrame(nsAString *aFrame);
2113 nsresult SetFrame(const nsAString *aFrame);
2114 nsresult GetRules(nsAString *aRules);
2115 nsresult SetRules(const nsAString *aRules);
2116 nsresult GetSummary(nsAString *aSummary);
2117 nsresult SetSummary(const nsAString *aSummary);
2118 nsresult GetWidth(nsAString *aWidth);
2119 nsresult SetWidth(const nsAString *aWidth);
2120 nsresult CreateTHead(nsIDOMHTMLElement **_retval);
2121 nsresult xpidlDeleteTHead();
2122 nsresult CreateTFoot(nsIDOMHTMLElement **_retval);
2123 nsresult xpidlDeleteTFoot();
2124 nsresult CreateCaption(nsIDOMHTMLElement **_retval);
2125 nsresult xpidlDeleteCaption();
2126 nsresult InsertRow(int32_t index, nsIDOMHTMLElement **_retval);
2127 nsresult DeleteRow(int32_t index);
2131 object,
2132 uuid(02094366-0d3d-47e3-949c-89113a9bcc15),
2133 local
2135 interface nsIDOMHTMLTableRowElement : nsISupports
2137 nsresult GetRowIndex(int32_t *aRowIndex);
2138 nsresult GetSectionRowIndex(int32_t *aSectionRowIndex);
2139 nsresult GetCells(nsIDOMHTMLCollection **aCells);
2140 nsresult GetAlign(nsAString *aAlign);
2141 nsresult SetAlign(const nsAString *aAlign);
2142 nsresult GetBgColor(nsAString *aBgColor);
2143 nsresult SetBgColor(const nsAString *aBgColor);
2144 nsresult GetCh(nsAString *aCh);
2145 nsresult SetCh(const nsAString *aCh);
2146 nsresult GetChOff(nsAString *aChOff);
2147 nsresult SetChOff(const nsAString *aChOff);
2148 nsresult GetVAlign(nsAString *aVAlign);
2149 nsresult SetVAlign(const nsAString *aVAlign);
2150 nsresult InsertCell(int32_t index, nsIDOMHTMLElement * *_retval);
2151 nsresult DeleteCell(int32_t index);
2155 object,
2156 uuid(3203c36f-33fd-4628-8c88-77e82d38df1e),
2157 local
2159 interface nsIDOMHTMLTableCellElement : nsISupports
2161 nsresult GetCellIndex(int32_t *aCellIndex);
2162 nsresult GetAbbr(nsAString *aAbbr);
2163 nsresult SetAbbr(const nsAString *aAbbr);
2164 nsresult GetAlign(nsAString *aAlign);
2165 nsresult SetAlign(const nsAString *aAlign);
2166 nsresult GetAxis(nsAString *aAxis);
2167 nsresult SetAxis(const nsAString *aAxis);
2168 nsresult GetBgColor(nsAString *aBgColor);
2169 nsresult SetBgColor(const nsAString *aBgColor);
2170 nsresult GetCh(nsAString *aCh);
2171 nsresult SetCh(const nsAString *aCh);
2172 nsresult GetChOff(nsAString *aChOff);
2173 nsresult SetChOff(const nsAString *aChOff);
2174 nsresult GetColSpan(int32_t *aColSpan);
2175 nsresult SetColSpan(int32_t aColSpan);
2176 nsresult GetHeaders(nsAString *aHeaders);
2177 nsresult SetHeaders(const nsAString *aHeaders);
2178 nsresult GetHeight(nsAString *aHeight);
2179 nsresult SetHeight(const nsAString *aHeight);
2180 nsresult GetNoWrap(bool *aNoWrap);
2181 nsresult SetNoWrap(bool aNoWrap);
2182 nsresult GetRowSpan(int32_t *aRowSpan);
2183 nsresult SetRowSpan(int32_t aRowSpan);
2184 nsresult GetScope(nsAString *aScope);
2185 nsresult SetScope(const nsAString *aScope);
2186 nsresult GetVAlign(nsAString *aVAlign);
2187 nsresult SetVAlign(const nsAString *aVAlign);
2188 nsresult GetWidth(nsAString *aWidth);
2189 nsresult SetWidth(const nsAString *aWidth);
2193 object,
2194 uuid(9fd7b656-1055-4cb2-b8b1-ed13efe24457),
2195 local
2197 interface nsIDOMHTMLIFrameElement : nsISupports
2199 nsresult GetAlign(nsAString *aAlign);
2200 nsresult SetAlign(const nsAString *aAlign);
2201 nsresult GetFrameBorder(nsAString *aFrameBorder);
2202 nsresult SetFrameBorder(const nsAString *aFrameBorder);
2203 nsresult GetHeight(nsAString *aHeight);
2204 nsresult SetHeight(const nsAString *aHeight);
2205 nsresult GetLongDesc(nsAString *aLongDesc);
2206 nsresult SetLongDesc(const nsAString *aLongDesc);
2207 nsresult GetMarginHeight(nsAString *aMarginHeight);
2208 nsresult SetMarginHeight(const nsAString *aMarginHeight);
2209 nsresult GetMarginWidth(nsAString *aMarginWidth);
2210 nsresult SetMarginWidth(const nsAString *aMarginWidth);
2211 nsresult GetName(nsAString *aName);
2212 nsresult SetName(const nsAString *aName);
2213 nsresult GetScrolling(nsAString *aScrolling);
2214 nsresult SetScrolling(const nsAString *aScrolling);
2215 nsresult GetSrc(nsAString *aSrc);
2216 nsresult SetSrc(const nsAString *aSrc);
2217 nsresult GetSrcdoc(nsAString *aSrcdoc);
2218 nsresult SetSrcdoc(const nsAString *aSrcdoc);
2219 nsresult GetWidth(nsAString *aWidth);
2220 nsresult SetWidth(const nsAString *aWidth);
2221 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2222 nsresult GetAllowFullscreen(bool *aAllowFullscreen);
2223 nsresult SetAllowFullscreen(bool aAllowFullscreen);
2227 object,
2228 uuid(012a8982-c9d3-4614-91e2-18ee51c97c06),
2229 local
2231 interface nsIDOMHTMLFrameElement : nsISupports
2233 nsresult GetFrameBorder(nsAString *aFrameBorder);
2234 nsresult SetFrameBorder(const nsAString *aFrameBorder);
2235 nsresult GetLongDesc(nsAString *aLongDesc);
2236 nsresult SetLongDesc(const nsAString *aLongDesc);
2237 nsresult GetMarginHeight(nsAString *aMarginHeight);
2238 nsresult SetMarginHeight(const nsAString *aMarginHeight);
2239 nsresult GetMarginWidth(nsAString *aMarginWidth);
2240 nsresult SetMarginWidth(const nsAString *aMarginWidth);
2241 nsresult GetName(nsAString *aName);
2242 nsresult SetName(const nsAString *aName);
2243 nsresult GetNoResize(bool *aNoResize);
2244 nsresult SetNoResize(bool aNoResize);
2245 nsresult GetScrolling(nsAString *aScrolling);
2246 nsresult SetScrolling(const nsAString *aScrolling);
2247 nsresult GetSrc(nsAString *aSrc);
2248 nsresult SetSrc(const nsAString *aSrc);
2249 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2253 object,
2254 uuid(baf443d2-da5d-40c9-be3c-c65a69a25250),
2255 local
2257 interface nsIDOMHTMLObjectElement : nsISupports
2259 nsresult GetForm(nsIDOMHTMLFormElement **aForm);
2260 nsresult GetCode(nsAString *aCode);
2261 nsresult SetCode(const nsAString *aCode);
2262 nsresult GetAlign(nsAString *aAlign);
2263 nsresult SetAlign(const nsAString *aAlign);
2264 nsresult GetArchive(nsAString *aArchive);
2265 nsresult SetArchive(const nsAString *aArchive);
2266 nsresult GetBorder(nsAString *aBorder);
2267 nsresult SetBorder(const nsAString *aBorder);
2268 nsresult GetCodeBase(nsAString *aCodeBase);
2269 nsresult SetCodeBase(const nsAString *aCodeBase);
2270 nsresult GetCodeType(nsAString *aCodeType);
2271 nsresult SetCodeType(const nsAString *aCodeType);
2272 nsresult GetData(nsAString *aData);
2273 nsresult SetData(const nsAString *aData);
2274 nsresult GetDeclare(bool *aDeclare);
2275 nsresult SetDeclare(bool aDeclare);
2276 nsresult GetHeight(nsAString *aHeight);
2277 nsresult SetHeight(const nsAString *aHeight);
2278 nsresult GetHspace(int32_t *aHspace);
2279 nsresult SetHspace(int32_t aHspace);
2280 nsresult GetName(nsAString *aName);
2281 nsresult SetName(const nsAString *aName);
2282 nsresult GetStandby(nsAString *aStandby);
2283 nsresult SetStandby(const nsAString *aStandby);
2284 nsresult GetType(nsAString *aType);
2285 nsresult SetType(const nsAString *aType);
2286 nsresult GetUseMap(nsAString *aUseMap);
2287 nsresult SetUseMap(const nsAString *aUseMap);
2288 nsresult GetVspace(int32_t *aVspace);
2289 nsresult SetVspace(int32_t aVspace);
2290 nsresult GetWidth(nsAString *aWidth);
2291 nsresult SetWidth(const nsAString *aWidth);
2292 nsresult GetContentDocument(nsIDOMDocument **aContentDocument);
2293 nsresult GetWillValidate(bool *aWillValidate);
2294 nsresult GetValidity(nsIDOMValidityState **aValidity);
2295 nsresult GetValidationMessage(nsAString *aValidationMessage);
2296 nsresult CheckValidity(bool *_retval);
2297 nsresult SetCustomValidity(const nsAString *error);
2301 object,
2302 uuid(fa326d22-8739-4eef-a80e-6449bde605d2),
2303 local
2305 interface nsIDOMHTMLStyleElement : nsISupports
2307 nsresult GetDisabled(bool *aDisabled);
2308 nsresult SetDisabled(bool aDisabled);
2309 nsresult GetMedia(nsAString *aMedia);
2310 nsresult SetMedia(const nsAString *aMedia);
2311 nsresult GetType(nsAString *aType);
2312 nsresult SetType(const nsAString *aType);
2313 nsresult GetScoped(bool *aScoped);
2314 nsresult SetScoped(bool aScoped);
2315 nsresult GetDOMStyleSheet(nsIDOMStyleSheet **aDOMStyleSheet);
2319 object,
2320 uuid(10a28f38-32e8-4c63-8aa1-12eaaebc369a),
2321 local
2323 interface nsIURIContentListener : nsISupports
2325 nsresult OnStartURIOpen(nsIURI *aURI, bool *_retval);
2326 nsresult DoContent(const nsACString *aContentType, bool aIsContentPreferred, nsIRequest *aRequest,
2327 nsIStreamListener **aContentHandler, bool *_retval);
2328 nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, bool *_retval);
2329 nsresult CanHandleContent(const char *aContentType, bool aIsContentPreferred,
2330 char **aDesiredContentType, bool *_retval);
2331 nsresult GetLoadCookie(nsISupports **aLoadCookie);
2332 nsresult SetLoadCookie(nsISupports *aLoadCookie);
2333 nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
2334 nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
2338 object,
2339 uuid(44b78386-1dd2-11b2-9ad2-e4eee2ca1916),
2340 local
2342 interface nsITooltipListener : nsISupports
2344 nsresult OnShowTooltip(int32_t aXCoords, int32_t aYCoords, const PRUnichar *aTipText);
2345 nsresult OnHideTooltip();
2349 object,
2350 uuid(4052b6da-4faa-4646-b3a1-7e16a01c2dc2),
2351 local
2353 interface nsIWebBrowser : nsISupports
2355 nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
2356 nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
2357 nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
2358 nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
2359 nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
2360 nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
2361 nsresult GetContentDOMWindow(mozIDOMWindowProxy **aContentDOMWindow);
2362 nsresult GetIsActive(bool *aIsActive);
2363 nsresult SetIsActive(bool aIsActive);
2366 cpp_quote("#define SETUP_ALLOW_JAVASCRIPT 2")
2367 cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7")
2368 cpp_quote("#define SETUP_DISABLE_NOSCRIPT 16")
2371 object,
2372 uuid(f15398a0-8018-11d3-af70-00a024ffc08c),
2373 local
2375 interface nsIWebBrowserSetup : nsISupports
2377 nsresult SetProperty(uint32_t aId, uint32_t aValue);
2380 typedef void* nativeWindow;
2383 object,
2384 uuid(ca635529-a977-4552-9b8a-66187e54d882),
2385 local
2387 interface nsIBaseWindow : nsISupports
2389 nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, int32_t x,
2390 int32_t y, int32_t cx, int32_t cy);
2391 nsresult Create();
2392 nsresult Destroy();
2393 nsresult SetPosition(int32_t x, int32_t y);
2394 nsresult SetPositionDesktopPix(int32_t x, int32_t y);
2395 nsresult GetPosition(int32_t *x, int32_t *y);
2396 nsresult SetSize(int32_t cx, int32_t cy, bool fRepaint);
2397 nsresult GetSize(int32_t *cx, int32_t *cy);
2398 nsresult SetPositionAndSize(int32_t x, int32_t y, int32_t cx, int32_t cy, bool fRepaint);
2399 nsresult GetPositionAndSize(int32_t *x, int32_t *y, int32_t *cx, int32_t *cy);
2400 nsresult Repaint(bool force);
2401 nsresult GetParentWidget(nsIWidget **aParentWidget);
2402 nsresult SetParentWidget(nsIWidget *aParentWidget);
2403 nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
2404 nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
2405 nsresult GetNativeHandle(nsAString *aNativeHandle);
2406 nsresult GetVisibility(bool *aVisibility);
2407 nsresult SetVisibility(bool aVisibility);
2408 nsresult GetEnabled(bool *aEnabled);
2409 nsresult SetEnabled(bool aEnabled);
2410 nsresult GetMainWidget(nsIWidget **aMainWidget);
2411 nsresult GetUnscaledDevicePixelsPerCSSPixel(double *aUnscaledDevicePixelsPerCSSPixel);
2412 nsresult GetDevicePixelsPerDesktopPixel(double *aDevicePixelsPerDesktopPixel);
2413 nsresult SetFocus();
2414 nsresult GetTitle(PRUnichar **aTitle);
2415 nsresult SetTitle(const PRUnichar *aTitle);
2419 object,
2420 uuid(3ade79d4-8cb9-4952-b18d-4f9b63ca0d31),
2421 local
2423 interface nsIWebNavigation : nsISupports
2425 const UINT LOAD_FLAGS_MASK = 0xffff;
2426 const UINT LOAD_FLAGS_NONE = 0;
2427 const UINT LOAD_FLAGS_IS_REFRESH = 0x0010;
2428 const UINT LOAD_FLAGS_IS_LINK = 0x0020;
2429 const UINT LOAD_FLAGS_BYPASS_HISTORY = 0x0040;
2430 const UINT LOAD_FLAGS_REPLACE_HISTORY = 0x0080;
2431 const UINT LOAD_FLAGS_BYPASS_CACHE = 0x0100;
2432 const UINT LOAD_FLAGS_BYPASS_PROXY = 0x0200;
2433 const UINT LOAD_FLAGS_CHARSET_CHANGE = 0x0400;
2434 const UINT LOAD_FLAGS_STOP_CONTENT = 0x0800;
2435 const UINT LOAD_FLAGS_FROM_EXTERNAL = 0x1000;
2436 const UINT LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP = 0x2000;
2437 const UINT LOAD_FLAGS_FIRST_LOAD = 0x4000;
2438 const UINT LOAD_FLAGS_ALLOW_POPUPS = 0x8000;
2439 const UINT LOAD_FLAGS_BYPASS_CLASSIFIER = 0x10000;
2440 const UINT LOAD_FLAGS_FORCE_ALLOW_COOKIES = 0x20000;
2441 const UINT LOAD_FLAGS_DISALLOW_INHERIT_OWNER = 0x40000;
2442 const UINT LOAD_FLAGS_ERROR_LOAD_CHANGES_RV = 0x80000;
2444 nsresult GetCanGoBack(bool *aCanGoBack);
2445 nsresult GetCanGoForward(bool *aCanGoForward);
2446 nsresult GoBack();
2447 nsresult GoForward();
2448 nsresult GotoIndex(int32_t index);
2449 nsresult LoadURI(const PRUnichar *aURI, uint32_t aLoadFlags, nsIURI *aReferrer,
2450 nsIInputStream *aPostData, nsIInputStream *aHeaders);
2451 nsresult LoadURIWithOptions(const PRUnichar *aURI, uint32_t aLoadFlags, nsIURI *aReferrer, uint32_t aReferrerPolicy,
2452 nsIInputStream *aPostData, nsIInputStream *aHeaders, nsIURI *aBaseURI);
2453 nsresult Reload(uint32_t aReloadFlags);
2454 nsresult Stop(uint32_t aStopFlags);
2455 nsresult GetDocument(nsIDOMDocument **aDocument);
2456 nsresult GetCurrentURI(nsIURI **aCurrentURI);
2457 nsresult GetReferringURI(nsIURI **aReferringURI);
2458 nsresult GetSessionHistory(nsISHistory **aSessionHistory);
2459 nsresult SetSessionHistory(nsISHistory *aSessionHistory);
2463 object,
2464 uuid(c4d64640-b332-4db6-a2a5-e08566000dc9),
2465 local
2467 interface nsIWebProgress : nsISupports
2469 nsresult AddProgressListener(nsIWebProgressListener *aListener, uint32_t aNotifyMask);
2470 nsresult RemoveProgressListener(nsIWebProgressListener *aListener);
2471 nsresult GetDOMWindow(mozIDOMWindowProxy **aDOMWindow);
2472 nsresult GetDOMWindowID(uint64_t *aDOMWindowID);
2473 nsresult GetIsTopLevel(bool *aIsTopLevel);
2474 nsresult GetIsLoadingDocument(bool *aIsLoadingDocument);
2475 nsresult GetLoadType(uint32_t *aLoadType);
2479 object,
2480 uuid(ecc5cbad-57fc-4731-b0bd-09e865bd62ad),
2481 local
2483 interface nsIPrintSettings : nsISupports
2485 typedef struct { char dummy; } nsIntMargin;
2487 nsresult SetPrintOptions(int32_t aType, bool aTurnOnOff);
2488 nsresult GetPrintOptions(int32_t aType, bool *_retval);
2489 nsresult GetPrintOptionsBits(int32_t *_retval);
2490 nsresult SetPrintOptionsBits(int32_t bits);
2491 nsresult GetEffectivePageSize(double *aWidth, double *aHeight);
2492 nsresult Clone(nsIPrintSettings **_retval);
2493 nsresult Assign(nsIPrintSettings *aPS);
2494 nsresult GetPrintSession(nsIPrintSession **aPrintSession);
2495 nsresult SetPrintSession(nsIPrintSession *aPrintSession);
2496 nsresult GetStartPageRange(int32_t *aStartPageRange);
2497 nsresult SetStartPageRange(int32_t aStartPageRange);
2498 nsresult GetEndPageRange(int32_t *aEndPageRange);
2499 nsresult SetEndPageRange(int32_t aEndPageRange);
2500 nsresult GetEdgeTop(double *aEdgeTop);
2501 nsresult SetEdgeTop(double aEdgeTop);
2502 nsresult GetEdgeLeft(double *aEdgeLeft);
2503 nsresult SetEdgeLeft(double aEdgeLeft);
2504 nsresult GetEdgeBottom(double *aEdgeBottom);
2505 nsresult SetEdgeBottom(double aEdgeBottom);
2506 nsresult GetEdgeRight(double *aEdgeRight);
2507 nsresult SetEdgeRight(double aEdgeRight);
2508 nsresult GetMarginTop(double *aMarginTop);
2509 nsresult SetMarginTop(double aMarginTop);
2510 nsresult GetMarginLeft(double *aMarginLeft);
2511 nsresult SetMarginLeft(double aMarginLeft);
2512 nsresult GetMarginBottom(double *aMarginBottom);
2513 nsresult SetMarginBottom(double aMarginBottom);
2514 nsresult GetMarginRight(double *aMarginRight);
2515 nsresult SetMarginRight(double aMarginRight);
2516 nsresult GetUnwriteableMarginTop(double *aUnwriteableMarginTop);
2517 nsresult SetUnwriteableMarginTop(double aUnwriteableMarginTop);
2518 nsresult GetUnwriteableMarginLeft(double *aUnwriteableMarginLeft);
2519 nsresult SetUnwriteableMarginLeft(double aUnwriteableMarginLeft);
2520 nsresult GetUnwriteableMarginBottom(double *aUnwriteableMarginBottom);
2521 nsresult SetUnwriteableMarginBottom(double aUnwriteableMarginBottom);
2522 nsresult GetUnwriteableMarginRight(double *aUnwriteableMarginRight);
2523 nsresult SetUnwriteableMarginRight(double aUnwriteableMarginRight);
2524 nsresult GetScaling(double *aScaling);
2525 nsresult SetScaling(double aScaling);
2526 nsresult GetPrintBGColors(bool *aPrintBGColors);
2527 nsresult SetPrintBGColors(bool aPrintBGColors);
2528 nsresult GetPrintBGImages(bool *aPrintBGImages);
2529 nsresult SetPrintBGImages(bool aPrintBGImages);
2530 nsresult GetPrintRange(int16_t *aPrintRange);
2531 nsresult SetPrintRange(int16_t aPrintRange);
2532 nsresult GetTitle(PRUnichar **aTitle);
2533 nsresult SetTitle(const PRUnichar *aTitle);
2534 nsresult GetDocURL(PRUnichar **aDocURL);
2535 nsresult SetDocURL(const PRUnichar *aDocURL);
2536 nsresult GetHeaderStrLeft(PRUnichar **aHeaderStrLeft);
2537 nsresult SetHeaderStrLeft(const PRUnichar *aHeaderStrLeft);
2538 nsresult GetHeaderStrCenter(PRUnichar **aHeaderStrCenter);
2539 nsresult SetHeaderStrCenter(const PRUnichar *aHeaderStrCenter);
2540 nsresult GetHeaderStrRight(PRUnichar **aHeaderStrRight);
2541 nsresult SetHeaderStrRight(const PRUnichar *aHeaderStrRight);
2542 nsresult GetFooterStrLeft(PRUnichar **aFooterStrLeft);
2543 nsresult SetFooterStrLeft(const PRUnichar *aFooterStrLeft);
2544 nsresult GetFooterStrCenter(PRUnichar **aFooterStrCenter);
2545 nsresult SetFooterStrCenter(const PRUnichar *aFooterStrCenter);
2546 nsresult GetFooterStrRight(PRUnichar **aFooterStrRight);
2547 nsresult SetFooterStrRight(const PRUnichar *aFooterStrRight);
2548 nsresult GetHowToEnableFrameUI(int16_t *aHowToEnableFrameUI);
2549 nsresult SetHowToEnableFrameUI(int16_t aHowToEnableFrameUI);
2550 nsresult GetIsCancelled(bool *aIsCancelled);
2551 nsresult SetIsCancelled(bool aIsCancelled);
2552 nsresult GetPrintFrameTypeUsage(int16_t *aPrintFrameTypeUsage);
2553 nsresult SetPrintFrameTypeUsage(int16_t aPrintFrameTypeUsage);
2554 nsresult GetPrintFrameType(int16_t *aPrintFrameType);
2555 nsresult SetPrintFrameType(int16_t aPrintFrameType);
2556 nsresult GetPrintSilent(bool *aPrintSilent);
2557 nsresult SetPrintSilent(bool aPrintSilent);
2558 nsresult GetShrinkToFit(bool *aShrinkToFit);
2559 nsresult SetShrinkToFit(bool aShrinkToFit);
2560 nsresult GetShowPrintProgress(bool *aShowPrintProgress);
2561 nsresult SetShowPrintProgress(bool aShowPrintProgress);
2562 nsresult GetPaperName(PRUnichar **aPaperName);
2563 nsresult SetPaperName(const PRUnichar *aPaperName);
2564 nsresult GetPaperData(int16_t *aPaperData);
2565 nsresult SetPaperData(int16_t aPaperData);
2566 nsresult GetPaperWidth(double *aPaperWidth);
2567 nsresult SetPaperWidth(double aPaperWidth);
2568 nsresult GetPaperHeight(double *aPaperHeight);
2569 nsresult SetPaperHeight(double aPaperHeight);
2570 nsresult GetPaperSizeUnit(int16_t *aPaperSizeUnit);
2571 nsresult SetPaperSizeUnit(int16_t aPaperSizeUnit);
2572 nsresult GetPrintReversed(bool *aPrintReversed);
2573 nsresult SetPrintReversed(bool aPrintReversed);
2574 nsresult GetPrintInColor(bool *aPrintInColor);
2575 nsresult SetPrintInColor(bool aPrintInColor);
2576 nsresult GetOrientation(int32_t *aOrientation);
2577 nsresult SetOrientation(int32_t aOrientation);
2578 nsresult GetNumCopies(int32_t *aNumCopies);
2579 nsresult SetNumCopies(int32_t aNumCopies);
2580 nsresult GetPrinterName(PRUnichar **aPrinterName);
2581 nsresult SetPrinterName(const PRUnichar *aPrinterName);
2582 nsresult GetPrintToFile(bool *aPrintToFile);
2583 nsresult SetPrintToFile(bool aPrintToFile);
2584 nsresult GetToFileName(PRUnichar **aToFileName);
2585 nsresult SetToFileName(const PRUnichar *aToFileName);
2586 nsresult GetOutputFormat(int16_t *aOutputFormat);
2587 nsresult SetOutputFormat(int16_t aOutputFormat);
2588 nsresult GetPrintPageDelay(int32_t *aPrintPageDelay);
2589 nsresult SetPrintPageDelay(int32_t aPrintPageDelay);
2590 nsresult GetResolution(int32_t *aResolution) = 0;
2591 nsresult SetResolution(int32_t aResolution) = 0;
2592 nsresult GetDuplex(int32_t *aDuplex);
2593 nsresult SetDuplex(int32_t aDuplex);
2594 nsresult GetIsInitializedFromPrinter(bool *aIsInitializedFromPrinter);
2595 nsresult SetIsInitializedFromPrinter(bool aIsInitializedFromPrinter);
2596 nsresult GetIsInitializedFromPrefs(bool *aIsInitializedFromPrefs);
2597 nsresult SetIsInitializedFromPrefs(bool aIsInitializedFromPrefs);
2598 nsresult GetPersistMarginBoxSettings(bool *aPersistMarginBoxSettings);
2599 nsresult SetPersistMarginBoxSettings(bool aPersistMarginBoxSettings);
2600 nsresult SetMarginInTwips(nsIntMargin *aMargin);
2601 nsresult SetEdgeInTwips(nsIntMargin *aEdge);
2602 nsresult GetMarginInTwips(nsIntMargin *aMargin);
2603 nsresult GetEdgeInTwips(nsIntMargin *aEdge);
2604 nsresult SetupSilentPrinting();
2605 nsresult SetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2606 nsresult GetUnwriteableMarginInTwips(nsIntMargin *aEdge);
2607 nsresult GetPageRanges(void * /*nsTArray<int32_t>*/ aPages);
2611 object,
2612 uuid(c9a934ed-fff1-4971-bfba-6c25ad70e1e6),
2613 local
2615 interface nsIWebBrowserPrint : nsISupports
2617 nsresult GetGlobalPrintSettings(nsIPrintSettings **aGlobalPrintSettings);
2618 nsresult GetCurrentPrintSettings(nsIPrintSettings **aCurrentPrintSettings);
2619 nsresult GetCurrentChildDOMWindow(mozIDOMWindowProxy **aCurrentChildDOMWindow);
2620 nsresult GetDoingPrint(bool *aDoingPrint);
2621 nsresult GetDoingPrintPreview(bool *aDoingPrintPreview);
2622 nsresult GetIsFramesetDocument(bool *aIsFramesetDocument);
2623 nsresult GetIsFramesetFrameSelected(bool *aIsFramesetFrameSelected);
2624 nsresult GetIsIFrameSelected(bool *aIsIFrameSelected);
2625 nsresult GetIsRangeSelection(bool *aIsRangeSelection);
2626 nsresult GetPrintPreviewNumPages(int32_t *aPrintPreviewNumPages);
2627 nsresult Print(nsIPrintSettings *aThePrintSettings, nsIWebProgressListener *aWPListener);
2628 nsresult PrintPreview(nsIPrintSettings *aThePrintSettings, mozIDOMWindowProxy *aChildDOMWin,
2629 nsIWebProgressListener *aWPListener);
2630 nsresult PrintPreviewNavigate(int16_t aNavType, int32_t aPageNum);
2631 nsresult Cancel();
2632 nsresult EnumerateDocumentNames(uint32_t *aCount, PRUnichar ***aResult);
2633 nsresult ExitPrintPreview();
2637 object,
2638 uuid(3507fc93-313e-4a4c-8ca8-4d0ea0f97315),
2639 local
2641 interface nsIScrollable : nsISupports
2643 enum {
2644 ScrollOrientation_X = 1,
2645 ScrollOrientation_Y = 2
2648 enum {
2649 Scrollbar_Auto = 1,
2650 Scrollbar_Never = 2,
2651 Scrollbar_Always = 3
2654 nsresult GetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t *_retval);
2655 nsresult SetDefaultScrollbarPreferences(int32_t scrollOrientation, int32_t scrollbarPref);
2656 nsresult GetScrollbarVisibility(bool *verticalVisible, bool *horizontalVisible);
2660 object,
2661 uuid(2fa6884a-ae65-412a-9d4c-ce6e34544ba1),
2662 local
2664 interface nsIFile : nsISupports
2666 typedef struct {
2667 /* Currently not needed */
2668 char dummy;
2669 } PRFileDesc, PRLibrary, widl_FILE;
2670 #define FILE widl_FILE
2672 nsresult Append(const nsAString *node);
2673 nsresult AppendNative(const nsAString *node);
2674 nsresult Normalize();
2675 nsresult Create(uint32_t type, uint32_t permission);
2676 nsresult GetLeafName(nsAString *aLeafName);
2677 nsresult SetLeafName(const nsAString *aLeafName);
2678 nsresult GetNativeLeafName(nsAString *aLeafName);
2679 nsresult SetNativeLeafName(const nsAString *aLeafName);
2680 nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
2681 nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
2682 nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
2683 nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
2684 nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
2685 nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
2686 nsresult RenameTo(nsIFile *newParentDir, const nsAString *newName);
2687 nsresult RenameToNative(nsIFile *newParentDir, const nsACString *newName);
2688 nsresult Remove(bool recursive);
2689 nsresult GetPermissions(uint32_t *aPermissions);
2690 nsresult SetPermissions(uint32_t pPermissions);
2691 nsresult GetPermissionsOfLink(uint32_t *aPermissions);
2692 nsresult SetPermissionsOfLink(uint32_t pPermissions);
2693 nsresult GetLastModifiedTime(PRTime *aLastModifiedTime);
2694 nsresult SetLastModifiedTime(PRTime aLastModifiedTime);
2695 nsresult GetLastModifiedTimeOfLink(PRTime *aLastModifiedTimeOfLink);
2696 nsresult SetLastModifiedTimeOfLink(PRTime aLastModifiedTimeOfLink);
2697 nsresult GetFileSize(int64_t *aFileSize);
2698 nsresult SetFileSize(int64_t aFileSize);
2699 nsresult GetFileSizeOfLink(int64_t *aFileSizeOfLink);
2700 nsresult GetTarget(nsAString *aTarget);
2701 nsresult GetNativeTarget(nsACString *aNativeTarget);
2702 nsresult GetPath(nsAString *aPath);
2703 nsresult GetNativePath(nsACString *aNativePath);
2704 nsresult Exists(bool *_retval);
2705 nsresult IsWritable(bool *_retval);
2706 nsresult IsReadable(bool *_retval);
2707 nsresult IsExecutable(bool *_retval);
2708 nsresult IsHidden(bool *_retval);
2709 nsresult IsDirectory(bool *_retval);
2710 nsresult IsFile(bool *_retval);
2711 nsresult IsSymlink(bool *_retval);
2712 nsresult IsSpecial(bool *_retval);
2713 nsresult CreateUnique(uint32_t type, uint32_t permission);
2714 nsresult Clone(nsIFile **_retval);
2715 nsresult Equals(nsIFile *inFile, bool *_retval);
2716 nsresult Contains(nsIFile *inFile, bool *_retval);
2717 nsresult GetParent(nsIFile **aParent);
2718 nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
2719 nsresult InitWithPath(const nsAString *filePath);
2720 nsresult InitWithNativePath(const nsACString *filePath);
2721 nsresult InitWithFile(nsIFile *aFile);
2722 nsresult GetFollowLinks(bool *aFollowLinks);
2723 nsresult SetFollowLinks(bool aFollowLinks);
2724 nsresult OpenNSPRFileDesc(int32_t flags, int32_t mode, PRFileDesc **_retval);
2725 nsresult OpenANSIFileDesc(const char *mode, FILE **_retval);
2726 nsresult Load(PRLibrary **_retval);
2727 nsresult GetDiskSpaceAvailable(int64_t *aDiskSpaceAvailable);
2728 nsresult AppendRelativePath(const nsAString *relativeFilePath);
2729 nsresult AppendRelativeNativePath(const nsACString *relativeFilePath);
2730 nsresult GetPersistentDescriptor(nsACString *aPersistentDescriptor);
2731 nsresult SetPersistentDescriptor(const nsACString *aPersistentDescriptor);
2732 nsresult Reveal();
2733 nsresult Launch();
2734 nsresult GetRelativeDescriptor(nsIFile *fromFile, nsACString *_retval);
2735 nsresult SetRelativeDescriptor(nsIFile *fromFile, const nsACString *relativeDesc);
2736 nsresult GetRelativePath(nsIFile *fromFile, nsACString *_retval);
2737 nsresult SetRelativePath(nsIFile *fromFile, const nsACString *relativeDesc);
2741 object,
2742 uuid(d604ffc3-1ba3-4f6c-b65f-1ed4199364c3),
2743 local
2745 interface nsIComponentManager : nsISupports
2747 nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, void **result);
2748 nsresult GetClassObjectByContractID(const char *aContractID, nsIIDRef aIID, void **result);
2749 nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
2750 void **result);
2751 nsresult CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate,
2752 nsIIDRef aIID, void **result);
2753 nsresult AddBootstrappedManifestLocation(nsIFile *aLocation);
2754 nsresult RemoveBootstrappedManifestLocation(nsIFile *aLocation);
2755 nsresult GetManifestLocations(nsIArray **_retval);
2759 object,
2760 uuid(55d25e49-793f-4727-a69f-de8b15f4b985),
2761 local
2763 interface nsIPrefBranch : nsISupports
2765 nsresult GetRoot(char **aRoot);
2766 nsresult GetPrefType(const char *aPrefName, int32_t *_retval);
2767 nsresult GetBoolPref(const char *aPrefName, bool *_retval);
2768 nsresult SetBoolPref(const char *aPrefName, bool aValue);
2769 nsresult GetFloatPref(const char *aPrefName, float *_retval);
2770 nsresult GetCharPref(const char *aPrefName, char **_retval);
2771 nsresult SetCharPref(const char *aPrefName, const char *aValue);
2772 nsresult GetIntPref(const char *aPrefName, int32_t *_retval);
2773 nsresult SetIntPref(const char *aPrefName, int32_t aValue);
2774 nsresult GetComplexValue(const char *aPrefName, const nsIID *aType, void **aValue);
2775 nsresult SetComplexValue(const char *aPrefName, const nsIID *aType, nsISupports *aValue);
2776 nsresult ClearUserPref(const char *aPrefName);
2777 nsresult LockPref(const char *aPrefName);
2778 nsresult PrefHasUserValue(const char *aPrefName, bool *_retval);
2779 nsresult PrefIsLocked(const char *aPrefName, bool *_retval);
2780 nsresult UnlockPref(const char *aPrefName);
2781 nsresult DeleteBranch(const char *aStartingAt);
2782 nsresult GetChildList(const char *aStartingAt, uint32_t *aCount, char ***aChildArray);
2783 nsresult ResetBranch(const char *aStartingAt);
2784 nsresult AddObserver(const char *aDomain, nsIObserver *aObserver, bool aHoldWeak);
2785 nsresult RemoveObserver(const char *aDomain, nsIObserver *aObserver);
2789 object,
2790 uuid(bbf8cab0-d43a-11d3-8cc2-00609792278c),
2791 local
2793 interface nsIDirectoryServiceProvider : nsISupports
2795 nsresult GetFile(const char *prop, bool *persistent, nsIFile **_retval);
2799 object,
2800 uuid(2f977d4b-5485-11d4-87e2-0010a4e75ef2),
2801 local
2803 interface nsIDirectoryServiceProvider2 : nsIDirectoryServiceProvider
2805 nsresult GetFiles(const char *prop, nsISimpleEnumerator **_retval);
2809 object,
2810 uuid(a87210e6-7c8c-41f7-864d-df809015193e),
2811 local
2813 interface nsIProtocolHandler : nsISupports
2815 const unsigned long URI_STD = 0;
2816 const unsigned long URI_NORELATIVE = (1<<0);
2817 const unsigned long URI_NOAUTH = (1<<1);
2818 const unsigned long ALLOWS_PROXY = (1<<2);
2819 const unsigned long ALLOWS_PROXY_HTTP = (1<<3);
2820 const unsigned long URI_INHERITS_SECURITY_CONTEXT = (1<<4);
2821 const unsigned long URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT = (1<<5);
2822 const unsigned long URI_LOADABLE_BY_ANYONE = (1<<6);
2823 const unsigned long URI_DANGEROUS_TO_LOAD = (1<<7);
2824 const unsigned long URI_IS_UI_RESOURCE = (1<<8);
2825 const unsigned long URI_IS_LOCAL_FILE = (1<<9);
2826 const unsigned long URI_LOADABLE_BY_SUBSUMERS = (1<<10);
2827 const unsigned long URI_DOES_NOT_RETURN_DATA = (1<<11);
2828 const unsigned long URI_IS_LOCAL_RESOURCE = (1<<12);
2829 const unsigned long URI_OPENING_EXECUTES_SCRIPT = (1<<13);
2830 const unsigned long URI_NON_PERSISTABLE = (1<<14);
2831 const unsigned long URI_FORBIDS_COOKIE_ACCESS = (1<<15);
2832 const unsigned long URI_CROSS_ORIGIN_NEEDS_WEBAPPS_PERM = (1<<16);
2833 const unsigned long URI_SYNC_LOAD_IS_OK = (1<<17);
2834 const unsigned long URI_SAFE_TO_LOAD_IN_SECURE_CONTEXT = (1<<18);
2835 const unsigned long URI_FETCHABLE_BY_ANYONE = (1 << 19);
2837 nsresult GetScheme(nsACString *aScheme);
2838 nsresult GetDefaultPort(int32_t *aDefaultPort);
2839 nsresult GetProtocolFlags(uint32_t *aProtocolFlags);
2840 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset,
2841 nsIURI *aBaseURI, nsIURI **_retval);
2842 nsresult NewChannel2(nsIURI *aURI, nsILoadInfo *aLoadinfo, nsIChannel **_retval);
2843 nsresult NewChannel(nsIURI *aURI, nsIChannel **_retval);
2844 nsresult AllowPort(int32_t port, const char *scheme, bool *_retval);
2848 object,
2849 uuid(0e61f3b2-34d7-4c79-bfdc-4860bc7341b7),
2850 local
2852 interface nsIExternalProtocolHandler : nsIProtocolHandler
2854 nsresult ExternalAppExistsForScheme(const nsACString *scheme, bool *_retval);
2858 object,
2859 uuid(d13c21ca-7329-45a5-8912-9d2e2fef1231),
2860 local
2862 interface nsIIOServiceHook : nsISupports
2864 nsresult NewChannel(nsIURI *aURI, nsILoadInfo *aLoadInfo, nsIChannel **_retval);
2865 nsresult GetProtocolHandler(nsIProtocolHandler *aHandler, nsIProtocolHandler **_retval);
2866 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI, nsIURI **_retval);
2867 nsresult ProtocolHasFlags(nsIURI *aURI, uint32_t aFlag, bool *_retval);
2868 nsresult URIChainHasFlags(nsIURI *aURI, uint32_t aFlags, bool *_retval);
2872 object,
2873 uuid(4286de5a-b2ea-446f-8f70-e2a461f42694),
2874 local
2876 interface nsIIOService : nsISupports
2878 nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
2879 nsresult GetProtocolFlags(const char *aScheme, uint32_t *_retval);
2880 nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2881 nsIURI **_retval);
2882 nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
2883 nsresult NewChannelFromURI2(nsIURI *aURI, nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal,
2884 nsIPrincipal *aTriggeringPrincipal, uint32_t aSecurityFlags, uint32_t aContentPolicyType,
2885 nsIChannel **_retval);
2886 nsresult NewChannelFromURIWithLoadInfo(nsIURI *aURI, nsILoadInfo *aLoadInfo, nsIChannel **_retval);
2887 nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
2888 nsresult NewChannel2(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2889 nsIDOMNode *aLoadingNode, nsIPrincipal *aLoadingPrincipal, nsIPrincipal *aTriggeringPrincipal,
2890 uint32_t aSecurityFlags, uint32_t aContentPolicyType, nsIChannel **_retval);
2891 nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
2892 nsIChannel **_retval);
2893 nsresult GetOffline(bool *aOffline);
2894 nsresult SetOffline(bool aOffline);
2895 nsresult GetConnectivity(bool *aConnectivity);
2896 nsresult SetAppOffline(uint32_t appId, int32_t state);
2897 nsresult IsAppOffline(uint32_t appId, bool *_retval);
2898 nsresult GetAppOfflineState(uint32_t appId, int32_t *_retval);
2899 nsresult AllowPort(int32_t aPort, const char *aScheme, bool *_retval);
2900 nsresult ExtractScheme(const nsACString *urlString, nsACString *_retval);
2901 nsresult SetHook(nsIIOServiceHook *aHook);
2905 object,
2906 uuid(7f8c754e-5b36-44be-bc96-191b49f08ea6),
2907 local
2909 interface nsIWebBrowserFocus : nsISupports
2911 nsresult Activate();
2912 nsresult Deactivate();
2913 nsresult SetFocusAtFirstElement();
2914 nsresult SetFocusAtLastElement();
2915 nsresult GetFocusedWindow(mozIDOMWindowProxy **aFocusedWindow);
2916 nsresult SetFocusedWindow(mozIDOMWindowProxy *aFocusedWindow);
2917 nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
2918 nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
2922 object,
2923 uuid(e8c414c4-dc38-4ba3-ab4e-ec4cbbe22907),
2924 local
2926 interface nsIWebBrowserChrome : nsISupports
2928 nsresult SetStatus(uint32_t statusType, const PRUnichar *status);
2929 nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
2930 nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
2931 nsresult GetChromeFlags(uint32_t *aChromeFlags);
2932 nsresult SetChromeFlags(uint32_t aChromeFlags);
2933 nsresult DestroyBrowserWindow();
2934 nsresult SizeBrowserTo(int32_t aCX, int32_t aCY);
2935 nsresult ShowAsModal();
2936 nsresult IsWindowModal(bool *_retval);
2937 nsresult ExitModalEventLoop(nsresult aStatus);
2941 object,
2942 uuid(df31c120-ded6-11d1-bd85-00805f8ae3f4),
2943 local
2945 interface nsIDOMEventListener : nsISupports
2947 nsresult HandleEvent(nsIDOMEvent *event);
2951 object,
2952 uuid(9a78ac3c-9507-4d00-b2d6-10b508d2ec31),
2953 local
2955 interface nsIDOMEventTarget : nsISupports
2957 nsresult AddEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture, bool wantsUntrusted, uint8_t _argc);
2958 nsresult AddSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture, bool aWantsUntrusted, uint8_t _argc);
2959 nsresult RemoveEventListener(const nsAString *type, nsIDOMEventListener *listener, bool useCapture);
2960 nsresult RemoveSystemEventListener(const nsAString *type, nsIDOMEventListener *listener, bool aUseCapture);
2961 nsresult DispatchEvent(nsIDOMEvent *evt, bool *_retval);
2963 /* Followed by methods we should try to avoid using */
2967 object,
2968 uuid(f58daacf-4d1a-4002-8fd7-06b614dfbcf6),
2969 local
2971 interface nsIDOMEvent : nsISupports
2973 nsresult GetType(nsAString *aType);
2974 nsresult GetTarget(nsIDOMEventTarget **aTarget);
2975 nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
2976 nsresult GetEventPhase(uint16_t *aEventPhase);
2977 nsresult GetBubbles(bool *aBubbles);
2978 nsresult GetCancelable(bool *aCancelable);
2979 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
2980 nsresult StopPropagation();
2981 nsresult PreventDefault();
2982 void /* thiscall */ InitEvent(const nsAString *eventTypeArg, bool canBubbleArg, bool cancelableArg);
2983 nsresult GetDefaultPrevented(bool *aDefaultPrevented);
2984 nsresult StopImmediatePropagation();
2985 nsresult GetOriginalTarget(nsIDOMEventTarget **aOriginalTarget);
2986 nsresult GetExplicitOriginalTarget(nsIDOMEventTarget * *aExplicitOriginalTarget);
2987 nsresult GetPreventDefault(bool *_retval);
2988 nsresult GetIsTrusted(bool *aIsTrusted);
2989 nsresult DuplicatePrivateData();
2990 nsresult SetTarget(nsIDOMEventTarget *aTarget);
2991 bool IsDispatchStopped();
2992 /*WidgetEvent*/ void *WidgetEventPtr();
2993 void SetTrusted(bool aTrusted);
2994 void Serialize(/*IPC::Message*/ void *aMsg, bool aSerializeInterfaceType);
2995 bool Deserialize(const /*IPC::Message*/ void *aMsg, void **aIter);
2996 void SetOwner(void /*mozilla::dom::EventTarget*/ *aOwner);
2997 void /*nsDOMEvent*/ *InternalDOMEvent();
2998 nsresult StopCrossProcessForwarding();
3002 object,
3003 uuid(46b44e33-13c2-4eb3-bf80-76a4e0857ccc),
3004 local
3006 interface nsIDOMWindowUtils : nsISupports
3008 nsresult GetImageAnimationMode(uint16_t *aImageAnimationMode);
3009 nsresult SetImageAnimationMode(uint16_t aImageAnimationMode);
3010 nsresult GetDocCharsetIsForced(bool *aDocCharsetIsForced);
3011 nsresult GetCursorType(int16_t *_retval);
3012 nsresult GetDocumentMetadata(const nsAString *aName, nsAString *_retval);
3013 nsresult Redraw(uint32_t aCount, uint32_t *_retval);
3014 nsresult UpdateLayerTree();
3015 nsresult GetViewportInfo(uint32_t aDisplayWidth, uint32_t aDisplayHeight, double *aDefaultZoom, bool *aAllowZoom,
3016 double *aMinZoom, double *aMaxZoom, uint32_t *aWidth, uint32_t *aHeight, bool *aAutoSize);
3017 nsresult SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx,
3018 nsIDOMElement *aElement, uint32_t aPriority);
3019 nsresult SetDisplayPortMarginsForElement(float aLeftMargin, float aTopMargin, float aRightMargin, float aBottomMargin,
3020 nsIDOMElement *aElement, uint32_t aPriority);
3021 nsresult SetDisplayPortBaseForElement(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, nsIDOMElement *aElement);
3022 nsresult SetResolution(float aResolution);
3023 nsresult GetResolution(float *aResolution);
3024 nsresult SetResolutionAndScaleTo(float aResolution);
3025 nsresult GetIsResolutionSet(bool *aIsResolutionSet);
3026 nsresult GetIsFirstPaint(bool *aIsFirstPaint);
3027 nsresult SetIsFirstPaint(bool aIsFirstPaint);
3028 nsresult GetPresShellId(uint32_t *aPresShellId);
3029 nsresult SendMouseEvent(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
3030 int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsSynthesized,
3031 uint8_t _argc, bool *_retval);
3032 nsresult SendPointerEvent(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
3033 int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, int32_t aPointerId,
3034 int32_t aWidth, int32_t aHeight, int32_t tiltX, int32_t tiltY, bool aIsPrimary, bool aIsSynthesized,
3035 uint8_t _argc, bool *_retval);
3036 nsresult SendTouchEvent(const nsAString *aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs,
3037 uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers,
3038 bool aIgnoreRootScrollFrame, bool *_retval);
3039 nsresult SendMouseEventToWindow(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
3040 int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsSynthesized,
3041 uint8_t _argc);
3042 nsresult SendPointerEventToWindow(const nsAString *aType, float aX, float aY, int32_t aButton, int32_t aClickCount,
3043 int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, int32_t aPointerId,
3044 int32_t aWidth, int32_t aHeight, int32_t aTiltX, int32_t aTiltY, bool aIsPrimary, bool aIsSynthesized, uint8_t _argc);
3045 nsresult SendTouchEventToWindow(const nsAString *aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs,
3046 uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers,
3047 bool aIgnoreRootScrollFrame, bool *_retval);
3048 nsresult SendWheelEvent(float aX, float aY, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aDeltaMode,
3049 int32_t aModifiers, int32_t aLineOrPageDeltaX, int32_t aLineOrPageDeltaY, uint32_t aOptions);
3050 nsresult SendKeyEvent(const nsAString *aType, int32_t aKeyCode, int32_t aCharCode, int32_t aModifiers,
3051 uint32_t aAdditionalFlags, bool *_retval);
3052 nsresult SendNativeKeyEvent(int32_t aNativeKeyboardLayout, int32_t aNativeKeyCode, int32_t aModifierFlags,
3053 const nsAString *aCharacters, const nsAString *aUnmodifiedCharacters, nsIObserver *aObserver);
3054 nsresult SendNativeMouseEvent(int32_t aScreenX, int32_t aScreenY, int32_t aNativeMessage, int32_t aModifierFlags,
3055 nsIDOMElement *aElement, nsIObserver *aObserver);
3056 nsresult SendNativeMouseMove(int32_t aScreenX, int32_t aScreenY, nsIDOMElement *aElement, nsIObserver *aObserver);
3057 nsresult SendNativeMouseScrollEvent(int32_t aScreenX, int32_t aScreenY, uint32_t aNativeMessage, double aDeltaX,
3058 double aDeltaY, double aDeltaZ, uint32_t aModifierFlags, uint32_t aAdditionalFlags, nsIDOMElement *aElement,
3059 nsIObserver *aObserver);
3060 nsresult SendNativeTouchPoint(uint32_t aPointerId, uint32_t aTouchState, int32_t aScreenX, int32_t aScreenY,
3061 double aPressure, uint32_t aOrientation, nsIObserver *aObserver);
3062 nsresult SendNativeTouchTap(int32_t aScreenX, int32_t aScreenY, bool aLongTap, nsIObserver *aObserver);
3063 nsresult ClearNativeTouchSequence(nsIObserver *aObserver);
3064 nsresult ActivateNativeMenuItemAt(const nsAString *indexString);
3065 nsresult ForceUpdateNativeMenuAt(const nsAString *indexString);
3066 nsresult Focus(nsIDOMElement *aElement);
3067 nsresult GarbageCollect(nsICycleCollectorListener *aListener, int32_t aExtraForgetSkippableCalls);
3068 nsresult CycleCollect(nsICycleCollectorListener *aListener, int32_t aExtraForgetSkippableCalls);
3069 nsresult RunNextCollectorTimer();
3070 nsresult SendSimpleGestureEvent(const nsAString *aType, float aX, float aY, uint32_t aDirection, double aDelta,
3071 int32_t aModifiers, uint32_t aClickCount);
3072 nsresult ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMElement **_retval);
3073 nsresult NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize,
3074 bool aIgnoreRootScrollFrame, bool aFlushLayout, nsIDOMNodeList **_retval);
3075 nsresult GetTranslationNodes(nsIDOMNode *aRoot, int /*nsITranslationNodeList*/ **_retval);
3076 nsresult CompareCanvases(nsIDOMHTMLCanvasElement *aCanvas1, nsIDOMHTMLCanvasElement *aCanvas2,
3077 uint32_t *aMaxDifference, uint32_t *_retval);
3078 nsresult GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending);
3079 nsresult SuppressEventHandling(bool aSuppress);
3080 nsresult ClearMozAfterPaintEvents();
3081 nsresult DisableNonTestMouseEvents(bool aDisable);
3082 nsresult GetScrollXY(bool aFlushLayout, int32_t *aScrollX, int32_t *aScrollY);
3083 nsresult GetScrollXYFloat(bool aFlushLayout, float *aScrollX, float *aScrollY);
3084 nsresult GetScrollbarSize(bool aFlushLayout, int32_t *aWidth, int32_t *aHeight);
3085 nsresult GetBoundsWithoutFlushing(nsIDOMElement *aElement, nsIDOMClientRect **_retval);
3086 nsresult GetRootBounds(nsIDOMClientRect **_retval);
3087 nsresult GetIMEIsOpen(bool *aIMEIsOpen);
3088 nsresult GetIMEStatus(uint32_t *aIMEStatus);
3089 nsresult GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel);
3090 nsresult GetFullZoom(float *aFullZoom);
3091 nsresult DispatchDOMEventViaPresShell(nsIDOMNode *aTarget, nsIDOMEvent *aEvent, bool aTrusted, bool *_retval);
3092 nsresult DispatchEventToChromeOnly(nsIDOMEventTarget *aTarget, nsIDOMEvent *aEvent, bool *_retval);
3093 nsresult GetClassName(const /*JS::Value*/ void *aObject, JSContext *cx, char **_retval);
3094 nsresult SendContentCommandEvent(const nsAString *aType, nsITransferable *aTransferable);
3095 nsresult SendQueryContentEvent(uint32_t aType, uint32_t aOffset, uint32_t aLength, int32_t aX, int32_t aY,
3096 uint32_t aAdditionalFlags, nsIQueryContentEventResult **_retval);
3097 nsresult RemoteFrameFullscreenChanged(nsIDOMElement *aFrameElement);
3098 nsresult RemoteFrameFullscreenReverted();
3099 nsresult HandleFullscreenRequests(bool *_retval);
3100 nsresult ExitFullscreen();
3101 nsresult SendSelectionSetEvent(uint32_t aOffset, uint32_t aLength, uint32_t aAdditionalFlags, bool *_retval);
3102 nsresult SelectAtPoint(float aX, float aY, uint32_t aSelectBehavior, bool *_retval);
3103 nsresult GetVisitedDependentComputedStyle(nsIDOMElement *aElement, const nsAString *aPseudoElement,
3104 const nsAString *aPropertyName, nsAString *_retval);
3105 nsresult GetOuterWindowID(uint64_t *aOuterWindowID);
3106 nsresult GetCurrentInnerWindowID(uint64_t *aCurrentInnerWindowID);
3107 nsresult EnterModalState();
3108 nsresult LeaveModalState();
3109 nsresult IsInModalState(bool *_retval);
3110 nsresult SetDesktopModeViewport(bool aDesktopModeViewport);
3111 nsresult SuspendTimeouts();
3112 nsresult ResumeTimeouts();
3113 nsresult GetLayerManagerType(nsAString *aLayerManagerType);
3114 nsresult GetLayerManagerRemote(bool *aLayerManagerRemote);
3115 nsresult GetSupportsHardwareH264Decoding(void /* JS::MutableHandleValue */ *aSupportsHardwareH264Decoding);
3116 nsresult StartFrameTimeRecording(uint32_t *startIndex);
3117 nsresult StopFrameTimeRecording(uint32_t startIndex, uint32_t *frameCount, float **frameIntervals);
3118 nsresult BeginTabSwitch();
3119 nsresult GetDisplayDPI(float *aDisplayDPI);
3120 nsresult GetOuterWindowWithId(uint64_t aOuterWindowID, nsIDOMWindow **_retval);
3121 nsresult GetContainerElement(nsIDOMElement **aContainerElement);
3122 nsresult RenderDocument(const void /*nsRect*/ *aRect, uint32_t aFlags, int /*nscolor*/ aBackgroundColor,
3123 void /*gfxContext*/ *aThebesContext);
3124 nsresult AdvanceTimeAndRefresh(int64_t aMilliseconds);
3125 nsresult RestoreNormalRefresh();
3126 nsresult GetIsTestControllingRefreshes(bool *aIsTestControllingRefreshes);
3127 nsresult GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled);
3128 nsresult SetAsyncScrollOffset(nsIDOMNode *aNode, float aX, float aY);
3129 nsresult SetAsyncZoom(nsIDOMNode *aRootElement, float aValue);
3130 nsresult FlushApzRepaints(bool *_retval);
3131 nsresult ZoomToFocusedInput();
3132 nsresult ComputeAnimationDistance(nsIDOMElement *element, const nsAString *property, const nsAString *value1,
3133 const nsAString *value2, double *_retval);
3134 nsresult WrapDOMFile(nsIFile *aFile, nsISupports **_retval);
3135 nsresult GetFocusedInputType(char **aFocusedInputType);
3136 nsresult GetViewId(nsIDOMElement *aElement, long /*nsViewID*/ *_retval);
3137 nsresult LeafLayersPartitionWindow(bool *_retval);
3138 nsresult CheckAndClearPaintedState(nsIDOMElement *aElement, bool *_retval);
3139 nsresult IsPartOfOpaqueLayer(nsIDOMElement *aElement, bool *_retval);
3140 nsresult NumberOfAssignedPaintedLayers(nsIDOMElement **aElements, uint32_t count, uint32_t *_retval);
3141 nsresult GetFileId(const /*JS::Value*/ void *aFile, JSContext *cx, int64_t *_retval);
3142 nsresult GetFilePath(void /*JS::HandleValue*/ *aFile, JSContext *cx, nsAString *_retval);
3143 nsresult GetFileReferences(const nsAString *aDatabaseName, int64_t aId, void /*JS::HandleValue*/ *aOptions,
3144 int32_t *aRefCnt, int32_t *aDBRefCnt, int32_t *aSliceRefCnt, JSContext* cx, bool *_retval);
3145 nsresult FlushPendingFileDeletions();
3146 nsresult IsIncrementalGCEnabled(JSContext *cx, bool *_retval);
3147 nsresult StartPCCountProfiling(JSContext *cx);
3148 nsresult StopPCCountProfiling(JSContext *cx);
3149 nsresult PurgePCCounts(JSContext *cx);
3150 nsresult GetPCCountScriptCount(JSContext *cx, int32_t *_retval);
3151 nsresult GetPCCountScriptSummary(int32_t script, JSContext *cx, nsAString *_retval);
3152 nsresult GetPCCountScriptContents(int32_t script, JSContext *cx, nsAString *_retval);
3153 nsresult GetPaintingSuppressed(bool *aPaintingSuppressed);
3154 nsresult GetPlugins(JSContext *cx, /*JS::Value*/ void *aPlugins);
3155 nsresult SetScrollPositionClampingScrollPortSize(float aWidth, float aHeight);
3156 nsresult DisableDialogs();
3157 nsresult EnableDialogs();
3158 nsresult AreDialogsEnabled(bool *_retval);
3159 nsresult LoadSheet(nsIURI *sheetURI, uint32_t type);
3160 nsresult LoadSheetUsingURIString(const nsACString *sheetURI, uint32_t type);
3161 nsresult AddSheet(nsIDOMStyleSheet *sheet, uint32_t type);
3162 nsresult RemoveSheet(nsIURI *sheetURI, uint32_t type);
3163 nsresult RemoveSheetUsingURIString(const nsACString *sheetURI, uint32_t type);
3164 nsresult GetIsHandlingUserInput(bool *aIsHandlingUserInput);
3165 nsresult AllowScriptsToClose();
3166 nsresult GetIsParentWindowMainWidgetVisible(bool *aIsParentWindowMainWidgetVisible);
3167 nsresult IsNodeDisabledForEvents(nsIDOMNode *aNode, bool *_retval);
3168 nsresult GetPaintFlashing(bool *aPaintFlashing);
3169 nsresult SetPaintFlashing(bool aPaintFlashing);
3170 nsresult GetOMTAStyle(nsIDOMElement *aElement, const nsAString *aProperty,
3171 const nsAString *aPseudoElement, nsAString *_retval);
3172 nsresult RequestCompositorProperty(const nsAString *aProperty, float *_retval);
3173 nsresult SetHandlingUserInput(bool aHandlingInput, void /*nsIJSRAIIHelper*/ **_retval);
3174 nsresult GetContentAPZTestData(JSContext *cx, int /*JS::MutableHandleValue*/ _retval);
3175 nsresult GetCompositorAPZTestData(JSContext *cx, void /*JS::MutableHandleValue*/ *_retval);
3176 nsresult PostRestyleSelfEvent(nsIDOMElement *aElement);
3177 nsresult GetAudioMuted(bool *aAudioMuted) ;
3178 nsresult SetAudioMuted(bool aAudioMuted);
3179 nsresult GetAudioVolume(float *aAudioVolume);
3180 nsresult SetAudioVolume(float aAudioVolume);
3181 nsresult XpconnectArgument(nsIDOMWindowUtils *aThis);
3182 nsresult AskPermission(void /*nsIContentPermissionRequest*/ *aRequest);
3183 nsresult GetFramesConstructed(uint64_t *aFramesConstructed);
3184 nsresult GetFramesReflowed(uint64_t *aFramesReflowed);
3185 nsresult SetChromeMargin(int32_t aTop, int32_t aRight, int32_t aBottom, int32_t aLeft);
3186 nsresult GetServiceWorkersTestingEnabled(bool *aServiceWorkersTestingEnabled);
3187 nsresult SetServiceWorkersTestingEnabled(bool aServiceWorkersTestingEnabled);
3188 nsresult GetFrameUniformityTestData(JSContext* cx, int /*JS::MutableHandleValue*/ *_retval);
3189 nsresult EnterChaosMode();
3190 nsresult LeaveChaosMode();
3191 nsresult HasRuleProcessorUsedByMultipleStyleSets(uint32_t aSheetType, bool *_retval);
3192 nsresult ForceUseCounterFlush(nsIDOMNode *aNode);
3193 nsresult SetNextPaintSyncId(int32_t aSyncId);
3196 cpp_quote("#define CONTEXT_NONE 0x00")
3197 cpp_quote("#define CONTEXT_LINK 0x01")
3198 cpp_quote("#define CONTEXT_IMAGE 0x02")
3199 cpp_quote("#define CONTEXT_DOCUMENT 0x04")
3200 cpp_quote("#define CONTEXT_TEXT 0x08")
3201 cpp_quote("#define CONTEXT_INPUT 0x10")
3202 cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20")
3205 object,
3206 uuid(3478b6b0-3875-11d4-94ef-0020183bf181),
3207 local
3209 interface nsIContextMenuListener : nsISupports
3211 nsresult OnShowContextMenu(uint32_t aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
3215 object,
3216 uuid(85ae52eb-37fa-4fd9-a2e6-c7d0f2a521b3),
3217 local
3219 interface nsIDOMUIEvent : nsISupports
3221 nsresult GetView(mozIDOMWindowProxy **aView);
3222 nsresult GetDetail(int32_t *aDetail);
3223 nsresult InitUIEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
3224 mozIDOMWindow *viewArg, int32_t detailArg);
3225 nsresult GetLayerX(int32_t *aLayerX);
3226 nsresult GetLayerY(int32_t *aLayerY);
3227 nsresult GetPageX(int32_t *aPageX);
3228 nsresult GetPageY(int32_t *aPageY);
3229 nsresult GetWhich(uint32_t *aWhich);
3230 nsresult GetRangeParent(nsIDOMNode **aRangeParent);
3231 nsresult GetRangeOffset(int32_t *aRangeOffset);
3232 nsresult GetCancelBubble(bool *aCancelBubble);
3233 nsresult SetCancelBubble(bool aCancelBubble);
3234 nsresult GetIsChar(bool *aIsChar);
3235 void* /* mozilla::dom::Event thiscall */ AsEvent();
3239 object,
3240 uuid(5bdab8d8-7933-4c5c-b6d1-ab34481237f7),
3241 local
3243 interface nsIDOMMouseEvent : nsIDOMUIEvent
3245 nsresult GetScreenX(int32_t *aScreenX);
3246 nsresult GetScreenY(int32_t *aScreenY);
3247 nsresult GetMozMovementX(int32_t *aMozMovementX);
3248 nsresult GetMozMovementY(int32_t *aMozMovementY);
3249 nsresult GetClientX(int32_t *aClientX);
3250 nsresult GetClientY(int32_t *aClientY);
3251 nsresult GetCtrlKey(bool *aCtrlKey);
3252 nsresult GetShiftKey(bool *aShiftKey);
3253 nsresult GetAltKey(bool *aAltKey);
3254 nsresult GetMetaKey(bool *aMetaKey);
3255 nsresult GetButton(int16_t *aButton);
3256 nsresult GetButtons(uint16_t *aButtons);
3257 nsresult GetRelatedTarget(nsIDOMEventTarget **aRelatedTarget);
3258 nsresult InitMouseEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
3259 mozIDOMWindow *viewArg, int32_t detailArg, int32_t screenXArg, int32_t screenYArg,
3260 int32_t clientXArg, int32_t clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg,
3261 bool metaKeyArg, uint16_t buttonArg, nsIDOMEventTarget *relatedTargetArg);
3262 nsresult GetMozPressure(float *aMozPressure);
3263 nsresult GetMozInputSource(uint16_t *aMozInputSource);
3264 nsresult GetModifierState(const nsAString *keyArg, bool *_retval);
3268 object,
3269 uuid(2e52eb99-670d-469a-b51f-8efee2dd091d),
3270 local
3272 interface nsIDOMKeyEvent : nsIDOMUIEvent
3274 nsresult GetCharCode(uint32_t *aCharCode);
3275 nsresult GetKeyCode(uint32_t *aKeyCode);
3276 nsresult GetAltKey(bool *aAltKey);
3277 nsresult GetCtrlKey(bool *aCtrlKey);
3278 nsresult GetShiftKey(bool *aShiftKey);
3279 nsresult GetMetaKey(bool *aMetaKey);
3280 nsresult InitKeyEvent(const nsAString *typeArg, bool canBubbleArg,
3281 bool cancelableArg, mozIDOMWindowProxy *viewArg, bool ctrlKeyArg,
3282 bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, uint32_t keyCodeArg,
3283 uint32_t charCodeArg);
3284 nsresult GetModifierState(const nsAString *keyArg, bool *_retval);
3285 nsresult GetLocation(uint32_t *aLocation);
3286 nsresult GetRepeat(bool *aRepeat);
3287 nsresult GetKey(nsAString *aKey);
3291 object,
3292 uuid(5be16b03-36f9-4ca8-b2c5-0daadf3cd1b3),
3293 local
3295 interface nsIDOMCustomEvent : nsISupports
3297 nsresult GetDetail(nsIVariant **aDetail);
3298 nsresult InitCustomEvent(const nsAString *typeArg, bool canBubbleArg, bool cancelableArg,
3299 nsIVariant *detailArg);
3303 object,
3304 uuid(0b976267-4aaa-4f36-a2d4-27b5ca8d73bb),
3305 local
3307 interface nsIEmbeddingSiteWindow : nsISupports
3309 nsresult SetDimensions(uint32_t flags, int32_t x, int32_t y, int32_t cx, int32_t cy);
3310 nsresult GetDimensions(uint32_t flags, int32_t *x, int32_t *y, int32_t *cx, int32_t *cy);
3311 nsresult SetFocus();
3312 nsresult GetVisibility(bool *aVisibility);
3313 nsresult SetVisibility(bool aVisibility);
3314 nsresult GetTitle(PRUnichar **aTitle);
3315 nsresult SetTitle(const PRUnichar *aTitle);
3316 nsresult GetSiteWindow(void **aSiteWindow);
3317 nsresult Blur();
3321 object,
3322 uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392),
3323 local
3325 interface nsIComponentRegistrar : nsISupports
3327 nsresult AutoRegister(nsIFile *aSpec);
3328 nsresult AutoUnregister(nsIFile *aSpec);
3329 nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
3330 const char *aContractID, nsIFactory *aFactory);
3331 nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
3332 nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
3333 const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
3334 const char *aType);
3335 nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
3336 nsresult IsCIDRegistered(const nsCID *aClass, bool *_retval);
3337 nsresult IsContractIDRegistered(const char *aContractID, bool *_retval);
3338 nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
3339 nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
3340 nsresult CIDToContractID(const nsCID *aClass, char **_retval);
3341 nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
3345 object,
3346 uuid(404ebfa2-d8f4-4c94-8416-e65a55f9df5a),
3347 local
3349 interface nsIPromptService : nsISupports
3351 nsresult Alert(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3352 const PRUnichar *aText);
3353 nsresult AlertCheck(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3354 const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState);
3355 nsresult Confirm(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3356 const PRUnichar *aText, bool *_retval);
3357 nsresult ConfirmCheck(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3358 const PRUnichar *aText, const PRUnichar *aCheckMsg, bool *aCheckState,
3359 bool *_retval);
3360 nsresult ConfirmEx(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3361 const PRUnichar *aText, uint32_t aButtonFlags, const PRUnichar *aButton0Title,
3362 const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
3363 const PRUnichar *aCheckMsg, bool *aCheckState, int32_t *_retval);
3364 nsresult Prompt(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3365 const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
3366 bool *aCheckState, bool *_retval);
3367 nsresult PromptUsernameAndPassword(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3368 const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
3369 const PRUnichar *aCheckMsg, bool *aCheckState, bool *_retval);
3370 nsresult PromptPassword(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3371 const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
3372 bool *aCheckState, bool *_retval);
3373 nsresult Select(mozIDOMWindowProxy *aParent, const PRUnichar *aDialogTitle,
3374 const PRUnichar *aText, uint32_t aCount, const PRUnichar **aSelectList,
3375 int32_t *aOutSelection, bool *_retval);
3379 object,
3380 uuid(b128a1e6-44f3-4331-8fbe-5af360ff21ee),
3381 local
3383 interface nsITooltipTextProvider : nsISupports
3385 nsresult GetNodeText(nsIDOMNode *aNode, PRUnichar **aText, bool *_retval);
3389 object,
3390 uuid(24f963d1-e6fc-43ea-a206-99ac5fcc5265),
3391 local
3393 interface nsIEditingSession : nsISupports
3395 nsresult GetEditorStatus(uint32_t *aEditorStatus);
3396 nsresult MakeWindowEditable(mozIDOMWindowProxy *window, const char *aEditorType,
3397 bool doAfterUriLoad, bool aMakeWholeDocumentEditable, bool aInteractive);
3398 nsresult WindowIsEditable(mozIDOMWindowProxy *window, bool *_retval);
3399 nsresult GetEditorForWindow(mozIDOMWindowProxy *window, nsIEditor **_retval);
3400 nsresult SetupEditorOnWindow(mozIDOMWindowProxy *window);
3401 nsresult TearDownEditorOnWindow(mozIDOMWindowProxy *window);
3402 nsresult SetEditorOnControllers(mozIDOMWindowProxy *aWindow, nsIEditor *aEditor);
3403 nsresult DisableJSAndPlugins(mozIDOMWindowProxy *aWindow);
3404 nsresult RestoreJSAndPlugins(mozIDOMWindowProxy *aWindow);
3405 nsresult DetachFromWindow(mozIDOMWindowProxy *aWindow);
3406 nsresult ReattachToWindow(mozIDOMWindowProxy *aWindow);
3407 nsresult GetJsAndPluginsDisabled(bool *aJsAndPluginsDisabled);
3411 object,
3412 uuid(b1fdf3c4-74e3-4f7d-a14d-2b76bcf53482),
3413 local
3415 interface nsICommandParams : nsISupports
3417 nsresult GetValueType(const char *name, int16_t *_retval);
3418 nsresult GetBooleanValue(const char *name, bool *_retval);
3419 nsresult GetLongValue(const char *name, int32_t *_retval);
3420 nsresult GetDoubleValue(const char *name, double *_retval);
3421 nsresult GetStringValue(const char *name, nsAString *_retval);
3422 nsresult GetCStringValue(const char *name, char **_retval);
3423 nsresult GetISupportsValue(const char *name, nsISupports **_retval);
3424 nsresult SetBooleanValue(const char *name, bool value);
3425 nsresult SetLongValue(const char *name, int32_t value);
3426 nsresult SetDoubleValue(const char *name, double value);
3427 nsresult SetStringValue(const char *name, const nsAString *value);
3428 nsresult SetCStringValue(const char *name, const char *value);
3429 nsresult SetISupportsValue(const char *name, nsISupports *value);
3430 nsresult RemoveValue(const char *name);
3434 object,
3435 uuid(bb5a1730-d83b-4fa2-831b-35b9d5842e84),
3436 local
3438 interface nsICommandManager : nsISupports
3440 nsresult AddCommandObserver(nsIObserver *aCommandObserver, const char *aCommandToObserve);
3441 nsresult RemoveCommandObserver(nsIObserver *aCommandObserver, const char *aCommandObserved);
3442 nsresult IsCommandSupported(const char *aCommandName, mozIDOMWindowProxy *aTargetWindow, bool *_retval);
3443 nsresult IsCommandEnabled(const char *aCommandName, mozIDOMWindowProxy *aTargetWindow, bool *_retval);
3444 nsresult GetCommandState(const char *aCommandName, mozIDOMWindowProxy *aTargetWindow,
3445 nsICommandParams *aCommandParams);
3446 nsresult DoCommand(const char *aCommandName, nsICommandParams *aCommandParams,
3447 mozIDOMWindowProxy *aTargetWindow);
3451 object,
3452 uuid(3275b2cd-af6d-429a-80d7-f0c5120342ac),
3453 local
3455 interface nsICategoryManager : nsISupports
3457 nsresult GetCategoryEntry(const char *aCategory, const char *aEntry, char **_retval);
3458 nsresult AddCategoryEntry(const char *aCategory, const char *aEntry, const char *aValue, bool aPersist,
3459 bool aReplace, char **_retval);
3460 nsresult DeleteCategoryEntry(const char *aCategory, const char *aEntry, bool aPersist);
3461 nsresult DeleteCategory(const char *aCategory);
3462 nsresult EnumerateCategory(const char *aCategory, nsISimpleEnumerator **_retval);
3463 nsresult EnumerateCategories(nsISimpleEnumerator **_retval);
3467 object,
3468 uuid(47b82b60-a36f-4167-8072-6f421151ed50),
3469 local
3471 interface nsIControllerContext : nsISupports
3473 nsresult Init(nsIControllerCommandTable *aCommandTable);
3474 nsresult SetCommandContext(nsISupports *aCommandContext);
3478 object,
3479 uuid(d5b61b82-1da4-11d3-bf87-00105a1b0627),
3480 local
3482 interface nsIController : nsISupports
3484 nsresult IsCommandEnabled(const char *command, bool *_retval);
3485 nsresult SupportsCommand(const char *command, bool *_retval);
3486 nsresult DoCommand(const char *command);
3487 nsresult OnEvent(const char *eventName);
3491 object,
3492 uuid(8e1bab9d-8815-4d2c-a24d-7aba5239dc22),
3493 local
3495 interface nsIContent : nsISupports
3497 /* This is not a real interface declaration. It's too internal for us. */
3501 object,
3502 uuid(ce1f7627-7109-4977-ba77-490ffde07aaa),
3503 local
3505 interface nsIDocument : nsISupports
3507 /* This is not a real interface declaration. It's too internal for us. */
3511 object,
3512 uuid(b1ee32f2-b8c4-49b9-93df-b6fab5d54688),
3513 local
3515 interface nsIContentSerializer : nsISupports
3517 nsresult Init(uint32_t flags, uint32_t aWrapColumn, const char *aCharSet, bool aIsCopying,
3518 bool aIsWholeDocument);
3519 nsresult AppendText(nsIContent *aText, int32_t aStartOffset, int32_t aEndOffset, nsAString *aStr);
3520 nsresult AppendCDATASection(nsIContent *aCDATASection, int32_t aStartOffset,
3521 int32_t aEndOffset, nsAString *aStr);
3522 nsresult AppendProcessingInstruction(nsIContent *aPI, int32_t aStartOffset,
3523 int32_t aEndOffset, nsAString *aStr);
3524 nsresult AppendComment(nsIContent *aComment, int32_t aStartOffset, int32_t aEndOffset,
3525 nsAString *aStr);
3526 nsresult AppendDoctype(nsIContent *aDoctype, nsAString *aStr);
3527 nsresult AppendElementStart(nsIContent *aElement, nsIContent *aOriginalElement,
3528 nsAString *aStr);
3529 nsresult AppendElementEnd(nsIContent *aElement, nsAString *aStr);
3530 nsresult Flush(nsAString *aStr);
3531 nsresult AppendDocumentStart(nsIDocument *aDocument, nsAString *aStr);
3535 object,
3536 uuid(094be624-f0bf-400f-89e2-6a84baab9474),
3537 local
3539 interface nsIEditor : nsISupports
3541 nsresult GetSelection([out] nsISelection *_retval);
3542 nsresult FinalizeSelection();
3543 nsresult Init([in] nsIDOMDocument *doc, nsIContent *aRoot, nsISelectionController *aSelCon, uint32_t aFlags, nsAString *initialValue);
3544 nsresult SetAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] const nsAString *sourceAttrValue, [in] bool aSuppressTransaction);
3545 nsresult RemoveAttributeOrEquivalent([in] nsIDOMElement *element, [in] const nsAString *sourceAttrName, [in] bool aSuppressTransaction);
3546 nsresult PostCreate();
3547 nsresult PreDestroy();
3548 nsresult GetFlags([out] uint32_t *_retval);
3549 nsresult SetFlags([in] uint32_t val);
3550 nsresult GetContentsMIMEType([out] char **_retval);
3551 nsresult SetContentsMIMEType([in] const char *val);
3552 nsresult GetIsDocumentEditable([out] bool *_retval);
3553 nsresult GetIsSelectionEditable(bool *aIsSelectionEditable);
3554 nsresult GetDocument([out] nsIDOMDocument **_retval);
3555 nsresult GetRootElement([out] nsIDOMElement **_retval);
3556 nsresult GetSelectionController([out] nsISelectionController **_retval);
3557 nsresult DeleteSelection(int16_t action, int16_t aStripWrappers);
3558 nsresult GetDocumentIsEmpty([out] bool *_retval);
3559 nsresult GetDocumentModified([out] bool *_retval);
3560 nsresult GetDocumentCharacterSet([out] nsACString *_retval);
3561 nsresult SetDocumentCharacterSet([in] const nsACString *val);
3562 nsresult ResetModificationCount();
3563 nsresult GetModificationCount([out] int32_t *_retval);
3564 nsresult IncrementModificationCount([in] int32_t aModCount);
3565 nsresult GetTransactionManager([out] nsITransactionManager **_retval);
3566 nsresult SetTransactionManager(nsITransactionManager *aTransactionManager);
3567 nsresult DoTransaction([in] nsITransaction *txn);
3568 nsresult EnableUndo([in] bool enable);
3569 nsresult GetNumberOfUndoItems(int32_t *aNumberOfUndoItems);
3570 nsresult GetNumberOfRedoItems(int32_t *aNumberOfRedoItems);
3571 nsresult Undo([in] uint32_t count);
3572 nsresult CanUndo([out] bool *isEnabled, [out] bool *canUndo);
3573 nsresult Redo([in] uint32_t count);
3574 nsresult CanRedo([out] bool *isEnabled, [out] bool *canRedo);
3575 nsresult BeginTransaction();
3576 nsresult EndTransaction();
3577 nsresult BeginPlaceHolderTransaction([in] nsIAtom *name);
3578 nsresult EndPlaceHolderTransaction();
3579 nsresult ShouldTxnSetSelection([out] bool *_retval);
3580 nsresult SetShouldTxnSetSelection([in] bool should);
3581 nsresult GetInlineSpellChecker([out] nsIInlineSpellChecker **_retval);
3582 nsresult SyncRealTimeSpell();
3583 nsresult SetSpellcheckUserOverride(bool enable);
3584 nsresult Cut();
3585 nsresult CanCut([out] bool *_retval);
3586 nsresult Copy();
3587 nsresult CanCopy([out] bool *_retval);
3588 nsresult CanDelete(bool *_retval);
3589 nsresult Paste([in] int32_t aSelectionType);
3590 nsresult PasteTransferable(nsITransferable *aTransferable);
3591 nsresult CanPaste([in] int32_t aSelectionType, [out] bool *_retval);
3592 nsresult CanPasteTransferable(nsITransferable *aTransferable, bool *_retval);
3593 nsresult SelectAll();
3594 nsresult BeginningOfDocument();
3595 nsresult EndOfDocument();
3596 nsresult SetAttribute([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [in] const nsAString *attvalue);
3597 nsresult GetAttributeValue([in] nsIDOMElement *aElement, [in] const nsAString *attributestr, [out] nsAString *resultValue, bool *_retval);
3598 nsresult RemoveAttribute([in] nsIDOMElement *aElement, [in] const nsAString *aAttribute);
3599 nsresult CloneAttribute([in] const nsAString *aAttribute, [in] nsIDOMNode *aDestNode, [in] nsIDOMNode *aSourceNode);
3600 nsresult CloneAttributes([in] nsIDOMNode *destNode, [in] nsIDOMNode *sourceNode);
3601 nsresult CreateNode([in] const nsAString *tag, [in] nsIDOMNode *parent, [in] int32_t position, [out] nsIDOMNode **_retval);
3602 nsresult InsertNode([in] nsIDOMNode *node, [in] nsIDOMNode *parent, [in] int32_t aPosition);
3603 nsresult SplitNode([in] nsIDOMNode *existingRightNode, [in] int32_t offset, [out] nsIDOMNode **newLeftNode);
3604 nsresult JoinNodes([in] nsIDOMNode *leftNode, [in] nsIDOMNode *rightNode, [in] nsIDOMNode *parent);
3605 nsresult DeleteNode([in] nsIDOMNode *child);
3606 bool OutputsMozDirty();
3607 nsresult MarkNodeDirty([in] nsIDOMNode *node);
3608 nsresult SwitchTextDirection();
3609 nsresult OutputToString([in] nsAString formatType, [in] uint32_t flags, [out] nsAString *_retval);
3610 nsresult OutputToStream([in] nsIOutputStream *aStream, [in] nsAString *formatType, [in] nsACString *charsetOverride, [in] uint32_t flags);
3611 nsresult AddEditorObserver(nsIEditorObserver *observer);
3612 nsresult RemoveEditorObserver(nsIEditorObserver *observer);
3613 nsresult AddEditActionListener([in] nsIEditActionListener *listener);
3614 nsresult RemoveEditActionListener([in] nsIEditActionListener *listener);
3615 nsresult AddDocumentStateListener([in] nsIDocumentStateListener *listener);
3616 nsresult RemoveDocumentStateListener([in] nsIDocumentStateListener *listener);
3617 nsresult DumpContentTree();
3618 nsresult DebugDumpContent();
3619 nsresult DebugUnitTests([out] int32_t *outNumTests, [out] int32_t *outNumTestsFailed);
3620 bool IsModifiableNode(nsIDOMNode *aNode);
3621 nsresult GetSuppressDispatchingInputEvent(bool *aSuppressDispatchingInputEvent);
3622 nsresult SetSuppressDispatchingInputEvent(bool aSuppressDispatchingInputEvent);
3623 nsresult GetIsInEditAction(bool *aIsInEditAction);
3627 object,
3628 uuid(87ee993e-985f-4a43-a974-0d9512da2fb0),
3629 local
3631 interface nsIHTMLEditor : nsISupports
3633 nsresult AddDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3634 nsresult RemoveDefaultProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3635 nsresult RemoveAllDefaultProperties();
3636 nsresult SetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue);
3637 nsresult GetInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll);
3638 nsresult GetInlinePropertyWithAttrValue([in] nsIAtom *aProperty, [in] nsAString *aAttribute, [in] nsAString *aValue, [out] bool *aFirst, [out] bool *aAny, [out] bool *aAll, [out] nsAString *_retval);
3639 nsresult RemoveAllInlineProperties();
3640 nsresult RemoveInlineProperty([in] nsIAtom *aProperty, [in] nsAString *aAttribute);
3641 nsresult IncreaseFontSize();
3642 nsresult DecreaseFontSize();
3643 nsresult NodeIsBlock([in] nsIDOMNode *node, bool *_retval);
3644 nsresult InsertHTML([in] nsAString *aInputString);
3645 nsresult PasteNoFormatting([in] int32_t aSelectionType);
3646 nsresult RebuildDocumentFromSource([in] nsAString *aSourceString);
3647 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);
3648 nsresult InsertElementAtSelection([in] nsIDOMElement *aElement, [in] bool aDeleteSelection);
3649 nsresult SetDocumentTitle([in] nsAString *aTitle);
3650 nsresult UpdateBaseURL();
3651 nsresult SelectElement([in] nsIDOMElement *aElement);
3652 nsresult SetCaretAfterElement([in] nsIDOMElement *aElement);
3653 nsresult SetParagraphFormat([in] nsAString *aParagraphFormat);
3654 nsresult GetParagraphState([out] bool *aMixed, [out] nsAString *_retval);
3655 nsresult GetFontFaceState([out] bool *aMixed, [out] nsAString *_retval);
3656 nsresult GetFontColorState([out] bool *aMixed, [out] nsAString *_retval);
3657 nsresult GetBackgroundColorState([out] bool *aMixed, [out] nsAString *_retval);
3658 nsresult GetHighlightColorState([out] bool *aMixed, [out] nsAString *_retval);
3659 nsresult GetListState([out] bool *aMixed, [out] bool *aOL, [out] bool *aUL, [out] bool *aDL);
3660 nsresult GetListItemState([out] bool *aMixed, [out] bool *aLI, [out] bool *aDT, [out] bool *aDD);
3661 nsresult GetAlignment([out] bool *aMixed, [out] int16_t *aAlign);
3662 nsresult GetIndentState([out] bool *aCanIndent, [out] bool *aCanOutdent);
3663 nsresult MakeOrChangeList([in] nsAString *aListType, [in] bool entireList, [in] nsAString *aBulletType);
3664 nsresult RemoveList([in] nsAString *aListType);
3665 nsresult Indent([in] nsAString *aIndent);
3666 nsresult Align([in] nsAString *aAlign);
3667 nsresult GetElementOrParentByTagName([in] nsAString *aTagName, [in] nsIDOMNode *aNode, [out] nsIDOMElement **_retval);
3668 nsresult GetSelectedElement([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
3669 nsresult GetHeadContentsAsHTML([out] nsAString *_retval);
3670 nsresult ReplaceHeadContentsWithHTML([in] nsAString *aSourceToInsert);
3671 nsresult CreateElementWithDefaults([in] nsAString *aTagName, [out] nsIDOMElement **_retval);
3672 nsresult InsertLinkAroundSelection([in] nsIDOMElement *aAnchorElement);
3673 nsresult SetBackgroundColor([in] nsAString *aColor);
3674 nsresult SetBodyAttribute([in] nsAString *aAttr, [in] nsAString *aValue);
3675 nsresult GetLinkedObjects([out] nsISupportsArray **_retval);
3676 nsresult GetIsCSSEnabled([out] bool *_retval);
3677 nsresult SetIsCSSEnabled([in] bool prb);
3678 nsresult AddInsertionListener([in] nsIContentFilter *inFilter);
3679 nsresult RemoveInsertionListener([in] nsIContentFilter *inFilter);
3680 nsresult CreateAnonymousElement([in] nsAString *aTag, [in] nsIDOMNode *aParentNode, [in] nsAString *aAnonClass, [in] bool aIsCreatedHidden, [out] nsIDOMElement **_retval);
3681 nsresult GetSelectionContainer([out] nsIDOMElement **_retval);
3682 nsresult CheckSelectionStateForAnonymousButtons([in] nsISelection *aSelection);
3683 nsresult IsAnonymousElement([in] nsIDOMElement *aElement, [out] bool *_retval);
3684 nsresult GetReturnInParagraphCreatesNewParagraph([out] bool *_retval);
3685 nsresult SetReturnInParagraphCreatesNewParagraph([in] bool prb);
3686 void /*Element*/ *GetActiveEditingHost();
3690 object,
3691 uuid(b8100c90-73be-11d2-92a5-00105a1b0d64),
3692 local
3694 interface nsIClipboardCommands : nsISupports
3696 nsresult CanCutSelection(bool *_retval);
3697 nsresult CanCopySelection(bool *_retval);
3698 nsresult CanCopyLinkLocation(bool *_retval);
3699 nsresult CanCopyImageLocation(bool *_retval);
3700 nsresult CanCopyImageContents(bool *_retval);
3701 nsresult CanPaste(bool *_retval);
3702 nsresult CutSelection();
3703 nsresult CopySelection();
3704 nsresult CopyLinkLocation();
3705 nsresult CopyImageLocation();
3706 nsresult CopyImageContents();
3707 nsresult Paste();
3708 nsresult SelectAll();
3709 nsresult SelectNone();
3713 object,
3714 uuid(9b7c586f-9214-480c-a2c4-49b526fff1a6),
3715 local
3717 interface nsIDocShellTreeItem : nsISupports
3719 nsresult GetName(nsAString *aName);
3720 nsresult SetName(const nsAString *aName);
3721 nsresult NameEquals(const PRUnichar *name, bool *_retval);
3722 nsresult GetItemType(int32_t *aItemType);
3723 nsresult SetItemType(int32_t aItemType);
3724 int32_t ItemType();
3725 nsresult GetParent(nsIDocShellTreeItem **aParent);
3726 nsresult GetSameTypeParent(nsIDocShellTreeItem **aSameTypeParent);
3727 nsresult GetRootTreeItem(nsIDocShellTreeItem **aRootTreeItem);
3728 nsresult GetSameTypeRootTreeItem(nsIDocShellTreeItem **aSameTypeRootTreeItem);
3729 nsresult FindItemWithName(const PRUnichar *name, nsISupports *aRequestor, nsIDocShellTreeItem *aOriginalRequestor,
3730 nsIDocShellTreeItem **_retval);
3731 nsresult GetTreeOwner(nsIDocShellTreeOwner **aTreeOwner);
3732 nsresult SetTreeOwner(nsIDocShellTreeOwner *treeOwner);
3733 nsresult GetChildCount(int32_t *aChildCount);
3734 nsresult AddChild(nsIDocShellTreeItem *child);
3735 nsresult RemoveChild(nsIDocShellTreeItem *child);
3736 nsresult GetChildAt(int32_t index, nsIDocShellTreeItem **_retval);
3737 nsresult FindChildWithName(const PRUnichar *aName, bool aRecurse, bool aSameType, nsIDocShellTreeItem *aRequestor,
3738 nsIDocShellTreeItem *aOriginalRequestor, nsIDocShellTreeItem **_retval);
3739 nsIDocument /* thiscall */ *GetDocument();
3740 void /* thiscall nsPIDOMWindowOuter */ *GetWindow();
3744 object,
3745 uuid(2da17016-7851-4a45-a7a8-00b360e01595),
3746 local
3748 interface nsIContentViewer : nsISupports
3750 nsresult Init(nsIWidget *aParentWidget, const void /*nsIntRect*/ *aBounds);
3751 nsresult GetContainer(nsIDocShell **aContainer);
3752 nsresult SetContainer(nsIDocShell *aContainer);
3753 void /* thiscall */ LoadStart(nsIDocument *aDoc);
3754 nsresult LoadComplete(nsresult aStatus);
3755 nsresult PermitUnload(bool *_retval);
3756 nsresult GetInPermitUnload(bool *aInPermitUnload);
3757 nsresult /* thiscall */ PermitUnloadInternal(bool *aShouldPrompt, bool *_retval);
3758 nsresult GetBeforeUnloadFiring(bool *aBeforeUnloadFiring);
3759 nsresult PageHide(bool isUnload);
3760 nsresult Close(nsISHEntry *historyEntry);
3761 nsresult Destroy();
3762 nsresult Stop();
3763 nsresult GetDOMDocument(nsIDOMDocument **aDOMDocument);
3764 nsresult SetDOMDocument(nsIDOMDocument *aDOMDocument);
3765 void /* thiscall nsresult_(nsIDocument *) */ GetDocument();
3766 nsresult GetBounds(void /*nsIntRect*/ *aBounds);
3767 nsresult SetBounds(const void /*nsIntRect*/ *aBounds);
3768 nsresult GetPreviousViewer(nsIContentViewer **aPreviousViewer);
3769 nsresult SetPreviousViewer(nsIContentViewer *aPreviousViewer);
3770 nsresult Move(int32_t aX, int32_t aY);
3771 nsresult Show();
3772 nsresult Hide();
3773 nsresult GetSticky(bool *aSticky);
3774 nsresult SetSticky(bool aSticky);
3775 nsresult RequestWindowClose(bool *_retval);
3776 nsresult Open(nsISupports *aState, nsISHEntry *aSHEntry);
3777 nsresult ClearHistoryEntry();
3778 nsresult SetPageMode(bool aPageMode, nsIPrintSettings *aPrintSettings);
3779 nsresult GetHistoryEntry(nsISHEntry **aHistoryEntry);
3780 nsresult GetIsTabModalPromptAllowed(bool *aIsTabModalPromptAllowed);
3781 nsresult GetIsHidden(bool *aIsHidden);
3782 nsresult SetIsHidden(bool aIsHidden);
3783 nsresult GetPresShell(nsIPresShell **aPresShell);
3784 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
3785 nsresult SetDocumentInternal(nsIDocument *aDocument, bool aForceReuseInnerWindow);
3786 void /* thiscall nsView */ *FindContainerView(void);
3787 void /* thiscall */ SetNavigationTiming(void /*nsDOMNavigationTiming*/ *aTiming);
3788 nsresult ScrollToNode(nsIDOMNode *node);
3789 nsresult GetTextZoom(float *aTextZoom);
3790 nsresult SetTextZoom(float aTextZoom);
3791 nsresult GetFullZoom(float *aFullZoom);
3792 nsresult SetFullZoom(float aFullZoom);
3793 nsresult GetAuthorStyleDisabled(bool *aAuthorStyleDisabled);
3794 nsresult SetAuthorStyleDisabled(bool aAuthorStyleDisabled);
3795 nsresult GetForceCharacterSet(nsACString *aForceCharacterSet);
3796 nsresult SetForceCharacterSet(const nsACString *aForceCharacterSet);
3797 nsresult GetHintCharacterSet(nsACString *aHintCharacterSet);
3798 nsresult SetHintCharacterSet(const nsACString *aHintCharacterSet);
3799 nsresult GetHintCharacterSetSource(int32_t *aHintCharacterSetSource);
3800 nsresult SetHintCharacterSetSource(int32_t aHintCharacterSetSource);
3801 nsresult GetContentSize(int32_t *width, int32_t *height);
3802 nsresult GetMinFontSize(int32_t *aMinFontSize);
3803 nsresult SetMinFontSize(int32_t aMinFontSize);
3804 nsresult AppendSubtree(void /*nsTArray<nsCOMPtr<nsIContentViewer> >*/ *array);
3805 nsresult PausePainting();
3806 nsresult ResumePainting();
3807 nsresult EmulateMedium(const nsAString *aMediaType);
3808 nsresult StopEmulatingMedium();
3812 object,
3813 uuid(e7570e5a-f1d6-452d-b4f8-b35fdc63aa03),
3814 local
3816 interface nsIDocShellLoadInfo : nsISupports
3818 typedef uint32_t nsDocShellInfoReferrerPolicy;
3820 typedef enum {
3821 loadNormal = 0,
3822 loadNormalReplace = 1,
3823 loadHistory = 2,
3824 loadReloadNormal = 3,
3825 loadReloadBypassCache = 4,
3826 loadReloadBypassProxy = 5,
3827 loadReloadBypassProxyAndCache = 6,
3828 loadLink = 7,
3829 loadRefresh = 8,
3830 loadReloadCharsetChange = 9,
3831 loadBypassHistory = 10,
3832 loadStopContent = 11,
3833 loadStopContentAndReplace = 12,
3834 loadNormalExternal = 13,
3835 loadNormalBypassCache = 14,
3836 loadNormalBypassProxy = 15,
3837 loadNormalBypassProxyAndCache = 16,
3838 loadPushState = 17,
3839 loadReplaceBypassCache = 18,
3840 loadReloadMixedContent = 19,
3841 loadNormalAllowMixedContent = 20
3842 } nsDocShellInfoLoadType;
3844 nsresult GetReferrer(nsIURI **aReferrer);
3845 nsresult SetReferrer(nsIURI *aReferrer);
3846 nsresult GetOriginalURI(nsIURI **aOriginalURI);
3847 nsresult SetOriginalURI(nsIURI *aOriginalURI);
3848 nsresult GetLoadReplace(bool *aLoadReplace);
3849 nsresult SetLoadReplace(bool aLoadReplace);
3850 nsresult GetOwner(nsISupports **aOwner);
3851 nsresult SetOwner(nsISupports *aOwner);
3852 nsresult GetInheritOwner(bool *aInheritOwner);
3853 nsresult SetInheritOwner(bool aInheritOwner);
3854 nsresult GetOwnerIsExplicit(bool *aOwnerIsExplicit);
3855 nsresult SetOwnerIsExplicit(bool aOwnerIsExplicit);
3856 nsresult GetLoadType(nsDocShellInfoLoadType *aLoadType);
3857 nsresult SetLoadType(nsDocShellInfoLoadType aLoadType);
3858 nsresult GetSHEntry(nsISHEntry **aSHEntry);
3859 nsresult SetSHEntry(nsISHEntry *aSHEntry);
3860 nsresult GetTarget(char16_t **aTarget);
3861 nsresult SetTarget(const char16_t * aTarget);
3862 nsresult GetPostDataStream(nsIInputStream **aPostDataStream);
3863 nsresult SetPostDataStream(nsIInputStream *aPostDataStream);
3864 nsresult GetHeadersStream(nsIInputStream * *aHeadersStream);
3865 nsresult SetHeadersStream(nsIInputStream *aHeadersStream);
3866 nsresult GetSendReferrer(bool *aSendReferrer);
3867 nsresult SetSendReferrer(bool aSendReferrer);
3868 nsresult GetReferrerPolicy(nsDocShellInfoReferrerPolicy *aReferrerPolicy);
3869 nsresult SetReferrerPolicy(nsDocShellInfoReferrerPolicy aReferrerPolicy);
3870 nsresult GetIsSrcdocLoad(bool *aIsSrcdocLoad);
3871 nsresult GetSrcdocData(nsAString *aSrcdocData);
3872 nsresult SetSrcdocData(const nsAString *aSrcdocData);
3873 nsresult GetSourceDocShell(nsIDocShell * *aSourceDocShell);
3874 nsresult SetSourceDocShell(nsIDocShell *aSourceDocShell);
3875 nsresult GetBaseURI(nsIURI **aBaseURI);
3876 nsresult SetBaseURI(nsIURI *aBaseURI);
3880 object,
3881 uuid(049234fe-da10-478b-bc5d-bc6f9a1ba63d),
3882 local
3884 interface nsIDocShell : nsIDocShellTreeItem
3886 nsresult LoadURI(nsIURI *uri, nsIDocShellLoadInfo *loadInfo, uint32_t aLoadFlags, bool firstParty);
3887 nsresult LoadStream(nsIInputStream *aStream, nsIURI *aURI, const nsACString *aContentType,
3888 const nsACString *aContentCharset, nsIDocShellLoadInfo *aLoadInfo);
3889 nsresult InternalLoad(nsIURI *aURI, nsIURI *aOriginalURI, bool aLoadReplace, nsIURI *aReferrer,
3890 uint32_t aReferrerPolicy, nsISupports *aOwner, uint32_t aFlags, const PRUnichar *aWindowTarget,
3891 const char *aTypeHint, nsACString *aFileName, nsIInputStream *aPostDataStream,
3892 nsIInputStream *aHeadersStream, uint32_t aLoadFlags, nsISHEntry *aSHEntry, bool firstParty,
3893 const nsAString *aSrcdoc, nsIDocShell *aSourceDocShell, nsIURI *aBaseURI, nsIDocShell **aDocShell,
3894 nsIRequest **aRequest);
3895 nsresult AddState(jsval *aData, const nsAString *aTitle, const nsAString *aURL, bool aReplace, JSContext *cx);
3896 nsresult CreateLoadInfo(nsIDocShellLoadInfo **loadInfo);
3897 nsresult PrepareForNewContentModel();
3898 nsresult SetCurrentURI(nsIURI *aURI);
3899 nsresult FirePageHideNotification(bool isUnload);
3900 nsresult GetPresContext(void /*nsPresContext*/ **aPresContext);
3901 nsIPresShell *GetPresShell();
3902 nsresult GetEldestPresShell(nsIPresShell **aEldestPresShell);
3903 nsresult GetContentViewer(nsIContentViewer **aContentViewer);
3904 nsresult GetChromeEventHandler(nsIDOMEventTarget **aChromeEventHandler);
3905 nsresult SetChromeEventHandler(nsIDOMEventTarget *aChromeEventHandler);
3906 nsresult GetCustomUserAgent(nsAString *aCustomUserAgent);
3907 nsresult SetCustomUserAgent(const nsAString *aCustomUserAgent);
3908 nsresult GetAllowPlugins(bool *aAllowPlugins);
3909 nsresult SetAllowPlugins(bool aAllowPlugins);
3910 nsresult GetAllowJavascript(bool *aAllowJavascript);
3911 nsresult SetAllowJavascript(bool aAllowJavascript);
3912 nsresult GetDisableNoScript(bool *aDisableNoScript);
3913 nsresult SetDisableNoScript(bool aDisableNoScript);
3914 nsresult GetAllowMetaRedirects(bool *aAllowMetaRedirects);
3915 nsresult SetAllowMetaRedirects(bool aAllowMetaRedirects);
3916 nsresult GetAllowSubframes(bool *aAllowSubframes);
3917 nsresult SetAllowSubframes(bool aAllowSubframes);
3918 nsresult GetAllowImages(bool *aAllowImages);
3919 nsresult SetAllowImages(bool aAllowImages);
3920 nsresult GetAllowMedia(bool *aAllowMedia);
3921 nsresult SetAllowMedia(bool aAllowMedia);
3922 nsresult GetAllowDNSPrefetch(bool *aAllowDNSPrefetch);
3923 nsresult SetAllowDNSPrefetch(bool aAllowDNSPrefetch);
3924 nsresult GetAllowWindowControl(bool *aAllowWindowControl);
3925 nsresult SetAllowWindowControl(bool aAllowWindowControl);
3926 nsresult GetAllowContentRetargeting(bool *aAllowContentRetargeting);
3927 nsresult SetAllowContentRetargeting(bool aAllowContentRetargeting);
3928 nsresult GetAllowContentRetargetingOnChildren(bool *aAllowContentRetargetingOnChildren);
3929 nsresult SetAllowContentRetargetingOnChildren(bool aAllowContentRetargetingOnChildren);
3930 nsresult GetDocShellEnumerator(int32_t aItemType, int32_t aDirection, nsISimpleEnumerator **_retval);
3931 nsresult GetAppType(uint32_t *aAppType);
3932 nsresult SetAppType(uint32_t aAppType);
3933 nsresult GetAllowAuth(bool *aAllowAuth);
3934 nsresult SetAllowAuth(bool aAllowAuth);
3935 nsresult GetZoom(float *aZoom);
3936 nsresult SetZoom(float aZoom);
3937 nsresult GetMarginWidth(int32_t *aMarginWidth);
3938 nsresult SetMarginWidth(int32_t aMarginWidth);
3939 nsresult GetMarginHeight(int32_t *aMarginHeight);
3940 nsresult SetMarginHeight(int32_t aMarginHeight);
3941 nsresult TabToTreeOwner(bool forward, bool forDocumentNavigation, bool *_retval);
3942 nsresult GetBusyFlags(uint32_t *aBusyFlags);
3943 nsresult GetLoadType(uint32_t *aLoadType);
3944 nsresult SetLoadType(uint32_t aLoadType);
3945 nsresult GetDefaultLoadFlags(nsLoadFlags *aDefaultLoadFlags);
3946 nsresult SetDefaultLoadFlags(nsLoadFlags aDefaultLoadFlags);
3947 nsresult IsBeingDestroyed(bool *_retval);
3948 nsresult GetIsExecutingOnLoadHandler(bool *aIsExecutingOnLoadHandler);
3949 nsresult GetLayoutHistoryState(nsILayoutHistoryState **aLayoutHistoryState);
3950 nsresult SetLayoutHistoryState(nsILayoutHistoryState *aLayoutHistoryState);
3951 nsresult GetShouldSaveLayoutState(bool *aShouldSaveLayoutState);
3952 nsresult GetSecurityUI(nsISecureBrowserUI **aSecurityUI);
3953 nsresult SetSecurityUI(nsISecureBrowserUI *aSecurityUI);
3954 nsresult SuspendRefreshURIs();
3955 nsresult ResumeRefreshURIs();
3956 nsresult BeginRestore(nsIContentViewer *viewer, bool top);
3957 nsresult FinishRestore();
3958 nsresult GetRestoringDocument(bool *aRestoringDocument);
3959 nsresult GetUseErrorPages(bool *aUseErrorPages);
3960 nsresult SetUseErrorPages(bool aUseErrorPages);
3961 nsresult DisplayLoadError(nsresult aError, nsIURI *aURI, const char16_t *aURL, nsIChannel *aFailedChannel, bool *_retval);
3962 nsresult GetFailedChannel(nsIChannel **aFailedChannel);
3963 nsresult GetPreviousTransIndex(int32_t *aPreviousTransIndex);
3964 nsresult GetLoadedTransIndex(int32_t *aLoadedTransIndex);
3965 nsresult HistoryPurged(int32_t numEntries);
3966 nsresult GetSessionStorageForPrincipal(nsIPrincipal *principal, const nsAString *documentURI,
3967 bool create, nsIDOMStorage **_retval);
3968 nsresult AddSessionStorage(nsIPrincipal *principal, nsIDOMStorage *storage);
3969 nsresult GetCurrentDocumentChannel(nsIChannel **aCurrentDocumentChannel);
3970 nsresult SetChildOffset(uint32_t offset);
3971 nsresult GetIsInUnload(bool *aIsInUnload);
3972 nsresult GetChannelIsUnsafe(bool *aChannelIsUnsafe);
3973 nsresult GetHasMixedActiveContentLoaded(bool *aHasMixedActiveContentLoaded);
3974 nsresult GetHasMixedActiveContentBlocked(bool *aHasMixedActiveContentBlocked);
3975 nsresult GetHasMixedDisplayContentLoaded(bool *aHasMixedDisplayContentLoaded);
3976 nsresult GetHasMixedDisplayContentBlocked(bool *aHasMixedDisplayContentBlocked);
3977 nsresult GetHasTrackingContentBlocked(bool *aHasTrackingContentBlocked);
3978 nsresult GetHasTrackingContentLoaded(bool *aHasTrackingContentLoaded);
3979 void DetachEditorFromWindow();
3980 nsresult GetIsOffScreenBrowser(bool *aIsOffScreenBrowser);
3981 nsresult SetIsOffScreenBrowser(bool aIsOffScreenBrowser);
3982 nsresult GetPrintPreview(nsIWebBrowserPrint **aPrintPreview);
3983 nsresult GetCanExecuteScripts(bool *aCanExecuteScripts);
3984 nsresult GetIsActive(bool *aIsActive);
3985 nsresult SetIsActive(bool aIsActive);
3986 nsresult SetIsActiveAndForeground(bool aIsActive);
3987 nsresult SetIsPrerendered(bool prerendered);
3988 nsresult GetIsPrerendered(bool *aIsPrerendered);
3989 nsresult GetHistoryID(uint64_t *aHistoryID);
3990 nsresult GetIsAppTab(bool *aIsAppTab);
3991 nsresult SetIsAppTab(bool aIsAppTab);
3992 nsresult CreateAboutBlankContentViewer(nsIPrincipal *aPrincipal);
3993 nsresult GetCharset(nsACString *aCharset);
3994 nsresult SetCharset(nsACString *aCharset);
3995 nsresult GatherCharsetMenuTelemetry();
3996 nsresult GetForcedCharset(nsIAtom **aForcedCharset);
3997 nsresult SetForcedCharset(nsIAtom *aForcedCharset);
3998 void /* thiscall */ SetParentCharset(const nsACString *parentCharset, int32_t parentCharsetSource, nsIPrincipal *parentCharsetPrincipal);
3999 void /* thiscall */ GetParentCharset(nsACString *parentCharset, int32_t *parentCharsetSource, nsIPrincipal **parentCharsetPrincipal);
4000 nsresult GetRecordProfileTimelineMarkers(bool *aRecordProfileTimelineMarkers);
4001 nsresult SetRecordProfileTimelineMarkers(bool aRecordProfileTimelineMarkers);
4002 nsresult Now(int /* DOMHighResTimeStamp */ *_retval);
4003 nsresult PopProfileTimelineMarkers(JSContext *cx, void /*JS::MutableHandleValue*/ *_retval);
4004 nsresult AddWeakPrivacyTransitionObserver(nsIPrivacyTransitionObserver *obs);
4005 nsresult AddWeakReflowObserver(nsISupports /*nsIReflowObserver*/ *obs);
4006 nsresult RemoveWeakReflowObserver(nsISupports /*nsIReflowObserver*/ *obs);
4007 nsresult NotifyReflowObservers(bool interruptible, int /*DOMHighResTimeStamp*/ start, int /*DOMHighResTimeStamp*/ end);
4008 nsresult AddWeakScrollObserver(void /*nsIScrollObserver*/ *obs);
4009 nsresult RemoveWeakScrollObserver(void /*nsIScrollObserver*/ *obs);
4010 nsresult NotifyScrollObservers();
4011 nsresult GetIsApp(bool *aIsApp);
4012 nsresult GetFrameType(uint32_t *aFrameType);
4013 nsresult SetFrameType(uint32_t aFrameType);
4014 nsresult GetIsMozBrowserOrApp(bool *aIsMozBrowserOrApp);
4015 nsresult GetIsIsolatedMozBrowserElement(bool *aIsIsolatedMozBrowserElement);
4016 nsresult GetIsInIsolatedMozBrowserElement(bool *aIsInIsolatedMozBrowserElement);
4017 nsresult SetIsInIsolatedMozBrowserElement(bool aIsInIsolatedMozBrowserElement);
4018 nsresult GetIsInMozBrowserOrApp(bool *aIsInMozBrowserOrApp);
4019 nsresult GetAppId(uint32_t *aAppId);
4020 nsresult GetAppManifestURL(nsAString *aAppManifestURL);
4021 nsresult GetSameTypeParentIgnoreBrowserAndAppBoundaries(nsIDocShell **_retval);
4022 nsresult GetSameTypeRootTreeItemIgnoreBrowserAndAppBoundaries(nsIDocShell **_retval);
4023 nsresult GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled);
4024 nsresult GetSandboxFlags(uint32_t *aSandboxFlags);
4025 nsresult SetSandboxFlags(uint32_t aSandboxFlags);
4026 nsresult GetOnePermittedSandboxedNavigator(nsIDocShell **aOnePermittedSandboxedNavigator);
4027 nsresult SetOnePermittedSandboxedNavigator(nsIDocShell *aOnePermittedSandboxedNavigator);
4028 bool /* thiscall */ IsSandboxedFrom(nsIDocShell *aTargetDocShell);
4029 nsresult GetMixedContentChannel(nsIChannel **aMixedContentChannel);
4030 nsresult SetMixedContentChannel(nsIChannel *aMixedContentChannel);
4031 nsresult GetAllowMixedContentAndConnectionData(bool *rootHasSecureConnection, bool *allowMixedContent, bool *isRootDocShell);
4032 bool PluginsAllowedInCurrentDoc();
4033 nsresult GetFullscreenAllowed(bool *aFullscreenAllowed);
4034 nsresult SetFullscreenAllowed(bool allowed);
4035 uint32_t OrientationLock();
4036 void SetOrientationLock(uint32_t orientationLock);
4037 nsresult GetAffectPrivateSessionLifetime(bool *aAffectPrivateSessionLifetime);
4038 nsresult SetAffectPrivateSessionLifetime(bool aAffectPrivateSessionLifetime);
4039 nsresult GetMayEnableCharacterEncodingMenu(bool *aMayEnableCharacterEncodingMenu);
4040 nsresult GetEditor(nsIEditor **aEditor);
4041 nsresult SetEditor(nsIEditor *aEditor);
4042 nsresult GetEditable(bool *aEditable);
4043 nsresult GetHasEditingSession(bool *aHasEditingSession);
4044 nsresult MakeEditable(bool inWaitForUriLoad);
4045 nsresult GetChildSHEntry(int32_t aChildOffset, nsISHEntry **_retval);
4046 nsresult AddChildSHEntry(nsISHEntry *aCloneReference, nsISHEntry *aHistoryEntry, int32_t aChildOffset, uint32_t aLoadType, bool aCloneChildren);
4047 nsresult GetUseGlobalHistory(bool *aUseGlobalHistory);
4048 nsresult SetUseGlobalHistory(bool aUseGlobalHistory);
4049 nsresult RemoveFromSessionHistory();
4050 nsresult GetCreatedDynamically(bool *aCreatedDynamically);
4051 nsresult SetCreatedDynamically(bool aCreatedDynamically);
4052 nsresult GetCurrentSHEntry(nsISHEntry **aEntry, bool *_retval);
4053 nsresult IsCommandEnabled(const char *command, bool *_retval);
4054 nsresult DoCommand(const char *command);
4055 bool IsInvisible();
4056 void SetInvisible(bool aIsInvisibleDochsell);
4057 void /* nsIScriptGlobalObject thiscall */ *GetScriptGlobalObject();
4058 nsresult GetDeviceSizeIsPageSize(bool *aDeviceSizeIsPageSize);
4059 nsresult SetDeviceSizeIsPageSize(bool aDeviceSizeIsPageSize);
4060 void /* thiscall */ SetOpener(void /*nsITabParent*/ *aOpener);
4061 void /* thiscall nsITabParent */ *GetOpener();
4062 void /* thiscall */ NotifyJSRunToCompletionStart(const char *aReason, const char16_t *functionName,
4063 const char16_t *fileName, uint32_t lineNumber);
4064 void /* thiscall */ NotifyJSRunToCompletionStop();
4065 nsresult GetHasLoadedNonBlankURI(bool *aHasLoadedNonBlankURI);
4066 nsresult GetPaymentRequestId(nsAString *aPaymentRequestId);
4067 nsresult SetPaymentRequestId(const nsAString *aPaymentRequestId);
4068 nsresult GetWindowDraggingAllowed(bool *aWindowDraggingAllowed);
4069 nsresult SetWindowDraggingAllowed(bool aWindowDraggingAllowed);
4070 nsresult GetCurrentScrollRestorationIsManual(bool *aCurrentScrollRestorationIsManual);
4071 nsresult SetCurrentScrollRestorationIsManual(bool aCurrentScrollRestorationIsManual);
4072 nsresult GetOriginAttributes(JSContext* cx, void* /* JS::MutableHandleValue */ _retval);
4073 nsresult SetOriginAttributes(int /* JS::HandleValue */ aAttrs, JSContext *cx);
4077 object,
4078 uuid(6d674c17-0fbc-4633-8f46-734e87ebf0c7),
4079 local
4081 interface nsIMutationObserver : nsISupports
4083 typedef struct {} nsAttrValue;
4085 void CharacterDataWillChange(nsIDocument *aDocument, nsIContent *aContent,
4086 void /*CharacterDataChangeInfo*/ *aInfo);
4087 void CharacterDataChanged(nsIDocument *aDocument, nsIContent *aContent,
4088 void /*CharacterDataChangeInfo*/ *aInfo);
4089 void AttributeWillChange(nsIDocument *aDocument, /*mozilla::dom::Element*/ void *aElement, int32_t aNameSpaceID,
4090 nsIAtom *aAttribute, int32_t aModType, const nsAttrValue *aNewValue);
4091 void AttributeChanged(nsIDocument *aDocument, /*mozilla::dom::Element*/ void *aElement, int32_t aNameSpaceID,
4092 nsIAtom *aAttribute, int32_t aModType, const nsAttrValue *aOldValue);
4093 void NativeAnonymousChildListChange(nsIDocument *aDocument, nsIContent *aContent, bool aIsRemove);
4094 void AttributeSetToCurrentValue(nsIDocument *aDocument, /*mozilla::dom::Element*/ void *aElement,
4095 int32_t aNameSpaceID, nsIAtom *aAttribute);
4096 void ContentAppended(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aFirstNewContent,
4097 int32_t aNewIndexInContainer);
4098 void ContentInserted(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
4099 int32_t aIndexInContainer);
4100 void ContentRemoved(nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild,
4101 int32_t aIndexInContainer, nsIContent *aPreviousSibling);
4102 void NodeWillBeDestroyed(const nsINode *aNode);
4103 void ParentChainChanged(nsIContent *aContent);
4107 object,
4108 uuid(2c4ad90a-740e-4212-ba3f-feacda4b929e),
4109 local
4111 interface nsIParser : nsISupports
4113 typedef int nsDTDMode;
4114 typedef int eParserCommands;
4116 /* From nsParserBase: */
4117 bool IsParserEnabled();
4118 nsresult GetChannel(nsIChannel **aChannel);
4120 void SetContentSink(nsIContentSink *aSink);
4121 nsIContentSink *GetContentSink();
4122 void GetCommand(nsACString *aCommand);
4123 void SetCommand2(const char *aCommand);
4124 void SetCommand(eParserCommands aParserCommand);
4125 void SetDocumentCharset(const nsACString *aCharset, int32_t aSource);
4126 void GetDocumentCharset(nsACString *oCharset, int32_t *oSource);
4127 /* nsresult GetChannel(nsIChannel **aChannel); in nsParserBase */
4128 nsresult GetDTD(nsIDTD **aDTD);
4129 nsIStreamListener *GetStreamListener();
4130 nsresult ContinueInterruptedParsing();
4131 void BlockParser();
4132 void UnblockParser();
4133 void ContinueInterruptedParsingAsync();
4134 /* bool IsParserEnabled(); in nsParserBase */
4135 bool IsComplete();
4136 nsresult Parse(nsIURI *aURL, nsIRequestObserver *aListener, void *aKey, nsDTDMode aMode);
4137 nsresult Terminate();
4138 nsresult ParseFragment(const nsAString *aSourceBuffer, void /*nsTArray<nsString>*/ *aTagStack);
4139 nsresult BuildModel();
4140 nsresult CancelParsingEvents();
4141 void Reset();
4142 bool IsInsertionPointDefined();
4143 void BeginEvaluatingParserInsertedScript();
4144 void EndEvaluatingParserInsertedScript();
4145 void MarkAsNotScriptCreated(const char *aCommand);
4146 bool IsScriptCreated();
4150 object,
4151 uuid(71041fa3-6dd7-4cde-bb76-aecc69e17578),
4152 local
4154 interface nsIDocumentObserver : nsIMutationObserver
4156 typedef uint32_t nsUpdateType;
4158 typedef struct {
4159 void *dummy;
4160 } mozilla_StyleSheetHandle;
4162 typedef struct {
4163 uint64_t mStates;
4164 } EventStates;
4166 void BeginUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
4167 void EndUpdate(nsIDocument *aDocument, nsUpdateType aUpdateType);
4168 void BeginLoad(nsIDocument *aDocument);
4169 void EndLoad(nsIDocument *aDocument);
4170 void ContentStatesChanged(nsIDocument *aDocument, nsIContent *aContent, EventStates aStateMask);
4171 void DocumentStatesChanged(nsIDocument *aDocument, EventStates aStateMask);
4172 void StyleSheetAdded(mozilla_StyleSheetHandle aStyleSheet, bool aDocumentSheet);
4173 void StyleSheetRemoved(mozilla_StyleSheetHandle aStyleSheet, bool aDocumentSheet);
4174 void StyleSheetApplicableStateChanged(mozilla_StyleSheetHandle aStyleSheet);
4175 void StyleRuleChanged(mozilla_StyleSheetHandle aStyleSheet);
4176 void StyleRuleAdded(mozilla_StyleSheetHandle aStyleSheet);
4177 void StyleRuleRemoved(mozilla_StyleSheetHandle aStyleSheet);
4178 void BindToDocument(nsIDocument *aDocument, nsIContent *aContent);
4179 void AttemptToExecuteScript(nsIContent *aContent, nsIParser *aParser, bool *aBlock);
4183 object,
4184 uuid(3682dd99-8560-44f4-9b8f-ccce9d7b96fb),
4185 local
4187 interface nsIContentUtils : nsISupports
4189 bool IsSafeToRunScript();
4190 nsresult AddDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
4191 nsresult RemoveDocumentObserver(nsIDocument *aDocument, nsIDocumentObserver *aObserver);
4192 nsresult AddMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
4193 nsresult RemoveMutationObserver(nsINode *aNode, nsIMutationObserver *aObserver);
4194 nsresult AddScriptRunner(nsIRunnable *aRunnable);
4195 JSContext *GetContextFromDocument(nsIDocument *aDocument);
4199 object,
4200 uuid(15c05894-408e-4798-b527-a8c32d9c5f8c),
4201 local
4203 interface nsIAudioChannelAgentCallback : nsISupports
4205 nsresult WindowVolumeChanged(float aVolume, bool aMuted);
4206 nsresult WindowAudioCaptureChanged(bool aCapture);
4210 object,
4211 uuid(8f672000-bab9-4c60-aaaf-2673c4e2a4c6),
4212 local
4214 interface nsIPluginInstance : nsIAudioChannelAgentCallback
4216 nsresult GetDOMElement(nsIDOMElement **aDOMElement);
4220 object,
4221 uuid(11afa8be-d997-4e07-a6a3-6f872ec3ee7f),
4222 local
4224 interface nsIGlobalObject : nsISupports
4229 object,
4230 uuid(3eedba38-8d22-41e1-817a-0e43e165b664),
4231 local
4233 interface nsIScriptObjectPrincipal : nsISupports
4235 nsIPrincipal* /* thiscall */ GetPrincipal();
4239 object,
4240 uuid(6f54214c-7175-498d-9d2d-0429e38c2869),
4241 local
4243 interface nsIXMLHttpRequest : nsISupports
4245 nsresult GetChannel(nsIChannel **aChannel);
4246 nsresult GetResponseXML(nsIDOMDocument **aResponseXML);
4247 nsresult GetResponseText(nsAString *aResponseText);
4248 nsresult GetResponseType(nsAString *aResponseType);
4249 nsresult SetResponseType(const nsAString *aResponseType);
4250 nsresult GetResponse(JSContext*cx, int /*JS::MutableHandleValue*/ aResponse);
4251 nsresult GetStatus(uint32_t *aStatus);
4252 nsresult GetStatusText(nsACString *aStatusText);
4253 nsresult SlowAbort();
4254 nsresult GetAllResponseHeaders(nsACString *_retval);
4255 nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
4256 nsresult Open(const nsACString *method, const nsACString *url, bool async, const nsAString *user, const nsAString *password, uint8_t _argc);
4257 nsresult Send(nsIVariant *body);
4258 nsresult SetRequestHeader(const nsACString *header, const nsACString *value);
4259 nsresult GetTimeout(uint32_t *aTimeout);
4260 nsresult SetTimeout(uint32_t aTimeout);
4261 nsresult GetReadyState(uint16_t *aReadyState);
4262 nsresult SlowOverrideMimeType(const nsAString *mimetype);
4263 nsresult GetMozBackgroundRequest(bool *aMozBackgroundRequest);
4264 nsresult SetMozBackgroundRequest(bool aMozBackgroundRequest);
4265 nsresult GetWithCredentials(bool *aWithCredentials);
4266 nsresult SetWithCredentials(bool aWithCredentials);
4267 nsresult Init(nsIPrincipal *principal, nsIScriptContext *scriptContext, nsIGlobalObject *globalObject, nsIURI *baseURI, nsILoadGroup *loadGroup);
4268 nsresult GetUpload(nsIXMLHttpRequestUpload **aUpload);
4269 nsresult GetOnreadystatechange(JSContext*cx, int /*JS::MutableHandleValue*/ aOnreadystatechange);
4270 nsresult SetOnreadystatechange(JSContext*cx, int /*JS::HandleValue*/ aOnreadystatechange);
4271 nsresult GetMozAnon(bool *aMozAnon);
4272 nsresult GetMozSystem(bool *aMozSystem);
4275 cpp_quote("DEFINE_GUID(IID_nsCycleCollectionISupports, 0xc61eac14,0x5f7a,0x4481,0x96,0x5e,0x7e,0xaa,0x6e,0xff,0xa8,0x5f);")