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