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
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 cpp_quote
("#define GECKO_VERSION \"2.40\"")
27 cpp_quote
("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION")
31 cpp_quote
("#ifdef WINE_NO_UNICODE_MACROS")
32 cpp_quote
("#undef GetForm")
33 cpp_quote
("#undef SetPort")
34 cpp_quote
("#undef GetClassName")
37 typedef HRESULT nsresult
;
38 typedef ULONG nsrefcnt
;
43 typedef REFIID nsIIDRef
;
44 typedef nsIIDRef nsCIDRef
;
46 typedef WCHAR PRUnichar
;
49 * Mozilla uses stdint.h types for its headers. Following defines make this IDL file
50 * more similar to original declarations. Note that it's only a widl trick, we can't
51 * use stdint.h types in C.
58 #define uint16_t UINT16
59 #define uint32_t UINT32
60 #define uint64_t UINT64
62 #define char16_t PRUnichar
64 typedef uint64_t DOMTimeStamp
;
65 typedef uint32_t nsLoadFlags
;
66 typedef int64_t PRTime
;
68 /* Similar trick to stdint.h types for C++ bool type */
69 typedef unsigned char cpp_bool
;
86 typedef nsCStringContainer nsACString
;
87 typedef nsStringContainer nsAString
;
89 interface nsIWebBrowserChrome
;
90 interface nsILoadGroup
;
93 interface nsIDOMDocument
;
94 interface nsIDOMEvent
;
96 interface nsISelectionController
;
97 interface nsITransactionManager
;
98 interface nsITransaction
;
99 interface nsIInlineSpellChecker
;
100 interface nsIOutputStream
;
101 interface nsIEditorObserver
;
102 interface nsIEditActionListener
;
103 interface nsIDocumentStateListener
;
104 interface nsIDOMCSSStyleSheet
;
105 interface nsIDOMDocumentView
;
106 interface nsIDOMWindow
;
107 interface nsIDOMElement
;
108 interface nsIDOMRange
;
109 interface nsIDOMEventTarget
;
110 interface nsISelection
;
111 interface nsIDOMHTMLSelectElement
;
113 interface nsIDocShell
;
119 uuid(00000000-0000-0000-c000
-000000000046),
122 interface nsISupports
124 nsresult QueryInterface
(nsIIDRef riid
, void **result
);
129 /* Currently we don't need a full declaration of these interfaces */
130 typedef nsISupports nsISHistory
;
131 typedef nsISupports nsIWidget
;
132 typedef nsISupports nsIPrompt
;
133 typedef nsISupports nsIAuthPrompt
;
134 typedef nsISupports nsIDOMDocumentType
;
135 typedef nsISupports nsIDOMDOMImplementation
;
136 typedef nsISupports nsIDOMCDATASection
;
137 typedef nsISupports nsIDOMProcessingInstruction
;
138 typedef nsISupports nsIDOMEntityReference
;
139 typedef nsISupports nsIWebProgressListener
;
140 typedef nsISupports nsIDOMCSSValue
;
141 typedef nsISupports nsIPrintSession
;
142 typedef nsISupports nsIControllerCommandTable
;
143 typedef nsISupports nsIPrincipal
;
144 typedef nsISupports nsIAtom
;
145 typedef nsISupports nsISupportsArray
;
146 typedef nsISupports nsIContentFilter
;
147 typedef nsISupports nsIDOMMediaList
;
148 typedef nsISupports nsIDOMHTMLTableSectionElement
;
149 typedef nsISupports nsIDOMClientRectList
;
150 typedef nsISupports nsINode
;
151 typedef nsISupports nsIStyleSheet
;
152 typedef nsISupports nsIStyleRule
;
153 typedef nsISupports nsIDOMUserDataHandler
;
154 typedef nsISupports nsISHEntry
;
155 typedef nsISupports nsIPresShell
;
156 typedef nsISupports nsIDocumentCharsetInfo
;
157 typedef nsISupports nsILayoutHistoryState
;
158 typedef nsISupports nsISecureBrowserUI
;
159 typedef nsISupports nsIDOMStorage
;
160 typedef nsISupports nsIDOMDOMTokenList
;
161 typedef nsISupports nsITransferable
;
162 typedef nsISupports nsIDOMFileList
;
163 typedef nsISupports nsIDOMFile
;
164 typedef nsISupports nsIControllers
;
165 typedef nsISupports nsIDOMValidityState
;
166 typedef nsISupports nsIPluginInstanceOwner
;
167 typedef nsISupports nsIPluginStreamListener
;
168 typedef nsISupports nsIContentSink
;
169 typedef nsISupports nsIParserFilter
;
170 typedef nsISupports nsIDTD
;
171 typedef nsISupports nsIObserver
;
172 typedef nsISupports nsIDOMNodeFilter
;
173 typedef nsISupports nsIDOMNodeIterator
;
174 typedef nsISupports nsIDOMTreeWalker
;
175 typedef nsISupports nsIHttpUpgradeListener
;
176 typedef nsISupports nsIDOMOfflineResourceList
;
177 typedef nsISupports nsIDOMNavigator
;
178 typedef nsISupports nsIDOMScreen
;
179 typedef nsISupports nsIAnimationFrameListener
;
180 typedef nsISupports nsIDOMStorageList
;
181 typedef nsISupports nsILocalFile
;
182 typedef nsISupports nsIDOMHTMLMenuElement
;
183 typedef nsISupports nsIDOMCaretPosition
;
184 typedef nsISupports nsIFrameRequestCallback
;
185 typedef nsISupports nsICycleCollectorListener
;
186 typedef nsISupports nsIDOMHTMLCanvasElement
;
187 typedef nsISupports nsIQueryContentEventResult
;
188 typedef nsISupports nsIDOMBlob
;
189 typedef nsISupports nsIPrivacyTransitionObserver
;
190 typedef nsISupports nsIDOMHTMLPropertiesCollection
;
191 typedef nsISupports mozIDOMApplication
;
192 typedef nsISupports nsILoadGroupConnectionInfo
;
193 typedef nsISupports nsIDOMCrypto
;
194 typedef nsISupports nsIDOMPkcs11
;
195 typedef nsISupports nsIDocShellTreeOwner
;
196 typedef nsISupports nsIArray
;
197 typedef nsISupports nsILoadInfo
;
198 typedef nsISupports nsIContentSecurityPolicy
;
199 typedef nsISupports nsIXMLHttpRequestUpload
;
200 typedef nsISupports nsIClassInfo
;
201 typedef nsISupports nsILoadContext
;
202 typedef nsISupports nsIDomainPolicy
;
203 typedef nsISupports nsIScriptContext
;
204 typedef nsISupports nsIObjectInputStream
;
205 typedef nsISupports nsIObjectOutputStream
;
207 typedef void *JSContext
;
208 typedef void *JSObject
;
209 typedef uint64_t jsval
;
213 uuid(8bb35ed9
-e332
-462d
-9155-4a002ab5c958
),
216 interface nsIServiceManager
: nsISupports
218 nsresult GetService
(nsCIDRef aClass
, nsIIDRef aIID
, void **result
);
219 nsresult GetServiceByContractID
(const char *aContractID
, nsIIDRef aIID
, void **result
);
220 nsresult IsServiceInstantiated
(nsCIDRef aClass
, nsIIDRef aIID
, BOOL
*_retval
);
221 nsresult IsServiceInstantiatedByContractID
(const char *aContractID
, nsIIDRef aIID
, BOOL
*_retval
);
226 uuid(00000001-0000-0000-c000
-000000000046),
229 interface nsIFactory
: nsISupports
231 nsresult CreateInstance
(nsISupports
*aOuter
, const nsIID
*iid
, void **result
);
232 nsresult LockFactory
(bool lock
);
237 uuid(9188bc85
-f92e
-11d2
-81ef
-0060083a0bcf
),
240 interface nsIWeakReference
: nsISupports
242 nsresult QueryReferent
(const nsIID
*riid
, void **result
);
247 uuid(9188bc86
-f92e
-11d2
-81ef
-0060083a0bcf
),
250 interface nsISupportsWeakReference
: nsISupports
252 nsresult GetWeakReference
(nsIWeakReference
**_retval
);
257 uuid(033a1470
-8b2a
-11d3
-af88
-00a024ffc08c
),
260 interface nsIInterfaceRequestor
: nsISupports
262 nsresult GetInterface
(const nsIID
*riid
, void **result
);
267 uuid(4a2abaf0
-6886-11d3
-9382-00104ba0fd40
),
270 interface nsIRunnable
: nsISupports
277 uuid(d1899240
-f9d2
-11d2
-bdd6
-000064657374),
280 interface nsISimpleEnumerator
: nsISupports
282 nsresult HasMoreElements
(bool
*_retval
);
283 nsresult GetNext
(nsISupports
**_retval
);
288 uuid(81e4c2de
-acac
-4ad6
-901a
-b5fb1b851a0d
),
291 interface nsIVariant
: nsISupports
293 nsresult GetDataType
(uint16_t
*aDataType
);
294 nsresult GetAsInt8
(uint8_t
*_retval
);
295 nsresult GetAsInt16
(int16_t
*_retval
);
296 nsresult GetAsInt32
(int32_t
*_retval
);
297 nsresult GetAsInt64
(int64_t
*_retval
);
298 nsresult GetAsUint8
(uint8_t
*_retval
);
299 nsresult GetAsUint16
(uint16_t
*_retval
);
300 nsresult GetAsUint32
(uint32_t
*_retval
);
301 nsresult GetAsUint64
(uint64_t
*_retval
);
302 nsresult GetAsFloat
(float *_retval
);
303 nsresult GetAsDouble
(double *_retval
);
304 nsresult GetAsBool
(bool
*_retval
);
305 nsresult GetAsChar
(char *_retval
);
306 nsresult GetAsWChar
(PRUnichar
*_retval
);
307 nsresult GetAsID
(nsID
*retval);
308 nsresult GetAsAString
(nsAString
*_retval
);
309 nsresult GetAsDOMString
(nsAString
*_retval
);
310 nsresult GetAsACString
(nsACString
*_retval
);
311 nsresult GetAsAUTF8String
(nsACString
*_retval
);
312 nsresult GetAsString
(char * *_retval
);
313 nsresult GetAsWString
(PRUnichar
* *_retval
);
314 nsresult GetAsISupports
(nsISupports
* *_retval
);
315 nsresult GetAsJSVal
(long /*jsval*/ *_retval
);
316 nsresult GetAsInterface
(nsIID
**iid
, void **iface
);
317 nsresult GetAsArray
(uint16_t
*type
, nsIID
*iid
, uint32_t
*count
, void **ptr);
318 nsresult GetAsStringWithSize
(uint32_t
*size
, char **str
);
319 nsresult GetAsWStringWithSize
(uint32_t
*size
, PRUnichar
**str
);
324 uuid(5586a590
-8c82
-11d5
-90f3
-0010a4e73d9a
),
327 interface nsIWritableVariant
: nsIVariant
329 nsresult GetWritable
(bool
*aWritable
);
330 nsresult SetWritable
(bool aWritable
);
331 nsresult SetAsInt8
(uint8_t aValue
);
332 nsresult SetAsInt16
(int16_t aValue
);
333 nsresult SetAsInt32
(int32_t aValue
);
334 nsresult SetAsInt64
(int64_t aValue
);
335 nsresult SetAsUint8
(uint8_t aValue
);
336 nsresult SetAsUint16
(uint16_t aValue
);
337 nsresult SetAsUint32
(uint32_t aValue
);
338 nsresult SetAsUint64
(uint64_t aValue
);
339 nsresult SetAsFloat
(float aValue
);
340 nsresult SetAsDouble
(double aValue
);
341 nsresult SetAsBool
(bool aValue
);
342 nsresult SetAsChar
(char aValue
);
343 nsresult SetAsWChar
(PRUnichar aValue
);
344 nsresult SetAsID
(const nsID
*aValue
);
345 nsresult SetAsAString
(const nsAString
*aValue
);
346 nsresult SetAsDOMString
(const nsAString
*aValue
);
347 nsresult SetAsACString
(const nsACString
*aValue
);
348 nsresult SetAsAUTF8String
(const nsACString
*aValue
);
349 nsresult SetAsString
(const char * aValue
);
350 nsresult SetAsWString
(const PRUnichar
* aValue
);
351 nsresult SetAsISupports
(nsISupports
*aValue
);
352 nsresult SetAsInterface
(const nsIID
*iid
, void *iface
);
353 nsresult SetAsArray
(uint16_t type
, const nsIID
*iid
, uint32_t count
, void *ptr);
354 nsresult SetAsStringWithSize
(uint32_t size
, const char *str
);
355 nsresult SetAsWStringWithSize
(uint32_t size
, const PRUnichar
*str
);
356 nsresult SetAsVoid
();
357 nsresult SetAsEmpty
();
358 nsresult SetAsEmptyArray
();
359 nsresult SetFromVariant
(nsIVariant
*aValue
);
364 uuid(53cdbc97
-c2d7
-4e30
-b2c3
-45b2ee79db18
),
367 interface nsIInputStream
: nsISupports
370 nsresult Available
(uint64_t
*_retval
);
371 nsresult Read
(char *aBuf
, uint32_t aCount
, uint32_t
*_retval
);
372 nsresult ReadSegments
(nsresult
(*aWriter
)(nsIInputStream
*aInStream
,
373 void *aClosure
, const char *aFromSegment
, uint32_t aToOffset
,
374 uint32_t aCount
, uint32_t
*aWriteCount
),
375 void *aClosure
, uint32_t aCount
, uint32_t
*_retval
);
376 nsresult IsNonBlocking
(bool
*_retval
);
381 uuid(8429d350
-1040-4661-8b71
-f2a6ba455980
),
384 interface nsISeekableStream
: nsISupports
392 nsresult Seek
(int32_t whence
, int64_t offset
);
393 nsresult Tell
(int64_t
*_retval
);
399 uuid(395fe045
-7d18
-4adb
-a3fd
-af98c8a1af11
),
402 interface nsIURI
: nsISupports
404 nsresult GetSpec
(nsACString
*aSpec
);
405 nsresult SetSpec
(const nsACString
*aSpec
);
406 nsresult GetPrePath
(nsACString
*aPrePath
);
407 nsresult GetScheme
(nsACString
*aScheme
);
408 nsresult SetScheme
(const nsACString
*aScheme
);
409 nsresult GetUserPass
(nsACString
*aUserPass
);
410 nsresult SetUserPass
(const nsACString
*aUserPass
);
411 nsresult GetUsername
(nsACString
*aUsername
);
412 nsresult SetUsername
(const nsACString
*aUsername
);
413 nsresult GetPassword
(nsACString
*aPassword
);
414 nsresult SetPassword
(const nsACString
*aPassword
);
415 nsresult GetHostPort
(nsACString
*aHostPort
);
416 nsresult SetHostPort
(const nsACString
*aHostPort
);
417 nsresult GetHost
(nsACString
*aHost
);
418 nsresult SetHost
(const nsACString
*aHost
);
419 nsresult GetPort
(int32_t
*aPort
);
420 nsresult SetPort
(int32_t aPort
);
421 nsresult GetPath
(nsACString
*aPath
);
422 nsresult SetPath
(const nsACString
*aPath
);
423 nsresult Equals
(nsIURI
*other
, bool
*_retval
);
424 nsresult SchemeIs
(const char *scheme
, bool
*_retval
);
425 nsresult Clone
(nsIURI
**_retval
);
426 nsresult Resolve
(const nsACString
*relativePath
, nsACString
*_retval
);
427 nsresult GetAsciiSpec
(nsACString
*aAsciiSpec
);
428 nsresult GetAsciiHost
(nsACString
*aAsciiHost
);
429 nsresult GetOriginCharset
(nsACString
*aOriginCharset
);
430 nsresult GetRef
(nsACString
*aRef
);
431 nsresult SetRef
(const nsACString
*aRef
);
432 nsresult EqualsExceptRef
(nsIURI
*other
, bool
*_retval
);
433 nsresult CloneIgnoringRef
(nsIURI
**_retval
);
434 nsresult GetSpecIgnoringRef
(nsACString
*aSpecIgnoringRef
);
435 nsresult GetHasRef
(bool
*aHasRef
);
440 uuid(1419aa16
-f134
-4154-9886-00c7c5147a13
),
443 interface nsIURL
: nsIURI
445 nsresult GetFilePath
(nsACString
*aFilePath
);
446 nsresult SetFilePath
(const nsACString
*aFilePath
);
447 nsresult GetQuery
(nsACString
*aQuery
);
448 nsresult SetQuery
(const nsACString
*aQuery
);
449 nsresult GetDirectory
(nsACString
*aDirectory
);
450 nsresult SetDirectory
(const nsACString
*aDirectory
);
451 nsresult GetFileName
(nsACString
*aFileName
);
452 nsresult SetFileName
(const nsACString
*aFileName
);
453 nsresult GetFileBaseName
(nsACString
*aFileBaseName
);
454 nsresult SetFileBaseName
(const nsACString
*aFileBaseName
);
455 nsresult GetFileExtension
(nsACString
*aFileExtension
);
456 nsresult SetFileExtension
(const nsACString
*aFileExtension
);
457 nsresult GetCommonBaseSpec
(nsIURI
*aURIToCompare
, nsACString
*_retval
);
458 nsresult GetRelativeSpec
(nsIURI
*aURIToCompare
, nsACString
*_retval
);
463 uuid(7750029c
-1b0a
-414e-8359-a77f24a2a0a6
),
466 interface nsIFileURL
: nsIURL
468 nsresult GetFile
(nsIFile
**aFile
);
469 nsresult SetFile
(nsIFile
*aFile
);
474 uuid(321578d0
-03c1
-4d95
-8821-021ac612d18d
),
477 interface nsIMutable
: nsISupports
479 nsresult GetMutable
(bool
*aMutable
);
480 nsresult SetMutable
(bool aMutable
);
485 uuid(babd6cca
-ebe7
-4329-967c
-d6b9e33caa81
),
488 interface nsIStandardURL
: nsIMutable
490 nsresult Init
(uint32_t aUrlType
, int32_t aDefaultPort
, const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
);
495 uuid(ef6bfbd2
-fd46
-48d8
-96b7
-9f8f0fd387fe
),
498 interface nsIRequest
: nsISupports
500 nsresult GetName
(nsACString
*aName
);
501 nsresult IsPending
(bool
*_retval
);
502 nsresult GetStatus
(nsresult
*aStatus
);
503 nsresult Cancel
(nsresult aStatus
);
506 nsresult GetLoadGroup
(nsILoadGroup
**aLoadGroup
);
507 nsresult SetLoadGroup
(nsILoadGroup
*aLoadGroup
);
508 nsresult GetLoadFlags
(nsLoadFlags
*aLoadFlags
);
509 nsresult SetLoadFlags
(nsLoadFlags aLoadFlags
);
514 uuid(fd91e2e0
-1481-11d3
-9333-00104ba0fd40
),
517 interface nsIRequestObserver
: nsISupports
519 nsresult OnStartRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
520 nsresult OnStopRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatusCode
);
525 uuid(3b4c8a77
-76ba
-4610-b316
-678c73a3b88c
),
528 interface nsIStreamListener
: nsIRequestObserver
530 nsresult OnDataAvailable
(nsIRequest
*aRequest
, nsISupports
*aContext
,
531 nsIInputStream
*aInputStream
, uint64_t aOffset
, uint32_t aCount
);
536 uuid(afb57ac2
-bce5
-4ee3
-bb34
-385089a9ba5c
),
539 interface nsILoadGroup
: nsIRequest
541 nsresult GetGroupObserver
(nsIRequestObserver
**aGroupObserver
);
542 nsresult SetGroupObserver
(nsIRequestObserver
*aGroupObserver
);
543 nsresult GetDefaultLoadRequest
(nsIRequest
**aDefaultLoadRequest
);
544 nsresult SetDefaultLoadRequest
(nsIRequest
*aDefaultLoadRequest
);
545 nsresult AddRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
546 nsresult RemoveRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatus
);
547 nsresult GetRequests
(nsISimpleEnumerator
**aRequests
);
548 nsresult GetActiveCount
(uint32_t
*aActiveCount
);
549 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
550 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
551 nsresult GetConnectionInfo
(nsILoadGroupConnectionInfo
**aConnectionInfo
);
552 nsresult GetDefaultLoadFlags
(nsLoadFlags
*aDefaultLoadFlags
);
553 nsresult SetDefaultLoadFlags
(nsLoadFlags aDefaultLoadFlags
);
558 uuid(1bc48693
-c45d
-45f4
-8ab1
-46e323037fe1
),
561 interface nsIChannel
: nsIRequest
563 const UINT LOAD_DOCUMENT_URI
= 1 << 16;
564 const UINT LOAD_RETARGETED_DOCUMENT_URI
= 1 << 17;
565 const UINT LOAD_REPLACE
= 1 << 18;
566 const UINT LOAD_INITIAL_DOCUMENT_URI
= 1 << 19;
567 const UINT LOAD_TARGETED
= 1 << 20;
568 const UINT LOAD_CALL_CONTENT_SNIFFERS
= 1 << 21;
569 const UINT LOAD_CLASSIFY_URI
= 1 << 22;
570 const UINT LOAD_MEDIA_SNIFFER_OVERRIDES_CONTENT_TYPE
= 1 << 23;
571 const UINT LOAD_EXPLICIT_CREDENTIALS
= 1 << 24;
573 nsresult GetOriginalURI
(nsIURI
**aOriginalURI
);
574 nsresult SetOriginalURI
(nsIURI
*aOriginalURI
);
575 nsresult GetURI
(nsIURI
**aURI
);
576 nsresult GetOwner
(nsISupports
**aOwner
);
577 nsresult SetOwner
(nsISupports
*aOwner
);
578 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
579 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
580 nsresult GetSecurityInfo
(nsISupports
**aSecurityInfo
);
581 nsresult GetContentType
(nsACString
*aContentType
);
582 nsresult SetContentType
(const nsACString
*aContentType
);
583 nsresult GetContentCharset
(nsACString
*aContentCharset
);
584 nsresult SetContentCharset
(const nsACString
*aContentCharset
);
585 nsresult GetContentLength
(int64_t
*aContentLength
);
586 nsresult SetContentLength
(int64_t aContentLength
);
587 nsresult Open
(nsIInputStream
**_retval
);
588 nsresult AsyncOpen
(nsIStreamListener
*aListener
, nsISupports
*aContext
);
589 nsresult GetContentDisposition
(uint32_t
*aContentDisposition
);
590 nsresult SetContentDisposition
(uint32_t aContentDisposition
);
591 nsresult GetContentDispositionFilename
(nsAString
*aContentDispositionFilename
);
592 nsresult SetContentDispositionFilename
(const nsAString
*aContentDispositionFilename
);
593 nsresult GetContentDispositionHeader
(nsACString
*aContentDispositionHeader
);
594 nsresult GetLoadInfo
(nsILoadInfo
**aLoadInfo
);
595 nsresult SetLoadInfo
(nsILoadInfo
*aLoadInfo
);
600 uuid(35412859-b9d9
-423c
-8866-2d4559fdd2be
),
603 interface nsIHttpHeaderVisitor
: nsISupports
605 nsresult VisitHeader
(const nsACString
*aHeader
, const nsACString
*aValue
);
610 uuid(86ad7e1f
-3a64
-4e0f
-a104
-395ebecd7d5c
),
613 interface nsIHttpChannel
: nsIChannel
615 nsresult GetRequestMethod
(nsACString
*aRequestMethod
);
616 nsresult SetRequestMethod
(const nsACString
*aRequestMethod
);
617 nsresult GetReferrer
(nsIURI
**aReferrer
);
618 nsresult SetReferrer
(nsIURI
*aReferrer
);
619 nsresult GetReferrerPolicy
(uint32_t
*aReferrerPolicy
);
620 nsresult SetReferrerWithPolicy
(nsIURI
*referrer
, uint32_t referrerPolicy
);
621 nsresult GetRequestHeader
(const nsACString
*aHeader
, nsACString
*_retval
);
622 nsresult SetRequestHeader
(const nsACString
*aHeader
, const nsACString
*aValue
, bool aMerge
);
623 nsresult VisitRequestHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
624 nsresult GetAllowPipelining
(bool
*aAllowPipelining
);
625 nsresult SetAllowPipelining
(bool aAllowPipelining
);
626 nsresult GetAllowSTS
(bool
*aAllowSTS
);
627 nsresult SetAllowSTS
(bool aAllowSTS
);
628 nsresult GetRedirectionLimit
(uint32_t
*aRedirectionLimit
);
629 nsresult SetRedirectionLimit
(uint32_t aRedirectionLimit
);
630 nsresult GetResponseStatus
(uint32_t
*aResponseStatus
);
631 nsresult GetResponseStatusText
(nsACString
*aResponseStatusText
);
632 nsresult GetRequestSucceeded
(bool
*aRequestSucceeded
);
633 nsresult GetResponseHeader
(const nsACString
*header
, nsACString
*_retval
);
634 nsresult SetResponseHeader
(const nsACString
*header
, const nsACString
*value
, bool merge
);
635 nsresult VisitResponseHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
636 nsresult IsNoStoreResponse
(bool
*_retval
);
637 nsresult IsNoCacheResponse
(bool
*_retval
);
638 nsresult IsPrivateResponse
(bool
*_retval
);
639 nsresult RedirectTo
(nsIURI
*aNewURI
);
644 uuid(26833ec7
-4555-4f23
-9281-3a12d4b76db1
),
647 interface nsIHttpChannelInternal
: nsISupports
649 nsresult GetDocumentURI
(nsIURI
**aDocumentURI
);
650 nsresult SetDocumentURI
(nsIURI
*aDocumentURI
);
651 nsresult GetRequestVersion
(uint32_t
*major
, uint32_t
*minor
);
652 nsresult GetResponseVersion
(uint32_t
*major
, uint32_t
*minor
);
653 nsresult TakeAllSecurityMessages
(void /*securityMessagesArray*/ *aMessages
);
654 nsresult SetCookie
(const char *aCookieHeader
);
655 nsresult SetupFallbackChannel
(const char *aFallbackKey
);
656 nsresult GetForceAllowThirdPartyCookie
(bool
*aForceAllowThirdPartyCookie
);
657 nsresult SetForceAllowThirdPartyCookie
(bool aForceAllowThirdPartyCookie
);
658 nsresult GetCanceled
(bool
*aCanceled
);
659 nsresult GetChannelIsForDownload
(bool
*aChannelIsForDownload
);
660 nsresult SetChannelIsForDownload
(bool aChannelIsForDownload
);
661 nsresult GetLocalAddress
(nsACString
*aLocalAddress
);
662 nsresult GetLocalPort
(int32_t
*aLocalPort
);
663 nsresult GetRemoteAddress
(nsACString
*aRemoteAddress
);
664 nsresult GetRemotePort
(int32_t
*aRemotePort
);
665 nsresult SetCacheKeysRedirectChain
(void /*nsTArray<nsCString>*/ *cacheKeys
);
666 nsresult HTTPUpgrade
(const nsACString
*aProtocolName
, nsIHttpUpgradeListener
*aListener
);
667 nsresult GetAllowSpdy
(bool
*aAllowSpdy
);
668 nsresult SetAllowSpdy
(bool aAllowSpdy
);
669 nsresult GetResponseTimeoutEnabled
(bool
*aResponseTimeoutEnabled
);
670 nsresult SetResponseTimeoutEnabled
(bool aResponseTimeoutEnabled
);
671 nsresult GetApiRedirectToURI
(nsIURI
**aApiRedirectToURI
);
672 nsresult GetAllowAltSvc
(bool
*aAllowAltSvc
);
673 nsresult SetAllowAltSvc
(bool aAllowAltSvc
);
674 nsresult AddRedirect
(nsIPrincipal
*aPrincipal
);
675 nsresult GetLastModifiedTime
(PRTime
*aLastModifiedTime
);
676 nsresult ForceNoIntercept
();
677 nsresult GetCorsIncludeCredentials
(bool
*aCorsIncludeCredentials
);
678 nsresult SetCorsIncludeCredentials
(bool aCorsIncludeCredentials
);
679 nsresult GetCorsMode
(uint32_t
*aCorsMode
);
680 nsresult SetCorsMode
(uint32_t aCorsMode
);
681 nsresult GetTopWindowURI
(nsIURI
**aTopWindowURI
);
682 nsresult GetNetworkInterfaceId
(nsACString
*aNetworkInterfaceId
);
683 nsresult SetNetworkInterfaceId
(const nsACString
*aNetworkInterfaceId
);
684 nsresult ContinueBeginConnect
();
685 nsresult GetProxyURI
(nsIURI
**aProxyURI
);
690 uuid(5cfe15bd
-5adb
-4a7f
-9e55
-4f5a67d15794
),
693 interface nsIUploadChannel
: nsISupports
695 nsresult SetUploadStream
(nsIInputStream
*aStream
, const nsACString
*aContentType
,
696 int64_t aContentLength
);
697 nsresult GetUploadStream
(nsIInputStream
**aUploadStream
);
702 uuid(8d171460
-a716
-41f1
-92be
-8c659db39b45
),
705 interface nsIAsyncVerifyRedirectCallback
: nsISupports
707 nsresult OnRedirectVerifyCallback
(nsresult result
);
712 uuid(0197720d
-37ed
-4e75
-8956-d0d296e4d8a6
),
715 interface nsIChannelEventSink
: nsISupports
717 const UINT REDIRECT_TEMPORARY
= 1;
718 const UINT REDIRECT_PERMANENT
= 2;
719 const UINT REDIRECT_INTERNAL
= 4;
720 const UINT REDIRECT_STS_UPGRADE
= 8;
722 nsresult AsyncOnChannelRedirect
(nsIChannel
*oldChannel
, nsIChannel
*newChannel
, uint32_t flags
,
723 nsIAsyncVerifyRedirectCallback
*callback);
728 uuid(79de76e5
-994e-4f6b
-81aa
-42d9adb6e67e
),
731 interface nsIDOMLocation
: nsISupports
733 nsresult GetHash
(nsAString
*aHash
);
734 nsresult SetHash
(const nsAString
*aHash
);
735 nsresult GetHost
(nsAString
*aHost
);
736 nsresult SetHost
(const nsAString
*aHost
);
737 nsresult GetHostname
(nsAString
*aHostname
);
738 nsresult SetHostname
(const nsAString
*aHostname
);
739 nsresult GetHref
(nsAString
*aHref
);
740 nsresult SetHref
(const nsAString
*aHref
);
741 nsresult GetPathname
(nsAString
*aPathname
);
742 nsresult SetPathname
(const nsAString
*aPathname
);
743 nsresult GetPort
(nsAString
*aPort
);
744 nsresult SetPort
(const nsAString
*aPort
);
745 nsresult GetProtocol
(nsAString
*aProtocol
);
746 nsresult SetProtocol
(const nsAString
*aProtocol
);
747 nsresult GetSearch
(nsAString
*aSearch
);
748 nsresult SetSearch
(const nsAString
*aSearch
);
749 nsresult GetOrigin
(nsAString
*aOrigin
);
750 nsresult Reload
(bool forceget
);
751 nsresult Replace
(const nsAString
*url
);
752 nsresult Assign
(const nsAString
*url
);
753 nsresult ToString
(nsAString
*_retval
);
754 nsresult ValueOf
(nsIDOMLocation
**_retval
);
759 uuid(4d6b3bad
-f53c
-4585-82f6
-62982e27ede8
),
762 interface nsIDOMCSSRule
: nsISupports
764 nsresult GetType
(uint16_t
*aType
);
765 nsresult GetCssText
(nsAString
*aCssText
);
766 nsresult SetCssText
(const nsAString
*aCssText
);
767 nsresult GetParentStyleSheet
(nsIDOMCSSStyleSheet
**aParentStyleSheet
);
768 nsresult GetParentRule
(nsIDOMCSSRule
**aParentRule
);
769 int /* thiscall mozilla::css::Rule */ GetCSSRule
();
774 uuid(a6cf90be
-15b3
-11d2
-932e-00805f8add32
),
777 interface nsIDOMCSSStyleDeclaration
: nsISupports
779 nsresult GetCssText
(nsAString
*aCssText
);
780 nsresult SetCssText
(const nsAString
*aCssText
);
781 nsresult GetPropertyValue
(const nsAString
*propertyName
, nsAString
*_retval
);
782 nsresult GetPropertyCSSValue
(const nsAString
*propertyName
, nsIDOMCSSValue
**_retval
);
783 nsresult RemoveProperty
(const nsAString
*propertyName
, nsAString
*_retval
);
784 nsresult GetPropertyPriority
(const nsAString
*propertyName
, nsAString
*_retval
);
785 nsresult SetProperty
(const nsAString
*propertyName
, const nsAString
*value
,
786 const nsAString
*priority
);
787 nsresult GetLength
(uint32_t
*aLength
);
788 nsresult Item
(uint32_t index
, nsAString
*_retval
);
789 nsresult GetParentRule
(nsIDOMCSSRule
**aParentRule
);
794 uuid(a6cf90c0
-15b3
-11d2
-932e-00805f8add32
),
797 interface nsIDOMCSSRuleList
: nsISupports
799 nsresult GetLength
(uint32_t
*aLength
);
800 nsresult Item
(uint32_t index
, nsIDOMCSSRule
**_retval
);
805 uuid(a6cf9080
-15b3
-11d2
-932e-00805f8add32
),
808 interface nsIDOMStyleSheet
: nsISupports
810 nsresult GetType
(nsAString
*aType
);
811 nsresult GetDisabled
(bool
*aDisabled
);
812 nsresult SetDisabled
(bool aDisabled
);
813 nsresult GetOwnerNode
(nsIDOMNode
**aOwnerNode
);
814 nsresult GetParentStyleSheet
(nsIDOMStyleSheet
**aParentStyleSheet
);
815 nsresult GetHref
(nsAString
*aHref
);
816 nsresult GetTitle
(nsAString
*aTitle
);
817 nsresult GetMedia
(nsIDOMMediaList
**aMedia
);
822 uuid(a6cf90c2
-15b3
-11d2
-932e-00805f8add32
),
825 interface nsIDOMCSSStyleSheet
: nsIDOMStyleSheet
827 nsresult GetOwnerRule
(nsIDOMCSSRule
**aOwnerRule
);
828 nsresult GetCssRules
(nsIDOMCSSRuleList
**aCssRules
);
829 nsresult InsertRule
(const nsAString
*rule
, uint32_t index
, uint32_t
*_retval
);
830 nsresult DeleteRule
(uint32_t index
);
835 uuid(0e424250
-ac2a
-4fe2
-bccd
-a45824af090e
),
838 interface nsIDOMStyleSheetList
: nsISupports
840 nsresult GetLength
(uint32_t
*aLength
);
841 nsresult Item
(uint32_t index
, nsIDOMStyleSheet
**_retval
);
846 uuid(450cf0ba
-de90
-4f86
-85bf
-e10cc8b8713f
),
849 interface nsIDOMNodeList
: nsISupports
851 nsresult Item
(uint32_t index
, nsIDOMNode
**_retval
);
852 nsresult GetLength
(uint32_t
*aLength
);
857 uuid(bb07f567
-5b37
-4172-92aa
-7d00ceed4809
),
860 interface nsIDOMHTMLCollection
: nsISupports
862 nsresult GetLength
(uint32_t
*aLength
);
863 nsresult Item
(uint32_t index
, nsIDOMNode
**_retval
);
864 nsresult NamedItem
(const nsAString
*name
, nsIDOMNode
**_retval
);
869 uuid(cb5564cd
-26ec
-418f
-a6d6
-1d57cd2c971c
),
872 interface nsIDOMMozNamedAttrMap
: nsISupports
874 nsresult GetNamedItem
(const nsAString
*name
, nsIDOMAttr
**_retval
);
875 nsresult SetNamedItem
(nsIDOMAttr
*arg
, nsIDOMAttr
**_retval
);
876 nsresult RemoveNamedItem
(const nsAString
*name
, nsIDOMAttr
**_retval
);
877 nsresult Item
(uint32_t index
, nsIDOMAttr
**_retval
);
878 nsresult GetLength
(uint32_t
*aLength
);
879 nsresult GetNamedItemNS
(const nsAString
*namespaceURI
, const nsAString
*localName
, nsIDOMAttr
**_retval
);
880 nsresult SetNamedItemNS
(nsIDOMAttr
*arg
, nsIDOMAttr
**_retval
);
881 nsresult RemoveNamedItemNS
(const nsAString
*namespaceURI
, const nsAString
*localName
, nsIDOMAttr
**_retval
);
886 uuid(cc35b412
-009b
-46a3
-9be0
-76448f12548d
),
889 interface nsIDOMNode
: nsISupports
895 CDATA_SELECTION_NODE
= 4,
896 ENTITY_REFERENCE_NODE
= 5,
898 PROCESSING_INSTRUCTION_NODE
= 7,
901 DOCUMENT_TYPE_NODE
= 10,
902 DOCUMENT_FRAGMENT_NODE
= 11,
907 DOCUMENT_POSITION_DISCONNECTED
= 1,
908 DOCUMENT_POSITION_PRECEDING
= 2,
909 DOCUMENT_POSITION_FOLLOWING
= 4,
910 DOCUMENT_POSITION_CONTAINS
= 8,
911 DOCUMENT_POSITION_CONTAINED_BY
= 16,
912 DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
= 32
915 nsresult GetNodeName
(nsAString
*aNodeName
);
916 nsresult GetNodeValue
(nsAString
*aNodeValue
);
917 nsresult SetNodeValue
(const nsAString
*aNodeValue
);
918 nsresult GetNodeType
(uint16_t
*aNodeType
);
919 nsresult GetParentNode
(nsIDOMNode
**aParentNode
);
920 nsresult GetParentElement
(nsIDOMElement
**aParentElement
);
921 nsresult GetChildNodes
(nsIDOMNodeList
**aChildNodes
);
922 nsresult GetFirstChild
(nsIDOMNode
**aFirstChild
);
923 nsresult GetLastChild
(nsIDOMNode
**aLastChild
);
924 nsresult GetPreviousSibling
(nsIDOMNode
**aPreviousSibling
);
925 nsresult GetNextSibling
(nsIDOMNode
**aNextSibling
);
926 nsresult GetOwnerDocument
(nsIDOMDocument
**aOwnerDocument
);
927 nsresult InsertBefore
(nsIDOMNode
*newChild
, nsIDOMNode
*refChild
, nsIDOMNode
**_retval
);
928 nsresult ReplaceChild
(nsIDOMNode
*newChild
, nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
929 nsresult RemoveChild
(nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
930 nsresult AppendChild
(nsIDOMNode
*newChild
, nsIDOMNode
**_retval
);
931 nsresult HasChildNodes
(bool
*_retval
);
932 nsresult CloneNode
(bool deep
, uint8_t _argc
, nsIDOMNode
**_retval
);
933 nsresult Normalize
();
934 nsresult GetNamespaceURI
(nsAString
*aNamespaceURI
);
935 nsresult GetPrefix
(nsAString
*aPrefix
);
936 nsresult GetLocalName
(nsAString
*aLocalName
);
937 nsresult UnusedPlaceholder
(bool
*_retval
);
938 nsresult GetDOMBaseURI
(nsAString
*aBaseURI
);
939 nsresult CompareDocumentPosition
(nsIDOMNode
*other
, uint16_t
*_retval
);
940 nsresult GetTextContent
(nsAString
*aTextContent
);
941 nsresult SetTextContent
(const nsAString
*aTextContent
);
942 nsresult LookupPrefix
(const nsAString
*namespaceURI
, nsAString
*_retval
);
943 nsresult IsDefaultNamespace
(const nsAString
*namespaceURI
, bool
*_retval
);
944 nsresult LookupNamespaceURI
(const nsAString
*prefix
, nsAString
*_retval
);
945 nsresult IsEqualNode
(nsIDOMNode
*arg
, bool
*_retval
);
946 nsresult SetUserData
(const nsAString
*key
, nsIVariant
*data
, nsIVariant
**_retval
);
947 nsresult GetUserData
(const nsAString
*key
, nsIVariant
**_retval
);
948 nsresult Contains
(nsIDOMNode
*aOther
, bool
*_retval
);
950 nsresult GetMshtmlNode
(nsISupports
**aMshtmlNode
);
951 nsresult SetMshtmlNode
(nsISupports
*aMshtmlNode
);
956 uuid(7db491e8
-a3a3
-4432-ad67
-e6c33e24ac6d
),
959 interface nsIDOMAttr
: nsIDOMNode
961 nsresult GetName
(nsAString
*aName
);
962 nsresult GetSpecified
(bool
*aSpecified
);
963 nsresult GetValue
(nsAString
*aValue
);
964 nsresult SetValue
(const nsAString
*aValue
);
965 nsresult GetOwnerElement
(nsIDOMElement
**aOwnerElement
);
966 nsresult GetIsId
(bool
*aIsId
);
971 uuid(b2f824c4
-d9d3
-499b
-8d3b
-45c8245497c6
),
974 interface nsIDOMClientRect
: nsISupports
976 nsresult GetLeft
(float *aLeft
);
977 nsresult GetTop
(float *aTop
);
978 nsresult GetRight
(float *aRight
);
979 nsresult GetBottom
(float *aBottom
);
980 nsresult GetWidth
(float *aWidth
);
981 nsresult GetHeight
(float *aHeight
);
986 uuid(6289999b
-1008-4269-b42a
-413ec5a9d3f4
),
989 interface nsIDOMElement
: nsIDOMNode
991 nsresult GetTagName
(nsAString
*aTagName
);
992 nsresult GetId
(nsAString
*aId
);
993 nsresult SetId
(const nsAString
*aId
);
994 nsresult GetClassName
(nsAString
*aClassName
);
995 nsresult SetClassName
(const nsAString
*aClassName
) ;
996 nsresult GetClassList
(nsISupports
**aClassList
);
997 nsresult GetAttributes
(nsIDOMMozNamedAttrMap
**aAttributes
);
998 nsresult GetAttribute
(const nsAString
*name
, nsAString
*_retval
);
999 nsresult GetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
, nsAString
*_retval
);
1000 nsresult SetAttribute
(const nsAString
*name
, const nsAString
*value
);
1001 nsresult SetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
, const nsAString
*value
);
1002 nsresult RemoveAttribute
(const nsAString
*name
);
1003 nsresult RemoveAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
);
1004 nsresult HasAttribute
(const nsAString
*name
, bool
*_retval
);
1005 nsresult HasAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
, bool
*_retval
);
1006 nsresult HasAttributes
(bool
*_retval
);
1007 nsresult GetAttributeNode
(const nsAString
*name
, nsIDOMAttr
**_retval
);
1008 nsresult SetAttributeNode
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
1009 nsresult RemoveAttributeNode
(nsIDOMAttr
*oldAttr
, nsIDOMAttr
**_retval
);
1010 nsresult GetAttributeNodeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
, nsIDOMAttr
**_retval
);
1011 nsresult SetAttributeNodeNS
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
1012 nsresult GetElementsByTagName
(const nsAString
*name
, nsIDOMHTMLCollection
**_retval
);
1013 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
, nsIDOMHTMLCollection
**_retval
);
1014 nsresult GetElementsByClassName
(const nsAString
*classes
, nsIDOMHTMLCollection
**_retval
);
1015 nsresult GetChildElements
(nsIDOMNodeList
**aChildren
);
1016 nsresult GetFirstElementChild
(nsIDOMElement
**aFirstElementChild
);
1017 nsresult GetLastElementChild
(nsIDOMElement
**aLastElementChild
);
1018 nsresult GetPreviousElementSibling
(nsIDOMElement
**aPreviousElementSibling
);
1019 nsresult GetNextElementSibling
(nsIDOMElement
**aNextElementSibling
);
1020 nsresult GetChildElementCount
(uint32_t
*aChildElementCount
);
1022 nsresult GetClientRects
(nsIDOMClientRectList
**_retval
);
1023 nsresult GetBoundingClientRect
(nsIDOMClientRect
**_retval
);
1024 nsresult GetScrollTop
(int32_t
*aScrollTop
);
1025 nsresult SetScrollTop
(int32_t aScrollTop
);
1026 nsresult GetScrollLeft
(int32_t
*aScrollLeft
);
1027 nsresult SetScrollLeft
(int32_t aScrollLeft
);
1028 nsresult GetScrollWidth
(int32_t
*aScrollWidth
);
1029 nsresult GetScrollHeight
(int32_t
*aScrollHeight
);
1030 nsresult GetClientTop
(int32_t
*aClientTop
);
1031 nsresult GetClientLeft
(int32_t
*aClientLeft
);
1032 nsresult GetClientWidth
(int32_t
*aClientWidth
);
1033 nsresult GetClientHeight
(int32_t
*aClientHeight
);
1034 nsresult GetScrollLeftMax
(int32_t
*aScrollLeftMax
);
1035 nsresult GetScrollTopMax
(int32_t
*aScrollTopMax
);
1036 nsresult MozMatchesSelector
(const nsAString
*selector
, bool
*_retval
);
1037 nsresult SetCapture
(bool retargetToElement
);
1038 nsresult ReleaseCapture
();
1039 nsresult MozRequestFullScreen
();
1040 nsresult MozRequestPointerLock
();
1041 nsresult QuerySelector
(const nsAString
*selectors
, nsIDOMElement
**_retval
);
1042 nsresult QuerySelectorAll
(const nsAString
*selectors
, nsIDOMNodeList
**_retval
);
1047 uuid(99715845-95fc
-4a56
-aa53
-214b65c26e22
),
1050 interface nsIDOMElementCSSInlineStyle
: nsISupports
1052 nsresult GetStyle
(nsIDOMCSSStyleDeclaration
**aStyle
);
1057 uuid(b0c42392
-d0e7
-4f6a
-beb5
-a698ce648945
),
1060 interface nsIDOMHTMLElement
: nsIDOMElement
1062 nsresult GetTitle
(nsAString
*aTitle
);
1063 nsresult SetTitle
(const nsAString
*aTitle
);
1064 nsresult GetLang
(nsAString
*aLang
);
1065 nsresult SetLang
(const nsAString
*aLang
);
1066 nsresult GetDir
(nsAString
*aDir
);
1067 nsresult SetDir
(const nsAString
*aDir
);
1068 nsresult GetDataset
(nsISupports
**aDataset
);
1069 nsresult GetItemScope
(bool
*aItemScope
);
1070 nsresult SetItemScope
(bool aItemScope
);
1071 nsresult GetItemType
(nsIVariant
**aItemType
);
1072 nsresult SetItemType
(nsIVariant
*aItemType
);
1073 nsresult GetItemId
(nsAString
*aItemId
);
1074 nsresult SetItemId
(const nsAString
*aItemId
);
1075 nsresult GetProperties
(nsISupports
**aProperties
);
1076 nsresult GetItemValue
(nsIVariant
**aItemValue
);
1077 nsresult SetItemValue
(nsIVariant
*aItemValue
);
1078 nsresult GetItemProp
(nsIVariant
**aItemProp
);
1079 nsresult SetItemProp
(nsIVariant
*aItemProp
);
1080 nsresult GetItemRef
(nsIVariant
**aItemRef
);
1081 nsresult SetItemRef
(nsIVariant
*aItemRef
);
1082 nsresult GetHidden
(bool
*aHidden
);
1083 nsresult SetHidden
(bool aHidden
);
1085 nsresult GetTabIndex
(int32_t
*aTabIndex
);
1086 nsresult SetTabIndex
(int32_t aTabIndex
);
1089 nsresult GetAccessKey
(nsAString
*aAccessKey
);
1090 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
1091 nsresult GetAccessKeyLabel
(nsAString
*aAccessKeyLabel
);
1092 nsresult GetDraggable
(bool
*aDraggable
);
1093 nsresult SetDraggable
(bool aDraggable
);
1094 nsresult GetContentEditable
(nsAString
*aContentEditable
);
1095 nsresult SetContentEditable
(const nsAString
*aContentEditable
);
1096 nsresult GetIsContentEditable
(bool
*aIsContentEditable
);
1097 nsresult GetContextMenu
(nsIDOMHTMLMenuElement
**aContextMenu
);
1098 nsresult GetSpellcheck
(bool
*aSpellcheck
);
1099 nsresult SetSpellcheck
(bool aSpellcheck
);
1100 nsresult GetInnerHTML
(nsAString
*aInnerHTML
);
1101 nsresult SetInnerHTML
(const nsAString
*aInnerHTML
);
1102 nsresult GetOuterHTML
(nsAString
*aInnerHTML
);
1103 nsresult SetOuterHTML
(const nsAString
*aInnerHTML
);
1104 nsresult InsertAdjacentHTML
(const nsAString
*position
, const nsAString
*text
);
1105 nsresult ScrollIntoView
(bool top
, uint8_t _argc
);
1106 nsresult GetOffsetParent
(nsIDOMElement
* *aOffsetParent
);
1107 nsresult GetOffsetTop
(int32_t
*aOffsetTop
);
1108 nsresult GetOffsetLeft
(int32_t
*aOffsetLeft
);
1109 nsresult GetOffsetWidth
(int32_t
*aOffsetWidth
);
1110 nsresult GetOffsetHeight
(int32_t
*aOffsetHeight
);
1115 uuid(59b80014
-00f5
-412d
-846f
-725494122d42
),
1118 interface nsIDOMHTMLHeadElement
: nsISupports
1124 uuid(4109a2d2
-e7af
-445d
-bb72
-c7c9b875f35e
),
1127 interface nsIDOMCharacterData
: nsIDOMNode
1129 nsresult GetData
(nsAString
*aData
);
1130 nsresult SetData
(const nsAString
*aData
);
1131 nsresult GetLength
(uint32_t
*aLength
);
1132 nsresult SubstringData
(uint32_t offset
, uint32_t count
, nsAString
*_retval
);
1133 nsresult AppendData
(const nsAString
*arg
);
1134 nsresult InsertData
(uint32_t offset
, const nsAString
*arg
);
1135 nsresult DeleteData
(uint32_t offset
, uint32_t count
);
1136 nsresult ReplaceData
(uint32_t offset
, uint32_t count
, const nsAString
*arg
);
1142 uuid(67273994-6aff
-4091-9de9
-b788a249f783
),
1145 interface nsIDOMText
: nsIDOMCharacterData
1147 nsresult SplitText
(uint32_t offset
, nsIDOMText
**_retval
);
1148 nsresult GetWholeText
(nsAString
*aWholeText
);
1153 uuid(e7866ff8
-b7fc
-494f
-87c0
-fb017d8a4d30
),
1156 interface nsIDOMComment
: nsIDOMCharacterData
1162 uuid(48eb8d72
-95bb
-402e
-a8fc
-f2b187abcbdb
),
1165 interface nsIDOMDocumentFragment
: nsIDOMNode
1167 nsresult QuerySelector
(const nsAString
*selectors
, nsIDOMElement
**_retval
);
1168 nsresult QuerySelectorAll
(const nsAString
*selectors
, nsIDOMNodeList
**_retval
);
1173 uuid(35dc5030
-dc83
-4291-88a2
-0906c549788e
),
1176 interface nsIDOMDocument
: nsIDOMNode
1178 nsresult GetDoctype
(nsIDOMDocumentType
**aDoctype
);
1179 nsresult GetImplementation
(nsIDOMDOMImplementation
**aImplementation
);
1180 nsresult GetDocumentElement
(nsIDOMElement
**aDocumentElement
);
1181 nsresult CreateElement
(const nsAString
*tagName
, nsIDOMElement
**_retval
);
1182 nsresult CreateDocumentFragment
(nsIDOMDocumentFragment
**_retval
);
1183 nsresult CreateTextNode
(const nsAString
*data
, nsIDOMText
**_retval
);
1184 nsresult CreateComment
(const nsAString
*data
, nsIDOMComment
**_retval
);
1185 nsresult CreateCDATASection
(const nsAString
*data
, nsIDOMCDATASection
**_retval
);
1186 nsresult CreateProcessingInstruction
(const nsAString
*target
, const nsAString
*data
, nsIDOMProcessingInstruction
**_retval
);
1187 nsresult CreateAttribute
(const nsAString
*name
, nsIDOMAttr
**_retval
);
1188 nsresult GetElementsByTagName
(const nsAString
*tagname
, nsIDOMNodeList
**_retval
);
1189 nsresult ImportNode
(nsIDOMNode
*importedNode
, bool deep
, uint8_t _argc
, nsIDOMNode
**_retval
);
1190 nsresult CreateElementNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
, nsIDOMElement
**_retval
);
1191 nsresult CreateAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
, nsIDOMAttr
**_retval
);
1192 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
, nsIDOMNodeList
**_retval
);
1193 nsresult GetElementById
(const nsAString
*elementId
, nsIDOMElement
**_retval
);
1194 nsresult GetInputEncoding
(nsAString
*aInputEncoding
);
1195 nsresult GetDocumentURI
(nsAString
*aDocumentURI
);
1196 nsresult GetURL
(nsAString
*aURL
);
1197 nsresult AdoptNode
(nsIDOMNode
*source, nsIDOMNode
**_retval
);
1198 nsresult CreateRange
(nsIDOMRange
**_retval
);
1199 nsresult CreateNodeIterator
(nsIDOMNode
*root
, uint32_t whatToShow
, nsIDOMNodeFilter
*filter
, uint8_t _argc
,
1200 nsIDOMNodeIterator
**_retval
);
1201 nsresult CreateTreeWalker
(nsIDOMNode
*root
, uint32_t whatToShow
, nsIDOMNodeFilter
*filter
, uint8_t _argc
,
1202 nsIDOMTreeWalker
**_retval
);
1203 cpp_quote
("#undef CreateEvent")
1204 nsresult CreateEvent
(const nsAString
*eventType
, nsIDOMEvent
**_retval
);
1205 nsresult GetDefaultView
(nsIDOMWindow
**aDefaultView
);
1206 nsresult GetCharacterSet
(nsAString
*aCharacterSet
);
1207 nsresult GetDir
(nsAString
*aDir
);
1208 nsresult SetDir
(const nsAString
*aDir
);
1209 nsresult GetLocation
(nsIDOMLocation
**aLocation
);
1210 nsresult GetTitle
(nsAString
*aTitle
);
1211 nsresult SetTitle
(const nsAString
*aTitle
);
1212 nsresult GetReadyState
(nsAString
*aReadyState
);
1213 nsresult GetLastModified
(nsAString
*aLastModified
);
1214 nsresult GetReferrer
(nsAString
*aReferrer
);
1215 nsresult HasFocus
(bool
*_retval
);
1216 nsresult GetActiveElement
(nsIDOMElement
**aActiveElement
);
1217 nsresult GetElementsByClassName
(const nsAString
*classes
, nsIDOMNodeList
**_retval
);
1218 nsresult GetStyleSheets
(nsIDOMStyleSheetList
**aStyleSheets
);
1219 nsresult GetPreferredStyleSheetSet
(nsAString
*aPreferredStyleSheetSet
);
1220 nsresult GetSelectedStyleSheetSet
(nsAString
*aSelectedStyleSheetSet
);
1221 nsresult SetSelectedStyleSheetSet
(const nsAString
*aSelectedStyleSheetSet
);
1222 nsresult GetLastStyleSheetSet
(nsAString
*aLastStyleSheetSet
);
1223 nsresult GetStyleSheetSets
(nsISupports
**aStyleSheetSets
);
1224 nsresult EnableStyleSheetsForSet
(const nsAString
*name
);
1225 nsresult ElementFromPoint
(float x
, float y
, nsIDOMElement
**_retval
);
1226 nsresult GetContentType
(nsAString
*aContentType
);
1227 nsresult GetMozSyntheticDocument
(bool
*aMozSyntheticDocument
);
1228 nsresult GetCurrentScript
(nsIDOMElement
**aCurrentScript
);
1229 nsresult ReleaseCapture
();
1230 nsresult MozSetImageElement
(const nsAString
*aImageElementId
, nsIDOMElement
*aImageElement
);
1231 nsresult GetMozFullScreenElement
(nsIDOMElement
**aMozFullScreenElement
);
1232 nsresult MozCancelFullScreen
();
1233 nsresult GetMozFullScreen
(bool
*aMozFullScreen
);
1234 nsresult GetMozFullScreenEnabled
(bool
*aMozFullScreenEnabled
);
1235 nsresult GetMozPointerLockElement
(nsIDOMElement
**aMozPointerLockElement
);
1236 nsresult CaretPositionFromPoint
(float x
, float y
, nsISupports
**_retval
);
1237 nsresult MozExitPointerLock
();
1238 nsresult GetHidden
(bool
*aHidden
);
1239 nsresult GetMozHidden
(bool
*aMozHidden
);
1240 nsresult GetVisibilityState
(nsAString
*aVisibilityState
);
1241 nsresult GetMozVisibilityState
(nsAString
*aMozVisibilityState
);
1242 nsresult GetCompatMode
(nsAString
*aCompatMode
);
1243 nsresult QuerySelector
(const nsAString
*selectors
, nsIDOMElement
**_retval
);
1244 nsresult QuerySelectorAll
(const nsAString
*selectors
, nsIDOMNodeList
**_retval
);
1249 uuid(bd2a0a46
-17e4
-46ea
-9e5d
-6a97cf5e3b28
),
1252 interface nsIDOMHTMLDocument
: nsIDOMDocument
1254 nsresult GetDomain
(nsAString
*aDomain
);
1255 nsresult SetDomain
(const nsAString
*aDomain
);
1256 nsresult GetCookie
(nsAString
*aCookie
);
1257 nsresult SetCookie
(const nsAString
*aCookie
);
1258 nsresult GetHead
(nsIDOMHTMLHeadElement
**aHead
);
1259 nsresult GetBody
(nsIDOMHTMLElement
**aBody
);
1260 nsresult SetBody
(nsIDOMHTMLElement
*aBody
);
1261 nsresult GetImages
(nsIDOMHTMLCollection
**aImages
);
1262 nsresult GetEmbeds
(nsIDOMHTMLCollection
**aEmbeds
);
1263 nsresult GetPlugins
(nsIDOMHTMLCollection
**aPlugins
);
1264 nsresult GetLinks
(nsIDOMHTMLCollection
**aLinks
);
1265 nsresult GetForms
(nsIDOMHTMLCollection
**aForms
);
1266 nsresult GetScripts
(nsIDOMHTMLCollection
**aScripts
);
1267 nsresult GetElementsByName
(const nsAString
*elementName
, nsIDOMNodeList
**_retval
);
1268 nsresult GetItems
(const nsAString
*types
, nsIDOMNodeList
**_retval
);
1269 nsresult Open
(const nsAString
*aContentTypeOrUrl
, const nsAString
*aReplaceOrName
, const nsAString
*aFeatures
,
1270 JSContext
*cx
, uint8_t _argc
, nsISupports
**_retval
);
1272 nsresult Write
(const nsAString
*text
, JSContext
*cx
);
1273 nsresult Writeln
(const nsAString
*text
, JSContext
*cx
);
1274 nsresult GetDesignMode
(nsAString
*aDesignMode
);
1275 nsresult SetDesignMode
(const nsAString
*aDesignMode
);
1276 nsresult ExecCommand
(const nsAString
*commandID
, bool doShowUI
, const nsAString
*value
, bool
*_retval
);
1277 nsresult QueryCommandEnabled
(const nsAString
*commandID
, bool
*_retval
);
1278 nsresult QueryCommandIndeterm
(const nsAString
*commandID
, bool
*_retval
);
1279 nsresult QueryCommandState
(const nsAString
*commandID
, bool
*_retval
);
1280 nsresult QueryCommandSupported
(const nsAString
*commandID
, bool
*_retval
);
1281 nsresult QueryCommandValue
(const nsAString
*commandID
, nsAString
*_retval
);
1282 nsresult GetFgColor
(nsAString
*aFgColor
);
1283 nsresult SetFgColor
(const nsAString
*aFgColor
);
1284 nsresult GetBgColor
(nsAString
*aBgColor
);
1285 nsresult SetBgColor
(const nsAString
*aBgColor
);
1286 nsresult GetLinkColor
(nsAString
*aLinkColor
);
1287 nsresult SetLinkColor
(const nsAString
*aLinkColor
);
1288 nsresult GetVlinkColor
(nsAString
*aVlinkColor
);
1289 nsresult SetVlinkColor
(const nsAString
*aVlinkColor
);
1290 nsresult GetAlinkColor
(nsAString
*aAlinkColor
);
1291 nsresult SetAlinkColor
(const nsAString
*aAlinkColor
);
1292 nsresult GetAnchors
(nsIDOMHTMLCollection
**aAnchors
);
1293 nsresult GetApplets
(nsIDOMHTMLCollection
**aApplets
);
1295 nsresult GetSelection
(nsISelection
**_retval
);
1296 nsresult CaptureEvents
();
1297 nsresult ReleaseEvents
();
1302 uuid(1f94055c
-42e7
-4a30
-96a1
-6a804f1c2d1e
),
1305 interface nsIDOMRange
: nsISupports
1314 nsresult GetStartContainer
(nsIDOMNode
**aStartContainer
);
1315 nsresult GetStartOffset
(int32_t
*aStartOffset
);
1316 nsresult GetEndContainer
(nsIDOMNode
**aEndContainer
);
1317 nsresult GetEndOffset
(int32_t
*aEndOffset
);
1318 nsresult GetCollapsed
(bool
*aCollapsed
);
1319 nsresult GetCommonAncestorContainer
(nsIDOMNode
**aCommonAncestorContainer
);
1320 nsresult SetStart
(nsIDOMNode
*refNode
, int32_t offset
);
1321 nsresult SetEnd
(nsIDOMNode
*refNode
, int32_t offset
);
1322 nsresult SetStartBefore
(nsIDOMNode
*refNode
);
1323 nsresult SetStartAfter
(nsIDOMNode
*refNode
);
1324 nsresult SetEndBefore
(nsIDOMNode
*refNode
);
1325 nsresult SetEndAfter
(nsIDOMNode
*refNode
);
1326 nsresult Collapse
(bool toStart
);
1327 nsresult SelectNode
(nsIDOMNode
*refNode
);
1328 nsresult SelectNodeContents
(nsIDOMNode
*refNode
);
1329 nsresult CompareBoundaryPoints
(uint16_t how
, nsIDOMRange
*sourceRange
, int16_t
*_retval
);
1330 nsresult DeleteContents
();
1331 nsresult ExtractContents
(nsIDOMDocumentFragment
**_retval
);
1332 nsresult CloneContents
(nsIDOMDocumentFragment
**_retval
);
1333 nsresult InsertNode
(nsIDOMNode
*newNode
);
1334 nsresult SurroundContents
(nsIDOMNode
*newParent
);
1335 nsresult CloneRange
(nsIDOMRange
**_retval
);
1336 nsresult ToString
(nsAString
*_retval
);
1338 nsresult CreateContextualFragment
([in] const nsAString
*fragment
, [out] nsIDOMDocumentFragment
**_retval
);
1339 nsresult IsPointInRange
([in] nsIDOMNode
*parent
, [in] int32_t offset
, [out] bool
*_retval
);
1340 nsresult ComparePoint
([in] nsIDOMNode
*parent
, [in] int32_t offset
, [out] int16_t
*_retval
);
1341 nsresult IntersectsNode
(nsIDOMNode
*node
, bool
*_retval
);
1342 nsresult GetClientRects
(nsIDOMClientRectList
**_retval
);
1343 nsresult GetBoundingClientRect
(nsIDOMClientRect
**_retval
);
1348 uuid(e0a4d4b3
-f34e
-44bd
-b1f2
-4e3bde9b6915
),
1351 interface nsISelection
: nsISupports
1353 nsresult GetAnchorNode
(nsIDOMNode
**aAnchorNode
);
1354 nsresult GetAnchorOffset
(int32_t
*aAnchorOffset
);
1355 nsresult GetFocusNode
(nsIDOMNode
**aFocusNode
);
1356 nsresult GetFocusOffset
(int32_t
*aFocusOffset
);
1357 nsresult GetIsCollapsed
(bool
*aIsCollapsed
);
1358 bool
/* don't use */ Collapsed
();
1359 nsresult GetRangeCount
(int32_t
*aRangeCount
);
1360 nsresult GetRangeAt
(int32_t index
, nsIDOMRange
**_retval
);
1361 nsresult Collapse
(nsIDOMNode
*parentNode
, int32_t offset
);
1362 nsresult CollapseNative
(nsINode
*parentNode
, int32_t offset
);
1363 nsresult Extend
(nsIDOMNode
*parentNode
, int32_t offset
);
1364 nsresult ExtendNative
(nsINode
*parentNode
, int32_t offset
);
1365 nsresult CollapseToStart
();
1366 nsresult CollapseToEnd
();
1367 nsresult ContainsNode
(nsIDOMNode
*node
, bool entirelyContained
, bool
*_retval
);
1368 nsresult SelectAllChildren
(nsIDOMNode
*parentNode
);
1369 nsresult AddRange
(nsIDOMRange
*range);
1370 nsresult RemoveRange
(nsIDOMRange
*range);
1371 nsresult RemoveAllRanges
();
1372 nsresult DeleteFromDocument
();
1373 nsresult ToString
(nsAString
*_retval
);
1374 nsresult Modify
(const nsAString
*alter
, const nsAString
*direction
, const nsAString
*granularity
);
1379 uuid(a6cf906f
-15b3
-11d2
-932e-00805f8add32
),
1382 interface nsIDOMWindowCollection
: nsISupports
1384 nsresult GetLength
(uint32_t
*aLength
);
1385 nsresult Item
(uint32_t index
, nsIDOMWindow
**_retval
);
1386 nsresult NamedItem
(const nsAString
*name
, nsIDOMWindow
**_retval
);
1391 uuid(8146f3fc
-9fc1
-47c5
-85ef
-95d686e4ca6d
),
1394 interface nsIDOMWindow
: nsISupports
1396 nsresult GetWindow
(nsIDOMWindow
**aWindow
);
1397 nsresult GetSelf
(nsIDOMWindow
**aSelf
);
1398 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
1399 nsresult GetName
(nsAString
*aName
);
1400 nsresult SetName
(const nsAString
*aName
);
1401 nsresult GetLocation
(nsIDOMLocation
**aLocation
);
1402 nsresult GetHistory
(nsISupports
**aHistory
);
1403 nsresult GetLocationbar
(nsISupports
**aLocationbar
);
1404 nsresult GetMenubar
(nsISupports
**aMenubar
);
1405 nsresult GetPersonalbar
(nsISupports
**aPersonalbar
);
1406 nsresult GetScrollbars
(nsISupports
**aScrollbars
);
1407 nsresult GetStatusbar
(nsISupports
**aStatusbar
);
1408 nsresult GetToolbar
(nsISupports
**aToolbar
);
1409 nsresult GetStatus
(nsAString
*aStatus
);
1410 nsresult SetStatus
(const nsAString
*aStatus
);
1415 nsresult GetLength
(uint32_t
*aLength
);
1416 nsresult GetScriptableTop
(nsIDOMWindow
**aTop
);
1417 nsresult GetRealTop
(nsIDOMWindow
**aTop
);
1418 nsresult GetScriptableParent
(nsIDOMWindow
**aParent
);
1419 nsresult GetRealParent
(nsIDOMWindow
**aParent
);
1420 nsresult GetScriptableOpener
(JSContext
* cx
, int /* JS::MutableHandleValue */ aOpener
);
1421 nsresult SetScriptableOpener
(JSContext
* cx
, int /* JS::HandleValue */ aOpener
);
1422 nsresult GetOpener
(nsIDOMWindow
**aOpenerWindow
);
1423 nsresult SetOpener
(nsIDOMWindow
*aOpenerWindow
);
1424 nsresult GetScriptableFrameElement
(nsIDOMElement
**aFrameElement
);
1425 nsresult GetRealFrameElement
(nsIDOMElement
**aFrameElement
);
1426 nsresult GetNavigator
(nsIDOMNavigator
**aNavigator
);
1427 nsresult GetApplicationCache
(nsIDOMOfflineResourceList
**aApplicationCache
);
1428 nsresult Alert
(const nsAString
*text
);
1429 nsresult Confirm
(const nsAString
*text
, bool
*_retval
);
1430 nsresult Prompt
(const nsAString
*aMessage
, const nsAString
*aInitial
, nsAString
*_retval
);
1432 nsresult ShowModalDialog
(const nsAString
*aURI
, nsIVariant
*aArgs
, const nsAString
*aOptions
, uint8_t _argc
, nsIVariant
**_retval
);
1433 nsresult PostMessageMoz
(const long /*jsval*/ *message, const nsAString
*targetOrigin
, const /*JS::Value*/ void *transfer
, JSContext
*cx
);
1434 nsresult Atob
(const nsAString
*aAsciiString
, nsAString
*_retval
);
1435 nsresult Btoa
(const nsAString
*aBase64Data
, nsAString
*_retval
);
1436 nsresult GetSessionStorage
(nsISupports
**aSessionStorage
);
1437 nsresult GetLocalStorage
(nsISupports
**aLocalStorage
);
1438 nsresult GetIndexedDB
(nsISupports
**aIndexedDB
);
1439 nsresult GetSelection
(nsISelection
**_retval
);
1440 nsresult MatchMedia
(const nsAString
*media_query_list
, nsISupports
**_retval
);
1441 nsresult GetScreen
(nsIDOMScreen
**aScreen
);
1442 nsresult GetInnerWidth
(int32_t
*aInnerWidth
);
1443 nsresult SetInnerWidth
(int32_t aInnerWidth
);
1444 nsresult GetInnerHeight
(int32_t
*aInnerHeight
);
1445 nsresult SetInnerHeight
(int32_t aInnerHeight
);
1446 nsresult GetScrollX
(int32_t
*aScrollX
);
1447 nsresult GetPageXOffset
(int32_t
*aPageXOffset
);
1448 nsresult GetScrollY
(int32_t
*aScrollY
);
1449 nsresult GetPageYOffset
(int32_t
*aPageYOffset
);
1450 nsresult Scroll
(int32_t xScroll
, int32_t yScroll
);
1451 nsresult ScrollTo
(int32_t xScroll
, int32_t yScroll
);
1452 nsresult ScrollBy
(int32_t xScrollDif
, int32_t yScrollDif
);
1453 nsresult GetScreenX
(int32_t
*aScreenX
);
1454 nsresult SetScreenX
(int32_t aScreenX
);
1455 nsresult GetScreenY
(int32_t
*aScreenY
);
1456 nsresult SetScreenY
(int32_t aScreenY
);
1457 nsresult GetOuterWidth
(int32_t
*aOuterWidth
);
1458 nsresult SetOuterWidth
(int32_t aOuterWidth
);
1459 nsresult GetOuterHeight
(int32_t
*aOuterHeight
);
1460 nsresult SetOuterHeight
(int32_t aOuterHeight
);
1461 nsresult GetComputedStyle
(nsIDOMElement
*elt
, const nsAString
*pseudoElt
, nsIDOMCSSStyleDeclaration
**_retval
);
1462 nsresult GetDefaultComputedStyle
(nsIDOMElement
*elt
, const nsAString
*pseudoElt
, nsIDOMCSSStyleDeclaration
**_retval
);
1463 nsresult GetWindowRoot
(nsIDOMEventTarget
**aWindowRoot
);
1464 nsresult GetFrames
(nsIDOMWindowCollection
**aFrames
);
1465 nsresult GetTextZoom
(float *aTextZoom
);
1466 nsresult SetTextZoom
(float aTextZoom
);
1467 nsresult ScrollByLines
(int32_t numLines
);
1468 nsresult ScrollByPages
(int32_t numPages
);
1469 nsresult SizeToContent
();
1470 nsresult GetContent
(nsIDOMWindow
**aContent
);
1471 nsresult GetPrompter
(nsIPrompt
**aPrompter
);
1472 nsresult GetClosed
(bool
*aClosed
);
1473 nsresult GetCrypto
(nsIDOMCrypto
**aCrypto
);
1474 nsresult GetControllers
(nsIControllers
**aControllers
);
1475 nsresult GetMozInnerScreenX
(float *aMozInnerScreenX
);
1476 nsresult GetMozInnerScreenY
(float *aMozInnerScreenY
);
1477 nsresult GetDevicePixelRatio
(float *aDevicePixelRatio
);
1478 nsresult GetScrollMaxX
(int32_t
*aScrollMaxX
);
1479 nsresult GetScrollMaxY
(int32_t
*aScrollMaxY
);
1480 nsresult GetFullScreen
(bool
*aFullScreen
);
1481 nsresult SetFullScreen
(bool aFullScreen
);
1485 nsresult MoveTo
(int32_t xPos
, int32_t yPos
);
1486 nsresult MoveBy
(int32_t xDif
, int32_t yDif
);
1487 nsresult ResizeTo
(int32_t width
, int32_t height
);
1488 nsresult ResizeBy
(int32_t widthDif
, int32_t heightDif
);
1489 nsresult Open
(const nsAString
*url
, const nsAString
*name
, const nsAString
*options
, nsIDOMWindow
**_retval
);
1490 nsresult OpenDialog
(const nsAString
*url
, const nsAString
*name
, const nsAString
*options
, nsISupports
*aExtraArgument
,
1491 nsIDOMWindow
**_retval
);
1492 nsresult UpdateCommands
(const nsAString
*action
, nsISelection
*sel
, int16_t reason
);
1493 nsresult Find
(const nsAString
*str
, bool caseSensitive
, bool backwards
, bool wrapAround
, bool wholeWord
,
1494 bool searchInFrames
, bool showDialog
, bool
*_retval
);
1495 nsresult GetMozPaintCount
(uint64_t
*aMozPaintCount
);
1496 nsresult MozRequestAnimationFrame
(nsIFrameRequestCallback
*aCallback
, int32_t
*_retval
);
1497 nsresult RequestAnimationFrame
(void /*const JS::Value*/ *aCallback
, JSContext
* cx
, int32_t
*_retval
);
1498 nsresult MozCancelAnimationFrame
(int32_t aHandle
);
1499 nsresult MozCancelRequestAnimationFrame
(int32_t aHandle
);
1500 nsresult CancelAnimationFrame
(int32_t aHandle
);
1501 nsresult GetMozAnimationStartTime
(int64_t
*aMozAnimationStartTime
);
1502 nsresult GetConsole
(JSContext
*cx
, jsval
*aConsole
);
1503 nsresult SetConsole
(JSContext
*cx
, const jsval
*aConsole
);
1508 uuid(068630db
-2c00
-43dd
-b167
-495757a88236
),
1511 interface nsIDOMHTMLBodyElement
: nsISupports
1513 nsresult GetALink
(nsAString
*aALink
);
1514 nsresult SetALink
(const nsAString
*aALink
);
1515 nsresult GetBackground
(nsAString
*aBackground
);
1516 nsresult SetBackground
(const nsAString
*aBackground
);
1517 nsresult GetBgColor
(nsAString
*aBgColor
);
1518 nsresult SetBgColor
(const nsAString
*aBgColor
);
1519 nsresult GetLink
(nsAString
*aLink
);
1520 nsresult SetLink
(const nsAString
*aLink
);
1521 nsresult GetText
(nsAString
*aText
);
1522 nsresult SetText
(const nsAString
*aText
);
1523 nsresult GetVLink
(nsAString
*aVLink
);
1524 nsresult SetVLink
(const nsAString
*aVLink
);
1529 uuid(ad9b2ad0
-9d29
-43f6
-b1a2
-a1fd24627e6b
),
1532 interface nsIDOMHTMLFormElement
: nsISupports
1534 nsresult GetAcceptCharset
(nsAString
*aAcceptCharset
);
1535 nsresult SetAcceptCharset
(const nsAString
*aAcceptCharset
);
1536 nsresult GetAction
(nsAString
*aAction
);
1537 nsresult SetAction
(const nsAString
*aAction
);
1538 nsresult GetAutocomplete
(nsAString
*aAutocomplete
);
1539 nsresult SetAutocomplete
(const nsAString
*aAutocomplete
);
1540 nsresult GetEnctype
(nsAString
*aEnctype
);
1541 nsresult SetEnctype
(const nsAString
*aEnctype
);
1542 nsresult GetEncoding
(nsAString
*aEncoding
);
1543 nsresult SetEncoding
(const nsAString
*aEncoding
);
1544 nsresult GetMethod
(nsAString
*aMethod
);
1545 nsresult SetMethod
(const nsAString
*aMethod
);
1546 nsresult GetName
(nsAString
*aName
);
1547 nsresult SetName
(const nsAString
*aName
);
1548 nsresult GetNoValidate
(bool
*aNoValidate
);
1549 nsresult SetNoValidate
(bool aNoValidate
);
1550 nsresult GetTarget
(nsAString
*aTarget
);
1551 nsresult SetTarget
(const nsAString
*aTarget
);
1552 nsresult GetElements
(nsIDOMHTMLCollection
**aElements
);
1553 nsresult GetLength
(int32_t
*aLength
);
1556 nsresult CheckValidity
(bool
*_retval
);
1557 nsresult GetFormData
(nsIDOMHTMLElement
*aOriginatingElement
, nsAString
*aActionURI
, nsIInputStream
**aPostDataStream
);
1562 uuid(64aeda0b
-e9b5
-4868-a4f9
-e4776e32e733
),
1565 interface nsIDOMHTMLInputElement
: nsISupports
1567 nsresult GetAccept
(nsAString
*aAccept
);
1568 nsresult SetAccept
(const nsAString
*aAccept
);
1569 nsresult GetAlt
(nsAString
*aAlt
);
1570 nsresult SetAlt
(const nsAString
*aAlt
);
1571 nsresult GetAutocomplete
(nsAString
*aAutocomplete
);
1572 nsresult SetAutocomplete
(const nsAString
*aAutocomplete
);
1573 nsresult GetAutofocus
(bool
*aAutofocus
);
1574 nsresult SetAutofocus
(bool aAutofocus
);
1575 nsresult GetDefaultChecked
(bool
*aDefaultChecked
);
1576 nsresult SetDefaultChecked
(bool aDefaultChecked
);
1577 nsresult GetChecked
(bool
*aChecked
);
1578 nsresult SetChecked
(bool aChecked
);
1579 nsresult GetDisabled
(bool
*aDisabled
);
1580 nsresult SetDisabled
(bool aDisabled
);
1581 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1582 nsresult GetFormAction
(nsAString
*aFormAction
);
1583 nsresult SetFormAction
(const nsAString
*aFormAction
);
1584 nsresult GetFormEnctype
(nsAString
*aFormEnctype
);
1585 nsresult SetFormEnctype
(const nsAString
*aFormEnctype
);
1586 nsresult GetFormMethod
(nsAString
*aFormMethod
);
1587 nsresult SetFormMethod
(const nsAString
*aFormMethod
);
1588 nsresult GetFormNoValidate
(bool
*aFormNoValidate
);
1589 nsresult SetFormNoValidate
(bool aFormNoValidate
);
1590 nsresult GetFormTarget
(nsAString
*aFormTarget
);
1591 nsresult SetFormTarget
(const nsAString
*aFormTarget
);
1592 nsresult GetFiles
(nsIDOMFileList
**aFiles
);
1593 nsresult GetHeight
(uint32_t
*aHeight
);
1594 nsresult SetHeight
(uint32_t aHeight
);
1595 nsresult GetIndeterminate
(bool
*aIndeterminate
);
1596 nsresult SetIndeterminate
(bool aIndeterminate
);
1597 nsresult GetInputMode
(nsAString
*aInputMode
);
1598 nsresult SetInputMode
(const nsAString
*aInputMode
);
1599 nsresult GetList
(nsIDOMHTMLElement
**aList
);
1600 nsresult GetMax
(nsAString
*aMax
);
1601 nsresult SetMax
(const nsAString
*aMax
);
1602 nsresult GetMaxLength
(int32_t
*aMaxLength
);
1603 nsresult SetMaxLength
(int32_t aMaxLength
);
1604 nsresult GetMin
(nsAString
*aMin
);
1605 nsresult SetMin
(const nsAString
*aMin
);
1606 nsresult GetMultiple
(bool
*aMultiple
);
1607 nsresult SetMultiple
(bool aMultiple
);
1608 nsresult GetName
(nsAString
*aName
);
1609 nsresult SetName
(const nsAString
*aName
);
1610 nsresult GetPattern
(nsAString
*aPattern
);
1611 nsresult SetPattern
(const nsAString
*aPattern
);
1612 nsresult GetPlaceholder
(nsAString
*aPlaceholder
);
1613 nsresult SetPlaceholder
(const nsAString
*aPlaceholder
);
1614 nsresult GetReadOnly
(bool
*aReadOnly
);
1615 nsresult SetReadOnly
(bool aReadOnly
);
1616 nsresult GetRequired
(bool
*aRequired
);
1617 nsresult SetRequired
(bool aRequired
);
1618 nsresult GetStep
(nsAString
*aStep
);
1619 nsresult SetStep
(const nsAString
*aStep
);
1620 nsresult GetAlign
(nsAString
*aAlign
);
1621 nsresult SetAlign
(const nsAString
*aAlign
);
1622 nsresult GetSize
(uint32_t
*aSize
);
1623 nsresult SetSize
(uint32_t aSize
);
1624 nsresult GetWidth
(uint32_t
*aWidth
);
1625 nsresult SetWidth
(uint32_t aWidth
);
1626 nsresult GetSrc
(nsAString
*aSrc
);
1627 nsresult SetSrc
(const nsAString
*aSrc
);
1628 nsresult GetType
(nsAString
*aType
);
1629 nsresult SetType
(const nsAString
*aType
);
1630 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
1631 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
1632 nsresult GetValue
(nsAString
*aValue
);
1633 nsresult SetValue
(const nsAString
*aValue
);
1634 nsresult GetValueAsNumber
(double *aValueAsNumber
);
1635 nsresult SetValueAsNumber
(double aValueAsNumber
);
1636 nsresult StepDown
(int32_t n
, uint8_t _argc
);
1637 nsresult StepUp
(int32_t n
, uint8_t _argc
);
1638 nsresult GetWillValidate
(bool
*aWillValidate
);
1639 nsresult GetValidity
(nsIDOMValidityState
**aValidity
);
1640 nsresult GetValidationMessage
(nsAString
*aValidationMessage
);
1641 nsresult CheckValidity
(bool
*_retval
);
1642 nsresult SetCustomValidity
(const nsAString
*error
);
1644 nsresult GetSelectionStart
(int32_t
*aSelectionStart
);
1645 nsresult SetSelectionStart
(int32_t aSelectionStart
);
1646 nsresult GetSelectionEnd
(int32_t
*aSelectionEnd
);
1647 nsresult SetSelectionEnd
(int32_t aSelectionEnd
);
1648 nsresult SetSelectionRange
(int32_t selectionStart
, int32_t selectionEnd
, const nsAString
*direction
);
1649 nsresult GetSelectionDirection
(nsAString
*aSelectionDirection
);
1650 nsresult SetSelectionDirection
(const nsAString
*aSelectionDirection
);
1651 nsresult GetUseMap
(nsAString
*aUseMap
);
1652 nsresult SetUseMap
(const nsAString
*aUseMap
);
1653 nsresult GetControllers
(nsIControllers
**aControllers
);
1654 nsresult GetTextLength
(int32_t
*aTextLength
);
1655 nsresult MozGetFileNameArray
(uint32_t
*aLength
, PRUnichar
***aFileNames
);
1656 nsresult MozSetFileNameArray
(const PRUnichar
**aFileNames
, uint32_t aLength
);
1657 nsresult MozIsTextField
(bool aExcludePassword
, bool
*_retval
);
1662 uuid(c2b3e9ff
-6b36
-4158-ace3
-05a9c5b8e1c1
),
1665 interface nsIDOMHTMLOptionElement
: nsISupports
1667 nsresult GetDisabled
(bool
*aDisabled
);
1668 nsresult SetDisabled
(bool aDisabled
);
1669 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1670 nsresult GetLabel
(nsAString
*aLabel
);
1671 nsresult SetLabel
(const nsAString
*aLabel
);
1672 nsresult GetDefaultSelected
(bool
*aDefaultSelected
);
1673 nsresult SetDefaultSelected
(bool aDefaultSelected
);
1674 nsresult GetSelected
(bool
*aSelected
);
1675 nsresult SetSelected
(bool aSelected
);
1676 nsresult GetValue
(nsAString
*aValue
);
1677 nsresult SetValue
(const nsAString
*aValue
);
1678 nsresult GetText
(nsAString
*aText
);
1679 nsresult SetText
(const nsAString
*aText
);
1680 nsresult GetIndex
(int32_t
*aIndex
);
1685 uuid(44b7a468
-7dba
-4f0c
-9b4e
-ee46dc0f26c7
),
1688 interface nsIDOMHTMLButtonElement
: nsISupports
1690 nsresult GetAutofocus
(bool
*aAutofocus
);
1691 nsresult SetAutofocus
(bool aAutofocus
);
1692 nsresult GetDisabled
(bool
*aDisabled
);
1693 nsresult SetDisabled
(bool aDisabled
);
1694 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1695 nsresult GetFormAction
(nsAString
*aFormAction
);
1696 nsresult SetFormAction
(const nsAString
*aFormAction
);
1697 nsresult GetFormEnctype
(nsAString
*aFormEnctype
);
1698 nsresult SetFormEnctype
(const nsAString
*aFormEnctype
);
1699 nsresult GetFormMethod
(nsAString
*aFormMethod
);
1700 nsresult SetFormMethod
(const nsAString
*aFormMethod
);
1701 nsresult GetFormNoValidate
(bool
*aFormNoValidate
);
1702 nsresult SetFormNoValidate
(bool aFormNoValidate
);
1703 nsresult GetFormTarget
(nsAString
*aFormTarget
);
1704 nsresult SetFormTarget
(const nsAString
*aFormTarget
);
1705 nsresult GetName
(nsAString
*aName
);
1706 nsresult SetName
(const nsAString
*aName
);
1707 nsresult GetType
(nsAString
*aType
);
1708 nsresult SetType
(const nsAString
*aType
);
1709 nsresult GetValue
(nsAString
*aValue
);
1710 nsresult SetValue
(const nsAString
*aValue
);
1711 nsresult GetWillValidate
(bool
*aWillValidate
);
1712 nsresult GetValidity
(nsIDOMValidityState
**aValidity
);
1713 nsresult GetValidationMessage
(nsAString
*aValidationMessage
);
1714 nsresult CheckValidity
(bool
*_retval
);
1715 nsresult SetCustomValidity
(const nsAString
*error
);
1720 uuid(4173cc53
-30f6
-4d12
-a770
-981ba53164e2
),
1723 interface nsIDOMHTMLOptionsCollection
: nsISupports
1725 typedef int nsWrapperCache
;
1727 nsresult GetLength
(uint32_t
*aLength
);
1728 nsresult SetLength
(uint32_t aLength
);
1729 nsresult Item
(uint32_t index
, nsIDOMNode
**_retval
);
1730 nsresult NamedItem
(const nsAString
*name
, nsIDOMNode
**_retval
);
1731 nsresult GetSelectedIndex
(int32_t
*aSelectedIndex
);
1732 nsresult SetSelectedIndex
(int32_t aSelectedIndex
);
1733 nsresult SetOption
(uint32_t index
, nsIDOMHTMLOptionElement
*option
);
1734 nsresult GetSelect
(nsIDOMHTMLSelectElement
**aSelect
);
1735 nsresult Add
(nsIDOMHTMLOptionElement
*option
, nsIVariant
*before
);
1736 nsresult Remove
(int32_t index
);
1741 uuid(d8914a2d
-3556-4b66
-911c
-a84c4394e7fa
),
1744 interface nsIDOMHTMLSelectElement
: nsISupports
1746 nsresult GetAutofocus
(bool
*aAutofocus
);
1747 nsresult SetAutofocus
(bool aAutofocus
);
1748 nsresult GetDisabled
(bool
*aDisabled
);
1749 nsresult SetDisabled
(bool aDisabled
);
1750 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1751 nsresult GetMultiple
(bool
*aMultiple
);
1752 nsresult SetMultiple
(bool aMultiple
);
1753 nsresult GetName
(nsAString
*aName
);
1754 nsresult SetName
(const nsAString
*aName
);
1755 nsresult GetSize
(uint32_t
*aSize
);
1756 nsresult SetSize
(uint32_t aSize
);
1757 nsresult GetType
(nsAString
*aType
);
1758 nsresult GetOptions
(nsIDOMHTMLOptionsCollection
**aOptions
);
1759 nsresult GetLength
(uint32_t
*aLength
);
1760 nsresult SetLength
(uint32_t aLength
);
1761 nsresult Item
(uint32_t index
, nsIDOMNode
**_retval
);
1762 nsresult NamedItem
(const nsAString
*name
, nsIDOMNode
**_retval
);
1763 nsresult Add
(nsIDOMHTMLElement
*element
, nsIVariant
*before
);
1764 nsresult select_Remove
(int32_t index
);
1765 nsresult GetSelectedOptions
(nsIDOMHTMLCollection
**aSelectedOptions
);
1766 nsresult GetSelectedIndex
(int32_t
*aSelectedIndex
);
1767 nsresult SetSelectedIndex
(int32_t aSelectedIndex
);
1768 nsresult GetValue
(nsAString
*aValue
);
1769 nsresult SetValue
(const nsAString
*aValue
);
1770 nsresult GetWillValidate
(bool
*aWillValidate
);
1771 nsresult GetValidity
(nsIDOMValidityState
**aValidity
);
1772 nsresult GetValidationMessage
(nsAString
*aValidationMessage
);
1773 nsresult CheckValidity
(bool
*_retval
);
1774 nsresult SetCustomValidity
(const nsAString
*error
);
1775 nsresult GetRequired
(bool
*aRequired
);
1776 nsresult SetRequired
(bool aRequired
);
1781 uuid(7a4aeb2e
-fcf3
-443e
-b002
-ca1c8ea322e9
),
1784 interface nsIDOMHTMLTextAreaElement
: nsISupports
1786 nsresult GetAutofocus
(bool
*aAutofocus
);
1787 nsresult SetAutofocus
(bool aAutofocus
);
1788 nsresult GetCols
(uint32_t
*aCols
);
1789 nsresult SetCols
(uint32_t aCols
);
1790 nsresult GetDisabled
(bool
*aDisabled
);
1791 nsresult SetDisabled
(bool aDisabled
);
1792 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1793 nsresult GetMaxLength
(int32_t
*aMaxLength
);
1794 nsresult SetMaxLength
(int32_t aMaxLength
);
1795 nsresult GetName
(nsAString
*aName
);
1796 nsresult SetName
(const nsAString
*aName
);
1797 nsresult GetPlaceholder
(nsAString
*aPlaceholder
);
1798 nsresult SetPlaceholder
(const nsAString
*aPlaceholder
);
1799 nsresult GetReadOnly
(bool
*aReadOnly
);
1800 nsresult SetReadOnly
(bool aReadOnly
);
1801 nsresult GetRequired
(bool
*aRequired
);
1802 nsresult SetRequired
(bool aRequired
);
1803 nsresult GetRows
(uint32_t
*aRows
);
1804 nsresult SetRows
(uint32_t aRows
);
1805 nsresult GetWrap
(nsAString
*aWrap
);
1806 nsresult SetWrap
(const nsAString
*aWrap
);
1807 nsresult GetType
(nsAString
*aType
);
1808 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
1809 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
1810 nsresult GetValue
(nsAString
*aValue
);
1811 nsresult SetValue
(const nsAString
*aValue
);
1812 nsresult GetTextLength
(int32_t
*aTextLength
);
1813 nsresult GetWillValidate
(bool
*aWillValidate
);
1814 nsresult GetValidity
(nsIDOMValidityState
**aValidity
);
1815 nsresult GetValidationMessage
(nsAString
*aValidationMessage
);
1816 nsresult CheckValidity
(bool
*_retval
);
1817 nsresult SetCustomValidity
(const nsAString
*error
);
1819 nsresult GetSelectionStart
(int32_t
*aSelectionStart
);
1820 nsresult SetSelectionStart
(int32_t aSelectionStart
);
1821 nsresult GetSelectionEnd
(int32_t
*aSelectionEnd
);
1822 nsresult SetSelectionEnd
(int32_t aSelectionEnd
);
1823 nsresult SetSelectionRange
(int32_t selectionStart
, int32_t selectionEnd
, const nsAString
*direction
);
1824 nsresult GetSelectionDirection
(nsAString
*aSelectionDirection
);
1825 nsresult SetSelectionDirection
(const nsAString
*aSelectionDirection
);
1826 nsresult GetControllers
(nsIControllers
**aControllers
);
1831 uuid(fe96dc1c
-40e4
-4974-9354-e3fce663c3d5
),
1834 interface nsIDOMHTMLScriptElement
: nsISupports
1836 nsresult GetSrc
(nsAString
*aSrc
);
1837 nsresult SetSrc
(const nsAString
*aSrc
);
1838 nsresult GetAsync
(bool
*aAsync
);
1839 nsresult SetAsync
(bool aAsync
);
1840 nsresult GetDefer
(bool
*aDefer
);
1841 nsresult SetDefer
(bool aDefer
);
1842 nsresult GetType
(nsAString
*aType
);
1843 nsresult SetType
(const nsAString
*aType
);
1844 nsresult GetCharset
(nsAString
*aCharset
);
1845 nsresult SetCharset
(const nsAString
*aCharset
);
1846 nsresult GetText
(nsAString
*aText
);
1847 nsresult SetText
(const nsAString
*aText
);
1848 nsresult GetHtmlFor
(nsAString
*aHtmlFor
);
1849 nsresult SetHtmlFor
(const nsAString
*aHtmlFor
);
1850 nsresult GetEvent
(nsAString
*aEvent
);
1851 nsresult SetEvent
(const nsAString
*aEvent
);
1856 uuid(ec18e71c
-4f5c
-4cc3
-aa36
-5273168644dc
),
1859 interface nsIDOMHTMLImageElement
: nsISupports
1861 nsresult GetAlt
(nsAString
*aAlt
);
1862 nsresult SetAlt
(const nsAString
*aAlt
);
1863 nsresult GetSrc
(nsAString
*aSrc
);
1864 nsresult SetSrc
(const nsAString
*aSrc
);
1865 nsresult GetSrcset
(nsAString
*aSrcset
);
1866 nsresult SetSrcset
(const nsAString
*aSrcset
) ;
1867 nsresult GetSizes
(nsAString
*aSizes
);
1868 nsresult SetSizes
(const nsAString
*aSizes
);
1869 nsresult GetUseMap
(nsAString
*aUseMap
);
1870 nsresult SetUseMap
(const nsAString
*aUseMap
);
1871 nsresult GetIsMap
(bool
*aIsMap
);
1872 nsresult SetIsMap
(bool aIsMap
);
1873 nsresult GetWidth
(uint32_t
*aWidth
);
1874 nsresult SetWidth
(uint32_t aWidth
);
1875 nsresult GetHeight
(uint32_t
*aHeight
);
1876 nsresult SetHeight
(uint32_t aHeight
);
1877 nsresult GetNaturalWidth
(uint32_t
*aNaturalWidth
);
1878 nsresult GetNaturalHeight
(uint32_t
*aNaturalHeight
);
1879 nsresult GetComplete
(bool
*aComplete
);
1880 nsresult GetName
(nsAString
*aName
);
1881 nsresult SetName
(const nsAString
*aName
);
1882 nsresult GetAlign
(nsAString
*aAlign
);
1883 nsresult SetAlign
(const nsAString
*aAlign
);
1884 nsresult GetBorder
(nsAString
*aBorder
);
1885 nsresult SetBorder
(const nsAString
*aBorder
);
1886 nsresult GetHspace
(int32_t
*aHspace
);
1887 nsresult SetHspace
(int32_t aHspace
);
1888 nsresult GetLongDesc
(nsAString
*aLongDesc
);
1889 nsresult SetLongDesc
(const nsAString
*aLongDesc
);
1890 nsresult GetVspace
(int32_t
*aVspace
);
1891 nsresult SetVspace
(int32_t aVspace
);
1892 nsresult GetLowsrc
(nsAString
*aLowsrc
);
1893 nsresult SetLowsrc
(const nsAString
*aLowsrc
);
1894 nsresult GetCurrentSrc
(nsAString
*aCurrentSrc
);
1895 nsresult GetX
(int32_t
*aX
);
1896 nsresult GetY
(int32_t
*aY
);
1901 uuid(339c01c8
-2d41
-4626-b231
-eec63f0241b6
),
1904 interface nsIDOMHTMLAnchorElement
: nsISupports
1906 nsresult GetHref
(nsAString
*aHref
);
1907 nsresult SetHref
(const nsAString
*aHref
);
1908 nsresult GetTarget
(nsAString
*aTarget
);
1909 nsresult SetTarget
(const nsAString
*aTarget
);
1910 nsresult GetPing
(nsAString
*aPing
);
1911 nsresult SetPing
(const nsAString
*aPing
);
1912 nsresult GetDownload
(nsAString
*aPing
);
1913 nsresult SetDownload
(const nsAString
*aPing
);
1914 nsresult GetRel
(nsAString
*aRel
);
1915 nsresult SetRel
(const nsAString
*aRel
);
1916 nsresult GetHreflang
(nsAString
*aHreflang
);
1917 nsresult SetHreflang
(const nsAString
*aHreflang
);
1918 nsresult GetType
(nsAString
*aType
);
1919 nsresult SetType
(const nsAString
*aType
);
1920 nsresult GetText
(nsAString
*aText
);
1921 nsresult SetText
(const nsAString
*aText
);
1922 nsresult GetProtocol
(nsAString
*aProtocol
);
1923 nsresult SetProtocol
(const nsAString
*aProtocol
);
1924 nsresult GetHost
(nsAString
*aHost
);
1925 nsresult SetHost
(const nsAString
*aHost
);
1926 nsresult GetHostname
(nsAString
*aHostname
);
1927 nsresult SetHostname
(const nsAString
*aHostname
);
1928 nsresult GetPort
(nsAString
*aPort
);
1929 nsresult SetPort
(const nsAString
*aPort
);
1930 nsresult GetPathname
(nsAString
*aPathname
);
1931 nsresult SetPathname
(const nsAString
*aPathname
);
1932 nsresult GetSearch
(nsAString
*aSearch
);
1933 nsresult SetSearch
(const nsAString
*aSearch
);
1934 nsresult GetHash
(nsAString
*aHash
);
1935 nsresult SetHash
(const nsAString
*aHash
);
1936 nsresult GetCharset
(nsAString
*aCharset
);
1937 nsresult SetCharset
(const nsAString
*aCharset
);
1938 nsresult GetCoords
(nsAString
*aCoords
);
1939 nsresult SetCoords
(const nsAString
*aCoords
);
1940 nsresult GetName
(nsAString
*aName
);
1941 nsresult SetName
(const nsAString
*aName
);
1942 nsresult GetRev
(nsAString
*aRev
);
1943 nsresult SetRev
(const nsAString
*aRev
);
1944 nsresult GetShape
(nsAString
*aShape
);
1945 nsresult SetShape
(const nsAString
*aShape
);
1946 nsresult ToString
(nsAString
*_retval
);
1951 uuid(40c78026
-36dc
-40ca
-9221-de73267e9e99
),
1954 interface nsIDOMHTMLAreaElement
: nsISupports
1956 nsresult GetAlt
(const nsAString
*aAlt
);
1957 nsresult SetAlt
(nsAString
*aAlt
);
1958 nsresult GetCoords
(const nsAString
*aCoords
);
1959 nsresult SetCoords
(nsAString
*aCoords
);
1960 nsresult GetShape
(const nsAString
*aShape
);
1961 nsresult SetShape
(nsAString
*aShape
);
1962 nsresult GetHref
(const nsAString
*aHref
);
1963 nsresult SetHref
(nsAString
*aHref
);
1964 nsresult GetTarget
(const nsAString
*aTarget
);
1965 nsresult SetTarget
(nsAString
*aTarget
);
1966 nsresult GetPing
(const nsAString
*aPing
);
1967 nsresult SetPing
(nsAString
*aPing
);
1968 nsresult GetDownload
(const nsAString
*aDownload
);
1969 nsresult SetDownload
(nsAString
*aDownload
);
1970 nsresult GetProtocol
(const nsAString
*aProtocol
);
1971 nsresult SetProtocol
(nsAString
*aProtocol
);
1972 nsresult GetHost
(const nsAString
*aHost
);
1973 nsresult SetHost
(nsAString
*aHost
);
1974 nsresult GetPort
(const nsAString
*aPort
);
1975 nsresult SetPort
(nsAString
*aPort
);
1976 nsresult GetPathname
(const nsAString
*aPathname
);
1977 nsresult SetPathname
(nsAString
*aPathname
);
1978 nsresult GetSearch
(const nsAString
*aSearch
);
1979 nsresult SetSearch
(nsAString
*aSearch
);
1980 nsresult GetHash
(const nsAString
*aHash
);
1981 nsresult SetHash
(nsAString
*aHash
);
1982 nsresult GetNoHref
(const nsAString
*aNoHref
);
1983 nsresult SetNoHref
(nsAString
*aNoHref
);
1984 nsresult ToString
(nsAString
*_retval
);
1989 uuid(ee50b7ab
-0015-4fbe
-89e0
-e3feacd4ffde
),
1992 interface nsIDOMHTMLLinkElement
: nsISupports
1994 nsresult GetDisabled
(bool
*aDisabled
);
1995 nsresult SetDisabled
(bool aDisabled
);
1996 nsresult GetCharset
(nsAString
*aCharset
);
1997 nsresult SetCharset
(const nsAString
*aCharset
);
1998 nsresult GetHref
(nsAString
*aHref
);
1999 nsresult SetHref
(const nsAString
*aHref
);
2000 nsresult GetHreflang
(nsAString
*aHreflang
);
2001 nsresult SetHreflang
(const nsAString
*aHreflang
);
2002 nsresult GetMedia
(nsAString
*aMedia
);
2003 nsresult SetMedia
(const nsAString
*aMedia
);
2004 nsresult GetRel
(nsAString
*aRel
);
2005 nsresult SetRel
(const nsAString
*aRel
);
2006 nsresult GetRev
(nsAString
*aRev
);
2007 nsresult SetRev
(const nsAString
*aRev
);
2008 nsresult GetTarget
(nsAString
*aTarget
);
2009 nsresult SetTarget
(const nsAString
*aTarget
);
2010 nsresult GetType
(nsAString
*aType
);
2011 nsresult SetType
(const nsAString
*aType
);
2016 uuid(135a30ee
-0374-4ee7
-9d36
-91736bff5fb1
),
2019 interface nsIDOMHTMLTableElement
: nsISupports
2021 nsresult GetCaption
(nsIDOMHTMLElement
**aCaption
);
2022 nsresult SetCaption
(nsIDOMHTMLElement
*aCaption
);
2023 nsresult GetTHead
(nsIDOMHTMLElement
**aTHead
);
2024 nsresult SetTHead
(nsIDOMHTMLElement
*aTHead
);
2025 nsresult GetTFoot
(nsIDOMHTMLElement
**aTFoot
);
2026 nsresult SetTFoot
(nsIDOMHTMLElement
*aTFoot
);
2027 nsresult GetRows
(nsIDOMHTMLCollection
**aRows
);
2028 nsresult GetTBodies
(nsIDOMHTMLCollection
**aTBodies
);
2029 nsresult GetAlign
(nsAString
*aAlign
);
2030 nsresult SetAlign
(const nsAString
*aAlign
);
2031 nsresult GetBgColor
(nsAString
*aBgColor
);
2032 nsresult SetBgColor
(const nsAString
*aBgColor
);
2033 nsresult GetBorder
(nsAString
*aBorder
);
2034 nsresult SetBorder
(const nsAString
*aBorder
);
2035 nsresult GetCellPadding
(nsAString
*aCellPadding
);
2036 nsresult SetCellPadding
(const nsAString
*aCellPadding
);
2037 nsresult GetCellSpacing
(nsAString
*aCellSpacing
);
2038 nsresult SetCellSpacing
(const nsAString
*aCellSpacing
);
2039 nsresult GetFrame
(nsAString
*aFrame
);
2040 nsresult SetFrame
(const nsAString
*aFrame
);
2041 nsresult GetRules
(nsAString
*aRules
);
2042 nsresult SetRules
(const nsAString
*aRules
);
2043 nsresult GetSummary
(nsAString
*aSummary
);
2044 nsresult SetSummary
(const nsAString
*aSummary
);
2045 nsresult GetWidth
(nsAString
*aWidth
);
2046 nsresult SetWidth
(const nsAString
*aWidth
);
2047 nsresult CreateTHead
(nsIDOMHTMLElement
**_retval
);
2048 nsresult xpidlDeleteTHead
();
2049 nsresult CreateTFoot
(nsIDOMHTMLElement
**_retval
);
2050 nsresult xpidlDeleteTFoot
();
2051 nsresult CreateCaption
(nsIDOMHTMLElement
**_retval
);
2052 nsresult xpidlDeleteCaption
();
2053 nsresult InsertRow
(int32_t index
, nsIDOMHTMLElement
**_retval
);
2054 nsresult DeleteRow
(int32_t index
);
2059 uuid(02094366-0d3d
-47e3
-949c
-89113a9bcc15
),
2062 interface nsIDOMHTMLTableRowElement
: nsISupports
2064 nsresult GetRowIndex
(int32_t
*aRowIndex
);
2065 nsresult GetSectionRowIndex
(int32_t
*aSectionRowIndex
);
2066 nsresult GetCells
(nsIDOMHTMLCollection
**aCells
);
2067 nsresult GetAlign
(nsAString
*aAlign
);
2068 nsresult SetAlign
(const nsAString
*aAlign
);
2069 nsresult GetBgColor
(nsAString
*aBgColor
);
2070 nsresult SetBgColor
(const nsAString
*aBgColor
);
2071 nsresult GetCh
(nsAString
*aCh
);
2072 nsresult SetCh
(const nsAString
*aCh
);
2073 nsresult GetChOff
(nsAString
*aChOff
);
2074 nsresult SetChOff
(const nsAString
*aChOff
);
2075 nsresult GetVAlign
(nsAString
*aVAlign
);
2076 nsresult SetVAlign
(const nsAString
*aVAlign
);
2077 nsresult InsertCell
(int32_t index
, nsIDOMHTMLElement
* *_retval
);
2078 nsresult DeleteCell
(int32_t index
);
2083 uuid(3203c36f
-33fd
-4628-8c88
-77e82d38df1e
),
2086 interface nsIDOMHTMLTableCellElement
: nsISupports
2088 nsresult GetCellIndex
(int32_t
*aCellIndex
);
2089 nsresult GetAbbr
(nsAString
*aAbbr
);
2090 nsresult SetAbbr
(const nsAString
*aAbbr
);
2091 nsresult GetAlign
(nsAString
*aAlign
);
2092 nsresult SetAlign
(const nsAString
*aAlign
);
2093 nsresult GetAxis
(nsAString
*aAxis
);
2094 nsresult SetAxis
(const nsAString
*aAxis
);
2095 nsresult GetBgColor
(nsAString
*aBgColor
);
2096 nsresult SetBgColor
(const nsAString
*aBgColor
);
2097 nsresult GetCh
(nsAString
*aCh
);
2098 nsresult SetCh
(const nsAString
*aCh
);
2099 nsresult GetChOff
(nsAString
*aChOff
);
2100 nsresult SetChOff
(const nsAString
*aChOff
);
2101 nsresult GetColSpan
(int32_t
*aColSpan
);
2102 nsresult SetColSpan
(int32_t aColSpan
);
2103 nsresult GetHeaders
(nsAString
*aHeaders
);
2104 nsresult SetHeaders
(const nsAString
*aHeaders
);
2105 nsresult GetHeight
(nsAString
*aHeight
);
2106 nsresult SetHeight
(const nsAString
*aHeight
);
2107 nsresult GetNoWrap
(bool
*aNoWrap
);
2108 nsresult SetNoWrap
(bool aNoWrap
);
2109 nsresult GetRowSpan
(int32_t
*aRowSpan
);
2110 nsresult SetRowSpan
(int32_t aRowSpan
);
2111 nsresult GetScope
(nsAString
*aScope
);
2112 nsresult SetScope
(const nsAString
*aScope
);
2113 nsresult GetVAlign
(nsAString
*aVAlign
);
2114 nsresult SetVAlign
(const nsAString
*aVAlign
);
2115 nsresult GetWidth
(nsAString
*aWidth
);
2116 nsresult SetWidth
(const nsAString
*aWidth
);
2121 uuid(9fd7b656
-1055-4cb2
-b8b1
-ed13efe24457
),
2124 interface nsIDOMHTMLIFrameElement
: nsISupports
2126 nsresult GetAlign
(nsAString
*aAlign
);
2127 nsresult SetAlign
(const nsAString
*aAlign
);
2128 nsresult GetFrameBorder
(nsAString
*aFrameBorder
);
2129 nsresult SetFrameBorder
(const nsAString
*aFrameBorder
);
2130 nsresult GetHeight
(nsAString
*aHeight
);
2131 nsresult SetHeight
(const nsAString
*aHeight
);
2132 nsresult GetLongDesc
(nsAString
*aLongDesc
);
2133 nsresult SetLongDesc
(const nsAString
*aLongDesc
);
2134 nsresult GetMarginHeight
(nsAString
*aMarginHeight
);
2135 nsresult SetMarginHeight
(const nsAString
*aMarginHeight
);
2136 nsresult GetMarginWidth
(nsAString
*aMarginWidth
);
2137 nsresult SetMarginWidth
(const nsAString
*aMarginWidth
);
2138 nsresult GetName
(nsAString
*aName
);
2139 nsresult SetName
(const nsAString
*aName
);
2140 nsresult GetScrolling
(nsAString
*aScrolling
);
2141 nsresult SetScrolling
(const nsAString
*aScrolling
);
2142 nsresult GetSrc
(nsAString
*aSrc
);
2143 nsresult SetSrc
(const nsAString
*aSrc
);
2144 nsresult GetSrcdoc
(nsAString
*aSrcdoc
);
2145 nsresult SetSrcdoc
(const nsAString
*aSrcdoc
);
2146 nsresult GetWidth
(nsAString
*aWidth
);
2147 nsresult SetWidth
(const nsAString
*aWidth
);
2148 nsresult GetContentDocument
(nsIDOMDocument
**aContentDocument
);
2149 nsresult GetContentWindow
(nsIDOMWindow
**aContentWindow
);
2150 nsresult GetAllowFullscreen
(bool
*aAllowFullscreen
);
2151 nsresult SetAllowFullscreen
(bool aAllowFullscreen
);
2156 uuid(60ab25b9
-3246-4f50
-b0d4
-21e73ba88cd6
),
2159 interface nsIDOMHTMLFrameElement
: nsISupports
2161 nsresult GetFrameBorder
(nsAString
*aFrameBorder
);
2162 nsresult SetFrameBorder
(const nsAString
*aFrameBorder
);
2163 nsresult GetLongDesc
(nsAString
*aLongDesc
);
2164 nsresult SetLongDesc
(const nsAString
*aLongDesc
);
2165 nsresult GetMarginHeight
(nsAString
*aMarginHeight
);
2166 nsresult SetMarginHeight
(const nsAString
*aMarginHeight
);
2167 nsresult GetMarginWidth
(nsAString
*aMarginWidth
);
2168 nsresult SetMarginWidth
(const nsAString
*aMarginWidth
);
2169 nsresult GetName
(nsAString
*aName
);
2170 nsresult SetName
(const nsAString
*aName
);
2171 nsresult GetNoResize
(bool
*aNoResize
);
2172 nsresult SetNoResize
(bool aNoResize
);
2173 nsresult GetScrolling
(nsAString
*aScrolling
);
2174 nsresult SetScrolling
(const nsAString
*aScrolling
);
2175 nsresult GetSrc
(nsAString
*aSrc
);
2176 nsresult SetSrc
(const nsAString
*aSrc
);
2177 nsresult GetContentDocument
(nsIDOMDocument
**aContentDocument
);
2178 nsresult GetContentWindow
(nsIDOMWindow
**aContentWindow
);
2183 uuid(baf443d2
-da5d
-40c9
-be3c
-c65a69a25250
),
2186 interface nsIDOMHTMLObjectElement
: nsISupports
2188 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
2189 nsresult GetCode
(nsAString
*aCode
);
2190 nsresult SetCode
(const nsAString
*aCode
);
2191 nsresult GetAlign
(nsAString
*aAlign
);
2192 nsresult SetAlign
(const nsAString
*aAlign
);
2193 nsresult GetArchive
(nsAString
*aArchive
);
2194 nsresult SetArchive
(const nsAString
*aArchive
);
2195 nsresult GetBorder
(nsAString
*aBorder
);
2196 nsresult SetBorder
(const nsAString
*aBorder
);
2197 nsresult GetCodeBase
(nsAString
*aCodeBase
);
2198 nsresult SetCodeBase
(const nsAString
*aCodeBase
);
2199 nsresult GetCodeType
(nsAString
*aCodeType
);
2200 nsresult SetCodeType
(const nsAString
*aCodeType
);
2201 nsresult GetData
(nsAString
*aData
);
2202 nsresult SetData
(const nsAString
*aData
);
2203 nsresult GetDeclare
(bool
*aDeclare
);
2204 nsresult SetDeclare
(bool aDeclare
);
2205 nsresult GetHeight
(nsAString
*aHeight
);
2206 nsresult SetHeight
(const nsAString
*aHeight
);
2207 nsresult GetHspace
(int32_t
*aHspace
);
2208 nsresult SetHspace
(int32_t aHspace
);
2209 nsresult GetName
(nsAString
*aName
);
2210 nsresult SetName
(const nsAString
*aName
);
2211 nsresult GetStandby
(nsAString
*aStandby
);
2212 nsresult SetStandby
(const nsAString
*aStandby
);
2213 nsresult GetType
(nsAString
*aType
);
2214 nsresult SetType
(const nsAString
*aType
);
2215 nsresult GetUseMap
(nsAString
*aUseMap
);
2216 nsresult SetUseMap
(const nsAString
*aUseMap
);
2217 nsresult GetVspace
(int32_t
*aVspace
);
2218 nsresult SetVspace
(int32_t aVspace
);
2219 nsresult GetWidth
(nsAString
*aWidth
);
2220 nsresult SetWidth
(const nsAString
*aWidth
);
2221 nsresult GetContentDocument
(nsIDOMDocument
**aContentDocument
);
2222 nsresult GetWillValidate
(bool
*aWillValidate
);
2223 nsresult GetValidity
(nsIDOMValidityState
**aValidity
);
2224 nsresult GetValidationMessage
(nsAString
*aValidationMessage
);
2225 nsresult CheckValidity
(bool
*_retval
);
2226 nsresult SetCustomValidity
(const nsAString
*error
);
2231 uuid(fa326d22
-8739-4eef
-a80e
-6449bde605d2
),
2234 interface nsIDOMHTMLStyleElement
: nsISupports
2236 nsresult GetDisabled
(bool
*aDisabled
);
2237 nsresult SetDisabled
(bool aDisabled
);
2238 nsresult GetMedia
(nsAString
*aMedia
);
2239 nsresult SetMedia
(const nsAString
*aMedia
);
2240 nsresult GetType
(nsAString
*aType
);
2241 nsresult SetType
(const nsAString
*aType
);
2242 nsresult GetScoped
(bool
*aScoped
);
2243 nsresult SetScoped
(bool aScoped
);
2244 nsresult GetDOMStyleSheet
(nsIDOMStyleSheet
**aDOMStyleSheet
);
2249 uuid(10a28f38
-32e8
-4c63
-8aa1
-12eaaebc369a
),
2252 interface nsIURIContentListener
: nsISupports
2254 nsresult OnStartURIOpen
(nsIURI
*aURI
, bool
*_retval
);
2255 nsresult DoContent
(const nsACString
*aContentType
, bool aIsContentPreferred
, nsIRequest
*aRequest
,
2256 nsIStreamListener
**aContentHandler
, bool
*_retval
);
2257 nsresult IsPreferred
(const char *aContentType
, char **aDesiredContentType
, bool
*_retval
);
2258 nsresult CanHandleContent
(const char *aContentType
, bool aIsContentPreferred
,
2259 char **aDesiredContentType
, bool
*_retval
);
2260 nsresult GetLoadCookie
(nsISupports
**aLoadCookie
);
2261 nsresult SetLoadCookie
(nsISupports
*aLoadCookie
);
2262 nsresult GetParentContentListener
(nsIURIContentListener
**aParentContentListener
);
2263 nsresult SetParentContentListener
(nsIURIContentListener
*aParentContentListener
);
2268 uuid(44b78386
-1dd2
-11b2
-9ad2
-e4eee2ca1916
),
2271 interface nsITooltipListener
: nsISupports
2273 nsresult OnShowTooltip
(int32_t aXCoords
, int32_t aYCoords
, const PRUnichar
*aTipText
);
2274 nsresult OnHideTooltip
();
2279 uuid(33e9d001
-caab
-4ba9
-8961-54902f197202
),
2282 interface nsIWebBrowser
: nsISupports
2284 nsresult AddWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
2285 nsresult RemoveWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
2286 nsresult GetContainerWindow
(nsIWebBrowserChrome
**aContainerWindow
);
2287 nsresult SetContainerWindow
(nsIWebBrowserChrome
*aContainerWindow
);
2288 nsresult GetParentURIContentListener
(nsIURIContentListener
**aParentURIContentListener
);
2289 nsresult SetParentURIContentListener
(nsIURIContentListener
*aParentURIContentListener
);
2290 nsresult GetContentDOMWindow
(nsIDOMWindow
**aContentDOMWindow
);
2291 nsresult GetIsActive
(bool
*aIsActive
);
2292 nsresult SetIsActive
(bool aIsActive
);
2295 cpp_quote
("#define SETUP_ALLOW_JAVASCRIPT 2")
2296 cpp_quote
("#define SETUP_IS_CHROME_WRAPPER 7")
2297 cpp_quote
("#define SETUP_DISABLE_NOSCRIPT 16")
2301 uuid(f15398a0
-8018-11d3
-af70
-00a024ffc08c
),
2304 interface nsIWebBrowserSetup
: nsISupports
2306 nsresult SetProperty
(uint32_t aId
, uint32_t aValue
);
2309 typedef void* nativeWindow
;
2313 uuid(9da319f3
-eee6
-4504-81a5
-6A19cf6215bf
),
2316 interface nsIBaseWindow
: nsISupports
2318 nsresult InitWindow
(nativeWindow parentNativeWindow
, nsIWidget
*parentWidget
, int32_t x
,
2319 int32_t y
, int32_t cx
, int32_t cy
);
2322 nsresult SetPosition
(int32_t x
, int32_t y
);
2323 nsresult GetPosition
(int32_t
*x
, int32_t
*y
);
2324 nsresult SetSize
(int32_t cx
, int32_t cy
, bool fRepaint
);
2325 nsresult GetSize
(int32_t
*cx
, int32_t
*cy
);
2326 nsresult SetPositionAndSize
(int32_t x
, int32_t y
, int32_t cx
, int32_t cy
, bool fRepaint
);
2327 nsresult GetPositionAndSize
(int32_t
*x
, int32_t
*y
, int32_t
*cx
, int32_t
*cy
);
2328 nsresult Repaint
(bool force
);
2329 nsresult GetParentWidget
(nsIWidget
**aParentWidget
);
2330 nsresult SetParentWidget
(nsIWidget
*aParentWidget
);
2331 nsresult GetParentNativeWindow
(nativeWindow
*aParentNativeWindow
);
2332 nsresult SetParentNativeWindow
(nativeWindow aParentNativeWindow
);
2333 nsresult GetNativeHandle
(nsAString
*aNativeHandle
);
2334 nsresult GetVisibility
(bool
*aVisibility
);
2335 nsresult SetVisibility
(bool aVisibility
);
2336 nsresult GetEnabled
(bool
*aEnabled
);
2337 nsresult SetEnabled
(bool aEnabled
);
2338 nsresult GetMainWidget
(nsIWidget
**aMainWidget
);
2339 nsresult GetUnscaledDevicePixelsPerCSSPixel
(double *aUnscaledDevicePixelsPerCSSPixel
);
2340 nsresult SetFocus
();
2341 nsresult GetTitle
(PRUnichar
**aTitle
);
2342 nsresult SetTitle
(const PRUnichar
*aTitle
);
2347 uuid(0e92d522
-53a5
-4af6
-9a24
-4eccdcbf4f91
),
2350 interface nsIWebNavigation
: nsISupports
2352 const UINT LOAD_FLAGS_MASK
= 0xffff;
2353 const UINT LOAD_FLAGS_NONE
= 0;
2354 const UINT LOAD_FLAGS_IS_REFRESH
= 0x0010;
2355 const UINT LOAD_FLAGS_IS_LINK
= 0x0020;
2356 const UINT LOAD_FLAGS_BYPASS_HISTORY
= 0x0040;
2357 const UINT LOAD_FLAGS_REPLACE_HISTORY
= 0x0080;
2358 const UINT LOAD_FLAGS_BYPASS_CACHE
= 0x0100;
2359 const UINT LOAD_FLAGS_BYPASS_PROXY
= 0x0200;
2360 const UINT LOAD_FLAGS_CHARSET_CHANGE
= 0x0400;
2361 const UINT LOAD_FLAGS_STOP_CONTENT
= 0x0800;
2362 const UINT LOAD_FLAGS_FROM_EXTERNAL
= 0x1000;
2363 const UINT LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP
= 0x2000;
2364 const UINT LOAD_FLAGS_FIRST_LOAD
= 0x4000;
2365 const UINT LOAD_FLAGS_ALLOW_POPUPS
= 0x8000;
2366 const UINT LOAD_FLAGS_BYPASS_CLASSIFIER
= 0x10000;
2367 const UINT LOAD_FLAGS_FORCE_ALLOW_COOKIES
= 0x20000;
2368 const UINT LOAD_FLAGS_DISALLOW_INHERIT_OWNER
= 0x40000;
2370 nsresult GetCanGoBack
(bool
*aCanGoBack
);
2371 nsresult GetCanGoForward
(bool
*aCanGoForward
);
2373 nsresult GoForward
();
2374 nsresult GotoIndex
(int32_t index
);
2375 nsresult LoadURI
(const PRUnichar
*aURI
, uint32_t aLoadFlags
, nsIURI
*aReferrer
,
2376 nsIInputStream
*aPostData
, nsIInputStream
*aHeaders
);
2377 nsresult LoadURIWithOptions
(const PRUnichar
*aURI
, uint32_t aLoadFlags
, nsIURI
*aReferrer
, uint32_t aReferrerPolicy
,
2378 nsIInputStream
*aPostData
, nsIInputStream
*aHeaders
, nsIURI
*aBaseURI
);
2379 nsresult Reload
(uint32_t aReloadFlags
);
2380 nsresult Stop
(uint32_t aStopFlags
);
2381 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
2382 nsresult GetCurrentURI
(nsIURI
**aCurrentURI
);
2383 nsresult GetReferringURI
(nsIURI
**aReferringURI
);
2384 nsresult GetSessionHistory
(nsISHistory
**aSessionHistory
);
2385 nsresult SetSessionHistory
(nsISHistory
*aSessionHistory
);
2390 uuid(bd0efb3b
-1c81
-4fb0
-b16d
-576a2be48a95
),
2393 interface nsIWebProgress
: nsISupports
2395 nsresult AddProgressListener
(nsIWebProgressListener
*aListener
, uint32_t aNotifyMask
);
2396 nsresult RemoveProgressListener
(nsIWebProgressListener
*aListener
);
2397 nsresult GetDOMWindow
(nsIDOMWindow
**aDOMWindow
);
2398 nsresult GetDOMWindowID
(uint64_t
*aDOMWindowID
);
2399 nsresult GetIsTopLevel
(bool
*aIsTopLevel
);
2400 nsresult GetIsLoadingDocument
(bool
*aIsLoadingDocument
);
2401 nsresult GetLoadType
(uint32_t
*aLoadType
);
2406 uuid(1bcfc611
-8941-4c39
-9e06
-7116e564a1ce
),
2409 interface nsIPrintSettings
: nsISupports
2411 typedef struct { char dummy
; } nsIntMargin
;
2413 nsresult SetPrintOptions
(int32_t aType
, bool aTurnOnOff
);
2414 nsresult GetPrintOptions
(int32_t aType
, bool
*_retval
);
2415 nsresult GetPrintOptionsBits
(int32_t
*_retval
);
2416 nsresult GetEffectivePageSize
(double *aWidth
, double *aHeight
);
2417 nsresult Clone
(nsIPrintSettings
**_retval
);
2418 nsresult Assign
(nsIPrintSettings
*aPS
);
2419 nsresult GetPrintSession
(nsIPrintSession
**aPrintSession
);
2420 nsresult SetPrintSession
(nsIPrintSession
*aPrintSession
);
2421 nsresult GetStartPageRange
(int32_t
*aStartPageRange
);
2422 nsresult SetStartPageRange
(int32_t aStartPageRange
);
2423 nsresult GetEndPageRange
(int32_t
*aEndPageRange
);
2424 nsresult SetEndPageRange
(int32_t aEndPageRange
);
2425 nsresult GetEdgeTop
(double *aEdgeTop
);
2426 nsresult SetEdgeTop
(double aEdgeTop
);
2427 nsresult GetEdgeLeft
(double *aEdgeLeft
);
2428 nsresult SetEdgeLeft
(double aEdgeLeft
);
2429 nsresult GetEdgeBottom
(double *aEdgeBottom
);
2430 nsresult SetEdgeBottom
(double aEdgeBottom
);
2431 nsresult GetEdgeRight
(double *aEdgeRight
);
2432 nsresult SetEdgeRight
(double aEdgeRight
);
2433 nsresult GetMarginTop
(double *aMarginTop
);
2434 nsresult SetMarginTop
(double aMarginTop
);
2435 nsresult GetMarginLeft
(double *aMarginLeft
);
2436 nsresult SetMarginLeft
(double aMarginLeft
);
2437 nsresult GetMarginBottom
(double *aMarginBottom
);
2438 nsresult SetMarginBottom
(double aMarginBottom
);
2439 nsresult GetMarginRight
(double *aMarginRight
);
2440 nsresult SetMarginRight
(double aMarginRight
);
2441 nsresult GetUnwriteableMarginTop
(double *aUnwriteableMarginTop
);
2442 nsresult SetUnwriteableMarginTop
(double aUnwriteableMarginTop
);
2443 nsresult GetUnwriteableMarginLeft
(double *aUnwriteableMarginLeft
);
2444 nsresult SetUnwriteableMarginLeft
(double aUnwriteableMarginLeft
);
2445 nsresult GetUnwriteableMarginBottom
(double *aUnwriteableMarginBottom
);
2446 nsresult SetUnwriteableMarginBottom
(double aUnwriteableMarginBottom
);
2447 nsresult GetUnwriteableMarginRight
(double *aUnwriteableMarginRight
);
2448 nsresult SetUnwriteableMarginRight
(double aUnwriteableMarginRight
);
2449 nsresult GetScaling
(double *aScaling
);
2450 nsresult SetScaling
(double aScaling
);
2451 nsresult GetPrintBGColors
(bool
*aPrintBGColors
);
2452 nsresult SetPrintBGColors
(bool aPrintBGColors
);
2453 nsresult GetPrintBGImages
(bool
*aPrintBGImages
);
2454 nsresult SetPrintBGImages
(bool aPrintBGImages
);
2455 nsresult GetPrintRange
(int16_t
*aPrintRange
);
2456 nsresult SetPrintRange
(int16_t aPrintRange
);
2457 nsresult GetTitle
(PRUnichar
**aTitle
);
2458 nsresult SetTitle
(const PRUnichar
*aTitle
);
2459 nsresult GetDocURL
(PRUnichar
**aDocURL
);
2460 nsresult SetDocURL
(const PRUnichar
*aDocURL
);
2461 nsresult GetHeaderStrLeft
(PRUnichar
**aHeaderStrLeft
);
2462 nsresult SetHeaderStrLeft
(const PRUnichar
*aHeaderStrLeft
);
2463 nsresult GetHeaderStrCenter
(PRUnichar
**aHeaderStrCenter
);
2464 nsresult SetHeaderStrCenter
(const PRUnichar
*aHeaderStrCenter
);
2465 nsresult GetHeaderStrRight
(PRUnichar
**aHeaderStrRight
);
2466 nsresult SetHeaderStrRight
(const PRUnichar
*aHeaderStrRight
);
2467 nsresult GetFooterStrLeft
(PRUnichar
**aFooterStrLeft
);
2468 nsresult SetFooterStrLeft
(const PRUnichar
*aFooterStrLeft
);
2469 nsresult GetFooterStrCenter
(PRUnichar
**aFooterStrCenter
);
2470 nsresult SetFooterStrCenter
(const PRUnichar
*aFooterStrCenter
);
2471 nsresult GetFooterStrRight
(PRUnichar
**aFooterStrRight
);
2472 nsresult SetFooterStrRight
(const PRUnichar
*aFooterStrRight
);
2473 nsresult GetHowToEnableFrameUI
(int16_t
*aHowToEnableFrameUI
);
2474 nsresult SetHowToEnableFrameUI
(int16_t aHowToEnableFrameUI
);
2475 nsresult GetIsCancelled
(bool
*aIsCancelled
);
2476 nsresult SetIsCancelled
(bool aIsCancelled
);
2477 nsresult GetPrintFrameTypeUsage
(int16_t
*aPrintFrameTypeUsage
);
2478 nsresult SetPrintFrameTypeUsage
(int16_t aPrintFrameTypeUsage
);
2479 nsresult GetPrintFrameType
(int16_t
*aPrintFrameType
);
2480 nsresult SetPrintFrameType
(int16_t aPrintFrameType
);
2481 nsresult GetPrintSilent
(bool
*aPrintSilent
);
2482 nsresult SetPrintSilent
(bool aPrintSilent
);
2483 nsresult GetShrinkToFit
(bool
*aShrinkToFit
);
2484 nsresult SetShrinkToFit
(bool aShrinkToFit
);
2485 nsresult GetShowPrintProgress
(bool
*aShowPrintProgress
);
2486 nsresult SetShowPrintProgress
(bool aShowPrintProgress
);
2487 nsresult GetPaperName
(PRUnichar
**aPaperName
);
2488 nsresult SetPaperName
(const PRUnichar
*aPaperName
);
2489 nsresult GetPaperSizeType
(int16_t
*aPaperSizeType
);
2490 nsresult SetPaperSizeType
(int16_t aPaperSizeType
);
2491 nsresult GetPaperData
(int16_t
*aPaperData
);
2492 nsresult SetPaperData
(int16_t aPaperData
);
2493 nsresult GetPaperWidth
(double *aPaperWidth
);
2494 nsresult SetPaperWidth
(double aPaperWidth
);
2495 nsresult GetPaperHeight
(double *aPaperHeight
);
2496 nsresult SetPaperHeight
(double aPaperHeight
);
2497 nsresult GetPaperSizeUnit
(int16_t
*aPaperSizeUnit
);
2498 nsresult SetPaperSizeUnit
(int16_t aPaperSizeUnit
);
2499 nsresult GetPlexName
(PRUnichar
**aPlexName
);
2500 nsresult SetPlexName
(const PRUnichar
*aPlexName
);
2501 nsresult GetColorspace
(PRUnichar
**aColorspace
);
2502 nsresult SetColorspace
(const PRUnichar
*aColorspace
);
2503 nsresult GetResolutionName
(PRUnichar
**aResolutionName
);
2504 nsresult SetResolutionName
(const PRUnichar aResolutionName
);
2505 nsresult GetDownloadFonts
(bool
*aDownloadFonts
);
2506 nsresult SetDownloadFonts
(bool aDownloadFonts
);
2507 nsresult GetPrintReversed
(bool
*aPrintReversed
);
2508 nsresult SetPrintReversed
(bool aPrintReversed
);
2509 nsresult GetPrintInColor
(bool
*aPrintInColor
);
2510 nsresult SetPrintInColor
(bool aPrintInColor
);
2511 nsresult GetOrientation
(int32_t
*aOrientation
);
2512 nsresult SetOrientation
(int32_t aOrientation
);
2513 nsresult GetPrintCommand
(PRUnichar
**aPrintCommand
);
2514 nsresult SetPrintCommand
(const PRUnichar
*aPrintCommand
);
2515 nsresult GetNumCopies
(int32_t
*aNumCopies
);
2516 nsresult SetNumCopies
(int32_t aNumCopies
);
2517 nsresult GetPrinterName
(PRUnichar
**aPrinterName
);
2518 nsresult SetPrinterName
(const PRUnichar
*aPrinterName
);
2519 nsresult GetPrintToFile
(bool
*aPrintToFile
);
2520 nsresult SetPrintToFile
(bool aPrintToFile
);
2521 nsresult GetToFileName
(PRUnichar
**aToFileName
);
2522 nsresult SetToFileName
(const PRUnichar
*aToFileName
);
2523 nsresult GetOutputFormat
(int16_t
*aOutputFormat
);
2524 nsresult SetOutputFormat
(int16_t aOutputFormat
);
2525 nsresult GetPrintPageDelay
(int32_t
*aPrintPageDelay
);
2526 nsresult SetPrintPageDelay
(int32_t aPrintPageDelay
);
2527 nsresult GetResolution
(int32_t
*aResolution
) = 0;
2528 nsresult SetResolution
(int32_t aResolution
) = 0;
2529 nsresult GetDuplex
(int32_t
*aDuplex
);
2530 nsresult SetDuplex
(int32_t aDuplex
);
2531 nsresult GetIsInitializedFromPrinter
(bool
*aIsInitializedFromPrinter
);
2532 nsresult SetIsInitializedFromPrinter
(bool aIsInitializedFromPrinter
);
2533 nsresult GetIsInitializedFromPrefs
(bool
*aIsInitializedFromPrefs
);
2534 nsresult SetIsInitializedFromPrefs
(bool aIsInitializedFromPrefs
);
2535 nsresult GetPersistMarginBoxSettings
(bool
*aPersistMarginBoxSettings
);
2536 nsresult SetPersistMarginBoxSettings
(bool aPersistMarginBoxSettings
);
2537 nsresult SetMarginInTwips
(nsIntMargin
*aMargin
);
2538 nsresult SetEdgeInTwips
(nsIntMargin
*aEdge
);
2539 nsresult GetMarginInTwips
(nsIntMargin
*aMargin
);
2540 nsresult GetEdgeInTwips
(nsIntMargin
*aEdge
);
2541 nsresult SetupSilentPrinting
();
2542 nsresult SetUnwriteableMarginInTwips
(nsIntMargin
*aEdge
);
2543 nsresult GetUnwriteableMarginInTwips
(nsIntMargin
*aEdge
);
2544 nsresult GetPageRanges
(void * /*nsTArray<int32_t>*/ aPages
);
2549 uuid(9a7ca4b0
-fbba
-11d4
-a869
-00105a183419
),
2552 interface nsIWebBrowserPrint
: nsISupports
2554 nsresult GetGlobalPrintSettings
(nsIPrintSettings
**aGlobalPrintSettings
);
2555 nsresult GetCurrentPrintSettings
(nsIPrintSettings
**aCurrentPrintSettings
);
2556 nsresult GetCurrentChildDOMWindow
(nsIDOMWindow
**aCurrentChildDOMWindow
);
2557 nsresult GetDoingPrint
(bool
*aDoingPrint
);
2558 nsresult GetDoingPrintPreview
(bool
*aDoingPrintPreview
);
2559 nsresult GetIsFramesetDocument
(bool
*aIsFramesetDocument
);
2560 nsresult GetIsFramesetFrameSelected
(bool
*aIsFramesetFrameSelected
);
2561 nsresult GetIsIFrameSelected
(bool
*aIsIFrameSelected
);
2562 nsresult GetIsRangeSelection
(bool
*aIsRangeSelection
);
2563 nsresult GetPrintPreviewNumPages
(int32_t
*aPrintPreviewNumPages
);
2564 nsresult Print
(nsIPrintSettings
*aThePrintSettings
, nsIWebProgressListener
*aWPListener
);
2565 nsresult PrintPreview
(nsIPrintSettings
*aThePrintSettings
, nsIDOMWindow
*aChildDOMWin
,
2566 nsIWebProgressListener
*aWPListener
);
2567 nsresult PrintPreviewNavigate
(int16_t aNavType
, int32_t aPageNum
);
2569 nsresult EnumerateDocumentNames
(uint32_t
*aCount
, PRUnichar
***aResult
);
2570 nsresult ExitPrintPreview
();
2575 uuid(3507fc93
-313e-4a4c
-8ca8
-4d0ea0f97315
),
2578 interface nsIScrollable
: nsISupports
2581 ScrollOrientation_X
= 1,
2582 ScrollOrientation_Y
= 2
2587 Scrollbar_Never
= 2,
2588 Scrollbar_Always
= 3
2591 nsresult GetDefaultScrollbarPreferences
(int32_t scrollOrientation
, int32_t
*_retval
);
2592 nsresult SetDefaultScrollbarPreferences
(int32_t scrollOrientation
, int32_t scrollbarPref
);
2593 nsresult GetScrollbarVisibility
(bool
*verticalVisible
, bool
*horizontalVisible
);
2598 uuid(dfb5a307
-7ecf
-41dd
-aee2
-f1d623459c44
),
2601 interface nsIFile
: nsISupports
2604 /* Currently not needed */
2606 } PRFileDesc
, PRLibrary
, widl_FILE
;
2607 #define FILE widl_FILE
2609 nsresult Append
(const nsAString
*node
);
2610 nsresult AppendNative
(const nsAString
*node
);
2611 nsresult Normalize
();
2612 nsresult Create
(uint32_t type
, uint32_t permission
);
2613 nsresult GetLeafName
(nsAString
*aLeafName
);
2614 nsresult SetLeafName
(const nsAString
*aLeafName
);
2615 nsresult GetNativeLeafName
(nsAString
*aLeafName
);
2616 nsresult SetNativeLeafName
(const nsAString
*aLeafName
);
2617 nsresult CopyTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
2618 nsresult CopyToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
2619 nsresult CopyToFollowingLinks
(nsIFile
*newParentDir
, const nsAString
*newName
);
2620 nsresult CopyToFollowingLinksNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
2621 nsresult MoveTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
2622 nsresult MoveToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
2623 nsresult RenameTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
2624 nsresult Remove
(bool recursive
);
2625 nsresult GetPermissions
(uint32_t
*aPermissions
);
2626 nsresult SetPermissions
(uint32_t pPermissions
);
2627 nsresult GetPermissionsOfLink
(uint32_t
*aPermissions
);
2628 nsresult SetPermissionsOfLink
(uint32_t pPermissions
);
2629 nsresult GetLastModifiedTime
(PRTime
*aLastModifiedTime
);
2630 nsresult SetLastModifiedTime
(PRTime aLastModifiedTime
);
2631 nsresult GetLastModifiedTimeOfLink
(PRTime
*aLastModifiedTimeOfLink
);
2632 nsresult SetLastModifiedTimeOfLink
(PRTime aLastModifiedTimeOfLink
);
2633 nsresult GetFileSize
(int64_t
*aFileSize
);
2634 nsresult SetFileSize
(int64_t aFileSize
);
2635 nsresult GetFileSizeOfLink
(int64_t
*aFileSizeOfLink
);
2636 nsresult GetTarget
(nsAString
*aTarget
);
2637 nsresult GetNativeTarget
(nsACString
*aNativeTarget
);
2638 nsresult GetPath
(nsAString
*aPath
);
2639 nsresult GetNativePath
(nsACString
*aNativePath
);
2640 nsresult Exists
(bool
*_retval
);
2641 nsresult IsWritable
(bool
*_retval
);
2642 nsresult IsReadable
(bool
*_retval
);
2643 nsresult IsExecutable
(bool
*_retval
);
2644 nsresult IsHidden
(bool
*_retval
);
2645 nsresult IsDirectory
(bool
*_retval
);
2646 nsresult IsFile
(bool
*_retval
);
2647 nsresult IsSymlink
(bool
*_retval
);
2648 nsresult IsSpecial
(bool
*_retval
);
2649 nsresult CreateUnique
(uint32_t type
, uint32_t permission
);
2650 nsresult Clone
(nsIFile
**_retval
);
2651 nsresult Equals
(nsIFile
*inFile
, bool
*_retval
);
2652 nsresult Contains
(nsIFile
*inFile
, bool
*_retval
);
2653 nsresult GetParent
(nsIFile
**aParent
);
2654 nsresult GetDirectoryEntries
(nsISimpleEnumerator
**aDirectoryEntries
);
2655 nsresult InitWithPath
(const nsAString
*filePath
);
2656 nsresult InitWithNativePath
(const nsACString
*filePath
);
2657 nsresult InitWithFile
(nsIFile
*aFile
);
2658 nsresult GetFollowLinks
(bool
*aFollowLinks
);
2659 nsresult SetFollowLinks
(bool aFollowLinks
);
2660 nsresult OpenNSPRFileDesc
(int32_t flags
, int32_t mode
, PRFileDesc
**_retval
);
2661 nsresult OpenANSIFileDesc
(const char *mode
, FILE
**_retval
);
2662 nsresult Load
(PRLibrary
**_retval
);
2663 nsresult GetDiskSpaceAvailable
(int64_t
*aDiskSpaceAvailable
);
2664 nsresult AppendRelativePath
(const nsAString
*relativeFilePath
);
2665 nsresult AppendRelativeNativePath
(const nsACString
*relativeFilePath
);
2666 nsresult GetPersistentDescriptor
(nsACString
*aPersistentDescriptor
);
2667 nsresult SetPersistentDescriptor
(const nsACString
*aPersistentDescriptor
);
2670 nsresult GetRelativeDescriptor
(nsIFile
*fromFile
, nsACString
*_retval
);
2671 nsresult SetRelativeDescriptor
(nsIFile
*fromFile
, const nsACString
*relativeDesc
);
2676 uuid(d604ffc3
-1ba3
-4f6c
-b65f
-1ed4199364c3
),
2679 interface nsIComponentManager
: nsISupports
2681 nsresult GetClassObject
(nsCIDRef aClass
, nsIIDRef aIID
, void **result
);
2682 nsresult GetClassObjectByContractID
(const char *aContractID
, nsIIDRef aIID
, void **result
);
2683 nsresult CreateInstance
(nsCIDRef aClass
, nsISupports
*aDelegate
, nsIIDRef aIID
,
2685 nsresult CreateInstanceByContractID
(const char *aContractID
, nsISupports
*aDelegate
,
2686 nsIIDRef aIID
, void **result
);
2687 nsresult AddBootstrappedManifestLocation
(nsIFile
*aLocation
);
2688 nsresult RemoveBootstrappedManifestLocation
(nsIFile
*aLocation
);
2689 nsresult GetManifestLocations
(nsIArray
**_retval
);
2694 uuid(55d25e49
-793f
-4727-a69f
-de8b15f4b985
),
2697 interface nsIPrefBranch
: nsISupports
2699 nsresult GetRoot
(char **aRoot
);
2700 nsresult GetPrefType
(const char *aPrefName
, int32_t
*_retval
);
2701 nsresult GetBoolPref
(const char *aPrefName
, bool
*_retval
);
2702 nsresult SetBoolPref
(const char *aPrefName
, bool aValue
);
2703 nsresult GetFloatPref
(const char *aPrefName
, float *_retval
);
2704 nsresult GetCharPref
(const char *aPrefName
, char **_retval
);
2705 nsresult SetCharPref
(const char *aPrefName
, const char *aValue
);
2706 nsresult GetIntPref
(const char *aPrefName
, int32_t
*_retval
);
2707 nsresult SetIntPref
(const char *aPrefName
, int32_t aValue
);
2708 nsresult GetComplexValue
(const char *aPrefName
, const nsIID
*aType
, void **aValue
);
2709 nsresult SetComplexValue
(const char *aPrefName
, const nsIID
*aType
, nsISupports
*aValue
);
2710 nsresult ClearUserPref
(const char *aPrefName
);
2711 nsresult LockPref
(const char *aPrefName
);
2712 nsresult PrefHasUserValue
(const char *aPrefName
, bool
*_retval
);
2713 nsresult PrefIsLocked
(const char *aPrefName
, bool
*_retval
);
2714 nsresult UnlockPref
(const char *aPrefName
);
2715 nsresult DeleteBranch
(const char *aStartingAt
);
2716 nsresult GetChildList
(const char *aStartingAt
, uint32_t
*aCount
, char ***aChildArray
);
2717 nsresult ResetBranch
(const char *aStartingAt
);
2718 nsresult AddObserver
(const char *aDomain
, nsIObserver
*aObserver
, bool aHoldWeak
);
2719 nsresult RemoveObserver
(const char *aDomain
, nsIObserver
*aObserver
);
2724 uuid(bbf8cab0
-d43a
-11d3
-8cc2
-00609792278c
),
2727 interface nsIDirectoryServiceProvider
: nsISupports
2729 nsresult GetFile
(const char *prop
, bool
*persistent
, nsIFile
**_retval
);
2734 uuid(2f977d4b
-5485-11d4
-87e2
-0010a4e75ef2
),
2737 interface nsIDirectoryServiceProvider2
: nsIDirectoryServiceProvider
2739 nsresult GetFiles
(const char *prop
, nsISimpleEnumerator
**_retval
);
2744 uuid(a7aad716
-e72c
-435d
-82f1
-7582dffae661
),
2747 interface nsIProtocolHandler
: nsISupports
2749 const unsigned long URI_STD
= 0;
2750 const unsigned long URI_NORELATIVE
= (1<<0);
2751 const unsigned long URI_NOAUTH
= (1<<1);
2752 const unsigned long ALLOWS_PROXY
= (1<<2);
2753 const unsigned long ALLOWS_PROXY_HTTP
= (1<<3);
2754 const unsigned long URI_INHERITS_SECURITY_CONTEXT
= (1<<4);
2755 const unsigned long URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT
= (1<<5);
2756 const unsigned long URI_LOADABLE_BY_ANYONE
= (1<<6);
2757 const unsigned long URI_DANGEROUS_TO_LOAD
= (1<<7);
2758 const unsigned long URI_IS_UI_RESOURCE
= (1<<8);
2759 const unsigned long URI_IS_LOCAL_FILE
= (1<<9);
2760 const unsigned long URI_LOADABLE_BY_SUBSUMERS
= (1<<10);
2761 const unsigned long URI_DOES_NOT_RETURN_DATA
= (1<<11);
2762 const unsigned long URI_IS_LOCAL_RESOURCE
= (1<<12);
2763 const unsigned long URI_OPENING_EXECUTES_SCRIPT
= (1<<13);
2764 const unsigned long URI_NON_PERSISTABLE
= (1<<14);
2765 const unsigned long URI_FORBIDS_COOKIE_ACCESS
= (1<<15);
2766 const unsigned long URI_CROSS_ORIGIN_NEEDS_WEBAPPS_PERM
= (1<<16);
2767 const unsigned long URI_SYNC_LOAD_IS_OK
= (1<<17);
2768 const unsigned long URI_SAFE_TO_LOAD_IN_SECURE_CONTEXT
= (1<<18);
2770 nsresult GetScheme
(nsACString
*aScheme
);
2771 nsresult GetDefaultPort
(int32_t
*aDefaultPort
);
2772 nsresult GetProtocolFlags
(uint32_t
*aProtocolFlags
);
2773 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
,
2774 nsIURI
*aBaseURI
, nsIURI
**_retval
);
2775 nsresult NewChannel2
(nsIURI
*aURI
, nsILoadInfo
*aLoadinfo
, nsIChannel
**_retval
);
2776 nsresult NewChannel
(nsIURI
*aURI
, nsIChannel
**_retval
);
2777 nsresult AllowPort
(int32_t port
, const char *scheme
, bool
*_retval
);
2782 uuid(0e61f3b2
-34d7
-4c79
-bfdc
-4860bc7341b7
),
2785 interface nsIExternalProtocolHandler
: nsIProtocolHandler
2787 nsresult ExternalAppExistsForScheme
(const nsACString
*scheme
, bool
*_retval
);
2792 uuid(4286de5a
-b2ea
-446f
-8f70
-e2a461f42694
),
2795 interface nsIIOService
: nsISupports
2797 nsresult GetProtocolHandler
(const char *aScheme
, nsIProtocolHandler
**_retval
);
2798 nsresult GetProtocolFlags
(const char *aScheme
, uint32_t
*_retval
);
2799 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
2801 nsresult NewFileURI
(nsIFile
*aFile
, nsIURI
**_retval
);
2802 nsresult NewChannelFromURI2
(nsIURI
*aURI
, nsIDOMNode
*aLoadingNode
, nsIPrincipal
*aLoadingPrincipal
,
2803 nsIPrincipal
*aTriggeringPrincipal
, uint32_t aSecurityFlags
, uint32_t aContentPolicyType
,
2804 nsIChannel
**_retval
);
2805 nsresult NewChannelFromURIWithLoadInfo
(nsIURI
*aURI
, nsILoadInfo
*aLoadInfo
, nsIChannel
**_retval
);
2806 nsresult NewChannelFromURI
(nsIURI
*aURI
, nsIChannel
**_retval
);
2807 nsresult NewChannel2
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
2808 nsIDOMNode
*aLoadingNode
, nsIPrincipal
*aLoadingPrincipal
, nsIPrincipal
*aTriggeringPrincipal
,
2809 uint32_t aSecurityFlags
, uint32_t aContentPolicyType
, nsIChannel
**_retval
);
2810 nsresult NewChannel
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
2811 nsIChannel
**_retval
);
2812 nsresult GetOffline
(bool
*aOffline
);
2813 nsresult SetOffline
(bool aOffline
);
2814 nsresult GetConnectivity
(bool
*aConnectivity
);
2815 nsresult SetAppOffline
(uint32_t appId
, int32_t state
);
2816 nsresult IsAppOffline
(uint32_t appId
, bool
*_retval
);
2817 nsresult GetAppOfflineState
(uint32_t appId
, int32_t
*_retval
);
2818 nsresult AllowPort
(int32_t aPort
, const char *aScheme
, bool
*_retval
);
2819 nsresult ExtractScheme
(const nsACString
*urlString
, nsACString
*_retval
);
2820 nsresult NewLoadInfo
(nsIPrincipal
*aLoadingPrincipal
, nsIPrincipal
*aTriggeringPrincipal
,
2821 nsIDOMNode
*aLoadingNode
, uint32_t aSecurityFlags
, uint32_t aContentPolicyType
, nsILoadInfo
**_retval
);
2826 uuid(ca68c485
-9db3
-4c12
-82a6
-4fab7948e2d5
),
2829 interface nsINetUtil
: nsISupports
2831 nsresult ParseContentType
(const nsACString
*aTypeHeader
, nsACString
*aCharset
,
2832 bool
*aHadCharset
, nsACString
*_retval
);
2833 nsresult ProtocolHasFlags
(nsIURI
*aURI
, uint32_t aFlag
, bool
*_retval
);
2834 nsresult URIChainHasFlags
(nsIURI
*aURI
, uint32_t aFlags
, bool
*_retval
);
2835 nsresult ToImmutableURI
(nsIURI
*aURI
, nsIURI
**_retval
);
2836 nsresult NewSimpleNestedURI
(nsIURI
*aURI
, nsIURI
**_retval
);
2837 nsresult EscapeString
(const nsACString
*aString
, uint32_t aEscapeType
, nsACString
*_retval
);
2838 nsresult EscapeURL
(const nsACString
*aStr
, uint32_t aFlags
, nsACString
*_retval
);
2839 nsresult UnescapeString
(const nsACString
*aStr
, uint32_t aFlags
, nsACString
*_retval
);
2840 nsresult ExtractCharsetFromContentType
(const nsACString
*aTypeHeader
, nsACString
*aCharset
,
2841 int32_t
*aCharsetStart
, int32_t
*aCharsetEnd
, bool
*_retval
);
2846 uuid(9c5d3c58
-1dd1
-11b2
-a1c9
-f3699284657a
),
2849 interface nsIWebBrowserFocus
: nsISupports
2851 nsresult Activate
();
2852 nsresult Deactivate
();
2853 nsresult SetFocusAtFirstElement
();
2854 nsresult SetFocusAtLastElement
();
2855 nsresult GetFocusedWindow
(nsIDOMWindow
**aFocusedWindow
);
2856 nsresult SetFocusedWindow
(nsIDOMWindow
*aFocusedWindow
);
2857 nsresult GetFocusedElement
(nsIDOMElement
**aFocusedElement
);
2858 nsresult SetFocusedElement
(nsIDOMElement
*aFocusedElement
);
2863 uuid(e8c414c4
-dc38
-4ba3
-ab4e
-ec4cbbe22907
),
2866 interface nsIWebBrowserChrome
: nsISupports
2868 nsresult SetStatus
(uint32_t statusType
, const PRUnichar
*status
);
2869 nsresult GetWebBrowser
(nsIWebBrowser
**aWebBrowser
);
2870 nsresult SetWebBrowser
(nsIWebBrowser
*aWebBrowser
);
2871 nsresult GetChromeFlags
(uint32_t
*aChromeFlags
);
2872 nsresult SetChromeFlags
(uint32_t aChromeFlags
);
2873 nsresult DestroyBrowserWindow
();
2874 nsresult SizeBrowserTo
(int32_t aCX
, int32_t aCY
);
2875 nsresult ShowAsModal
();
2876 nsresult IsWindowModal
(bool
*_retval
);
2877 nsresult ExitModalEventLoop
(nsresult aStatus
);
2882 uuid(df31c120
-ded6
-11d1
-bd85
-00805f8ae3f4
),
2885 interface nsIDOMEventListener
: nsISupports
2887 nsresult HandleEvent
(nsIDOMEvent
*event
);
2892 uuid(9a78ac3c
-9507-4d00
-b2d6
-10b508d2ec31
),
2895 interface nsIDOMEventTarget
: nsISupports
2897 nsresult AddEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, bool useCapture
, bool wantsUntrusted
, uint8_t _argc
);
2898 nsresult AddSystemEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, bool aUseCapture
, bool aWantsUntrusted
, uint8_t _argc
);
2899 nsresult RemoveEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, bool useCapture
);
2900 nsresult RemoveSystemEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, bool aUseCapture
);
2901 nsresult DispatchEvent
(nsIDOMEvent
*evt
, bool
*_retval
);
2903 /* Followed by methods we should try to avoid using */
2908 uuid(02d54f52
-a1f5
-4ad2
-b560
-36f14012935e
),
2911 interface nsIDOMEvent
: nsISupports
2913 nsresult GetType
(nsAString
*aType
);
2914 nsresult GetTarget
(nsIDOMEventTarget
**aTarget
);
2915 nsresult GetCurrentTarget
(nsIDOMEventTarget
**aCurrentTarget
);
2916 nsresult GetEventPhase
(uint16_t
*aEventPhase
);
2917 nsresult GetBubbles
(bool
*aBubbles
);
2918 nsresult GetCancelable
(bool
*aCancelable
);
2919 nsresult GetTimeStamp
(DOMTimeStamp
*aTimeStamp
);
2920 nsresult StopPropagation
();
2921 nsresult PreventDefault
();
2922 nsresult InitEvent
(const nsAString
*eventTypeArg
, bool canBubbleArg
, bool cancelableArg
);
2923 nsresult GetDefaultPrevented
(bool
*aDefaultPrevented
);
2924 nsresult StopImmediatePropagation
();
2925 nsresult GetOriginalTarget
(nsIDOMEventTarget
**aOriginalTarget
);
2926 nsresult GetExplicitOriginalTarget
(nsIDOMEventTarget
* *aExplicitOriginalTarget
);
2927 nsresult GetPreventDefault
(bool
*_retval
);
2928 nsresult GetIsTrusted
(bool
*aIsTrusted
);
2929 nsresult DuplicatePrivateData
();
2930 nsresult SetTarget
(nsIDOMEventTarget
*aTarget
);
2931 bool IsDispatchStopped
();
2932 /*nsEvent*/ void *GetInternalNSEvent
();
2933 void SetTrusted
(bool aTrusted
);
2934 void Serialize
(/*IPC::Message*/ void *aMsg
, bool aSerializeInterfaceType
);
2935 bool Deserialize
(const /*IPC::Message*/ void *aMsg
, void **aIter
);
2936 void SetOwner
(void /*mozilla::dom::EventTarget*/ *aOwner
);
2937 void /*nsDOMEvent*/ *InternalDOMEvent
();
2942 uuid(1a75c351
-d115
-4d51
-94df
-731dd1723a1f
),
2945 interface nsIDOMWindowUtils
: nsISupports
2947 nsresult GetImageAnimationMode
(uint16_t
*aImageAnimationMode
);
2948 nsresult SetImageAnimationMode
(uint16_t aImageAnimationMode
);
2949 nsresult GetDocCharsetIsForced
(bool
*aDocCharsetIsForced
);
2950 nsresult GetCursorType
(int16_t
*_retval
);
2951 nsresult GetDocumentMetadata
(const nsAString
*aName
, nsAString
*_retval
);
2952 nsresult Redraw
(uint32_t aCount
, uint32_t
*_retval
);
2953 nsresult UpdateLayerTree
();
2954 nsresult SetCSSViewport
(float aWidthPx
, float aHeightPx
);
2955 nsresult GetViewportInfo
(uint32_t aDisplayWidth
, uint32_t aDisplayHeight
, double *aDefaultZoom
, bool
*aAllowZoom
,
2956 double *aMinZoom
, double *aMaxZoom
, uint32_t
*aWidth
, uint32_t
*aHeight
, bool
*aAutoSize
);
2957 nsresult SetDisplayPortForElement
(float aXPx
, float aYPx
, float aWidthPx
, float aHeightPx
,
2958 nsIDOMElement
*aElement
, uint32_t aPriority
);
2959 nsresult SetDisplayPortMarginsForElement
(float aLeftMargin
, float aTopMargin
, float aRightMargin
, float aBottomMargin
,
2960 uint32_t aAlignmentX
, uint32_t aAlignmentY
, nsIDOMElement
*aElement
, uint32_t aPriority
);
2961 nsresult SetDisplayPortBaseForElement
(int32_t aX
, int32_t aY
, int32_t aWidth
, int32_t aHeight
, nsIDOMElement
*aElement
);
2962 nsresult SetResolution
(float aResolution
);
2963 nsresult GetResolution
(float *aResolution
);
2964 nsresult SetResolutionAndScaleTo
(float aResolution
);
2965 nsresult GetIsResolutionSet
(bool
*aIsResolutionSet
);
2966 nsresult GetIsFirstPaint
(bool
*aIsFirstPaint
);
2967 nsresult SetIsFirstPaint
(bool aIsFirstPaint
);
2968 nsresult GetPresShellId
(uint32_t
*aPresShellId
);
2969 nsresult SendMouseEvent
(const nsAString
*aType
, float aX
, float aY
, int32_t aButton
, int32_t aClickCount
,
2970 int32_t aModifiers
, bool aIgnoreRootScrollFrame
, float aPressure
, uint16_t aInputSourceArg
, bool aIsSynthesized
,
2971 uint8_t _argc
, bool
*_retval
);
2972 nsresult SendPointerEvent
(const nsAString
*aType
, float aX
, float aY
, int32_t aButton
, int32_t aClickCount
,
2973 int32_t aModifiers
, bool aIgnoreRootScrollFrame
, float aPressure
, uint16_t aInputSourceArg
, int32_t aPointerId
,
2974 int32_t aWidth
, int32_t aHeight
, int32_t tiltX
, int32_t tiltY
, bool aIsPrimary
, bool aIsSynthesized
,
2975 uint8_t _argc
, bool
*_retval
);
2976 nsresult SendTouchEvent
(const nsAString
*aType
, uint32_t
*aIdentifiers
, int32_t
*aXs
, int32_t
*aYs
,
2977 uint32_t
*aRxs
, uint32_t
*aRys
, float *aRotationAngles
, float *aForces
, uint32_t count
, int32_t aModifiers
,
2978 bool aIgnoreRootScrollFrame
, bool
*_retval
);
2979 nsresult SendMouseEventToWindow
(const nsAString
*aType
, float aX
, float aY
, int32_t aButton
, int32_t aClickCount
,
2980 int32_t aModifiers
, bool aIgnoreRootScrollFrame
, float aPressure
, uint16_t aInputSourceArg
, bool aIsSynthesized
,
2982 nsresult SendPointerEventToWindow
(const nsAString
*aType
, float aX
, float aY
, int32_t aButton
, int32_t aClickCount
,
2983 int32_t aModifiers
, bool aIgnoreRootScrollFrame
, float aPressure
, uint16_t aInputSourceArg
, int32_t aPointerId
,
2984 int32_t aWidth
, int32_t aHeight
, int32_t aTiltX
, int32_t aTiltY
, bool aIsPrimary
, bool aIsSynthesized
, uint8_t _argc
);
2985 nsresult SendTouchEventToWindow
(const nsAString
*aType
, uint32_t
*aIdentifiers
, int32_t
*aXs
, int32_t
*aYs
, uint32_t
*aRxs
,
2986 uint32_t
*aRys
, float *aRotationAngles
, float *aForces
, uint32_t count
, int32_t aModifiers
,
2987 bool aIgnoreRootScrollFrame
, bool
*_retval
);
2988 nsresult SendWheelEvent
(float aX
, float aY
, double aDeltaX
, double aDeltaY
, double aDeltaZ
, uint32_t aDeltaMode
,
2989 int32_t aModifiers
, int32_t aLineOrPageDeltaX
, int32_t aLineOrPageDeltaY
, uint32_t aOptions
);
2990 nsresult SendKeyEvent
(const nsAString
*aType
, int32_t aKeyCode
, int32_t aCharCode
, int32_t aModifiers
,
2991 uint32_t aAdditionalFlags
, bool
*_retval
);
2992 nsresult SendNativeKeyEvent
(int32_t aNativeKeyboardLayout
, int32_t aNativeKeyCode
, int32_t aModifierFlags
,
2993 const nsAString
*aCharacters
, const nsAString
*aUnmodifiedCharacters
, nsIObserver
*aObserver
);
2994 nsresult SendNativeMouseEvent
(int32_t aScreenX
, int32_t aScreenY
, int32_t aNativeMessage
, int32_t aModifierFlags
,
2995 nsIDOMElement
*aElement
, nsIObserver
*aObserver
);
2996 nsresult SendNativeMouseScrollEvent
(int32_t aScreenX
, int32_t aScreenY
, uint32_t aNativeMessage
, double aDeltaX
,
2997 double aDeltaY
, double aDeltaZ
, uint32_t aModifierFlags
, uint32_t aAdditionalFlags
, nsIDOMElement
*aElement
,
2998 nsIObserver
*aObserver
);
2999 nsresult SendNativeTouchPoint
(uint32_t aPointerId
, uint32_t aTouchState
, int32_t aScreenX
, int32_t aScreenY
,
3000 double aPressure
, uint32_t aOrientation
, nsIObserver
*aObserver
);
3001 nsresult SendNativeTouchTap
(int32_t aScreenX
, int32_t aScreenY
, bool aLongTap
, nsIObserver
*aObserver
);
3002 nsresult ClearNativeTouchSequence
(nsIObserver
*aObserver
);
3003 nsresult ActivateNativeMenuItemAt
(const nsAString
*indexString
);
3004 nsresult ForceUpdateNativeMenuAt
(const nsAString
*indexString
);
3005 nsresult Focus
(nsIDOMElement
*aElement
);
3006 nsresult GarbageCollect
(nsICycleCollectorListener
*aListener
, int32_t aExtraForgetSkippableCalls
);
3007 nsresult CycleCollect
(nsICycleCollectorListener
*aListener
, int32_t aExtraForgetSkippableCalls
);
3008 nsresult RunNextCollectorTimer
();
3009 nsresult SendSimpleGestureEvent
(const nsAString
*aType
, float aX
, float aY
, uint32_t aDirection
, double aDelta
,
3010 int32_t aModifiers
, uint32_t aClickCount
);
3011 nsresult ElementFromPoint
(float aX
, float aY
, bool aIgnoreRootScrollFrame
, bool aFlushLayout
, nsIDOMElement
**_retval
);
3012 nsresult NodesFromRect
(float aX
, float aY
, float aTopSize
, float aRightSize
, float aBottomSize
, float aLeftSize
,
3013 bool aIgnoreRootScrollFrame
, bool aFlushLayout
, nsIDOMNodeList
**_retval
);
3014 nsresult GetTranslationNodes
(nsIDOMNode
*aRoot
, int /*nsITranslationNodeList*/ **_retval
);
3015 nsresult CompareCanvases
(nsIDOMHTMLCanvasElement
*aCanvas1
, nsIDOMHTMLCanvasElement
*aCanvas2
,
3016 uint32_t
*aMaxDifference
, uint32_t
*_retval
);
3017 nsresult GetIsMozAfterPaintPending
(bool
*aIsMozAfterPaintPending
);
3018 nsresult SuppressEventHandling
(bool aSuppress
);
3019 nsresult ClearMozAfterPaintEvents
();
3020 nsresult DisableNonTestMouseEvents
(bool aDisable
);
3021 nsresult GetScrollXY
(bool aFlushLayout
, int32_t
*aScrollX
, int32_t
*aScrollY
);
3022 nsresult GetScrollXYFloat
(bool aFlushLayout
, float *aScrollX
, float *aScrollY
);
3023 nsresult GetScrollbarSize
(bool aFlushLayout
, int32_t
*aWidth
, int32_t
*aHeight
);
3024 nsresult GetBoundsWithoutFlushing
(nsIDOMElement
*aElement
, nsIDOMClientRect
**_retval
);
3025 nsresult GetRootBounds
(nsIDOMClientRect
**_retval
);
3026 nsresult GetIMEIsOpen
(bool
*aIMEIsOpen
);
3027 nsresult GetIMEStatus
(uint32_t
*aIMEStatus
);
3028 nsresult GetScreenPixelsPerCSSPixel
(float *aScreenPixelsPerCSSPixel
);
3029 nsresult GetFullZoom
(float *aFullZoom
);
3030 nsresult DispatchDOMEventViaPresShell
(nsIDOMNode
*aTarget
, nsIDOMEvent
*aEvent
, bool aTrusted
, bool
*_retval
);
3031 nsresult DispatchEventToChromeOnly
(nsIDOMEventTarget
*aTarget
, nsIDOMEvent
*aEvent
, bool
*_retval
);
3032 nsresult GetClassName
(const /*JS::Value*/ void *aObject
, JSContext
*cx
, char **_retval
);
3033 nsresult SendContentCommandEvent
(const nsAString
*aType
, nsITransferable
*aTransferable
);
3034 nsresult SendQueryContentEvent
(uint32_t aType
, uint32_t aOffset
, uint32_t aLength
, int32_t aX
, int32_t aY
,
3035 uint32_t aAdditionalFlags
, nsIQueryContentEventResult
**_retval
);
3036 nsresult RemoteFrameFullscreenChanged
(nsIDOMElement
*aFrameElement
, const nsAString
*aNewOrigin
);
3037 nsresult RemoteFrameFullscreenReverted
();
3038 nsresult ExitFullscreen
();
3039 nsresult SendSelectionSetEvent
(uint32_t aOffset
, uint32_t aLength
, uint32_t aAdditionalFlags
, bool
*_retval
);
3040 nsresult SelectAtPoint
(float aX
, float aY
, uint32_t aSelectBehavior
, bool
*_retval
);
3041 nsresult GetVisitedDependentComputedStyle
(nsIDOMElement
*aElement
, const nsAString
*aPseudoElement
,
3042 const nsAString
*aPropertyName
, nsAString
*_retval
);
3043 nsresult GetOuterWindowID
(uint64_t
*aOuterWindowID
);
3044 nsresult GetCurrentInnerWindowID
(uint64_t
*aCurrentInnerWindowID
);
3045 nsresult EnterModalState
();
3046 nsresult LeaveModalState
();
3047 nsresult IsInModalState
(bool
*_retval
);
3048 nsresult SetDesktopModeViewport
(bool aDesktopModeViewport
);
3049 nsresult SuspendTimeouts
();
3050 nsresult ResumeTimeouts
();
3051 nsresult GetLayerManagerType
(nsAString
*aLayerManagerType
);
3052 nsresult GetLayerManagerRemote
(bool
*aLayerManagerRemote
);
3053 nsresult GetSupportsHardwareH264Decoding
(bool
*aSupportsHardwareH264Decoding
);
3054 nsresult StartFrameTimeRecording
(uint32_t
*startIndex
);
3055 nsresult StopFrameTimeRecording
(uint32_t startIndex
, uint32_t
*frameCount
, float **frameIntervals
);
3056 nsresult BeginTabSwitch
();
3057 nsresult GetDisplayDPI
(float *aDisplayDPI
);
3058 nsresult GetOuterWindowWithId
(uint64_t aOuterWindowID
, nsIDOMWindow
**_retval
);
3059 nsresult GetContainerElement
(nsIDOMElement
**aContainerElement
);
3060 nsresult RenderDocument
(const void /*nsRect*/ *aRect
, uint32_t aFlags
, int /*nscolor*/ aBackgroundColor
,
3061 void /*gfxContext*/ *aThebesContext
);
3062 nsresult AdvanceTimeAndRefresh
(int64_t aMilliseconds
);
3063 nsresult RestoreNormalRefresh
();
3064 nsresult GetIsTestControllingRefreshes
(bool
*aIsTestControllingRefreshes
);
3065 nsresult SetAsyncScrollOffset
(nsIDOMNode
*aNode
, int32_t aX
, int32_t aY
);
3066 nsresult ComputeAnimationDistance
(nsIDOMElement
*element
, const nsAString
*property
, const nsAString
*value1
,
3067 const nsAString
*value2
, double *_retval
);
3068 nsresult WrapDOMFile
(nsIFile
*aFile
, nsIDOMFile
**_retval
);
3069 nsresult GetFocusedInputType
(char **aFocusedInputType
);
3070 nsresult FindElementWithViewId
(long /*nsViewID*/ aId
, nsIDOMElement
**_retval
);
3071 nsresult GetViewId
(nsIDOMElement
*aElement
, long /*nsViewID*/ *_retval
);
3072 nsresult LeafLayersPartitionWindow
(bool
*_retval
);
3073 nsresult CheckAndClearPaintedState
(nsIDOMElement
*aElement
, bool
*_retval
);
3074 nsresult IsPartOfOpaqueLayer
(nsIDOMElement
*aElement
, bool
*_retval
);
3075 nsresult NumberOfAssignedPaintedLayers
(nsIDOMElement
**aElements
, uint32_t count
, uint32_t
*_retval
);
3076 nsresult GetFileId
(const /*JS::Value*/ void *aFile
, JSContext
*cx
, int64_t
*_retval
);
3077 nsresult GetFilePath
(void /*JS::HandleValue*/ *aFile
, JSContext
*cx
, nsAString
*_retval
);
3078 nsresult GetFileReferences
(const nsAString
*aDatabaseName
, int64_t aId
, void /*JS::HandleValue*/ *aOptions
,
3079 int32_t
*aRefCnt
, int32_t
*aDBRefCnt
, int32_t
*aSliceRefCnt
, JSContext
* cx
, bool
*_retval
);
3080 nsresult IsIncrementalGCEnabled
(JSContext
*cx
, bool
*_retval
);
3081 nsresult StartPCCountProfiling
(JSContext
*cx
);
3082 nsresult StopPCCountProfiling
(JSContext
*cx
);
3083 nsresult PurgePCCounts
(JSContext
*cx
);
3084 nsresult GetPCCountScriptCount
(JSContext
*cx
, int32_t
*_retval
);
3085 nsresult GetPCCountScriptSummary
(int32_t script
, JSContext
*cx
, nsAString
*_retval
);
3086 nsresult GetPCCountScriptContents
(int32_t script
, JSContext
*cx
, nsAString
*_retval
);
3087 nsresult GetPaintingSuppressed
(bool
*aPaintingSuppressed
);
3088 nsresult GetPlugins
(JSContext
*cx
, /*JS::Value*/ void *aPlugins
);
3089 nsresult SetScrollPositionClampingScrollPortSize
(float aWidth
, float aHeight
);
3090 nsresult SetContentDocumentFixedPositionMargins
(float aTop
, float aRight
, float aBottom
, float aLeft
);
3091 nsresult DisableDialogs
();
3092 nsresult EnableDialogs
();
3093 nsresult AreDialogsEnabled
(bool
*_retval
);
3094 nsresult LoadSheet
(nsIURI
*sheetURI
, uint32_t type
);
3095 nsresult LoadSheetUsingURIString
(const nsACString
*sheetURI
, uint32_t type
);
3096 nsresult AddSheet
(nsIDOMStyleSheet
*sheet
, uint32_t type
);
3097 nsresult RemoveSheet
(nsIURI
*sheetURI
, uint32_t type
);
3098 nsresult RemoveSheetUsingURIString
(const nsACString
*sheetURI
, uint32_t type
);
3099 nsresult GetIsHandlingUserInput
(bool
*aIsHandlingUserInput
);
3100 nsresult AllowScriptsToClose
();
3101 nsresult GetIsParentWindowMainWidgetVisible
(bool
*aIsParentWindowMainWidgetVisible
);
3102 nsresult IsNodeDisabledForEvents
(nsIDOMNode
*aNode
, bool
*_retval
);
3103 nsresult GetPaintFlashing
(bool
*aPaintFlashing
);
3104 nsresult SetPaintFlashing
(bool aPaintFlashing
);
3105 nsresult RunInStableState
(nsIRunnable
*runnable
);
3106 nsresult RunBeforeNextEvent
(nsIRunnable
*runnable
);
3107 nsresult GetOMTAStyle
(nsIDOMElement
*aElement
, const nsAString
*aProperty
, nsAString
*_retval
);
3108 nsresult RequestCompositorProperty
(const nsAString
*aProperty
, float *_retval
);
3109 nsresult SetHandlingUserInput
(bool aHandlingInput
, void /*nsIJSRAIIHelper*/ **_retval
);
3110 nsresult GetContentAPZTestData
(JSContext
*cx
, int /*JS::MutableHandleValue*/ _retval
);
3111 nsresult GetCompositorAPZTestData
(JSContext
*cx
, void /*JS::MutableHandleValue*/ *_retval
);
3112 nsresult PostRestyleSelfEvent
(nsIDOMElement
*aElement
);
3113 nsresult GetAudioMuted
(bool
*aAudioMuted
) ;
3114 nsresult SetAudioMuted
(bool aAudioMuted
);
3115 nsresult GetAudioVolume
(float *aAudioVolume
);
3116 nsresult SetAudioVolume
(float aAudioVolume
);
3117 nsresult XpconnectArgument
(nsIDOMWindowUtils
*aThis
);
3118 nsresult AskPermission
(void /*nsIContentPermissionRequest*/ *aRequest
);
3119 nsresult GetFramesConstructed
(uint64_t
*aFramesConstructed
);
3120 nsresult GetFramesReflowed
(uint64_t
*aFramesReflowed
);
3121 nsresult SetChromeMargin
(int32_t aTop
, int32_t aRight
, int32_t aBottom
, int32_t aLeft
);
3122 nsresult GetServiceWorkersTestingEnabled
(bool
*aServiceWorkersTestingEnabled
);
3123 nsresult SetServiceWorkersTestingEnabled
(bool aServiceWorkersTestingEnabled
);
3126 cpp_quote
("#define CONTEXT_NONE 0x00")
3127 cpp_quote
("#define CONTEXT_LINK 0x01")
3128 cpp_quote
("#define CONTEXT_IMAGE 0x02")
3129 cpp_quote
("#define CONTEXT_DOCUMENT 0x04")
3130 cpp_quote
("#define CONTEXT_TEXT 0x08")
3131 cpp_quote
("#define CONTEXT_INPUT 0x10")
3132 cpp_quote
("#define CONTEXT_BACKGROUND_IMAGE 0x20")
3136 uuid(3478b6b0
-3875-11d4
-94ef
-0020183bf181
),
3139 interface nsIContextMenuListener
: nsISupports
3141 nsresult OnShowContextMenu
(uint32_t aContextFlags
, nsIDOMEvent
*aEvent
, nsIDOMNode
*aNode
);
3146 uuid(d73852f8
-7bd6
-477d
-8233-117dbf83860b
),
3149 interface nsIDOMUIEvent
: nsIDOMEvent
3151 nsresult GetView
(nsIDOMWindow
**aView
);
3152 nsresult GetDetail
(int32_t
*aDetail
);
3153 nsresult InitUIEvent
(const nsAString
*typeArg
, bool canBubbleArg
, bool cancelableArg
,
3154 nsIDOMWindow
*viewArg
, int32_t detailArg
);
3155 nsresult GetLayerX
(int32_t
*aLayerX
);
3156 nsresult GetLayerY
(int32_t
*aLayerY
);
3157 nsresult GetPageX
(int32_t
*aPageX
);
3158 nsresult GetPageY
(int32_t
*aPageY
);
3159 nsresult GetWhich
(uint32_t
*aWhich
);
3160 nsresult GetRangeParent
(nsIDOMNode
**aRangeParent
);
3161 nsresult GetRangeOffset
(int32_t
*aRangeOffset
);
3162 nsresult GetCancelBubble
(bool
*aCancelBubble
);
3163 nsresult SetCancelBubble
(bool aCancelBubble
);
3164 nsresult GetIsChar
(bool
*aIsChar
);
3169 uuid(df068636
-9a5b
-11e3
-b71f
-2c27d728e7f9
),
3172 interface nsIDOMMouseEvent
: nsIDOMUIEvent
3174 nsresult GetScreenX
(int32_t
*aScreenX
);
3175 nsresult GetScreenY
(int32_t
*aScreenY
);
3176 nsresult GetMozMovementX
(int32_t
*aMozMovementX
);
3177 nsresult GetMozMovementY
(int32_t
*aMozMovementY
);
3178 nsresult GetClientX
(int32_t
*aClientX
);
3179 nsresult GetClientY
(int32_t
*aClientY
);
3180 nsresult GetCtrlKey
(bool
*aCtrlKey
);
3181 nsresult GetShiftKey
(bool
*aShiftKey
);
3182 nsresult GetAltKey
(bool
*aAltKey
);
3183 nsresult GetMetaKey
(bool
*aMetaKey
);
3184 nsresult GetButton
(int16_t
*aButton
);
3185 nsresult GetButtons
(uint16_t
*aButtons
);
3186 nsresult GetRelatedTarget
(nsIDOMEventTarget
**aRelatedTarget
);
3187 nsresult InitMouseEvent
(const nsAString
*typeArg
, bool canBubbleArg
, bool cancelableArg
,
3188 nsIDOMWindow
*viewArg
, int32_t detailArg
, int32_t screenXArg
, int32_t screenYArg
,
3189 int32_t clientXArg
, int32_t clientYArg
, bool ctrlKeyArg
, bool altKeyArg
,
3190 bool shiftKeyArg
, bool metaKeyArg
, uint16_t buttonArg
,
3191 nsIDOMEventTarget
*relatedTargetArg
);
3192 nsresult GetMozPressure
(float *aMozPressure
);
3193 nsresult GetMozInputSource
(uint16_t
*aMozInputSource
);
3194 nsresult InitNSMouseEvent
(const nsAString
*typeArg
, bool canBubbleArg
, bool cancelableArg
,
3195 nsIDOMWindow
*viewArg
, int32_t detailArg
, int32_t screenXArg
, int32_t screenYArg
,
3196 int32_t clientXArg
, int32_t clientYArg
, bool ctrlKeyArg
, bool altKeyArg
, bool shiftKeyArg
,
3197 bool metaKeyArg
, uint16_t buttonArg
, nsIDOMEventTarget
*relatedTargetArg
, float pressure
,
3198 uint16_t inputSourceArg
);
3199 nsresult GetModifierState
(const nsAString
*keyArg
, bool
*_retval
);
3204 uuid(d2b3e35f
-8627-4732-a92d
-cda54c8f8054
),
3207 interface nsIDOMKeyEvent
: nsIDOMUIEvent
3209 nsresult GetCharCode
(uint32_t
*aCharCode
);
3210 nsresult GetKeyCode
(uint32_t
*aKeyCode
);
3211 nsresult GetAltKey
(bool
*aAltKey
);
3212 nsresult GetCtrlKey
(bool
*aCtrlKey
);
3213 nsresult GetShiftKey
(bool
*aShiftKey
);
3214 nsresult GetMetaKey
(bool
*aMetaKey
);
3215 nsresult InitKeyEvent
(const nsAString
*typeArg
, bool canBubbleArg
,
3216 bool cancelableArg
, nsIDOMWindow
*viewArg
, bool ctrlKeyArg
,
3217 bool altKeyArg
, bool shiftKeyArg
, bool metaKeyArg
, uint32_t keyCodeArg
,
3218 uint32_t charCodeArg
);
3219 nsresult GetModifierState
(const nsAString
*keyArg
, bool
*_retval
);
3220 nsresult GetLocation
(uint32_t
*aLocation
);
3221 nsresult GetRepeat
(bool
*aRepeat
);
3222 nsresult GetKey
(nsAString
*aKey
);
3227 uuid(0b976267
-4aaa
-4f36
-a2d4
-27b5ca8d73bb
),
3230 interface nsIEmbeddingSiteWindow
: nsISupports
3232 nsresult SetDimensions
(uint32_t flags
, int32_t x
, int32_t y
, int32_t cx
, int32_t cy
);
3233 nsresult GetDimensions
(uint32_t flags
, int32_t
*x
, int32_t
*y
, int32_t
*cx
, int32_t
*cy
);
3234 nsresult SetFocus
();
3235 nsresult GetVisibility
(bool
*aVisibility
);
3236 nsresult SetVisibility
(bool aVisibility
);
3237 nsresult GetTitle
(PRUnichar
**aTitle
);
3238 nsresult SetTitle
(const PRUnichar
*aTitle
);
3239 nsresult GetSiteWindow
(void **aSiteWindow
);
3245 uuid(2417cbfe
-65ad
-48a6
-b4b6
-eb84db174392
),
3248 interface nsIComponentRegistrar
: nsISupports
3250 nsresult AutoRegister
(nsIFile
*aSpec
);
3251 nsresult AutoUnregister
(nsIFile
*aSpec
);
3252 nsresult RegisterFactory
(const nsCID
*aClass
, const char *aClassName
,
3253 const char *aContractID
, nsIFactory
*aFactory
);
3254 nsresult UnregisterFactory
(const nsCID
*aClass
, nsIFactory
*aFactory
);
3255 nsresult RegisterFactoryLocation
(const nsCID
*aClass
, const char *aClassName
,
3256 const char *aContractID
, nsIFile
*aFile
, const char *aLoaderStr
,
3258 nsresult UnregisterFactoryLocation
(const nsCID
*aClass
, nsIFile
*aFile
);
3259 nsresult IsCIDRegistered
(const nsCID
*aClass
, bool
*_retval
);
3260 nsresult IsContractIDRegistered
(const char *aContractID
, bool
*_retval
);
3261 nsresult EnumerateCIDs
(nsISimpleEnumerator
**_retval
);
3262 nsresult EnumerateContractIDs
(nsISimpleEnumerator
**_retval
);
3263 nsresult CIDToContractID
(const nsCID
*aClass
, char **_retval
);
3264 nsresult ContractIDToCID
(const char *aContractID
, nsCID
**_retval
);
3269 uuid(1630c61a
-325e-49ca
-8759-a31b16c47aa5
),
3272 interface nsIPromptService
: nsISupports
3274 nsresult Alert
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
3275 const PRUnichar
*aText
);
3276 nsresult AlertCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
3277 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, bool
*aCheckState
);
3278 nsresult Confirm
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
3279 const PRUnichar
*aText
, bool
*_retval
);
3280 nsresult ConfirmCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
3281 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, bool
*aCheckState
,
3283 nsresult ConfirmEx
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
3284 const PRUnichar
*aText
, uint32_t aButtonFlags
, const PRUnichar
*aButton0Title
,
3285 const PRUnichar
*aButton1Title
, const PRUnichar
*aButton2Title
,
3286 const PRUnichar
*aCheckMsg
, bool
*aCheckState
, int32_t
*_retval
);
3287 nsresult Prompt
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
3288 const PRUnichar
*aText
, PRUnichar
**aValue
, const PRUnichar
*aCheckMsg
,
3289 bool
*aCheckState
, bool
*_retval
);
3290 nsresult PromptUsernameAndPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
3291 const PRUnichar
*aText
, PRUnichar
**aUsername
, PRUnichar
**aPassword
,
3292 const PRUnichar
*aCheckMsg
, bool
*aCheckState
, bool
*_retval
);
3293 nsresult PromptPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
3294 const PRUnichar
*aText
, PRUnichar
**aPassword
, const PRUnichar
*aCheckMsg
,
3295 bool
*aCheckState
, bool
*_retval
);
3296 nsresult Select
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
3297 const PRUnichar
*aText
, uint32_t aCount
, const PRUnichar
**aSelectList
,
3298 int32_t
*aOutSelection
, bool
*_retval
);
3303 uuid(b128a1e6
-44f3
-4331-8fbe
-5af360ff21ee
),
3306 interface nsITooltipTextProvider
: nsISupports
3308 nsresult GetNodeText
(nsIDOMNode
*aNode
, PRUnichar
**aText
, bool
*_retval
);
3313 uuid(24f3f4da
-18a4
-448d
-876d
-7360fefac029
),
3316 interface nsIEditingSession
: nsISupports
3318 nsresult GetEditorStatus
(uint32_t
*aEditorStatus
);
3319 nsresult MakeWindowEditable
(nsIDOMWindow
*window
, const char *aEditorType
,
3320 bool doAfterUriLoad
, bool aMakeWholeDocumentEditable
, bool aInteractive
);
3321 nsresult WindowIsEditable
(nsIDOMWindow
*window
, bool
*_retval
);
3322 nsresult GetEditorForWindow
(nsIDOMWindow
*window
, nsIEditor
**_retval
);
3323 nsresult SetupEditorOnWindow
(nsIDOMWindow
*window
);
3324 nsresult TearDownEditorOnWindow
(nsIDOMWindow
*window
);
3325 nsresult SetEditorOnControllers
(nsIDOMWindow
*aWindow
, nsIEditor
*aEditor
);
3326 nsresult DisableJSAndPlugins
(nsIDOMWindow
*aWindow
);
3327 nsresult RestoreJSAndPlugins
(nsIDOMWindow
*aWindow
);
3328 nsresult DetachFromWindow
(nsIDOMWindow
*aWindow
);
3329 nsresult ReattachToWindow
(nsIDOMWindow
*aWindow
);
3330 nsresult GetJsAndPluginsDisabled
(bool
*aJsAndPluginsDisabled
);
3335 uuid(b1fdf3c4
-74e3
-4f7d
-a14d
-2b76bcf53482
),
3338 interface nsICommandParams
: nsISupports
3340 nsresult GetValueType
(const char *name
, int16_t
*_retval
);
3341 nsresult GetBooleanValue
(const char *name
, bool
*_retval
);
3342 nsresult GetLongValue
(const char *name
, int32_t
*_retval
);
3343 nsresult GetDoubleValue
(const char *name
, double *_retval
);
3344 nsresult GetStringValue
(const char *name
, nsAString
*_retval
);
3345 nsresult GetCStringValue
(const char *name
, char **_retval
);
3346 nsresult GetISupportsValue
(const char *name
, nsISupports
**_retval
);
3347 nsresult SetBooleanValue
(const char *name
, bool value
);
3348 nsresult SetLongValue
(const char *name
, int32_t value
);
3349 nsresult SetDoubleValue
(const char *name
, double value
);
3350 nsresult SetStringValue
(const char *name
, const nsAString
*value
);
3351 nsresult SetCStringValue
(const char *name
, const char *value
);
3352 nsresult SetISupportsValue
(const char *name
, nsISupports
*value
);
3353 nsresult RemoveValue
(const char *name
);
3358 uuid(080d2001
-f91e
-11d4
-a73c
-f9242928207c
),
3361 interface nsICommandManager
: nsISupports
3363 nsresult AddCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandToObserve
);
3364 nsresult RemoveCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandObserved
);
3365 nsresult IsCommandSupported
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, bool
*_retval
);
3366 nsresult IsCommandEnabled
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, bool
*_retval
);
3367 nsresult GetCommandState
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
,
3368 nsICommandParams
*aCommandParams
);
3369 nsresult DoCommand
(const char *aCommandName
, nsICommandParams
*aCommandParams
,
3370 nsIDOMWindow
*aTargetWindow
);
3375 uuid(3275b2cd
-af6d
-429a
-80d7
-f0c5120342ac
),
3378 interface nsICategoryManager
: nsISupports
3380 nsresult GetCategoryEntry
(const char *aCategory
, const char *aEntry
, char **_retval
);
3381 nsresult AddCategoryEntry
(const char *aCategory
, const char *aEntry
, const char *aValue
, bool aPersist
,
3382 bool aReplace
, char **_retval
);
3383 nsresult DeleteCategoryEntry
(const char *aCategory
, const char *aEntry
, bool aPersist
);
3384 nsresult DeleteCategory
(const char *aCategory
);
3385 nsresult EnumerateCategory
(const char *aCategory
, nsISimpleEnumerator
**_retval
);
3386 nsresult EnumerateCategories
(nsISimpleEnumerator
**_retval
);
3391 uuid(47b82b60
-a36f
-4167-8072-6f421151ed50
),
3394 interface nsIControllerContext
: nsISupports
3396 nsresult Init
(nsIControllerCommandTable
*aCommandTable
);
3397 nsresult SetCommandContext
(nsISupports
*aCommandContext
);
3402 uuid(d5b61b82
-1da4
-11d3
-bf87
-00105a1b0627
),
3405 interface nsIController
: nsISupports
3407 nsresult IsCommandEnabled
(const char *command
, bool
*_retval
);
3408 nsresult SupportsCommand
(const char *command
, bool
*_retval
);
3409 nsresult DoCommand
(const char *command
);
3410 nsresult OnEvent
(const char *eventName
);
3415 uuid(70f7e9ea
-a9bf
-48cc
-ad9d
-8acaeed29b68
),
3418 interface nsIContent
: nsISupports
3420 /* This is not a real interface declaration. It's too internal for us. */
3425 uuid(0b78eabe
-8b94
-4ea1
-9331-5d48e83ada95
),
3428 interface nsIDocument
: nsISupports
3430 /* This is not a real interface declaration. It's too internal for us. */
3435 uuid(b1ee32f2
-b8c4
-49b9
-93df
-b6fab5d54688
),
3438 interface nsIContentSerializer
: nsISupports
3440 nsresult Init
(uint32_t flags
, uint32_t aWrapColumn
, const char *aCharSet
, bool aIsCopying
,
3441 bool aIsWholeDocument
);
3442 nsresult AppendText
(nsIContent
*aText
, int32_t aStartOffset
, int32_t aEndOffset
, nsAString
*aStr
);
3443 nsresult AppendCDATASection
(nsIContent
*aCDATASection
, int32_t aStartOffset
,
3444 int32_t aEndOffset
, nsAString
*aStr
);
3445 nsresult AppendProcessingInstruction
(nsIContent
*aPI
, int32_t aStartOffset
,
3446 int32_t aEndOffset
, nsAString
*aStr
);
3447 nsresult AppendComment
(nsIContent
*aComment
, int32_t aStartOffset
, int32_t aEndOffset
,
3449 nsresult AppendDoctype
(nsIContent
*aDoctype
, nsAString
*aStr
);
3450 nsresult AppendElementStart
(nsIContent
*aElement
, nsIContent
*aOriginalElement
,
3452 nsresult AppendElementEnd
(nsIContent
*aElement
, nsAString
*aStr
);
3453 nsresult Flush
(nsAString
*aStr
);
3454 nsresult AppendDocumentStart
(nsIDocument
*aDocument
, nsAString
*aStr
);
3459 uuid(094be624
-f0bf
-400f
-89e2
-6a84baab9474
),
3462 interface nsIEditor
: nsISupports
3464 nsresult GetSelection
([out] nsISelection
*_retval
);
3465 nsresult FinalizeSelection
();
3466 nsresult Init
([in] nsIDOMDocument
*doc
, nsIContent
*aRoot
, nsISelectionController
*aSelCon
, uint32_t aFlags
, nsAString
*initialValue
);
3467 nsresult SetAttributeOrEquivalent
([in] nsIDOMElement
*element
, [in] const nsAString
*sourceAttrName
, [in] const nsAString
*sourceAttrValue
, [in] bool aSuppressTransaction
);
3468 nsresult RemoveAttributeOrEquivalent
([in] nsIDOMElement
*element
, [in] const nsAString
*sourceAttrName
, [in] bool aSuppressTransaction
);
3469 nsresult PostCreate
();
3470 nsresult PreDestroy
();
3471 nsresult GetFlags
([out] uint32_t
*_retval
);
3472 nsresult SetFlags
([in] uint32_t val
);
3473 nsresult GetContentsMIMEType
([out] char **_retval
);
3474 nsresult SetContentsMIMEType
([in] const char *val
);
3475 nsresult GetIsDocumentEditable
([out] bool
*_retval
);
3476 nsresult GetIsSelectionEditable
(bool
*aIsSelectionEditable
);
3477 nsresult GetDocument
([out] nsIDOMDocument
**_retval
);
3478 nsresult GetRootElement
([out] nsIDOMElement
**_retval
);
3479 nsresult GetSelectionController
([out] nsISelectionController
**_retval
);
3480 nsresult DeleteSelection
(int16_t action
, int16_t aStripWrappers
);
3481 nsresult GetDocumentIsEmpty
([out] bool
*_retval
);
3482 nsresult GetDocumentModified
([out] bool
*_retval
);
3483 nsresult GetDocumentCharacterSet
([out] nsACString
*_retval
);
3484 nsresult SetDocumentCharacterSet
([in] const nsACString
*val
);
3485 nsresult ResetModificationCount
();
3486 nsresult GetModificationCount
([out] int32_t
*_retval
);
3487 nsresult IncrementModificationCount
([in] int32_t aModCount
);
3488 nsresult GetTransactionManager
([out] nsITransactionManager
**_retval
);
3489 nsresult SetTransactionManager
(nsITransactionManager
*aTransactionManager
);
3490 nsresult DoTransaction
([in] nsITransaction
*txn
);
3491 nsresult EnableUndo
([in] bool enable
);
3492 nsresult GetNumberOfUndoItems
(int32_t
*aNumberOfUndoItems
);
3493 nsresult GetNumberOfRedoItems
(int32_t
*aNumberOfRedoItems
);
3494 nsresult Undo
([in] uint32_t count
);
3495 nsresult CanUndo
([out] bool
*isEnabled
, [out] bool
*canUndo
);
3496 nsresult Redo
([in] uint32_t count
);
3497 nsresult CanRedo
([out] bool
*isEnabled
, [out] bool
*canRedo
);
3498 nsresult BeginTransaction
();
3499 nsresult EndTransaction
();
3500 nsresult BeginPlaceHolderTransaction
([in] nsIAtom
*name
);
3501 nsresult EndPlaceHolderTransaction
();
3502 nsresult ShouldTxnSetSelection
([out] bool
*_retval
);
3503 nsresult SetShouldTxnSetSelection
([in] bool should
);
3504 nsresult GetInlineSpellChecker
([out] nsIInlineSpellChecker
**_retval
);
3505 nsresult SyncRealTimeSpell
();
3506 nsresult SetSpellcheckUserOverride
(bool enable
);
3508 nsresult CanCut
([out] bool
*_retval
);
3510 nsresult CanCopy
([out] bool
*_retval
);
3511 nsresult CanDelete
(bool
*_retval
);
3512 nsresult Paste
([in] int32_t aSelectionType
);
3513 nsresult PasteTransferable
(nsITransferable
*aTransferable
);
3514 nsresult CanPaste
([in] int32_t aSelectionType
, [out] bool
*_retval
);
3515 nsresult CanPasteTransferable
(nsITransferable
*aTransferable
, bool
*_retval
);
3516 nsresult SelectAll
();
3517 nsresult BeginningOfDocument
();
3518 nsresult EndOfDocument
();
3519 nsresult SetAttribute
([in] nsIDOMElement
*aElement
, [in] const nsAString
*attributestr
, [in] const nsAString
*attvalue
);
3520 nsresult GetAttributeValue
([in] nsIDOMElement
*aElement
, [in] const nsAString
*attributestr
, [out] nsAString
*resultValue
, bool
*_retval
);
3521 nsresult RemoveAttribute
([in] nsIDOMElement
*aElement
, [in] const nsAString
*aAttribute
);
3522 nsresult CloneAttribute
([in] const nsAString
*aAttribute
, [in] nsIDOMNode
*aDestNode
, [in] nsIDOMNode
*aSourceNode
);
3523 nsresult CloneAttributes
([in] nsIDOMNode
*destNode
, [in] nsIDOMNode
*sourceNode
);
3524 nsresult CreateNode
([in] const nsAString
*tag
, [in] nsIDOMNode
*parent
, [in] int32_t position
, [out] nsIDOMNode
**_retval
);
3525 nsresult InsertNode
([in] nsIDOMNode
*node
, [in] nsIDOMNode
*parent
, [in] int32_t aPosition
);
3526 nsresult SplitNode
([in] nsIDOMNode
*existingRightNode
, [in] int32_t offset
, [out] nsIDOMNode
**newLeftNode
);
3527 nsresult JoinNodes
([in] nsIDOMNode
*leftNode
, [in] nsIDOMNode
*rightNode
, [in] nsIDOMNode
*parent
);
3528 nsresult DeleteNode
([in] nsIDOMNode
*child
);
3529 bool OutputsMozDirty
();
3530 nsresult MarkNodeDirty
([in] nsIDOMNode
*node
);
3531 nsresult SwitchTextDirection
();
3532 nsresult OutputToString
([in] nsAString formatType
, [in] uint32_t flags
, [out] nsAString
*_retval
);
3533 nsresult OutputToStream
([in] nsIOutputStream
*aStream
, [in] nsAString
*formatType
, [in] nsACString
*charsetOverride
, [in] uint32_t flags
);
3534 nsresult AddEditorObserver
(nsIEditorObserver
*observer
);
3535 nsresult RemoveEditorObserver
(nsIEditorObserver
*observer
);
3536 nsresult AddEditActionListener
([in] nsIEditActionListener
*listener
);
3537 nsresult RemoveEditActionListener
([in] nsIEditActionListener
*listener
);
3538 nsresult AddDocumentStateListener
([in] nsIDocumentStateListener
*listener
);
3539 nsresult RemoveDocumentStateListener
([in] nsIDocumentStateListener
*listener
);
3540 nsresult DumpContentTree
();
3541 nsresult DebugDumpContent
();
3542 nsresult DebugUnitTests
([out] int32_t
*outNumTests
, [out] int32_t
*outNumTestsFailed
);
3543 bool IsModifiableNode
(nsIDOMNode
*aNode
);
3544 nsresult GetSuppressDispatchingInputEvent
(bool
*aSuppressDispatchingInputEvent
);
3545 nsresult SetSuppressDispatchingInputEvent
(bool aSuppressDispatchingInputEvent
);
3546 nsresult GetIsInEditAction
(bool
*aIsInEditAction
);
3551 uuid(87ee993e
-985f
-4a43
-a974
-0d9512da2fb0
),
3554 interface nsIHTMLEditor
: nsISupports
3556 nsresult AddDefaultProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
3557 nsresult RemoveDefaultProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
3558 nsresult RemoveAllDefaultProperties
();
3559 nsresult SetInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
3560 nsresult GetInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
, [out] bool
*aFirst
, [out] bool
*aAny
, [out] bool
*aAll
);
3561 nsresult GetInlinePropertyWithAttrValue
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
, [out] bool
*aFirst
, [out] bool
*aAny
, [out] bool
*aAll
, [out] nsAString
*_retval
);
3562 nsresult RemoveAllInlineProperties
();
3563 nsresult RemoveInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
);
3564 nsresult IncreaseFontSize
();
3565 nsresult DecreaseFontSize
();
3566 nsresult NodeIsBlock
([in] nsIDOMNode
*node
, bool
*_retval
);
3567 nsresult InsertHTML
([in] nsAString
*aInputString
);
3568 nsresult PasteNoFormatting
([in] int32_t aSelectionType
);
3569 nsresult RebuildDocumentFromSource
([in] nsAString
*aSourceString
);
3570 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
);
3571 nsresult InsertElementAtSelection
([in] nsIDOMElement
*aElement
, [in] bool aDeleteSelection
);
3572 nsresult SetDocumentTitle
([in] nsAString
*aTitle
);
3573 nsresult UpdateBaseURL
();
3574 nsresult SelectElement
([in] nsIDOMElement
*aElement
);
3575 nsresult SetCaretAfterElement
([in] nsIDOMElement
*aElement
);
3576 nsresult SetParagraphFormat
([in] nsAString
*aParagraphFormat
);
3577 nsresult GetParagraphState
([out] bool
*aMixed
, [out] nsAString
*_retval
);
3578 nsresult GetFontFaceState
([out] bool
*aMixed
, [out] nsAString
*_retval
);
3579 nsresult GetFontColorState
([out] bool
*aMixed
, [out] nsAString
*_retval
);
3580 nsresult GetBackgroundColorState
([out] bool
*aMixed
, [out] nsAString
*_retval
);
3581 nsresult GetHighlightColorState
([out] bool
*aMixed
, [out] nsAString
*_retval
);
3582 nsresult GetListState
([out] bool
*aMixed
, [out] bool
*aOL
, [out] bool
*aUL
, [out] bool
*aDL
);
3583 nsresult GetListItemState
([out] bool
*aMixed
, [out] bool
*aLI
, [out] bool
*aDT
, [out] bool
*aDD
);
3584 nsresult GetAlignment
([out] bool
*aMixed
, [out] int16_t
*aAlign
);
3585 nsresult GetIndentState
([out] bool
*aCanIndent
, [out] bool
*aCanOutdent
);
3586 nsresult MakeOrChangeList
([in] nsAString
*aListType
, [in] bool entireList
, [in] nsAString
*aBulletType
);
3587 nsresult RemoveList
([in] nsAString
*aListType
);
3588 nsresult Indent
([in] nsAString
*aIndent
);
3589 nsresult Align
([in] nsAString
*aAlign
);
3590 nsresult GetElementOrParentByTagName
([in] nsAString
*aTagName
, [in] nsIDOMNode
*aNode
, [out] nsIDOMElement
**_retval
);
3591 nsresult GetSelectedElement
([in] nsAString
*aTagName
, [out] nsIDOMElement
**_retval
);
3592 nsresult GetHeadContentsAsHTML
([out] nsAString
*_retval
);
3593 nsresult ReplaceHeadContentsWithHTML
([in] nsAString
*aSourceToInsert
);
3594 nsresult CreateElementWithDefaults
([in] nsAString
*aTagName
, [out] nsIDOMElement
**_retval
);
3595 nsresult InsertLinkAroundSelection
([in] nsIDOMElement
*aAnchorElement
);
3596 nsresult SetBackgroundColor
([in] nsAString
*aColor
);
3597 nsresult SetBodyAttribute
([in] nsAString
*aAttr
, [in] nsAString
*aValue
);
3598 nsresult GetLinkedObjects
([out] nsISupportsArray
**_retval
);
3599 nsresult GetIsCSSEnabled
([out] bool
*_retval
);
3600 nsresult SetIsCSSEnabled
([in] bool prb
);
3601 nsresult AddInsertionListener
([in] nsIContentFilter
*inFilter
);
3602 nsresult RemoveInsertionListener
([in] nsIContentFilter
*inFilter
);
3603 nsresult CreateAnonymousElement
([in] nsAString
*aTag
, [in] nsIDOMNode
*aParentNode
, [in] nsAString
*aAnonClass
, [in] bool aIsCreatedHidden
, [out] nsIDOMElement
**_retval
);
3604 nsresult GetSelectionContainer
([out] nsIDOMElement
**_retval
);
3605 nsresult CheckSelectionStateForAnonymousButtons
([in] nsISelection
*aSelection
);
3606 nsresult IsAnonymousElement
([in] nsIDOMElement
*aElement
, [out] bool
*_retval
);
3607 nsresult GetReturnInParagraphCreatesNewParagraph
([out] bool
*_retval
);
3608 nsresult SetReturnInParagraphCreatesNewParagraph
([in] bool prb
);
3609 void /*Element*/ *GetActiveEditingHost
();
3614 uuid(b8100c90
-73be
-11d2
-92a5
-00105a1b0d64
),
3617 interface nsIClipboardCommands
: nsISupports
3619 nsresult CanCutSelection
(bool
*_retval
);
3620 nsresult CanCopySelection
(bool
*_retval
);
3621 nsresult CanCopyLinkLocation
(bool
*_retval
);
3622 nsresult CanCopyImageLocation
(bool
*_retval
);
3623 nsresult CanCopyImageContents
(bool
*_retval
);
3624 nsresult CanPaste
(bool
*_retval
);
3625 nsresult CutSelection
();
3626 nsresult CopySelection
();
3627 nsresult CopyLinkLocation
();
3628 nsresult CopyImageLocation
();
3629 nsresult CopyImageContents
();
3631 nsresult SelectAll
();
3632 nsresult SelectNone
();
3637 uuid(edb99640
-8378-4106-8673-e701a086eb1c
),
3640 interface nsIDocShellTreeItem
: nsISupports
3642 nsresult GetName
(nsAString
*aName
);
3643 nsresult SetName
(const nsAString
*aName
);
3644 nsresult NameEquals
(const PRUnichar
*name
, bool
*_retval
);
3645 nsresult GetItemType
(int32_t
*aItemType
);
3646 nsresult SetItemType
(int32_t aItemType
);
3648 nsresult GetParent
(nsIDocShellTreeItem
**aParent
);
3649 nsresult GetSameTypeParent
(nsIDocShellTreeItem
**aSameTypeParent
);
3650 nsresult GetRootTreeItem
(nsIDocShellTreeItem
**aRootTreeItem
);
3651 nsresult GetSameTypeRootTreeItem
(nsIDocShellTreeItem
**aSameTypeRootTreeItem
);
3652 nsresult FindItemWithName
(const PRUnichar
*name
, nsISupports
*aRequestor
, nsIDocShellTreeItem
*aOriginalRequestor
,
3653 nsIDocShellTreeItem
**_retval
);
3654 nsresult GetTreeOwner
(nsIDocShellTreeOwner
**aTreeOwner
);
3655 nsresult SetTreeOwner
(nsIDocShellTreeOwner
*treeOwner
);
3656 nsresult GetChildCount
(int32_t
*aChildCount
);
3657 nsresult AddChild
(nsIDocShellTreeItem
*child
);
3658 nsresult RemoveChild
(nsIDocShellTreeItem
*child
);
3659 nsresult GetChildAt
(int32_t index
, nsIDocShellTreeItem
**_retval
);
3660 nsresult FindChildWithName
(const PRUnichar
*aName
, bool aRecurse
, bool aSameType
, nsIDocShellTreeItem
*aRequestor
,
3661 nsIDocShellTreeItem
*aOriginalRequestor
, nsIDocShellTreeItem
**_retval
);
3662 nsIDocument
/* thiscall */ *GetDocument
();
3663 void /* thiscall nsPIDOMWindow */ *GetWindow
();
3668 uuid(702e0a92
-7d63
-490e
-b5ee
-d247e6bd4588
),
3671 interface nsIContentViewer
: nsISupports
3673 nsresult Init
(nsIWidget
*aParentWidget
, const void /*nsIntRect*/ *aBounds
);
3674 nsresult GetContainer
(nsIDocShell
**aContainer
);
3675 nsresult SetContainer
(nsIDocShell
*aContainer
);
3676 void /* thiscall */ LoadStart
(nsIDocument
*aDoc
);
3677 nsresult LoadComplete
(nsresult aStatus
);
3678 nsresult PermitUnload
(bool aCallerClosesWindow
, bool
*_retval
);
3679 nsresult GetInPermitUnload
(bool
*aInPermitUnload
);
3680 nsresult
/* thiscall */ PermitUnloadInternal
(bool aCallerClosesWindow
, bool
*aShouldPrompt
, bool
*_retval
);
3681 nsresult GetBeforeUnloadFiring
(bool
*aBeforeUnloadFiring
);
3682 nsresult ResetCloseWindow
();
3683 nsresult PageHide
(bool isUnload
);
3684 nsresult Close
(nsISHEntry
*historyEntry
);
3687 nsresult GetDOMDocument
(nsIDOMDocument
**aDOMDocument
);
3688 nsresult SetDOMDocument
(nsIDOMDocument
*aDOMDocument
);
3689 void /* thiscall nsresult_(nsIDocument *) */ GetDocument
();
3690 nsresult GetBounds
(void /*nsIntRect*/ *aBounds
);
3691 nsresult SetBounds
(const void /*nsIntRect*/ *aBounds
);
3692 nsresult GetPreviousViewer
(nsIContentViewer
**aPreviousViewer
);
3693 nsresult SetPreviousViewer
(nsIContentViewer
*aPreviousViewer
);
3694 nsresult Move
(int32_t aX
, int32_t aY
);
3697 nsresult GetSticky
(bool
*aSticky
);
3698 nsresult SetSticky
(bool aSticky
);
3699 nsresult RequestWindowClose
(bool
*_retval
);
3700 nsresult Open
(nsISupports
*aState
, nsISHEntry
*aSHEntry
);
3701 nsresult ClearHistoryEntry
();
3702 nsresult SetPageMode
(bool aPageMode
, nsIPrintSettings
*aPrintSettings
);
3703 nsresult GetHistoryEntry
(nsISHEntry
**aHistoryEntry
);
3704 nsresult GetIsTabModalPromptAllowed
(bool
*aIsTabModalPromptAllowed
);
3705 nsresult GetIsHidden
(bool
*aIsHidden
);
3706 nsresult SetIsHidden
(bool aIsHidden
);
3707 nsresult GetPresShell
(nsIPresShell
**aPresShell
);
3708 nsresult GetPresContext
(void /*nsPresContext*/ **aPresContext
);
3709 nsresult SetDocumentInternal
(nsIDocument
*aDocument
, bool aForceReuseInnerWindow
);
3710 void /* thiscall nsView */ *FindContainerView
(void);
3711 void /* thiscall */ SetNavigationTiming
(void /*nsDOMNavigationTiming*/ *aTiming
);
3712 nsresult ScrollToNode
(nsIDOMNode
*node
);
3713 nsresult GetTextZoom
(float *aTextZoom
);
3714 nsresult SetTextZoom
(float aTextZoom
);
3715 nsresult GetFullZoom
(float *aFullZoom
);
3716 nsresult SetFullZoom
(float aFullZoom
);
3717 nsresult GetAuthorStyleDisabled
(bool
*aAuthorStyleDisabled
);
3718 nsresult SetAuthorStyleDisabled
(bool aAuthorStyleDisabled
);
3719 nsresult GetForceCharacterSet
(nsACString
*aForceCharacterSet
);
3720 nsresult SetForceCharacterSet
(const nsACString
*aForceCharacterSet
);
3721 nsresult GetHintCharacterSet
(nsACString
*aHintCharacterSet
);
3722 nsresult SetHintCharacterSet
(const nsACString
*aHintCharacterSet
);
3723 nsresult GetHintCharacterSetSource
(int32_t
*aHintCharacterSetSource
);
3724 nsresult SetHintCharacterSetSource
(int32_t aHintCharacterSetSource
);
3725 nsresult GetContentSize
(int32_t
*width
, int32_t
*height
);
3726 nsresult GetMinFontSize
(int32_t
*aMinFontSize
);
3727 nsresult SetMinFontSize
(int32_t aMinFontSize
);
3728 nsresult AppendSubtree
(void /*nsTArray<nsCOMPtr<nsIContentViewer> >*/ *array
);
3729 nsresult ChangeMaxLineBoxWidth
(int32_t maxLineBoxWidth
);
3730 nsresult PausePainting
();
3731 nsresult ResumePainting
();
3732 nsresult EmulateMedium
(const nsAString
*aMediaType
);
3733 nsresult StopEmulatingMedium
();
3738 uuid(c63e9d64
-490d
-48bf
-8013-b5d8ee4dbc25
),
3741 interface nsIDocShellLoadInfo
: nsISupports
3743 typedef int32_t nsDocShellInfoLoadType
;
3744 typedef uint32_t nsDocShellInfoReferrerPolicy
;
3746 nsresult GetReferrer
(nsIURI
**aReferrer
);
3747 nsresult SetReferrer
(nsIURI
*aReferrer
);
3748 nsresult GetOwner
(nsISupports
**aOwner
);
3749 nsresult SetOwner
(nsISupports
*aOwner
);
3750 nsresult GetInheritOwner
(bool
*aInheritOwner
);
3751 nsresult SetInheritOwner
(bool aInheritOwner
);
3752 nsresult GetOwnerIsExplicit
(bool
*aOwnerIsExplicit
);
3753 nsresult SetOwnerIsExplicit
(bool aOwnerIsExplicit
);
3754 nsresult GetLoadType
(nsDocShellInfoLoadType
*aLoadType
);
3755 nsresult SetLoadType
(nsDocShellInfoLoadType aLoadType
);
3756 nsresult GetSHEntry
(nsISHEntry
**aSHEntry
);
3757 nsresult SetSHEntry
(nsISHEntry
*aSHEntry
);
3758 nsresult GetTarget
(char16_t
**aTarget
);
3759 nsresult SetTarget
(const char16_t
* aTarget
);
3760 nsresult GetPostDataStream
(nsIInputStream
**aPostDataStream
);
3761 nsresult SetPostDataStream
(nsIInputStream
*aPostDataStream
);
3762 nsresult GetHeadersStream
(nsIInputStream
* *aHeadersStream
);
3763 nsresult SetHeadersStream
(nsIInputStream
*aHeadersStream
);
3764 nsresult GetSendReferrer
(bool
*aSendReferrer
);
3765 nsresult SetSendReferrer
(bool aSendReferrer
);
3766 nsresult GetReferrerPolicy
(nsDocShellInfoReferrerPolicy
*aReferrerPolicy
);
3767 nsresult SetReferrerPolicy
(nsDocShellInfoReferrerPolicy aReferrerPolicy
);
3768 nsresult GetIsSrcdocLoad
(bool
*aIsSrcdocLoad
);
3769 nsresult GetSrcdocData
(nsAString
*aSrcdocData
);
3770 nsresult SetSrcdocData
(const nsAString
*aSrcdocData
);
3771 nsresult GetSourceDocShell
(nsIDocShell
* *aSourceDocShell
);
3772 nsresult SetSourceDocShell
(nsIDocShell
*aSourceDocShell
);
3773 nsresult GetBaseURI
(nsIURI
**aBaseURI
);
3774 nsresult SetBaseURI
(nsIURI
*aBaseURI
);
3779 uuid(696b32a1
-3cf1
-4909-b501
-474b25fc7954
),
3782 interface nsIDocShell
: nsIDocShellTreeItem
3784 nsresult LoadURI
(nsIURI
*uri
, nsIDocShellLoadInfo
*loadInfo
, uint32_t aLoadFlags
, bool firstParty
);
3785 nsresult LoadStream
(nsIInputStream
*aStream
, nsIURI
*aURI
, const nsACString
*aContentType
,
3786 const nsACString
*aContentCharset
, nsIDocShellLoadInfo
*aLoadInfo
);
3787 nsresult InternalLoad
(nsIURI
*aURI
, nsIURI
*aReferrer
, uint32_t aReferrerPolicy
, nsISupports
*aOwner
,
3788 uint32_t aFlags
, const PRUnichar
*aWindowTarget
, const char *aTypeHint
, nsACString
*aFileName
,
3789 nsIInputStream
*aPostDataStream
, nsIInputStream
*aHeadersStream
, uint32_t aLoadFlags
,
3790 nsISHEntry
*aSHEntry
, bool firstParty
, const nsAString
*aSrcdoc
, nsIDocShell
*aSourceDocShell
,
3791 nsIURI
*aBaseURI
, nsIDocShell
**aDocShell
, nsIRequest
**aRequest
);
3792 nsresult AddState
(jsval
*aData
, const nsAString
*aTitle
, const nsAString
*aURL
, bool aReplace
, JSContext
*cx
);
3793 nsresult CreateLoadInfo
(nsIDocShellLoadInfo
**loadInfo
);
3794 nsresult PrepareForNewContentModel
();
3795 nsresult SetCurrentURI
(nsIURI
*aURI
);
3796 nsresult FirePageHideNotification
(bool isUnload
);
3797 nsresult GetPresContext
(void /*nsPresContext*/ **aPresContext
);
3798 nsIPresShell
*GetPresShell
();
3799 nsresult GetEldestPresShell
(nsIPresShell
**aEldestPresShell
);
3800 nsresult GetContentViewer
(nsIContentViewer
**aContentViewer
);
3801 nsresult GetChromeEventHandler
(nsIDOMEventTarget
**aChromeEventHandler
);
3802 nsresult SetChromeEventHandler
(nsIDOMEventTarget
*aChromeEventHandler
);
3803 nsresult GetAllowPlugins
(bool
*aAllowPlugins
);
3804 nsresult SetAllowPlugins
(bool aAllowPlugins
);
3805 nsresult GetAllowJavascript
(bool
*aAllowJavascript
);
3806 nsresult SetAllowJavascript
(bool aAllowJavascript
);
3807 nsresult GetDisableNoScript
(bool
*aDisableNoScript
);
3808 nsresult SetDisableNoScript
(bool aDisableNoScript
);
3809 nsresult GetAllowMetaRedirects
(bool
*aAllowMetaRedirects
);
3810 nsresult SetAllowMetaRedirects
(bool aAllowMetaRedirects
);
3811 nsresult GetAllowSubframes
(bool
*aAllowSubframes
);
3812 nsresult SetAllowSubframes
(bool aAllowSubframes
);
3813 nsresult GetAllowImages
(bool
*aAllowImages
);
3814 nsresult SetAllowImages
(bool aAllowImages
);
3815 nsresult GetAllowMedia
(bool
*aAllowMedia
);
3816 nsresult SetAllowMedia
(bool aAllowMedia
);
3817 nsresult GetAllowDNSPrefetch
(bool
*aAllowDNSPrefetch
);
3818 nsresult SetAllowDNSPrefetch
(bool aAllowDNSPrefetch
);
3819 nsresult GetAllowWindowControl
(bool
*aAllowWindowControl
);
3820 nsresult SetAllowWindowControl
(bool aAllowWindowControl
);
3821 nsresult GetAllowContentRetargeting
(bool
*aAllowContentRetargeting
);
3822 nsresult SetAllowContentRetargeting
(bool aAllowContentRetargeting
);
3823 nsresult GetAllowContentRetargetingOnChildren
(bool
*aAllowContentRetargetingOnChildren
);
3824 nsresult SetAllowContentRetargetingOnChildren
(bool aAllowContentRetargetingOnChildren
);
3825 nsresult GetDocShellEnumerator
(int32_t aItemType
, int32_t aDirection
, nsISimpleEnumerator
**_retval
);
3826 nsresult GetAppType
(uint32_t
*aAppType
);
3827 nsresult SetAppType
(uint32_t aAppType
);
3828 nsresult GetAllowAuth
(bool
*aAllowAuth
);
3829 nsresult SetAllowAuth
(bool aAllowAuth
);
3830 nsresult GetZoom
(float *aZoom
);
3831 nsresult SetZoom
(float aZoom
);
3832 nsresult GetMarginWidth
(int32_t
*aMarginWidth
);
3833 nsresult SetMarginWidth
(int32_t aMarginWidth
);
3834 nsresult GetMarginHeight
(int32_t
*aMarginHeight
);
3835 nsresult SetMarginHeight
(int32_t aMarginHeight
);
3836 nsresult TabToTreeOwner
(bool forward
, bool
*tookFocus
);
3837 nsresult GetBusyFlags
(uint32_t
*aBusyFlags
);
3838 nsresult GetLoadType
(uint32_t
*aLoadType
);
3839 nsresult SetLoadType
(uint32_t aLoadType
);
3840 nsresult GetDefaultLoadFlags
(nsLoadFlags
*aDefaultLoadFlags
);
3841 nsresult SetDefaultLoadFlags
(nsLoadFlags aDefaultLoadFlags
);
3842 nsresult IsBeingDestroyed
(bool
*_retval
);
3843 nsresult GetIsExecutingOnLoadHandler
(bool
*aIsExecutingOnLoadHandler
);
3844 nsresult GetLayoutHistoryState
(nsILayoutHistoryState
**aLayoutHistoryState
);
3845 nsresult SetLayoutHistoryState
(nsILayoutHistoryState
*aLayoutHistoryState
);
3846 nsresult GetShouldSaveLayoutState
(bool
*aShouldSaveLayoutState
);
3847 nsresult GetSecurityUI
(nsISecureBrowserUI
**aSecurityUI
);
3848 nsresult SetSecurityUI
(nsISecureBrowserUI
*aSecurityUI
);
3849 nsresult SuspendRefreshURIs
();
3850 nsresult ResumeRefreshURIs
();
3851 nsresult BeginRestore
(nsIContentViewer
*viewer
, bool top
);
3852 nsresult FinishRestore
();
3853 nsresult GetRestoringDocument
(bool
*aRestoringDocument
);
3854 nsresult GetUseErrorPages
(bool
*aUseErrorPages
);
3855 nsresult SetUseErrorPages
(bool aUseErrorPages
);
3856 nsresult DisplayLoadError
(nsresult aError
, nsIURI
*aURI
, const PRUnichar
*aURL
, nsIChannel
*aFailedChannel
);
3857 nsresult GetFailedChannel
(nsIChannel
**aFailedChannel
);
3858 nsresult GetPreviousTransIndex
(int32_t
*aPreviousTransIndex
);
3859 nsresult GetLoadedTransIndex
(int32_t
*aLoadedTransIndex
);
3860 nsresult HistoryPurged
(int32_t numEntries
);
3861 nsresult GetSessionStorageForPrincipal
(nsIPrincipal
*principal
, const nsAString
*documentURI
,
3862 bool create
, nsIDOMStorage
**_retval
);
3863 nsresult AddSessionStorage
(nsIPrincipal
*principal
, nsIDOMStorage
*storage
);
3864 nsresult GetCurrentDocumentChannel
(nsIChannel
**aCurrentDocumentChannel
);
3865 nsresult SetChildOffset
(uint32_t offset
);
3866 nsresult GetIsInUnload
(bool
*aIsInUnload
);
3867 nsresult GetChannelIsUnsafe
(bool
*aChannelIsUnsafe
);
3868 nsresult GetHasMixedActiveContentLoaded
(bool
*aHasMixedActiveContentLoaded
);
3869 nsresult GetHasMixedActiveContentBlocked
(bool
*aHasMixedActiveContentBlocked
);
3870 nsresult GetHasMixedDisplayContentLoaded
(bool
*aHasMixedDisplayContentLoaded
);
3871 nsresult GetHasMixedDisplayContentBlocked
(bool
*aHasMixedDisplayContentBlocked
);
3872 nsresult GetHasTrackingContentBlocked
(bool
*aHasTrackingContentBlocked
);
3873 nsresult GetHasTrackingContentLoaded
(bool
*aHasTrackingContentLoaded
);
3874 void DetachEditorFromWindow
();
3875 nsresult GetIsOffScreenBrowser
(bool
*aIsOffScreenBrowser
);
3876 nsresult SetIsOffScreenBrowser
(bool aIsOffScreenBrowser
);
3877 nsresult GetPrintPreview
(nsIWebBrowserPrint
**aPrintPreview
);
3878 nsresult GetCanExecuteScripts
(bool
*aCanExecuteScripts
);
3879 nsresult GetIsActive
(bool
*aIsActive
);
3880 nsresult SetIsActive
(bool aIsActive
);
3881 nsresult SetIsPrerendered
(bool prerendered
);
3882 nsresult GetIsPrerendered
(bool
*aIsPrerendered
);
3883 nsresult GetHistoryID
(uint64_t
*aHistoryID
);
3884 nsresult GetIsAppTab
(bool
*aIsAppTab
);
3885 nsresult SetIsAppTab
(bool aIsAppTab
);
3886 nsresult CreateAboutBlankContentViewer
(nsIPrincipal
*aPrincipal
);
3887 nsresult GetCharset
(nsACString
*aCharset
);
3888 nsresult SetCharset
(nsACString
*aCharset
);
3889 nsresult GatherCharsetMenuTelemetry
();
3890 nsresult GetForcedCharset
(nsIAtom
**aForcedCharset
);
3891 nsresult SetForcedCharset
(nsIAtom
*aForcedCharset
);
3892 void SetParentCharset
(const nsACString
*parentCharset
, int32_t parentCharsetSource
, nsIPrincipal
*parentCharsetPrincipal
);
3893 void GetParentCharset
(nsACString
*parentCharset
, int32_t
*parentCharsetSource
, nsIPrincipal
**parentCharsetPrincipal
);
3894 nsresult GetRecordProfileTimelineMarkers
(bool
*aRecordProfileTimelineMarkers
);
3895 nsresult SetRecordProfileTimelineMarkers
(bool aRecordProfileTimelineMarkers
);
3896 nsresult Now
(int /* DOMHighResTimeStamp */ *_retval
);
3897 nsresult PopProfileTimelineMarkers
(JSContext
*cx
, void /*JS::MutableHandleValue*/ *_retval
);
3898 nsresult AddWeakPrivacyTransitionObserver
(nsIPrivacyTransitionObserver
*obs
);
3899 nsresult AddWeakReflowObserver
(nsISupports
/*nsIReflowObserver*/ *obs
);
3900 nsresult RemoveWeakReflowObserver
(nsISupports
/*nsIReflowObserver*/ *obs
);
3901 nsresult NotifyReflowObservers
(bool interruptible
, int /*DOMHighResTimeStamp*/ start
, int /*DOMHighResTimeStamp*/ end
);
3902 nsresult AddWeakScrollObserver
(void /*nsIScrollObserver*/ *obs
);
3903 nsresult RemoveWeakScrollObserver
(void /*nsIScrollObserver*/ *obs
);
3904 nsresult NotifyScrollObservers
();
3905 nsresult GetIsBrowserElement
(bool
*aIsBrowserElement
);
3906 nsresult GetIsApp
(bool
*aIsApp
);
3907 nsresult GetIsBrowserOrApp
(bool
*aIsBrowserOrApp
);
3908 nsresult GetIsInBrowserElement
(bool
*aIsInBrowserElement
);
3909 nsresult GetIsInBrowserOrApp
(bool
*aIsInBrowserOrApp
);
3910 nsresult SetIsApp
(uint32_t ownAppId
);
3911 nsresult SetIsBrowserInsideApp
(uint32_t containingAppId
);
3912 nsresult GetAppId
(uint32_t
*aAppId
);
3913 nsresult GetAppManifestURL
(nsAString
*aAppManifestURL
);
3914 nsresult GetSameTypeParentIgnoreBrowserAndAppBoundaries
(nsIDocShell
**_retval
);
3915 nsresult GetAsyncPanZoomEnabled
(bool
*aAsyncPanZoomEnabled
);
3916 nsresult GetSandboxFlags
(uint32_t
*aSandboxFlags
);
3917 nsresult SetSandboxFlags
(uint32_t aSandboxFlags
);
3918 nsresult GetOnePermittedSandboxedNavigator
(nsIDocShell
**aOnePermittedSandboxedNavigator
);
3919 nsresult SetOnePermittedSandboxedNavigator
(nsIDocShell
*aOnePermittedSandboxedNavigator
);
3920 bool IsSandboxedFrom
(nsIDocShell
*aTargetDocShell
);
3921 nsresult GetMixedContentChannel
(nsIChannel
**aMixedContentChannel
);
3922 nsresult SetMixedContentChannel
(nsIChannel
*aMixedContentChannel
);
3923 nsresult GetAllowMixedContentAndConnectionData
(bool
*rootHasSecureConnection
, bool
*allowMixedContent
, bool
*isRootDocShell
);
3924 bool PluginsAllowedInCurrentDoc
();
3925 nsresult GetFullscreenAllowed
(bool
*aFullscreenAllowed
);
3926 nsresult SetFullscreenAllowed
(bool allowed
);
3927 nsresult GetAffectPrivateSessionLifetime
(bool
*aAffectPrivateSessionLifetime
);
3928 nsresult SetAffectPrivateSessionLifetime
(bool aAffectPrivateSessionLifetime
);
3929 nsresult GetMayEnableCharacterEncodingMenu
(bool
*aMayEnableCharacterEncodingMenu
);
3930 nsresult GetEditor
(nsIEditor
**aEditor
);
3931 nsresult SetEditor
(nsIEditor
*aEditor
);
3932 nsresult GetEditable
(bool
*aEditable
);
3933 nsresult GetHasEditingSession
(bool
*aHasEditingSession
);
3934 nsresult MakeEditable
(bool inWaitForUriLoad
);
3935 nsresult GetChildSHEntry
(int32_t aChildOffset
, nsISHEntry
**_retval
);
3936 nsresult AddChildSHEntry
(nsISHEntry
*aCloneReference
, nsISHEntry
*aHistoryEntry
, int32_t aChildOffset
, uint32_t aLoadType
, bool aCloneChildren
);
3937 nsresult GetUseGlobalHistory
(bool
*aUseGlobalHistory
);
3938 nsresult SetUseGlobalHistory
(bool aUseGlobalHistory
);
3939 nsresult RemoveFromSessionHistory
();
3940 nsresult GetCreatedDynamically
(bool
*aCreatedDynamically
);
3941 nsresult SetCreatedDynamically
(bool aCreatedDynamically
);
3942 nsresult GetCurrentSHEntry
(nsISHEntry
**aEntry
, bool
*_retval
);
3943 nsresult IsCommandEnabled
(const char *command
, bool
*_retval
);
3944 nsresult DoCommand
(const char *command
);
3946 void SetInvisible
(bool aIsInvisibleDochsell
);
3947 void /*nsIScriptGlobalObject*/ *GetScriptGlobalObject
();
3948 nsresult GetDeviceSizeIsPageSize
(bool
*aDeviceSizeIsPageSize
);
3949 nsresult SetDeviceSizeIsPageSize
(bool aDeviceSizeIsPageSize
);
3950 void /* thiscall */ SetOpener
(void /*nsITabParent*/ *aOpener
);
3951 void /* thiscall nsITabParent */ *GetOpener
();
3952 void /*mozilla::dom::URLSearchParams */ *GetURLSearchParams
();
3953 void /* thiscall */ NotifyJSRunToCompletionStart
(const char *aReason
, const char16_t
*functionName
,
3954 const char16_t
*fileName
, uint32_t lineNumber
);
3955 void /* thiscall */ NotifyJSRunToCompletionStop
();
3956 nsresult GetHasLoadedNonBlankURI
(bool
*aHasLoadedNonBlankURI
);
3957 nsresult GetPaymentRequestId
(nsAString
*aPaymentRequestId
);
3958 nsresult SetPaymentRequestId
(const nsAString
*aPaymentRequestId
);
3959 nsresult GetWindowDraggingAllowed
(bool
*aWindowDraggingAllowed
);
3960 nsresult SetWindowDraggingAllowed
(bool aWindowDraggingAllowed
);
3965 uuid(16fe5e3e
-eadc
-4312-9d44
-b6bedd6b5474
),
3968 interface nsIMutationObserver
: nsISupports
3970 void CharacterDataWillChange
(nsIDocument
*aDocument
, nsIContent
*aContent
,
3971 void /*CharacterDataChangeInfo*/ *aInfo
);
3972 void CharacterDataChanged
(nsIDocument
*aDocument
, nsIContent
*aContent
,
3973 void /*CharacterDataChangeInfo*/ *aInfo
);
3974 void AttributeWillChange
(nsIDocument
*aDocument
, nsIContent
*aContent
, int32_t aNameSpaceID
,
3975 nsIAtom
*aAttribute
, int32_t aModType
);
3976 void AttributeChanged
(nsIDocument
*aDocument
, nsIContent
*aContent
, int32_t aNameSpaceID
,
3977 nsIAtom
*aAttribute
, int32_t aModType
);
3978 void AttributeSetToCurrentValue
(nsIDocument
*aDocument
, /*mozilla::dom::Element*/ void *aElement
,
3979 int32_t aNameSpaceID
, nsIAtom
*aAttribute
);
3980 void ContentAppended
(nsIDocument
*aDocument
, nsIContent
*aContainer
, nsIContent
*aFirstNewContent
,
3981 int32_t aNewIndexInContainer
);
3982 void ContentInserted
(nsIDocument
*aDocument
, nsIContent
*aContainer
, nsIContent
*aChild
,
3983 int32_t aIndexInContainer
);
3984 void ContentRemoved
(nsIDocument
*aDocument
, nsIContent
*aContainer
, nsIContent
*aChild
,
3985 int32_t aIndexInContainer
, nsIContent
*aPreviousSibling
);
3986 void NodeWillBeDestroyed
(const nsINode
*aNode
);
3987 void ParentChainChanged
(nsIContent
*aContent
);
3992 uuid(2c4ad90a
-740e-4212-ba3f
-feacda4b929e
),
3995 interface nsIParser
: nsISupports
3997 typedef int nsDTDMode
;
3998 typedef int eParserCommands
;
4000 /* From nsParserBase: */
4001 bool IsParserEnabled
();
4002 nsresult GetChannel
(nsIChannel
**aChannel
);
4004 void SetContentSink
(nsIContentSink
*aSink
);
4005 nsIContentSink
*GetContentSink
();
4006 void GetCommand
(nsACString
*aCommand
);
4007 void SetCommand2
(const char *aCommand
);
4008 void SetCommand
(eParserCommands aParserCommand
);
4009 void SetDocumentCharset
(const nsACString
*aCharset
, int32_t aSource
);
4010 void GetDocumentCharset
(nsACString
*oCharset
, int32_t
*oSource
);
4011 /* nsresult GetChannel(nsIChannel **aChannel); in nsParserBase */
4012 nsresult GetDTD
(nsIDTD
**aDTD
);
4013 nsIStreamListener
*GetStreamListener
();
4014 nsresult ContinueInterruptedParsing
();
4016 void UnblockParser
();
4017 void ContinueInterruptedParsingAsync
();
4018 /* bool IsParserEnabled(); in nsParserBase */
4020 nsresult Parse
(nsIURI
*aURL
, nsIRequestObserver
*aListener
, void *aKey
, nsDTDMode aMode
);
4021 nsresult Terminate
();
4022 nsresult ParseFragment
(const nsAString
*aSourceBuffer
, void /*nsTArray<nsString>*/ *aTagStack
);
4023 nsresult BuildModel
();
4024 nsresult CancelParsingEvents
();
4026 bool IsInsertionPointDefined
();
4027 void BeginEvaluatingParserInsertedScript
();
4028 void EndEvaluatingParserInsertedScript
();
4029 void MarkAsNotScriptCreated
(const char *aCommand
);
4030 bool IsScriptCreated
();
4035 uuid(900bc4bc
-8b6c
-4cba
-82fa
-568a80fffd3e
),
4038 interface nsIDocumentObserver
: nsIMutationObserver
4040 typedef uint32_t nsUpdateType
;
4046 void BeginUpdate
(nsIDocument
*aDocument
, nsUpdateType aUpdateType
);
4047 void EndUpdate
(nsIDocument
*aDocument
, nsUpdateType aUpdateType
);
4048 void BeginLoad
(nsIDocument
*aDocument
);
4049 void EndLoad
(nsIDocument
*aDocument
);
4050 void ContentStatesChanged
(nsIDocument
*aDocument
, nsIContent
*aContent
, EventStates aStateMask
);
4051 void DocumentStatesChanged
(nsIDocument
*aDocument
, EventStates aStateMask
);
4052 void StyleSheetAdded
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, bool aDocumentSheet
);
4053 void StyleSheetRemoved
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, bool aDocumentSheet
);
4054 void StyleSheetApplicableStateChanged
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
,
4056 void StyleRuleChanged
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, nsIStyleRule
*aOldStyleRule
,
4057 nsIStyleRule
*aNewStyleRule
);
4058 void StyleRuleAdded
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, nsIStyleRule
*aStyleRule
);
4059 void StyleRuleRemoved
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, nsIStyleRule
*aStyleRule
);
4060 void BindToDocument
(nsIDocument
*aDocument
, nsIContent
*aContent
);
4061 void AttemptToExecuteScript
(nsIContent
*aContent
, nsIParser
*aParser
, bool
*aBlock
);
4066 uuid(3682dd99
-8560-44f4
-9b8f
-ccce9d7b96fb
),
4069 interface nsIContentUtils
: nsISupports
4071 bool IsSafeToRunScript
();
4072 nsresult AddDocumentObserver
(nsIDocument
*aDocument
, nsIDocumentObserver
*aObserver
);
4073 nsresult RemoveDocumentObserver
(nsIDocument
*aDocument
, nsIDocumentObserver
*aObserver
);
4074 nsresult AddMutationObserver
(nsINode
*aNode
, nsIMutationObserver
*aObserver
);
4075 nsresult RemoveMutationObserver
(nsINode
*aNode
, nsIMutationObserver
*aObserver
);
4076 nsresult AddScriptRunner
(nsIRunnable
*aRunnable
);
4077 JSContext
*GetContextFromDocument
(nsIDocument
*aDocument
);
4082 uuid(8f672000
-bab9
-4c60
-aaaf
-2673c4e2a4c6
),
4085 interface nsIPluginInstance
: nsISupports
4087 nsresult GetDOMElement
(nsIDOMElement
**aDOMElement
);
4092 uuid(11afa8be
-d997
-4e07
-a6a3
-6f872ec3ee7f
),
4095 interface nsIGlobalObject
: nsISupports
4101 uuid(6f54214c
-7175-498d
-9d2d
-0429e38c2869
),
4104 interface nsIXMLHttpRequest
: nsISupports
4106 nsresult GetChannel
(nsIChannel
**aChannel
);
4107 nsresult GetResponseXML
(nsIDOMDocument
**aResponseXML
);
4108 nsresult GetResponseText
(nsAString
*aResponseText
);
4109 nsresult GetResponseType
(nsAString
*aResponseType
);
4110 nsresult SetResponseType
(const nsAString
*aResponseType
);
4111 nsresult GetResponse
(JSContext
*cx
, int /*JS::MutableHandleValue*/ aResponse
);
4112 nsresult GetStatus
(uint32_t
*aStatus
);
4113 nsresult GetStatusText
(nsACString
*aStatusText
);
4114 nsresult SlowAbort
();
4115 nsresult GetAllResponseHeaders
(nsACString
*_retval
);
4116 nsresult GetResponseHeader
(const nsACString
*header
, nsACString
*_retval
);
4117 nsresult Open
(const nsACString
*method
, const nsACString
*url
, bool async
, const nsAString
*user
, const nsAString
*password
, uint8_t _argc
);
4118 nsresult Send
(nsIVariant
*body
);
4119 nsresult SetRequestHeader
(const nsACString
*header
, const nsACString
*value
);
4120 nsresult GetTimeout
(uint32_t
*aTimeout
);
4121 nsresult SetTimeout
(uint32_t aTimeout
);
4122 nsresult GetReadyState
(uint16_t
*aReadyState
);
4123 nsresult SlowOverrideMimeType
(const nsAString
*mimetype
);
4124 nsresult GetMozBackgroundRequest
(bool
*aMozBackgroundRequest
);
4125 nsresult SetMozBackgroundRequest
(bool aMozBackgroundRequest
);
4126 nsresult GetWithCredentials
(bool
*aWithCredentials
);
4127 nsresult SetWithCredentials
(bool aWithCredentials
);
4128 nsresult Init
(nsIPrincipal
*principal
, nsIScriptContext
*scriptContext
, nsIGlobalObject
*globalObject
, nsIURI
*baseURI
, nsILoadGroup
*loadGroup
);
4129 nsresult GetUpload
(nsIXMLHttpRequestUpload
**aUpload
);
4130 nsresult GetOnreadystatechange
(JSContext
*cx
, int /*JS::MutableHandleValue*/ aOnreadystatechange
);
4131 nsresult SetOnreadystatechange
(JSContext
*cx
, int /*JS::HandleValue*/ aOnreadystatechange
);
4132 nsresult GetMozAnon
(bool
*aMozAnon
);
4133 nsresult GetMozSystem
(bool
*aMozSystem
);
4138 uuid(ba602ca6
-dc7a
-457e
-a57a
-ee5b343fd863
),
4141 interface nsIScriptSecurityManager
: nsISupports
{
4142 nsresult CanCreateWrapper
(JSContext
*aJSContext
, const nsIID
*aIID
, nsISupports
*aObj
, nsIClassInfo
*aClassInfo
);
4143 nsresult CanCreateInstance
(JSContext
*aJSContext
, const nsCID
*aCID
);
4144 nsresult CanGetService
(JSContext
*aJSContext
, const nsCID
*aCID
);
4145 nsresult CheckLoadURIFromScript
(JSContext
*cx
, nsIURI
*uri
);
4146 nsresult CheckLoadURIWithPrincipal
(nsIPrincipal
*aPrincipal
, nsIURI
*uri
, uint32_t flags
);
4147 nsresult CheckLoadURIStrWithPrincipal
(nsIPrincipal
*aPrincipal
, const nsACString
*uri
, uint32_t flags
);
4148 nsresult ScriptAllowed
(JSObject
*aGlobal
);
4149 nsresult GetSystemPrincipal
(nsIPrincipal
**_retval
);
4150 nsresult GetSimpleCodebasePrincipal
(nsIURI
*aURI
, nsIPrincipal
**_retval
);
4151 nsresult GetAppCodebasePrincipal
(nsIURI
*uri
, uint32_t appId
, bool inMozBrowser
, nsIPrincipal
**_retval
);
4152 nsresult GetLoadContextCodebasePrincipal
(nsIURI
*uri
, nsILoadContext
*loadContext
, nsIPrincipal
**_retval
);
4153 nsresult GetDocShellCodebasePrincipal
(nsIURI
*uri
, nsIDocShell
*docShell
, nsIPrincipal
**_retval
);
4154 nsresult GetNoAppCodebasePrincipal
(nsIURI
*uri
, nsIPrincipal
**_retval
);
4155 nsresult GetCodebasePrincipal
(nsIURI
*uri
, nsIPrincipal
**_retval
);
4156 nsresult CheckSameOriginURI
(nsIURI
*aSourceURI
, nsIURI
*aTargetURI
, bool reportError
);
4157 nsresult GetChannelResultPrincipal
(nsIChannel
*aChannel
, nsIPrincipal
**_retval
);
4158 nsresult GetChannelURIPrincipal
(nsIChannel
*aChannel
, nsIPrincipal
**_retval
);
4159 nsresult IsSystemPrincipal
(nsIPrincipal
*aPrincipal
, bool
*_retval
);
4160 nsresult GetJarPrefix
(uint32_t appId
, bool inMozBrowser
, nsACString
*_retval
);
4161 nsresult ActivateDomainPolicy
(nsIDomainPolicy
**_retval
);
4162 nsresult GetDomainPolicyActive
(bool
*aDomainPolicyActive
);
4163 nsresult ActivateDomainPolicyInternal
(nsIDomainPolicy
**_retval
);
4164 void CloneDomainPolicy
(int /*mozilla::dom::DomainPolicyClone*/ *aClone
);
4165 nsresult PolicyAllowsScript
(nsIURI
*aDomain
, bool
*_retval
);
4168 cpp_quote
("DEFINE_GUID(IID_nsCycleCollectionISupports, 0xc61eac14,0x5f7a,0x4481,0x96,0x5e,0x7e,0xaa,0x6e,0xff,0xa8,0x5f);")