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