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