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