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