2 * Copyright 2005-2007 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 \"1.0.0\"")
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")
36 typedef HRESULT nsresult
;
37 typedef ULONG nsrefcnt
;
42 typedef REFIID nsIIDRef
;
43 typedef nsIIDRef nsCIDRef
;
45 typedef void** nsQIResult
;
46 typedef WCHAR PRUnichar
;
47 typedef ULONG PRUint32
;
49 typedef WORD PRUint16
;
50 typedef INT16 PRInt16
;
53 typedef LARGE_INTEGER PRInt64
;
54 typedef ULARGE_INTEGER PRUint64
;
55 typedef PRUint64 DOMTimeStamp
;
56 typedef PRUint32 nsLoadFlags
;
72 typedef nsCStringContainer nsACString
;
73 typedef nsStringContainer nsAString
;
75 interface nsIWebBrowserChrome
;
76 interface nsILoadGroup
;
78 interface nsIDOMDocument
;
79 interface nsIDOMEvent
;
81 interface nsISelectionController
;
82 interface nsITransactionManager
;
83 interface nsITransaction
;
84 interface nsIInlineSpellChecker
;
85 interface nsIOutputStream
;
86 interface nsIEditorObserver
;
87 interface nsIEditActionListener
;
88 interface nsIDocumentStateListener
;
89 interface nsIDOMCSSStyleSheet
;
90 interface nsIDOMDocumentView
;
91 interface nsIDocumentObserver
;
92 interface nsIDOMWindow
;
98 uuid(00000000-0000-0000-c000
-000000000046),
101 interface nsISupports
103 nsresult QueryInterface
(nsIIDRef riid
, nsQIResult result
);
108 /* Currently we don't need a full declaration of these interfaces */
109 typedef nsISupports nsISHistory
;
110 typedef nsISupports nsIWidget
;
111 typedef nsISupports nsIHttpHeaderVisitor
;
112 typedef nsISupports nsIDOMBarProp
;
113 typedef nsISupports nsIPrompt
;
114 typedef nsISupports nsIAuthPrompt
;
115 typedef nsISupports nsIDOMNamedNodeMap
;
116 typedef nsISupports nsIDOMAttr
;
117 typedef nsISupports nsIDOMDocumentType
;
118 typedef nsISupports nsIDOMDOMImplementation
;
119 typedef nsISupports nsIDOMCDATASection
;
120 typedef nsISupports nsIDOMProcessingInstruction
;
121 typedef nsISupports nsIDOMEntityReference
;
122 typedef nsISupports nsIWebProgressListener
;
123 typedef nsISupports nsIDOMCSSValue
;
124 typedef nsISupports nsIPrintSession
;
125 typedef nsISupports nsIControllerCommandTable
;
126 typedef nsISupports nsIPrincipal
;
127 typedef nsISupports nsIAtom
;
128 typedef nsISupports nsISupportsArray
;
129 typedef nsISupports nsIContentFilter
;
130 typedef nsISupports nsIDOMMediaList
;
131 typedef nsISupports nsIDOMHTMLTableCaptionElement
;
132 typedef nsISupports nsIDOMHTMLTableSectionElement
;
133 typedef nsISupports nsIDOMClientRectList
;
134 typedef nsISupports nsIDOMLocation
;
135 typedef nsISupports nsIDocument
;
136 typedef nsISupports nsIContent
;
137 typedef nsISupports nsINode
;
138 typedef nsISupports nsIStyleSheet
;
139 typedef nsISupports nsIStyleRule
;
140 typedef nsISupports nsIVariant
;
141 typedef nsISupports nsIDOMUserDataHandler
;
142 typedef nsISupports nsIDocShellLoadInfo
;
143 typedef nsISupports nsISHEntry
;
144 typedef nsISupports nsIPresShell
;
145 typedef nsISupports nsIContentViewer
;
146 typedef nsISupports nsIDocumentCharsetInfo
;
147 typedef nsISupports nsILayoutHistoryState
;
148 typedef nsISupports nsISecureBrowserUI
;
149 typedef nsISupports nsIDOMStorage
;
153 uuid(8bb35ed9
-e332
-462d
-9155-4a002ab5c958
),
156 interface nsIServiceManager
: nsISupports
158 nsresult GetService
(nsCIDRef aClass
, nsIIDRef aIID
, void **result
);
159 nsresult GetServiceByContractID
(const char *aContractID
, nsIIDRef aIID
, void **result
);
160 nsresult IsServiceInstantiated
(nsCIDRef aClass
, nsIIDRef aIID
, BOOL
*_retval
);
161 nsresult IsServiceInstantiatedByContractID
(const char *aContractID
, nsIIDRef aIID
, BOOL
*_retval
);
166 uuid(00000001-0000-0000-c000
-000000000046),
169 interface nsIFactory
: nsISupports
171 nsresult CreateInstance
(nsISupports
*aOuter
, const nsIID
*iid
, void **result
);
172 nsresult LockFactory
(PRBool lock
);
177 uuid(db242e01
-e4d9
-11d2
-9dde
-000064657374),
180 interface nsIObserver
: nsISupports
182 nsresult Observe
(nsISupports
*aSubject
, const char *aTopic
, const PRUnichar
*aData
);
187 uuid(a88e5a60
-205a
-4bb1
-94e1
-2628daf51eae
),
190 interface nsIComponentManager
: nsISupports
192 nsresult GetClassObject
(nsCIDRef aClass
, nsIIDRef aIID
, nsQIResult result
);
193 nsresult GetClassObjectByContractID
(const char *aContractID
, nsIIDRef aIID
, nsQIResult result
);
194 nsresult CreateInstance
(nsCIDRef aClass
, nsISupports
*aDelegate
, nsIIDRef aIID
,
196 nsresult CreateInstanceByContractID
(const char *aContractID
, nsISupports
*aDelegate
,
197 nsIIDRef aIID
, nsQIResult result
);
202 uuid(59e7e77a
-38e4
-11d4
-8cf5
-0060b0fc14a3
),
205 interface nsIMemory
: nsISupports
207 void *Alloc
(/*size_t*/ int size
);
208 void *Realloc
(void *_ptr
, /*size_t*/ int newSize
);
209 void Free
(void *_ptr
);
210 nsresult HeapMinimize
(PRBool immediate
);
211 nsresult IsLowMemory
(PRBool
*_retval
);
216 uuid(9188bc85
-f92e
-11d2
-81ef
-0060083a0bcf
),
219 interface nsIWeakReference
: nsISupports
221 nsresult QueryReferent
(const nsIID
*riid
, void **result
);
226 uuid(9188bc86
-f92e
-11d2
-81ef
-0060083a0bcf
),
229 interface nsISupportsWeakReference
: nsISupports
231 nsresult GetWeakReference
(nsIWeakReference
**_retval
);
236 uuid(033a1470
-8b2a
-11d3
-af88
-00a024ffc08c
),
239 interface nsIInterfaceRequestor
: nsISupports
241 nsresult GetInterface
(const nsIID
*riid
, void **result
);
246 uuid(4a2abaf0
-6886-11d3
-9382-00104ba0fd40
),
249 interface nsIRunnable
: nsISupports
256 uuid(d1899240
-f9d2
-11d2
-bdd6
-000064657374),
259 interface nsISimpleEnumerator
: nsISupports
261 nsresult HasMoreElements
(PRBool
*_retval
);
262 nsresult GetNext
(nsISupports
**_retval
);
267 uuid(fa9c7f6c
-61b3
-11d4
-9877-00c04fa0cf4a
),
270 interface nsIInputStream
: nsISupports
273 nsresult Available
(PRUint32
*_retval
);
274 nsresult Read
(char *aBuf
, PRUint32 aCount
, PRUint32
*_retval
);
275 nsresult ReadSegments
(nsresult
(*aWriter
)(nsIInputStream
*aInStream
,
276 void *aClosure
, const char *aFromSegment
, PRUint32 aToOffset
,
277 PRUint32 aCount
, PRUint32
*aWriteCount
),
278 void *aClosure
, PRUint32 aCount
, PRUint32
*_retval
);
279 nsresult IsNonBlocking
(PRBool
*_retval
);
284 uuid(07a22cc0
-0ce5
-11d3
-9331-00104ba0fd40
),
287 interface nsIURI
: nsISupports
289 nsresult GetSpec
(nsACString
*aSpec
);
290 nsresult SetSpec
(const nsACString
*aSpec
);
291 nsresult GetPrePath
(nsACString
*aPrePath
);
292 nsresult GetScheme
(nsACString
*aScheme
);
293 nsresult SetScheme
(const nsACString
*aScheme
);
294 nsresult GetUserPass
(nsACString
*aUserPass
);
295 nsresult SetUserPass
(const nsACString
*aUserPass
);
296 nsresult GetUsername
(nsACString
*aUsername
);
297 nsresult SetUsername
(const nsACString
*aUsername
);
298 nsresult GetPassword
(nsACString
*aPassword
);
299 nsresult SetPassword
(const nsACString
*aPassword
);
300 nsresult GetHostPort
(nsACString
*aHostPort
);
301 nsresult SetHostPort
(const nsACString
*aHostPort
);
302 nsresult GetHost
(nsACString
*aHost
);
303 nsresult SetHost
(const nsACString
*aHost
);
304 nsresult GetPort
(PRInt32
*aPort
);
305 nsresult SetPort
(PRInt32 aPort
);
306 nsresult GetPath
(nsACString
*aPath
);
307 nsresult SetPath
(const nsACString
*aPath
);
308 nsresult Equals
(nsIURI
*other
, PRBool
*_retval
);
309 nsresult SchemeIs
(const char *scheme
, PRBool
*_retval
);
310 nsresult Clone
(nsIURI
**_retval
);
311 nsresult Resolve
(const nsACString
*relativePath
, nsACString
*_retval
);
312 nsresult GetAsciiSpec
(nsACString
*aAsciiSpec
);
313 nsresult GetAsciiHost
(nsACString
*aAsciiHost
);
314 nsresult GetOriginCharset
(nsACString
*aOriginCharset
);
319 uuid(d6116970
-8034-11d3
-9399-00104ba0fd40
),
322 interface nsIURL
: nsIURI
324 nsresult GetFilePath
(nsACString
*aFilePath
);
325 nsresult SetFilePath
(const nsACString
*aFilePath
);
326 nsresult GetParam
(nsACString
*aParam
);
327 nsresult SetParam
(const nsACString
*aParam
);
328 nsresult GetQuery
(nsACString
*aQuery
);
329 nsresult SetQuery
(const nsACString
*aQuery
);
330 nsresult GetRef
(nsACString
*aRef
);
331 nsresult SetRef
(const nsACString
*aRef
);
332 nsresult GetDirectory
(nsACString
*aDirectory
);
333 nsresult SetDirectory
(const nsACString
*aDirectory
);
334 nsresult GetFileName
(nsACString
*aFileName
);
335 nsresult SetFileName
(const nsACString
*aFileName
);
336 nsresult GetFileBaseName
(nsACString
*aFileBaseName
);
337 nsresult SetFileBaseName
(const nsACString
*aFileBaseName
);
338 nsresult GetFileExtension
(nsACString
*aFileExtension
);
339 nsresult SetFileExtension
(const nsACString
*aFileExtension
);
340 nsresult GetCommonBaseSpec
(nsIURI
*aURIToCompare
, nsACString
*_retval
);
341 nsresult GetRelativeSpec
(nsIURI
*aURIToCompare
, nsACString
*_retval
);
346 uuid(ef6bfbd2
-fd46
-48d8
-96b7
-9f8f0fd387fe
),
349 interface nsIRequest
: nsISupports
351 nsresult GetName
(nsACString
*aName
);
352 nsresult IsPending
(PRBool
*_retval
);
353 nsresult GetStatus
(nsresult
*aStatus
);
354 nsresult Cancel
(nsresult aStatus
);
357 nsresult GetLoadGroup
(nsILoadGroup
**aLoadGroup
);
358 nsresult SetLoadGroup
(nsILoadGroup
*aLoadGroup
);
359 nsresult GetLoadFlags
(nsLoadFlags
*aLoadFlags
);
360 nsresult SetLoadFlags
(nsLoadFlags aLoadFlags
);
365 uuid(fd91e2e0
-1481-11d3
-9333-00104ba0fd40
),
368 interface nsIRequestObserver
: nsISupports
370 nsresult OnStartRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
371 nsresult OnStopRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatusCode
);
376 uuid(1a637020
-1482-11d3
-9333-00104ba0fd40
),
379 interface nsIStreamListener
: nsIRequestObserver
381 nsresult OnDataAvailable
(nsIRequest
*aRequest
, nsISupports
*aContext
,
382 nsIInputStream
*aInputStream
, PRUint32 aOffset
, PRUint32 aCount
);
387 uuid(3de0a31c
-feaf
-400f
-9f1e
-4ef71f8b20cc
),
390 interface nsILoadGroup
: nsIRequest
392 nsresult GetGroupObserver
(nsIRequestObserver
**aGroupObserver
);
393 nsresult SetGroupObserver
(nsIRequestObserver
*aGroupObserver
);
394 nsresult GetDefaultLoadRequest
(nsIRequest
**aDefaultLoadRequest
);
395 nsresult SetDefaultLoadRequest
(nsIRequest
*aDefaultLoadRequest
);
396 nsresult AddRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
397 nsresult RemoveRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatus
);
398 nsresult GetRequests
(nsISimpleEnumerator
**aRequests
);
399 nsresult GetActiveCount
(PRUint32
*aActiveCount
);
400 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
401 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
406 uuid(c63a055a
-a676
-4e71
-bf3c
-6cfa11082018
),
409 interface nsIChannel
: nsIRequest
411 nsresult GetOriginalURI
(nsIURI
**aOriginalURI
);
412 nsresult SetOriginalURI
(nsIURI
*aOriginalURI
);
413 nsresult GetURI
(nsIURI
**aURI
);
414 nsresult GetOwner
(nsISupports
**aOwner
);
415 nsresult SetOwner
(nsISupports
*aOwner
);
416 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
417 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
418 nsresult GetSecurityInfo
(nsISupports
**aSecurityInfo
);
419 nsresult GetContentType
(nsACString
*aContentType
);
420 nsresult SetContentType
(const nsACString
*aContentType
);
421 nsresult GetContentCharset
(nsACString
*aContentCharset
);
422 nsresult SetContentCharset
(const nsACString
*aContentCharset
);
423 nsresult GetContentLength
(PRInt32
*aContentLength
);
424 nsresult SetContentLength
(PRInt32 aContentLength
);
425 nsresult Open
(nsIInputStream
**_retval
);
426 nsresult AsyncOpen
(nsIStreamListener
*aListener
, nsISupports
*aContext
);
431 uuid(9277fe09
-f0cc
-4cd9
-bbce
-581dd94b0260
),
434 interface nsIHttpChannel
: nsIChannel
436 nsresult GetRequestMethod
(nsACString
*aRequestMethod
);
437 nsresult SetRequestMethod
(const nsACString
*aRequestMethod
);
438 nsresult GetReferrer
(nsIURI
**aReferrer
);
439 nsresult SetReferrer
(nsIURI
*aReferrer
);
440 nsresult GetRequestHeader
(const nsACString
*aHeader
, nsACString
*_retval
);
441 nsresult SetRequestHeader
(const nsACString
*aHeader
, const nsACString
*aValue
, PRBool aMerge
);
442 nsresult VisitRequestHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
443 nsresult GetAllowPipelining
(PRBool
*aAllowPipelining
);
444 nsresult SetAllowPipelining
(PRBool aAllowPipelining
);
445 nsresult GetRedirectionLimit
(PRUint32
*aRedirectionLimit
);
446 nsresult SetRedirectionLimit
(PRUint32 aRedirectionLimit
);
447 nsresult GetResponseStatus
(PRUint32
*aResponseStatus
);
448 nsresult GetResponseStatusText
(nsACString
*aResponseStatusText
);
449 nsresult GetRequestSucceeded
(PRBool
*aRequestSucceeded
);
450 nsresult GetResponseHeader
(const nsACString
*header
, nsACString
*_retval
);
451 nsresult SetResponseHeader
(const nsACString
*header
, const nsACString
*value
, PRBool merge
);
452 nsresult VisitResponseHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
453 nsresult IsNoStoreResponse
(PRBool
*_retval
);
454 nsresult IsNoCacheResponse
(PRBool
*_retval
);
459 uuid(0eb66361
-faaa
-4e52
-8c7e
-6c25f11f8e3c
),
462 interface nsIHttpChannelInternal
: nsISupports
464 nsresult GetDocumentURI
(nsIURI
**aDocumentURI
);
465 nsresult SetDocumentURI
(nsIURI
*aDocumentURI
);
466 nsresult GetRequestVersion
(PRUint32
*major
, PRUint32
*minor
);
467 nsresult GetResponseVersion
(PRUint32
*major
, PRUint32
*minor
);
468 nsresult SetCookie
(const char *aCookieHeader
);
469 nsresult SetupFallbackChannel
(const char *aFallbackKey
);
470 nsresult GetForceAllowThirdPartyCookie
(PRBool
*aForceAllowThirdPartyCookie
);
471 nsresult SetForceAllowThirdPartyCookie
(PRBool aForceAllowThirdPartyCookie
);
476 uuid(ddf633d8
-e9a4
-439d
-ad88
-de636fd9bb75
),
479 interface nsIUploadChannel
: nsISupports
481 nsresult SetUploadStream
(nsIInputStream
*aStream
, const nsACString
*aContentType
,
482 PRInt32 aContentLength
);
483 nsresult GetUploadStream
(nsIInputStream
**aUploadStream
);
488 uuid(a6cf90c1
-15b3
-11d2
-932e-00805f8add32
),
491 interface nsIDOMCSSRule
: nsISupports
493 nsresult GetType
(PRUint16
*aType
);
494 nsresult GetCssText
(nsAString
*aCssText
);
495 nsresult SetCssText
(const nsAString
*aCssText
);
496 nsresult GetParentStyleSheet
(nsIDOMCSSStyleSheet
**aParentStyleSheet
);
497 nsresult GetParentRule
(nsIDOMCSSRule
**aParentRule
);
502 uuid(a6cf90be
-15b3
-11d2
-932e-00805f8add32
),
505 interface nsIDOMCSSStyleDeclaration
: nsISupports
507 nsresult GetCssText
(nsAString
*aCssText
);
508 nsresult SetCssText
(const nsAString
*aCssText
);
509 nsresult GetPropertyValue
(const nsAString
*propertyName
, nsAString
*_retval
);
510 nsresult GetPropertyCSSValue
(const nsAString
*propertyName
, nsIDOMCSSValue
**_retval
);
511 nsresult RemoveProperty
(const nsAString
*propertyName
, nsAString
*_retval
);
512 nsresult GetPropertyPriority
(const nsAString
*propertyName
, nsAString
*_retval
);
513 nsresult SetProperty
(const nsAString
*propertyName
, const nsAString
*value
,
514 const nsAString
*priority
);
515 nsresult GetLength
(PRUint32
*aLength
);
516 nsresult Item
(PRUint32 index
, nsAString
*_retval
);
517 nsresult GetParentRule
(nsIDOMCSSRule
**aParentRule
);
522 uuid(a6cf90c0
-15b3
-11d2
-932e-00805f8add32
),
525 interface nsIDOMCSSRuleList
: nsISupports
527 nsresult GetLength
(PRUint32
*aLength
);
528 nsresult Item
(PRUint32 index
, nsIDOMCSSRule
**_retval
);
533 uuid(a6cf9080
-15b3
-11d2
-932e-00805f8add32
),
536 interface nsIDOMStyleSheet
: nsISupports
538 nsresult GetType
(nsAString
*aType
);
539 nsresult GetDisabled
(PRBool
*aDisabled
);
540 nsresult SetDisabled
(PRBool aDisabled
);
541 nsresult GetOwnerNode
(nsIDOMNode
**aOwnerNode
);
542 nsresult GetParentStyleSheet
(nsIDOMStyleSheet
**aParentStyleSheet
);
543 nsresult GetHref
(nsAString
*aHref
);
544 nsresult GetTitle
(nsAString
*aTitle
);
545 nsresult GetMedia
(nsIDOMMediaList
**aMedia
);
550 uuid(a6cf90c2
-15b3
-11d2
-932e-00805f8add32
),
553 interface nsIDOMCSSStyleSheet
: nsIDOMStyleSheet
555 nsresult GetOwnerRule
(nsIDOMCSSRule
**aOwnerRule
);
556 nsresult GetCssRules
(nsIDOMCSSRuleList
**aCssRules
);
557 nsresult InsertRule
(const nsAString
*rule
, PRUint32 index
, PRUint32
*_retval
);
558 nsresult DeleteRule
(PRUint32 index
);
563 uuid(a6cf9081
-15b3
-11d2
-932e-00805f8add32
),
566 interface nsIDOMStyleSheetList
: nsISupports
568 nsresult GetLength
(PRUint32
*aLength
);
569 nsresult Item
(PRUint32 index
, nsIDOMStyleSheet
**_retval
);
574 uuid(a6cf907d
-15b3
-11d2
-932e-00805f8add32
),
577 interface nsIDOMNodeList
: nsISupports
579 nsresult Item
(PRUint32 index
, nsIDOMNode
**_retval
);
580 nsresult GetLength
(PRUint32
*aLength
);
585 uuid(29fb2a18
-1dd2
-11b2
-8dd9
-a6fd5d5ad12f
),
588 interface nsIDOM3Node
: nsISupports
596 IMPLEMENTATION_SPECIFIC
= 32
599 nsresult GetBaseURI
(nsAString
*aBaseURI
);
600 nsresult CompareDocumentPosition
(nsIDOMNode
*other
, PRUint16
*_retval
);
601 nsresult GetTextContent
(nsAString
*aTextContent
);
602 nsresult SetTextContent
(const nsAString
*aTextContent
);
603 nsresult IsSameNode
(nsIDOMNode
*other
, PRBool
*_retval
);
604 nsresult LookupPrefix
(const nsAString
*namespaceURI
, PRBool
*_retval
);
605 nsresult IsDefaultNamespace
(const nsAString
*namespaceURI
, PRBool
*_retval
);
606 nsresult LookupNamespaceURI
(const nsAString
*prefix
, nsAString _retval
);
607 nsresult IsEqualNode
(nsIDOMNode
*arg
, PRBool
*_retval
);
608 nsresult GetFeature
(const nsAString
*feature
, const nsAString
*version, nsISupports
**_retval
);
609 nsresult SetUserData
(const nsAString
*key
, nsIVariant
*data
, nsIDOMUserDataHandler
*handler
, nsIVariant
**_retval
);
610 nsresult GetUserData
(const nsAString
*key
, nsIVariant
**_retval
);
615 uuid(a6cf907c
-15b3
-11d2
-932e-00805f8add32
),
618 interface nsIDOMNode
: nsISupports
624 CDATA_SELECTION_NODE
= 4,
625 ENTITY_REFERENCE_NODE
= 5,
627 PROCESSING_INSTRUCTION_NODE
= 7,
630 DOCUMENT_TYPE_NODE
= 10,
631 DOCUMENT_FRAGMENT_NODE
= 11,
635 nsresult GetNodeName
(nsAString
*aNodeName
);
636 nsresult GetNodeValue
(nsAString
*aNodeValue
);
637 nsresult SetNodeValue
(const nsAString
*aNodeValue
);
638 nsresult GetNodeType
(PRUint16
*aNodeType
);
639 nsresult GetParentNode
(nsIDOMNode
**aParentNode
);
640 nsresult GetChildNodes
(nsIDOMNodeList
**aChildNodes
);
641 nsresult GetFirstChild
(nsIDOMNode
**aFirstChild
);
642 nsresult GetLastChild
(nsIDOMNode
**aLastChild
);
643 nsresult GetPreviousSibling
(nsIDOMNode
**aPreviousSibling
);
644 nsresult GetNextSibling
(nsIDOMNode
**aNextSibling
);
645 nsresult GetAttributes
(nsIDOMNamedNodeMap
**aAttributes
);
646 nsresult GetOwnerDocument
(nsIDOMDocument
**aOwnerDocument
);
647 nsresult InsertBefore
(nsIDOMNode
*newChild
, nsIDOMNode
*refChild
, nsIDOMNode
**_retval
);
648 nsresult ReplaceChild
(nsIDOMNode
*newChild
, nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
649 nsresult RemoveChild
(nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
650 nsresult AppendChild
(nsIDOMNode
*newChild
, nsIDOMNode
**_retval
);
651 nsresult HasChildNodes
(PRBool
*_retval
);
652 nsresult CloneNode
(PRBool deep
, nsIDOMNode
**_retval
);
653 nsresult Normalize
();
654 nsresult IsSupported
(const nsAString
*feature
, const nsAString
*version, PRBool
*_retval
);
655 nsresult GetNamespaceURI
(nsAString
*aNamespaceURI
);
656 nsresult GetPrefix
(nsAString
*aPrefix
);
657 nsresult SetPrefix
(const nsAString
*aPrefix
);
658 nsresult GetLocalName
(nsAString
*aLocalName
);
659 nsresult HasAttributes
(PRBool
*_retval
);
664 uuid(a6cf9078
-15b3
-11d2
-932e-00805f8add32
),
667 interface nsIDOMElement
: nsIDOMNode
669 nsresult GetTagName
(nsAString
*aTagName
);
670 nsresult GetAttribute
(const nsAString
*name
, nsAString
*_retval
);
671 nsresult SetAttribute
(const nsAString
*name
, const nsAString
*value
);
672 nsresult RemoveAttribute
(const nsAString
*name
);
673 nsresult GetAttributeNode
(const nsAString
*name
, nsIDOMAttr
**_retval
);
674 nsresult SetAttributeNode
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
675 nsresult RemoveAttributeNode
(nsIDOMAttr
*oldAttr
, nsIDOMAttr
**_retval
);
676 nsresult GetElementsByTagName
(const nsAString
*name
, nsIDOMNodeList
**_retval
);
677 nsresult GetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
679 nsresult SetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
680 const nsAString
*value
);
681 nsresult RemoveAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
);
682 nsresult GetAttributeNodeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
683 nsIDOMAttr
**_retval
);
684 nsresult SetAttributeNodeNS
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
685 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
686 nsIDOMNodeList
**_retval
);
687 nsresult HasAttribute
(const nsAString
*name
, PRBool
*_retval
);
688 nsresult HasAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
694 uuid(99715845-95fc
-4a56
-aa53
-214b65c26e22
),
697 interface nsIDOMElementCSSInlineStyle
: nsISupports
699 nsresult GetStyle
(nsIDOMCSSStyleDeclaration
**aStyle
);
704 uuid(b2f824c4
-d9d3
-499b
-8d3b
-45c8245497c6
),
707 interface nsIDOMClientRect
: nsISupports
709 nsresult GetLeft
(float *aLeft
);
710 nsresult GetTop
(float *aTop
);
711 nsresult GetRight
(float *aRight
);
712 nsresult GetBottom
(float *aBottom
);
713 nsresult GetWidth
(float *aWidth
);
714 nsresult GetHeight
(float *aHeight
);
719 uuid(f0aef489
-18c5
-4de6
-99d5
-58b3758b098c
),
722 interface nsIDOMNSElement
: nsISupports
724 nsresult GetElementsByClassName
(const nsAString
*classes
, nsIDOMNodeList
**_retval
);
725 nsresult GetClientRects
(nsIDOMClientRectList
**_retval
);
726 nsresult GetBoundingClientRect
(nsIDOMClientRect
**_retval
);
727 nsresult GetScrollTop
(PRInt32
*aScrollTop
);
728 nsresult SetScrollTop
(PRInt32 aScrollTop
);
729 nsresult GetScrollLeft
(PRInt32
*aScrollLeft
);
730 nsresult SetScrollLeft
(PRInt32 aScrollLeft
);
731 nsresult GetScrollHeight
(PRInt32
*aScrollHeight
);
732 nsresult GetScrollWidth
(PRInt32
*aScrollWidth
);
733 nsresult GetClientTop
(PRInt32
*aClientTop
);
734 nsresult GetClientLeft
(PRInt32
*aClientLeft
);
735 nsresult GetClientHeight
(PRInt32
*aClientHeight
);
736 nsresult GetClientWidth
(PRInt32
*aClientWidth
);
737 nsresult GetFirstElementChild
(nsIDOMElement
**aFirstElementChild
);
738 nsresult GetLastElementChild
(nsIDOMElement
**aLastElementChild
);
739 nsresult GetPreviousElementSibling
(nsIDOMElement
**aPreviousElementSibling
);
740 nsresult GetNextElementSibling
(nsIDOMElement
**aNextElementSibling
);
741 nsresult GetChildElementCount
(PRUint32
*aChildElementCount
);
742 nsresult GetChildren
(nsIDOMNodeList
**aChildren
);
745 cpp_quote
("#undef GetClassName")
749 uuid(a6cf9085
-15b3
-11d2
-932e-00805f8add32
),
752 interface nsIDOMHTMLElement
: nsIDOMElement
754 nsresult GetId
(nsAString
*aId
);
755 nsresult SetId
(const nsAString
*aId
);
756 nsresult GetTitle
(nsAString
*aTitle
);
757 nsresult SetTitle
(const nsAString
*aTitle
);
758 nsresult GetLang
(nsAString
*aLang
);
759 nsresult SetLang
(const nsAString
*aLang
);
760 nsresult GetDir
(nsAString
*aDir
);
761 nsresult SetDir
(const nsAString
*aDir
);
762 nsresult GetClassName
(nsAString
*aClassName
);
763 nsresult SetClassName
(const nsAString
*aClassName
);
768 uuid(7f142f9a
-fba7
-4949-93d6
-cf08a974ac51
),
771 interface nsIDOMNSHTMLElement
: nsISupports
773 nsresult GetOffsetTop
(PRInt32
*aOffsetTop
);
774 nsresult GetOffsetLeft
(PRInt32
*aOffsetLeft
);
775 nsresult GetOffsetWidth
(PRInt32
*aOffsetWidth
);
776 nsresult GetOffsetHeight
(PRInt32
*aOffsetHeight
);
777 nsresult GetOffsetParent
(nsIDOMElement
**aOffsetParent
);
778 nsresult GetInnerHTML
(nsAString
*aInnerHTML
);
779 nsresult SetInnerHTML
(const nsAString
*aInnerHTML
);
780 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
781 nsresult SetTabIndex
(PRInt32 aTabIndex
);
782 nsresult GetContentEditable
(nsAString
*aContentEditable
);
783 nsresult SetContentEditable
(const nsAString
*aContentEditable
);
784 nsresult GetDraggable
(PRBool
*aDraggable
);
785 nsresult SetDraggable
(PRBool aDraggable
);
788 nsresult ScrollIntoView
(PRBool top
);
789 nsresult GetSpellcheck
(PRBool
*aSpellcheck
);
790 nsresult SetSpellcheck
(PRBool aSpellcheck
);
795 uuid(a6cf9083
-15b3
-11d2
-932e-00805f8add32
),
798 interface nsIDOMHTMLCollection
: nsISupports
800 nsresult GetLength
(PRUint32
*aLength
);
801 nsresult Item
(PRUint32 index
, nsIDOMNode
**_retval
);
802 nsresult NamedItem
(const nsAString
*name
, nsIDOMNode
**_retval
);
807 uuid(a6cf9072
-15b3
-11d2
-932e-00805f8add32
),
810 interface nsIDOMCharacterData
: nsIDOMNode
812 nsresult GetData
(nsAString
*aData
);
813 nsresult SetData
(const nsAString
*aData
);
814 nsresult GetLength
(PRUint32
*aLength
);
815 nsresult SubstringData
(PRUint32 offset
, PRUint32 count
, nsAString
*_retval
);
816 nsresult AppendData
(const nsAString
*arg
);
817 nsresult InsertData
(PRUint32 offset
, const nsAString
*arg
);
818 nsresult DeleteData
(PRUint32 offset
, PRUint32 count
);
819 nsresult ReplaceData
(PRUint32 offset
, PRUint32 count
, const nsAString
*arg
);
824 uuid(a6cf9082
-15b3
-11d2
-932e-00805f8add32
),
827 interface nsIDOMText
: nsIDOMCharacterData
829 nsresult SplitText
(PRUint32 offset
, nsIDOMText
**_retval
);
834 uuid(a6cf9073
-15b3
-11d2
-932e-00805f8add32
),
837 interface nsIDOMComment
: nsIDOMCharacterData
843 uuid(a6cf9076
-15b3
-11d2
-932e-00805f8add32
),
846 interface nsIDOMDocumentFragment
: nsIDOMNode
852 uuid(f51ebade
-8b1a
-11d3
-aae7
-0010830123b4
),
855 interface nsIDOMAbstractView
: nsISupports
857 nsresult GetDocument
(nsIDOMDocumentView
**aDocument
);
862 uuid(0b9341f3
-95d4
-4fa4
-adcd
-e119e0db2889
),
865 interface nsIDOMViewCSS
: nsIDOMAbstractView
867 nsresult GetComputedStyle
(nsIDOMElement
*elt
, const nsAString
*pseudoElt
, nsIDOMCSSStyleDeclaration
**_retval
);
872 uuid(a6cf9075
-15b3
-11d2
-932e-00805f8add32
),
875 interface nsIDOMDocument
: nsIDOMNode
877 nsresult GetDoctype
(nsIDOMDocumentType
**aDoctype
);
878 nsresult GetImplementation
(nsIDOMDOMImplementation
**aImplementation
);
879 nsresult GetDocumentElement
(nsIDOMElement
**aDocumentElement
);
880 nsresult CreateElement
(const nsAString
*tagName
, nsIDOMElement
**_retval
);
881 nsresult CreateDocumentFragment
(nsIDOMDocumentFragment
**_retval
);
882 nsresult CreateTextNode
(const nsAString
*data
, nsIDOMText
**_retval
);
883 nsresult CreateComment
(const nsAString
*data
, nsIDOMComment
**_retval
);
884 nsresult CreateCDATASection
(const nsAString
*data
, nsIDOMCDATASection
**_retval
);
885 nsresult CreateProcessingInstruction
(const nsAString
*target
, const nsAString
*data
,
886 nsIDOMProcessingInstruction
**_retval
);
887 nsresult CreateAttribute
(const nsAString
*name
, nsIDOMAttr
**_retval
);
888 nsresult CreateEntityReference
(const nsAString
*name
, nsIDOMEntityReference
**_retval
);
889 nsresult GetElementsByTagName
(const nsAString
*tagname
, nsIDOMNodeList
**_retval
);
890 nsresult ImportNode
(nsIDOMNode
*importedNode
, PRBool deep
, nsIDOMNode
**_retval
);
891 nsresult CreateElementNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
892 nsIDOMElement
**_retval
);
893 nsresult CreateAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
894 nsIDOMAttr
**_retval
);
895 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
896 nsIDOMNodeList
**_retval
);
897 nsresult GetElementById
(const nsAString
*elementId
, nsIDOMElement
**_retval
);
902 uuid(09a439ad
-4079-46d5
-a050
-4d7015d1a108
),
905 interface nsIDOMNSDocument
: nsISupports
907 nsresult GetCharacterSet
(nsAString
*aCharacterSet
);
908 nsresult GetDir
(nsAString
*aDir
);
909 nsresult SetDir
(const nsAString
*aDir
);
910 nsresult GetLocation
(nsIDOMLocation
**aLocation
);
911 nsresult GetTitle
(nsAString
*aTitle
);
912 nsresult SetTitle
(const nsAString
*aTitle
);
913 nsresult GetContentType
(nsAString
*aContentType
);
914 nsresult GetReadyState
(nsAString
*aReadyState
);
915 nsresult GetLastModified
(nsAString
*aLastModified
);
916 nsresult GetReferrer
(nsAString
*aReferrer
);
917 nsresult HasFocus
(PRBool
*_retval
);
918 nsresult GetActiveElement
(nsIDOMElement
**aActiveElement
);
919 nsresult GetElementsByClassName
(const nsAString
*classes
, nsIDOMNodeList
**_retval
);
920 nsresult ElementFromPoint
(PRInt32 x
, PRInt32 y
, nsIDOMElement
**_retval
);
922 /* Wine extensions */
923 nsresult WineAddObserver
(nsIDocumentObserver
*aObserver
);
924 nsresult WineRemoveObserver
(nsIDocumentObserver
*aObserver
);
925 nsresult WineAddScriptRunner
(nsIRunnable
*aRunnable
);
930 uuid(a6cf9084
-15b3
-11d2
-932e-00805f8add32
),
933 interface nsIDOMHTMLDocument
: nsIDOMDocument
935 nsresult GetTitle
(nsAString
*aTitle
);
936 nsresult SetTitle
(const nsAString
*aTitle
);
937 nsresult GetReferrer
(nsAString
*aReferrer
);
938 nsresult GetDomain
(nsAString
*aDomain
);
939 nsresult GetURL
(nsAString
*aURL
);
940 nsresult GetBody
(nsIDOMHTMLElement
**aBody
);
941 nsresult SetBody
(nsIDOMHTMLElement
*aBody
);
942 nsresult GetImages
(nsIDOMHTMLCollection
**aImages
);
943 nsresult GetApplets
(nsIDOMHTMLCollection
**aApplets
);
944 nsresult GetLinks
(nsIDOMHTMLCollection
**aLinks
);
945 nsresult GetForms
(nsIDOMHTMLCollection
**aForms
);
946 nsresult GetAnchors
(nsIDOMHTMLCollection
**aAnchors
);
947 nsresult GetCookie
(nsAString
*aCookie
);
948 nsresult SetCookie
(const nsAString
*aCookie
);
951 nsresult Write
(const nsAString
*text
);
952 nsresult Writeln
(const nsAString
*text
);
953 nsresult GetElementsByName
(const nsAString
*elementName
, nsIDOMNodeList
**_retval
);
958 uuid(79beb289
-3644-4b54
-9432-9fb993945629
),
961 interface nsIDOMNSHTMLDocument
: nsISupports
963 nsresult GetWidth
(PRInt32
*aWidth
);
964 nsresult GetHeight
(PRInt32
*aHeight
);
965 nsresult GetAlinkColor
(nsAString
*aAlinkColor
);
966 nsresult SetAlinkColor
(const nsAString
*aAlinkColor
);
967 nsresult GetLinkColor
(nsAString
*aLinkColor
);
968 nsresult SetLinkColor
(const nsAString
*aLinkColor
);
969 nsresult GetVlinkColor
(nsAString
*aVlinkColor
);
970 nsresult SetVlinkColor
(const nsAString
*aVlinkColor
);
971 nsresult GetBgColor
(nsAString
*aBgColor
);
972 nsresult SetBgColor
(const nsAString
*aBgColor
);
973 nsresult GetFgColor
(nsAString
*aFgColor
);
974 nsresult SetFgColor
(const nsAString
*aFgColor
);
975 nsresult GetDomain
(nsAString
*aDomain
);
976 nsresult SetDomain
(const nsAString
*aDomain
);
977 nsresult GetEmbeds
(nsIDOMHTMLCollection
**aEmbeds
);
978 nsresult GetSelection
(nsAString
*_retval
);
979 nsresult Open
(nsACString
*aContentType
, PRBool aReplace
, nsIDOMDocument
**_retval
);
983 nsresult CaptureEvents
(PRInt32 eventFlags
);
984 nsresult ReleaseEvents
(PRInt32 eventFlags
);
985 nsresult RouteEvent
(nsIDOMEvent
*evt
);
986 nsresult GetCompatMode
(nsAString
*aCompatMode
);
987 nsresult GetPlugins
(nsIDOMHTMLCollection
**aPlugins
);
988 nsresult GetDesignMode
(nsAString
*aDesignMode
);
989 nsresult SetDesignMode
(const nsAString
*aDesignMode
);
990 nsresult ExecCommand
(const nsAString
*commandID
, PRBool doShowUI
, const nsAString
*value
, PRBool
*_retval
);
991 nsresult ExecCommandShowHelp
(const nsAString
*commandID
, PRBool
*_retval
);
992 nsresult QueryCommandEnabled
(const nsAString
*commandID
, PRBool
*_retval
);
993 nsresult QueryCommandIndeterm
(const nsAString
*commandID
, PRBool
*_retval
);
994 nsresult QueryCommandState
(const nsAString
*commandID
, PRBool
*_retval
);
995 nsresult QueryCommandSupported
(const nsAString
*commandID
, PRBool
*_retval
);
996 nsresult QueryCommandText
(const nsAString
*commandID
, nsAString
*_retval
);
997 nsresult QueryCommandValue
(const nsAString
*commandID
, nsAString
*_retval
);
1002 uuid(3d9f4973
-dd2e
-48f5
-b5f7
-2634e09eadd9
),
1005 interface nsIDOMDocumentStyle
: nsISupports
1007 nsresult GetStyleSheets
(nsIDOMStyleSheetList
**aStyleSheets
);
1012 uuid(1acdb2ba
-1dd2
-11b2
-95bc
-9542495d2569
),
1015 interface nsIDOMDocumentView
: nsISupports
1017 nsresult GetDefaultView
(nsIDOMAbstractView
**aDefaultView
);
1022 uuid(46b91d66
-28e2
-11d4
-ab1e
-0010830123b4
),
1025 interface nsIDOMDocumentEvent
: nsISupports
1027 cpp_quote
("#undef CreateEvent")
1028 nsresult CreateEvent
(const nsAString
*eventType
, nsIDOMEvent
**_retval
);
1033 uuid(a6cf90ce
-15b3
-11d2
-932e-00805f8add32
),
1036 interface nsIDOMRange
: nsISupports
1045 nsresult GetStartContainer
(nsIDOMNode
**aStartContainer
);
1046 nsresult GetStartOffset
(PRInt32
*aStartOffset
);
1047 nsresult GetEndContainer
(nsIDOMNode
**aEndContainer
);
1048 nsresult GetEndOffset
(PRInt32
*aEndOffset
);
1049 nsresult GetCollapsed
(PRBool
*aCollapsed
);
1050 nsresult GetCommonAncestorContainer
(nsIDOMNode
**aCommonAncestorContainer
);
1051 nsresult SetStart
(nsIDOMNode
*refNode
, PRInt32 offset
);
1052 nsresult SetEnd
(nsIDOMNode
*refNode
, PRInt32 offset
);
1053 nsresult SetStartBefore
(nsIDOMNode
*refNode
);
1054 nsresult SetStartAfter
(nsIDOMNode
*refNode
);
1055 nsresult SetEndBefore
(nsIDOMNode
*refNode
);
1056 nsresult SetEndAfter
(nsIDOMNode
*refNode
);
1057 nsresult Collapse
(PRBool toStart
);
1058 nsresult SelectNode
(nsIDOMNode
*refNode
);
1059 nsresult SelectNodeContents
(nsIDOMNode
*refNode
);
1060 nsresult CompareBoundaryPoints
(PRUint16 how
, nsIDOMRange
*sourceRange
, PRInt16
*_retval
);
1061 nsresult DeleteContents
();
1062 nsresult ExtractContents
(nsIDOMDocumentFragment
**_retval
);
1063 nsresult CloneContents
(nsIDOMDocumentFragment
**_retval
);
1064 nsresult InsertNode
(nsIDOMNode
*newNode
);
1065 nsresult SurroundContents
(nsIDOMNode
*newParent
);
1066 nsresult CloneRange
(nsIDOMRange
**_retval
);
1067 nsresult ToString
(nsAString
*_retval
);
1073 uuid(59188642-23b4
-41d6
-bde1
-302c3906d1f0
),
1076 interface nsIDOMNSRange
: nsISupports
1078 nsresult CreateContextualFragment
([in] const nsAString
*fragment
, [out] nsIDOMDocumentFragment
**_retval
);
1079 nsresult IsPointInRange
([in] nsIDOMNode
*parent
, [in] PRInt32 offset
, [out] PRBool
*_retval
);
1080 nsresult ComparePoint
([in] nsIDOMNode
*parent
, [in] PRInt32 offset
, [out] PRInt16
*_retval
);
1086 uuid(7b9badc6
-c9bc
-447a
-8670-dbd195aed24b
),
1089 interface nsIDOMDocumentRange
: nsISupports
1091 nsresult CreateRange
(nsIDOMRange
**_retval
);
1096 uuid(b2c7ed59
-8634-4352-9e37
-5484c8b6e4e1
),
1099 interface nsISelection
: nsISupports
1101 nsresult GetAnchorNode
(nsIDOMNode
**aAnchorNode
);
1102 nsresult GetAnchorOffset
(PRInt32
*aAnchorOffset
);
1103 nsresult GetFocusNode
(nsIDOMNode
**aFocusNode
);
1104 nsresult GetFocusOffset
(PRInt32
*aFocusOffset
);
1105 nsresult GetIsCollapsed
(PRBool
*aIsCollapsed
);
1106 nsresult GetRangeCount
(PRInt32
*aRangeCount
);
1107 nsresult GetRangeAt
(PRInt32 index
, nsIDOMRange
**_retval
);
1108 nsresult Collapse
(nsIDOMNode
*parentNode
, PRInt32 offset
);
1109 nsresult Extend
(nsIDOMNode
*parentNode
, PRInt32 offset
);
1110 nsresult CollapseToStart
();
1111 nsresult CollapseToEnd
();
1112 nsresult ContainsNode
(nsIDOMNode
*node
, PRBool entirelyContained
, PRBool
*_retval
);
1113 nsresult SelectAllChildren
(nsIDOMNode
*parentNode
);
1114 nsresult AddRange
(nsIDOMRange
*range);
1115 nsresult RemoveRange
(nsIDOMRange
*range);
1116 nsresult RemoveAllRanges
();
1117 nsresult DeleteFromDocument
();
1118 nsresult SelectionLanguageChange
(PRBool langRTL
);
1119 nsresult ToString
(PRUnichar
**_retval
);
1124 uuid(a6cf906f
-15b3
-11d2
-932e-00805f8add32
),
1127 interface nsIDOMWindowCollection
: nsISupports
1129 nsresult GetLength
(PRUint32
*aLength
);
1130 nsresult Item
(PRUint32 index
, nsIDOMWindow
**_retval
);
1131 nsresult NamedItem
(const nsAString
*name
, nsIDOMWindow
**_retval
);
1136 uuid(a6cf906b
-15b3
-11d2
-932e-00805f8add32
),
1139 interface nsIDOMWindow
: nsISupports
1141 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
1142 nsresult GetParent
(nsIDOMWindow
**aParent
);
1143 nsresult GetTop
(nsIDOMWindow
**aTop
);
1144 nsresult GetScrollbars
(nsIDOMBarProp
**aScrollbars
);
1145 nsresult GetFrames
(nsIDOMWindowCollection
**aFrames
);
1146 nsresult GetName
(nsAString
*aName
);
1147 nsresult SetName
(const nsAString
*aName
);
1148 nsresult GetTextZoom
(float *aTextZoom
);
1149 nsresult SetTextZoom
(float aTextZoom
);
1150 nsresult GetScrollX
(PRInt32
*aScrollX
);
1151 nsresult GetScrollY
(PRInt32
*aScrollY
);
1152 nsresult ScrollTo
(PRInt32 xScroll
, PRInt32 yScroll
);
1153 nsresult ScrollBy
(PRInt32 xScrollDif
, PRInt32 yScrollDif
);
1154 nsresult GetSelection
(nsISelection
**_retval
);
1155 nsresult ScrollByLines
(PRInt32 numLines
);
1156 nsresult ScrollByPages
(PRInt32 numPages
);
1157 nsresult SizeToContent
();
1162 uuid(a6cf908e
-15b3
-11d2
-932e-00805f8add32
),
1165 interface nsIDOMHTMLBodyElement
: nsIDOMHTMLElement
1167 nsresult GetALink
(nsAString
*aALink
);
1168 nsresult SetALink
(const nsAString
*aALink
);
1169 nsresult GetBackground
(nsAString
*aBackground
);
1170 nsresult SetBackground
(const nsAString
*aBackground
);
1171 nsresult GetBgColor
(nsAString
*aBgColor
);
1172 nsresult SetBgColor
(const nsAString
*aBgColor
);
1173 nsresult GetLink
(nsAString
*aLink
);
1174 nsresult SetLink
(const nsAString
*aLink
);
1175 nsresult GetText
(nsAString
*aText
);
1176 nsresult SetText
(const nsAString
*aText
);
1177 nsresult GetVLink
(nsAString
*aVLink
);
1178 nsresult SetVLink
(const nsAString
*aVLink
);
1183 uuid(a6cf908f
-15b3
-11d2
-932e-00805f8add32
),
1186 interface nsIDOMHTMLFormElement
: nsIDOMHTMLElement
1188 nsresult GetElements
(nsIDOMHTMLCollection
**aElements
);
1189 nsresult GetLength
(PRInt32
*aLength
);
1190 nsresult GetName
(nsAString
*aName
);
1191 nsresult SetName
(const nsAString
*aName
);
1192 nsresult GetAcceptCharset
(nsAString
*aAcceptCharset
);
1193 nsresult SetAcceptCharset
(const nsAString
*aAcceptCharset
);
1194 nsresult GetAction
(nsAString
*aAction
);
1195 nsresult SetAction
(const nsAString
*aAction
);
1196 nsresult GetEnctype
(nsAString
*aEnctype
);
1197 nsresult SetEnctype
(const nsAString
*aEnctype
);
1198 nsresult GetMethod
(nsAString
*aMethod
);
1199 nsresult SetMethod
(const nsAString
*aMethod
);
1200 nsresult GetTarget
(nsAString
*aTarget
);
1201 nsresult SetTarget
(const nsAString
*aTarget
);
1208 uuid(a6cf9093
-15b3
-11d2
-932e-00805f8add32
),
1211 interface nsIDOMHTMLInputElement
: nsIDOMHTMLElement
1213 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
1214 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
1215 nsresult GetDefaultChecked
(PRBool
*aDefaultChecked
);
1216 nsresult SetDefaultChecked
(PRBool aDefaultChecked
);
1217 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1218 nsresult GetAccept
(nsAString
*aAccept
);
1219 nsresult SetAccept
(const nsAString
*aAccept
);
1220 nsresult GetAccessKey
(nsAString
*aAccessKey
);
1221 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
1222 nsresult GetAlign
(nsAString
*aAlign
);
1223 nsresult SetAlign
(const nsAString
*aAlign
);
1224 nsresult GetAlt
(nsAString
*aAlt
);
1225 nsresult SetAlt
(const nsAString
*aAlt
);
1226 nsresult GetChecked
(PRBool
*aChecked
);
1227 nsresult SetChecked
(PRBool aChecked
);
1228 nsresult GetDisabled
(PRBool
*aDisabled
);
1229 nsresult SetDisabled
(PRBool aDisabled
);
1230 nsresult GetMaxLength
(PRInt32
*aMaxLength
);
1231 nsresult SetMaxLength
(PRInt32 aMaxLength
);
1232 nsresult GetName
(nsAString
*aName
);
1233 nsresult SetName
(const nsAString
*aName
);
1234 nsresult GetReadOnly
(PRBool
*aReadOnly
);
1235 nsresult SetReadOnly
(PRBool aReadOnly
);
1236 nsresult GetSize
(PRUint32
*aSize
);
1237 nsresult SetSize
(PRUint32 aSize
);
1238 nsresult GetSrc
(nsAString
*aSrc
);
1239 nsresult SetSrc
(const nsAString
*aSrc
);
1240 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1241 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1242 nsresult GetType
(nsAString
*aType
);
1243 nsresult SetType
(const nsAString
*aType
);
1244 nsresult GetUseMap
(nsAString
*aUseMap
);
1245 nsresult SetUseMap
(const nsAString
*aUseMap
);
1246 nsresult GetValue
(nsAString
*aValue
);
1247 nsresult SetValue
(const nsAString
*aValue
);
1256 uuid(a6cf9092
-15b3
-11d2
-932e-00805f8add32
),
1259 interface nsIDOMHTMLOptionElement
: nsIDOMHTMLElement
1261 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1262 nsresult GetDefaultSelected
(PRBool
*aDefaultSelected
);
1263 nsresult SetDefaultSelected
(PRBool aDefaultSelected
);
1264 nsresult GetText
(nsAString
*aText
);
1265 nsresult GetIndex
(PRInt32
*aIndex
);
1266 nsresult GetDisabled
(PRBool
*aDisabled
);
1267 nsresult SetDisabled
(PRBool aDisabled
);
1268 nsresult GetLabel
(nsAString
*aLabel
);
1269 nsresult SetLabel
(const nsAString
*aLabel
);
1270 nsresult GetSelected
(PRBool
*aSelected
);
1271 nsresult SetSelected
(PRBool aSelected
);
1272 nsresult GetValue
(nsAString
*aValue
);
1273 nsresult SetValue
(const nsAString
*aValue
);
1278 uuid(bce0213c
-f70f
-488f
-b93f
-688acca55d63
),
1281 interface nsIDOMHTMLOptionsCollection
: nsISupports
1283 nsresult GetLength
(PRUint32
*aLength
);
1284 nsresult SetLength
(PRUint32 aLength
);
1285 nsresult Item
(PRUint32 index
, nsIDOMNode
**_retval
);
1286 nsresult NamedItem
(const nsAString
*name
, nsIDOMNode
**_retval
);
1291 uuid(a6cf9090
-15b3
-11d2
-932e-00805f8add32
),
1294 interface nsIDOMHTMLSelectElement
: nsIDOMHTMLElement
1296 nsresult GetType
(nsAString
*aType
);
1297 nsresult GetSelectedIndex
(PRInt32
*aSelectedIndex
);
1298 nsresult SetSelectedIndex
(PRInt32 aSelectedIndex
);
1299 nsresult GetValue
(nsAString
*aValue
);
1300 nsresult SetValue
(const nsAString
*aValue
);
1301 nsresult GetLength
(PRUint32
*aLength
);
1302 nsresult SetLength
(PRUint32 aLength
);
1303 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1304 nsresult GetOptions
(nsIDOMHTMLOptionsCollection
**aOptions
);
1305 nsresult GetDisabled
(PRBool
*aDisabled
);
1306 nsresult SetDisabled
(PRBool aDisabled
);
1307 nsresult GetMultiple
(PRBool
*aMultiple
);
1308 nsresult SetMultiple
(PRBool aMultiple
);
1309 nsresult GetName
(nsAString
*aName
);
1310 nsresult SetName
(const nsAString
*aName
);
1311 nsresult GetSize
(PRInt32
*aSize
);
1312 nsresult SetSize
(PRInt32 aSize
);
1313 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1314 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1315 nsresult Add
(nsIDOMHTMLElement
*element
, nsIDOMHTMLElement
*before
);
1316 nsresult Remove
(PRInt32 index
);
1323 uuid(a6cf9094
-15b3
-11d2
-932e-00805f8add32
),
1326 interface nsIDOMHTMLTextAreaElement
: nsIDOMHTMLElement
1328 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
1329 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
1330 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1331 nsresult GetAccessKey
(nsAString
*aAccessKey
);
1332 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
1333 nsresult GetCols
(PRInt32
*aCols
);
1334 nsresult SetCols
(PRInt32 aCols
);
1335 nsresult GetDisabled
(PRBool
*aDisabled
);
1336 nsresult SetDisabled
(PRBool aDisabled
);
1337 nsresult GetName
(nsAString
*aName
);
1338 nsresult SetName
(const nsAString
*aName
);
1339 nsresult GetReadOnly
(PRBool
*aReadOnly
);
1340 nsresult SetReadOnly
(PRBool aReadOnly
);
1341 nsresult GetRows
(PRInt32
*aRows
);
1342 nsresult SetRows
(PRInt32 aRows
);
1343 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1344 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1345 nsresult GetType
(nsAString
*aType
);
1346 nsresult GetValue
(nsAString
*aValue
);
1347 nsresult SetValue
(const nsAString
*aValue
);
1355 uuid(a6cf90b1
-15b3
-11d2
-932e-00805f8add32
),
1358 interface nsIDOMHTMLScriptElement
: nsIDOMHTMLElement
1360 nsresult GetText
(nsAString
*aText
);
1361 nsresult SetText
(const nsAString
*aText
);
1362 nsresult GetHtmlFor
(nsAString
*aHtmlFor
);
1363 nsresult SetHtmlFor
(const nsAString
*aHtmlFor
);
1364 nsresult GetEvent
(nsAString
*aEvent
);
1365 nsresult SetEvent
(const nsAString
*aEvent
);
1366 nsresult GetCharset
(nsAString
*aCharset
);
1367 nsresult SetCharset
(const nsAString
*aCharset
);
1368 nsresult GetDefer
(PRBool
*aDefer
);
1369 nsresult SetDefer
(PRBool aDefer
);
1370 nsresult GetSrc
(nsAString
*aSrc
);
1371 nsresult SetSrc
(const nsAString
*aSrc
);
1372 nsresult GetType
(nsAString
*aType
);
1373 nsresult SetType
(const nsAString
*aType
);
1378 uuid(a6cf90ab
-15b3
-11d2
-932e-00805f8add32
),
1381 interface nsIDOMHTMLImageElement
: nsIDOMHTMLElement
1383 nsresult GetName
(nsAString
*aName
);
1384 nsresult SetName
(const nsAString
*aName
);
1385 nsresult GetAlign
(nsAString
*aAlign
);
1386 nsresult SetAlign
(const nsAString
*aAlign
);
1387 nsresult GetAlt
(nsAString
*aAlt
);
1388 nsresult SetAlt
(const nsAString
*aAlt
);
1389 nsresult GetBorder
(nsAString
*aBorder
);
1390 nsresult SetBorder
(const nsAString
*aBorder
);
1391 nsresult GetHeight
(PRInt32
*aHeight
);
1392 nsresult SetHeight
(PRInt32 aHeight
);
1393 nsresult GetHspace
(PRInt32
*aHspace
);
1394 nsresult SetHspace
(PRInt32 aHspace
);
1395 nsresult GetIsMap
(PRBool
*aIsMap
);
1396 nsresult SetIsMap
(PRBool aIsMap
);
1397 nsresult GetLongDesc
(nsAString
*aLongDesc
);
1398 nsresult SetLongDesc
(const nsAString
*aLongDesc
);
1399 nsresult GetSrc
(nsAString
*aSrc
);
1400 nsresult SetSrc
(const nsAString
*aSrc
);
1401 nsresult GetUseMap
(nsAString
*aUseMap
);
1402 nsresult SetUseMap
(const nsAString
*aUseMap
);
1403 nsresult GetVspace
(PRInt32
*aVspace
);
1404 nsresult SetVspace
(PRInt32 aVspace
);
1405 nsresult GetWidth
(PRInt32
*aWidth
);
1406 nsresult SetWidth
(PRInt32 aWidth
);
1411 uuid(a6cf90aa
-15b3
-11d2
-932e-00805f8add32
),
1414 interface nsIDOMHTMLAnchorElement
: nsIDOMHTMLElement
1416 nsresult GetAccessKey
(nsAString
*aAccessKey
);
1417 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
1418 nsresult GetCharset
(nsAString
*aCharset
);
1419 nsresult SetCharset
(const nsAString
*aCharset
);
1420 nsresult GetCoords
(nsAString
*aCoords
);
1421 nsresult SetCoords
(const nsAString
*aCoords
);
1422 nsresult GetHref
(nsAString
*aHref
);
1423 nsresult SetHref
(const nsAString
*aHref
);
1424 nsresult GetHreflang
(nsAString
*aHreflang
);
1425 nsresult SetHreflang
(const nsAString
*aHreflang
);
1426 nsresult GetName
(nsAString
*aName
);
1427 nsresult SetName
(const nsAString
*aName
);
1428 nsresult GetRel
(nsAString
*aRel
);
1429 nsresult SetRel
(const nsAString
*aRel
);
1430 nsresult GetRev
(nsAString
*aRev
);
1431 nsresult SetRev
(const nsAString
*aRev
);
1432 nsresult GetShape
(nsAString
*aShape
);
1433 nsresult SetShape
(const nsAString
*aShape
);
1434 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1435 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1436 nsresult GetTarget
(nsAString
*aTarget
);
1437 nsresult SetTarget
(const nsAString
*aTarget
);
1438 nsresult GetType
(nsAString
*aType
);
1439 nsresult SetType
(const nsAString
*aType
);
1446 uuid(a6cf90b2
-15b3
-11d2
-932e-00805f8add32
),
1449 interface nsIDOMHTMLTableElement
: nsIDOMHTMLElement
1451 nsresult GetCaption
(nsIDOMHTMLTableCaptionElement
**aCaption
);
1452 nsresult SetCaption
(nsIDOMHTMLTableCaptionElement
*aCaption
);
1453 nsresult GetTHead
(nsIDOMHTMLTableSectionElement
**aTHead
);
1454 nsresult SetTHead
(nsIDOMHTMLTableSectionElement
*aTHead
);
1455 nsresult GetTFoot
(nsIDOMHTMLTableSectionElement
**aTFoot
);
1456 nsresult SetTFoot
(nsIDOMHTMLTableSectionElement
*aTFoot
);
1457 nsresult GetRows
(nsIDOMHTMLCollection
**aRows
);
1458 nsresult GetTBodies
(nsIDOMHTMLCollection
**aTBodies
);
1459 nsresult GetAlign
(nsAString
*aAlign
);
1460 nsresult SetAlign
(const nsAString
*aAlign
);
1461 nsresult GetBgColor
(nsAString
*aBgColor
);
1462 nsresult SetBgColor
(const nsAString
*aBgColor
);
1463 nsresult GetBorder
(nsAString
*aBorder
);
1464 nsresult SetBorder
(const nsAString
*aBorder
);
1465 nsresult GetCellPadding
(nsAString
*aCellPadding
);
1466 nsresult SetCellPadding
(const nsAString
*aCellPadding
);
1467 nsresult GetCellSpacing
(nsAString
*aCellSpacing
);
1468 nsresult SetCellSpacing
(const nsAString
*aCellSpacing
);
1469 nsresult GetFrame
(nsAString
*aFrame
);
1470 nsresult SetFrame
(const nsAString
*aFrame
);
1471 nsresult GetRules
(nsAString
*aRules
);
1472 nsresult SetRules
(const nsAString
*aRules
);
1473 nsresult GetSummary
(nsAString
*aSummary
);
1474 nsresult SetSummary
(const nsAString
*aSummary
);
1475 nsresult GetWidth
(nsAString
*aWidth
);
1476 nsresult SetWidth
(const nsAString
*aWidth
);
1477 nsresult CreateTHead
(nsIDOMHTMLElement
**_retval
);
1478 nsresult DeleteTHead
();
1479 nsresult CreateTFoot
(nsIDOMHTMLElement
**_retval
);
1480 nsresult DeleteTFoot
();
1481 nsresult CreateCaption
(nsIDOMHTMLElement
**_retval
);
1482 nsresult DeleteCaption
();
1483 nsresult InsertRow
(PRInt32 index
, nsIDOMHTMLElement
**_retval
);
1484 nsresult DeleteRow
(PRInt32 index
);
1489 uuid(a6cf90b6
-15b3
-11d2
-932e-00805f8add32
),
1492 interface nsIDOMHTMLTableRowElement
: nsIDOMHTMLElement
1494 nsresult GetRowIndex
(PRInt32
*aRowIndex
);
1495 nsresult GetSectionRowIndex
(PRInt32
*aSectionRowIndex
);
1496 nsresult GetCells
(nsIDOMHTMLCollection
**aCells
);
1497 nsresult GetAlign
(nsAString
*aAlign
);
1498 nsresult SetAlign
(const nsAString
*aAlign
);
1499 nsresult GetBgColor
(nsAString
*aBgColor
);
1500 nsresult SetBgColor
(const nsAString
*aBgColor
);
1501 nsresult GetCh
(nsAString
*aCh
);
1502 nsresult SetCh
(const nsAString
*aCh
);
1503 nsresult GetChOff
(nsAString
*aChOff
);
1504 nsresult SetChOff
(const nsAString
*aChOff
);
1505 nsresult GetVAlign
(nsAString
*aVAlign
);
1506 nsresult SetVAlign
(const nsAString
*aVAlign
);
1507 nsresult InsertCell
(PRInt32 index
, nsIDOMHTMLElement
**_retval
);
1508 nsresult DeleteCell
(PRInt32 index
);
1513 uuid(a6cf90ba
-15b3
-11d2
-932e-00805f8add32
),
1516 interface nsIDOMHTMLIFrameElement
: nsIDOMHTMLElement
1518 nsresult GetAlign
(nsAString
*aAlign
);
1519 nsresult SetAlign
(const nsAString
*aAlign
);
1520 nsresult GetFrameBorder
(nsAString
*aFrameBorder
);
1521 nsresult SetFrameBorder
(const nsAString
*aFrameBorder
);
1522 nsresult GetHeight
(nsAString
*aHeight
);
1523 nsresult SetHeight
(const nsAString
*aHeight
);
1524 nsresult GetLongDesc
(nsAString
*aLongDesc
);
1525 nsresult SetLongDesc
(const nsAString
*aLongDesc
);
1526 nsresult GetMarginHeight
(nsAString
*aMarginHeight
);
1527 nsresult SetMarginHeight
(const nsAString
*aMarginHeight
);
1528 nsresult GetMarginWidth
(nsAString
*aMarginWidth
);
1529 nsresult SetMarginWidth
(const nsAString
*aMarginWidth
);
1530 nsresult GetName
(nsAString
*aName
);
1531 nsresult SetName
(const nsAString
*aName
);
1532 nsresult GetScrolling
(nsAString
*aScrolling
);
1533 nsresult SetScrolling
(const nsAString
*aScrolling
);
1534 nsresult GetSrc
(nsAString
*aSrc
);
1535 nsresult SetSrc
(const nsAString
*aSrc
);
1536 nsresult GetWidth
(nsAString
*aWidth
);
1537 nsresult SetWidth
(const nsAString
*aWidth
);
1538 nsresult GetContentDocument
(nsIDOMDocument
**aContentDocument
);
1543 uuid(a6cf90b9
-15b3
-11d2
-932e-00805f8add32
),
1546 interface nsIDOMHTMLFrameElement
: nsIDOMHTMLElement
1548 nsresult GetFrameBorder
(nsAString
*aFrameBorder
);
1549 nsresult SetFrameBorder
(const nsAString
*aFrameBorder
);
1550 nsresult GetLongDesc
(nsAString
*aLongDesc
);
1551 nsresult SetLongDesc
(const nsAString
*aLongDesc
);
1552 nsresult GetMarginHeight
(nsAString
*aMarginHeight
);
1553 nsresult SetMarginHeight
(const nsAString
*aMarginHeight
);
1554 nsresult GetMarginWidth
(nsAString
*aMarginWidth
);
1555 nsresult SetMarginWidth
(const nsAString
*aMarginWidth
);
1556 nsresult GetName
(nsAString
*aName
);
1557 nsresult SetName
(const nsAString
*aName
);
1558 nsresult GetNoResize
(PRBool
*aNoResize
);
1559 nsresult SetNoResize
(PRBool aNoResize
);
1560 nsresult GetScrolling
(nsAString
*aScrolling
);
1561 nsresult SetScrolling
(const nsAString
*aScrolling
);
1562 nsresult GetSrc
(nsAString
*aSrc
);
1563 nsresult SetSrc
(const nsAString
*aSrc
);
1564 nsresult GetContentDocument
(nsIDOMDocument
**aContentDocument
);
1569 uuid(94928ab3
-8b63
-11d3
-989d
-001083010e9b
),
1572 interface nsIURIContentListener
: nsISupports
1574 nsresult OnStartURIOpen
(nsIURI
*aURI
, PRBool
*_retval
);
1575 nsresult DoContent
(const char *aContentType
, PRBool aIsContentPreferred
, nsIRequest
*aRequest
,
1576 nsIStreamListener
**aContentHandler
, PRBool
*_retval
);
1577 nsresult IsPreferred
(const char *aContentType
, char **aDesiredContentType
, PRBool
*_retval
);
1578 nsresult CanHandleContent
(const char *aContentType
, PRBool aIsContentPreferred
,
1579 char **aDesiredContentType
, PRBool
*_retval
);
1580 nsresult GetLoadCookie
(nsISupports
**aLoadCookie
);
1581 nsresult SetLoadCookie
(nsISupports
*aLoadCookie
);
1582 nsresult GetParentContentListener
(nsIURIContentListener
**aParentContentListener
);
1583 nsresult SetParentContentListener
(nsIURIContentListener
*aParentContentListener
);
1588 uuid(44b78386
-1dd2
-11b2
-9ad2
-e4eee2ca1916
),
1591 interface nsITooltipListener
: nsISupports
1593 nsresult OnShowTooltip
(PRInt32 aXCoords
, PRInt32 aYCoords
, const PRUnichar
*aTipText
);
1594 nsresult OnHideTooltip
();
1599 uuid(69e5df00
-7b8b
-11d3
-af61
-00a024ffc08c
),
1602 interface nsIWebBrowser
: nsISupports
1604 nsresult AddWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
1605 nsresult RemoveWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
1606 nsresult GetContainerWindow
(nsIWebBrowserChrome
**aContainerWindow
);
1607 nsresult SetContainerWindow
(nsIWebBrowserChrome
*aContainerWindow
);
1608 nsresult GetParentURIContentListener
(nsIURIContentListener
**aParentURIContentListener
);
1609 nsresult SetParentURIContentListener
(nsIURIContentListener
*aParentURIContentListener
);
1610 nsresult GetContentDOMWindow
(nsIDOMWindow
**aContentDOMWindow
);
1613 cpp_quote
("#define SETUP_ALLOW_JAVASCRIPT 2")
1614 cpp_quote
("#define SETUP_IS_CHROME_WRAPPER 7")
1618 uuid(f15398a0
-8018-11d3
-af70
-00a024ffc08c
),
1621 interface nsIWebBrowserSetup
: nsISupports
1623 nsresult SetProperty
(PRUint32 aId
, PRUint32 aValue
);
1626 typedef void* nativeWindow
;
1630 uuid(046bc8a0
-8015-11d3
-af70
-00a024ffc08c
),
1633 interface nsIBaseWindow
: nsISupports
1635 nsresult InitWindow
(nativeWindow parentNativeWindow
, nsIWidget
*parentWidget
, PRInt32 x
,
1636 PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
1639 nsresult SetPosition
(PRInt32 x
, PRInt32 y
);
1640 nsresult GetPosition
(PRInt32
*x
, PRInt32
*y
);
1641 nsresult SetSize
(PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
1642 nsresult GetSize
(PRInt32
*cx
, PRInt32
*cy
);
1643 nsresult SetPositionAndSize
(PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
1644 nsresult GetPositionAndSize
(PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
1645 nsresult Repaint
(PRBool force
);
1646 nsresult GetParentWidget
(nsIWidget
**aParentWidget
);
1647 nsresult SetParentWidget
(nsIWidget
*aParentWidget
);
1648 nsresult GetParentNativeWindow
(nativeWindow
*aParentNativeWindow
);
1649 nsresult SetParentNativeWindow
(nativeWindow aParentNativeWindow
);
1650 nsresult GetVisibility
(PRBool
*aVisibility
);
1651 nsresult SetVisibility
(PRBool aVisibility
);
1652 nsresult GetEnabled
(PRBool
*aEnabled
);
1653 nsresult SetEnabled
(PRBool aEnabled
);
1654 nsresult GetBlurSuppression
(PRBool
*aBlurSuppression
);
1655 nsresult SetBlurSuppression
(PRBool aBlurSuppression
);
1656 nsresult GetMainWidget
(nsIWidget
**aMainWidget
);
1657 nsresult SetFocus
();
1658 nsresult GetTitle
(PRUnichar
**aTitle
);
1659 nsresult SetTitle
(const PRUnichar
*aTitle
);
1662 cpp_quote
("#define LOAD_FLAGS_NONE 0x00000")
1663 cpp_quote
("#define LOAD_INITIAL_DOCUMENT_URI 0x80000")
1667 uuid(f5d9e7b0
-d930
-11d3
-b057
-00a024ffc08c
),
1670 interface nsIWebNavigation
: nsISupports
1672 nsresult GetCanGoBack
(PRBool
*aCanGoBack
);
1673 nsresult GetCanGoForward
(PRBool
*aCanGoForward
);
1675 nsresult GoForward
();
1676 nsresult GotoIndex
(PRInt32 index
);
1677 nsresult LoadURI
(const PRUnichar
*aURI
, PRUint32 aLoadFlags
, nsIURI
*aReferrer
,
1678 nsIInputStream
*aPostData
, nsIInputStream
*aHeaders
);
1679 nsresult Reload
(PRUint32 aReloadFlags
);
1680 nsresult Stop
(PRUint32 aStopFlags
);
1681 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
1682 nsresult GetCurrentURI
(nsIURI
**aCurrentURI
);
1683 nsresult GetReferringURI
(nsIURI
**aReferringURI
);
1684 nsresult GetSessionHistory
(nsISHistory
**aSessionHistory
);
1685 nsresult SetSessionHistory
(nsISHistory
*aSessionHistory
);
1690 uuid(570f39d0
-efd0
-11d3
-b093
-00a024ffc08c
),
1693 interface nsIWebProgress
: nsISupports
1695 nsresult AddProgressListener
(nsIWebProgressListener
*aListener
, PRUint32 aNotifyMask
);
1696 nsresult RemoveProgressListener
(nsIWebProgressListener
*aListener
);
1697 nsresult GetDOMWindow
(nsIDOMWindow
**aDOMWindow
);
1698 nsresult GetIsLoadingDocument
(PRBool
*aIsLoadingDocument
);
1703 uuid(343700dd
-078b
-42b6
-a809
-b9c1d7e951d0
),
1706 interface nsIPrintSettings
: nsISupports
1708 typedef struct { char dummy
; } nsIntMargin
;
1710 nsresult SetPrintOptions
(PRInt32 aType
, PRBool aTurnOnOff
);
1711 nsresult GetPrintOptions
(PRInt32 aType
, PRBool
*_retval
);
1712 nsresult GetPrintOptionsBits
(PRInt32
*_retval
);
1713 nsresult GetEffectivePageSize
(double *aWidth
, double *aHeight
);
1714 nsresult Clone
(nsIPrintSettings
**_retval
);
1715 nsresult Assign
(nsIPrintSettings
*aPS
);
1716 nsresult GetPrintSession
(nsIPrintSession
**aPrintSession
);
1717 nsresult SetPrintSession
(nsIPrintSession
*aPrintSession
);
1718 nsresult GetStartPageRange
(PRInt32
*aStartPageRange
);
1719 nsresult SetStartPageRange
(PRInt32 aStartPageRange
);
1720 nsresult GetEndPageRange
(PRInt32
*aEndPageRange
);
1721 nsresult SetEndPageRange
(PRInt32 aEndPageRange
);
1722 nsresult GetEdgeTop
(double *aEdgeTop
);
1723 nsresult SetEdgeTop
(double aEdgeTop
);
1724 nsresult GetEdgeLeft
(double *aEdgeLeft
);
1725 nsresult SetEdgeLeft
(double aEdgeLeft
);
1726 nsresult GetEdgeBottom
(double *aEdgeBottom
);
1727 nsresult SetEdgeBottom
(double aEdgeBottom
);
1728 nsresult GetEdgeRight
(double *aEdgeRight
);
1729 nsresult SetEdgeRight
(double aEdgeRight
);
1730 nsresult GetMarginTop
(double *aMarginTop
);
1731 nsresult SetMarginTop
(double aMarginTop
);
1732 nsresult GetMarginLeft
(double *aMarginLeft
);
1733 nsresult SetMarginLeft
(double aMarginLeft
);
1734 nsresult GetMarginBottom
(double *aMarginBottom
);
1735 nsresult SetMarginBottom
(double aMarginBottom
);
1736 nsresult GetMarginRight
(double *aMarginRight
);
1737 nsresult SetMarginRight
(double aMarginRight
);
1738 nsresult GetUnwriteableMarginTop
(double *aUnwriteableMarginTop
);
1739 nsresult SetUnwriteableMarginTop
(double aUnwriteableMarginTop
);
1740 nsresult GetUnwriteableMarginLeft
(double *aUnwriteableMarginLeft
);
1741 nsresult SetUnwriteableMarginLeft
(double aUnwriteableMarginLeft
);
1742 nsresult GetUnwriteableMarginBottom
(double *aUnwriteableMarginBottom
);
1743 nsresult SetUnwriteableMarginBottom
(double aUnwriteableMarginBottom
);
1744 nsresult GetUnwriteableMarginRight
(double *aUnwriteableMarginRight
);
1745 nsresult SetUnwriteableMarginRight
(double aUnwriteableMarginRight
);
1746 nsresult GetScaling
(double *aScaling
);
1747 nsresult SetScaling
(double aScaling
);
1748 nsresult GetPrintBGColors
(PRBool
*aPrintBGColors
);
1749 nsresult SetPrintBGColors
(PRBool aPrintBGColors
);
1750 nsresult GetPrintBGImages
(PRBool
*aPrintBGImages
);
1751 nsresult SetPrintBGImages
(PRBool aPrintBGImages
);
1752 nsresult GetPrintRange
(PRInt16
*aPrintRange
);
1753 nsresult SetPrintRange
(PRInt16 aPrintRange
);
1754 nsresult GetTitle
(PRUnichar
**aTitle
);
1755 nsresult SetTitle
(const PRUnichar
*aTitle
);
1756 nsresult GetDocURL
(PRUnichar
**aDocURL
);
1757 nsresult SetDocURL
(const PRUnichar
*aDocURL
);
1758 nsresult GetHeaderStrLeft
(PRUnichar
**aHeaderStrLeft
);
1759 nsresult SetHeaderStrLeft
(const PRUnichar
*aHeaderStrLeft
);
1760 nsresult GetHeaderStrCenter
(PRUnichar
**aHeaderStrCenter
);
1761 nsresult SetHeaderStrCenter
(const PRUnichar
*aHeaderStrCenter
);
1762 nsresult GetHeaderStrRight
(PRUnichar
**aHeaderStrRight
);
1763 nsresult SetHeaderStrRight
(const PRUnichar
*aHeaderStrRight
);
1764 nsresult GetFooterStrLeft
(PRUnichar
**aFooterStrLeft
);
1765 nsresult SetFooterStrLeft
(const PRUnichar
*aFooterStrLeft
);
1766 nsresult GetFooterStrCenter
(PRUnichar
**aFooterStrCenter
);
1767 nsresult SetFooterStrCenter
(const PRUnichar
*aFooterStrCenter
);
1768 nsresult GetFooterStrRight
(PRUnichar
**aFooterStrRight
);
1769 nsresult SetFooterStrRight
(const PRUnichar
*aFooterStrRight
);
1770 nsresult GetHowToEnableFrameUI
(PRInt16
*aHowToEnableFrameUI
);
1771 nsresult SetHowToEnableFrameUI
(PRInt16 aHowToEnableFrameUI
);
1772 nsresult GetIsCancelled
(PRBool
*aIsCancelled
);
1773 nsresult SetIsCancelled
(PRBool aIsCancelled
);
1774 nsresult GetPrintFrameTypeUsage
(PRInt16
*aPrintFrameTypeUsage
);
1775 nsresult SetPrintFrameTypeUsage
(PRInt16 aPrintFrameTypeUsage
);
1776 nsresult GetPrintFrameType
(PRInt16
*aPrintFrameType
);
1777 nsresult SetPrintFrameType
(PRInt16 aPrintFrameType
);
1778 nsresult GetPrintSilent
(PRBool
*aPrintSilent
);
1779 nsresult SetPrintSilent
(PRBool aPrintSilent
);
1780 nsresult GetShrinkToFit
(PRBool
*aShrinkToFit
);
1781 nsresult SetShrinkToFit
(PRBool aShrinkToFit
);
1782 nsresult GetShowPrintProgress
(PRBool
*aShowPrintProgress
);
1783 nsresult SetShowPrintProgress
(PRBool aShowPrintProgress
);
1784 nsresult GetPaperName
(PRUnichar
**aPaperName
);
1785 nsresult SetPaperName
(const PRUnichar
*aPaperName
);
1786 nsresult GetPaperSizeType
(PRInt16
*aPaperSizeType
);
1787 nsresult SetPaperSizeType
(PRInt16 aPaperSizeType
);
1788 nsresult GetPaperData
(PRInt16
*aPaperData
);
1789 nsresult SetPaperData
(PRInt16 aPaperData
);
1790 nsresult GetPaperWidth
(double *aPaperWidth
);
1791 nsresult SetPaperWidth
(double aPaperWidth
);
1792 nsresult GetPaperHeight
(double *aPaperHeight
);
1793 nsresult SetPaperHeight
(double aPaperHeight
);
1794 nsresult GetPaperSizeUnit
(PRInt16
*aPaperSizeUnit
);
1795 nsresult SetPaperSizeUnit
(PRInt16 aPaperSizeUnit
);
1796 nsresult GetPlexName
(PRUnichar
**aPlexName
);
1797 nsresult SetPlexName
(const PRUnichar
*aPlexName
);
1798 nsresult GetColorspace
(PRUnichar
**aColorspace
);
1799 nsresult SetColorspace
(const PRUnichar
*aColorspace
);
1800 nsresult GetResolutionName
(PRUnichar
**aResolutionName
);
1801 nsresult SetResolutionName
(const PRUnichar aResolutionName
);
1802 nsresult GetDownloadFonts
(PRBool
*aDownloadFonts
);
1803 nsresult SetDownloadFonts
(PRBool aDownloadFonts
);
1804 nsresult GetPrintReversed
(PRBool
*aPrintReversed
);
1805 nsresult SetPrintReversed
(PRBool aPrintReversed
);
1806 nsresult GetPrintInColor
(PRBool
*aPrintInColor
);
1807 nsresult SetPrintInColor
(PRBool aPrintInColor
);
1808 nsresult GetOrientation
(PRInt32
*aOrientation
);
1809 nsresult SetOrientation
(PRInt32 aOrientation
);
1810 nsresult GetPrintCommand
(PRUnichar
**aPrintCommand
);
1811 nsresult SetPrintCommand
(const PRUnichar
*aPrintCommand
);
1812 nsresult GetNumCopies
(PRInt32
*aNumCopies
);
1813 nsresult SetNumCopies
(PRInt32 aNumCopies
);
1814 nsresult GetPrinterName
(PRUnichar
**aPrinterName
);
1815 nsresult SetPrinterName
(const PRUnichar
*aPrinterName
);
1816 nsresult GetPrintToFile
(PRBool
*aPrintToFile
);
1817 nsresult SetPrintToFile
(PRBool aPrintToFile
);
1818 nsresult GetToFileName
(PRUnichar
**aToFileName
);
1819 nsresult SetToFileName
(const PRUnichar
*aToFileName
);
1820 nsresult GetOutputFormat
(PRInt16
*aOutputFormat
);
1821 nsresult SetOutputFormat
(PRInt16 aOutputFormat
);
1822 nsresult GetPrintPageDelay
(PRInt32
*aPrintPageDelay
);
1823 nsresult SetPrintPageDelay
(PRInt32 aPrintPageDelay
);
1824 nsresult GetIsInitializedFromPrinter
(PRBool
*aIsInitializedFromPrinter
);
1825 nsresult SetIsInitializedFromPrinter
(PRBool aIsInitializedFromPrinter
);
1826 nsresult GetIsInitializedFromPrefs
(PRBool
*aIsInitializedFromPrefs
);
1827 nsresult SetIsInitializedFromPrefs
(PRBool aIsInitializedFromPrefs
);
1828 nsresult SetMarginInTwips
(nsIntMargin
*aMargin
);
1829 nsresult SetEdgeInTwips
(nsIntMargin
*aEdge
);
1830 nsresult GetMarginInTwips
(nsIntMargin
*aMargin
);
1831 nsresult GetEdgeInTwips
(nsIntMargin
*aEdge
);
1832 nsresult SetupSilentPrinting
();
1833 nsresult SetUnwriteableMarginInTwips
(nsIntMargin
*aEdge
);
1834 nsresult GetUnwriteableMarginInTwips
(nsIntMargin
*aEdge
);
1839 uuid(9a7ca4b0
-fbba
-11d4
-a869
-00105a183419
),
1842 interface nsIWebBrowserPrint
: nsISupports
1844 nsresult GetGlobalPrintSettings
(nsIPrintSettings
**aGlobalPrintSettings
);
1845 nsresult GetCurrentPrintSettings
(nsIPrintSettings
**aCurrentPrintSettings
);
1846 nsresult GetCurrentChildDOMWindow
(nsIDOMWindow
**aCurrentChildDOMWindow
);
1847 nsresult GetDoingPrint
(PRBool
*aDoingPrint
);
1848 nsresult GetDoingPrintPreview
(PRBool
*aDoingPrintPreview
);
1849 nsresult GetIsFramesetDocument
(PRBool
*aIsFramesetDocument
);
1850 nsresult GetIsFramesetFrameSelected
(PRBool
*aIsFramesetFrameSelected
);
1851 nsresult GetIsIFrameSelected
(PRBool
*aIsIFrameSelected
);
1852 nsresult GetIsRangeSelection
(PRBool
*aIsRangeSelection
);
1853 nsresult GetPrintPreviewNumPages
(PRInt32
*aPrintPreviewNumPages
);
1854 nsresult Print
(nsIPrintSettings
*aThePrintSettings
, nsIWebProgressListener
*aWPListener
);
1855 nsresult PrintPreview
(nsIPrintSettings
*aThePrintSettings
, nsIDOMWindow
*aChildDOMWin
,
1856 nsIWebProgressListener
*aWPListener
);
1857 nsresult PrintPreviewNavigate
(PRInt16 aNavType
, PRInt32 aPageNum
);
1859 nsresult EnumerateDocumentNames
(PRUint32
*aCount
, PRUnichar
***aResult
);
1860 nsresult ExitPrintPreview
();
1865 uuid(919e792a
-6490-40b8
-bba5
-f9e9ad5640c8
),
1868 interface nsIScrollable
: nsISupports
1871 ScrollOrientation_X
= 1,
1872 ScrollOrientation_Y
= 2
1877 Scrollbar_Never
= 2,
1878 Scrollbar_Always
= 3
1881 nsresult GetCurScrollPos
(PRInt32 scrollOrientation
, PRInt32
*curPos
);
1882 nsresult SetCurScrollPos
(PRInt32 scrollOrientation
, PRInt32 curPos
);
1883 nsresult SetCurScrollPosEx
(PRInt32 curHorizontalPos
, PRInt32 curVerticalPos
);
1884 nsresult GetScrollRange
(PRInt32 scrollOrientation
, PRInt32
*minPos
, PRInt32
*maxPos
);
1885 nsresult SetScrollRange
(PRInt32 scrollOrientation
, PRInt32 minPos
, PRInt32 maxPos
);
1886 nsresult SetScrollRangeEx
(PRInt32 minHorizontalPos
, PRInt32 maxHorizontalPos
,
1887 PRInt32 minVerticalPos
, PRInt32 maxVerticalPos
);
1888 nsresult GetDefaultScrollbarPreferences
(PRInt32 scrollOrientation
, PRInt32
*scrollbarPref
);
1889 nsresult SetDefaultScrollbarPreferences
(PRInt32 scrollOrientation
, PRInt32 scrollbarPref
);
1890 nsresult GetScrollbarVisibility
(PRBool
*verticalVisible
, PRBool
*horizontalVisible
);
1895 uuid(c8c0a080
-0868-11d3
-915f
-d9d889d48e3c
),
1898 interface nsIFile
: nsISupports
1900 nsresult Append
(const nsAString
*node
);
1901 nsresult AppendNative
(const nsAString
*node
);
1902 nsresult Normalize
();
1903 nsresult Create
(PRUint32 type
, PRUint32 permission
);
1904 nsresult GetLeafName
(nsAString
*aLeafName
);
1905 nsresult SetLeafName
(const nsAString
*aLeafName
);
1906 nsresult GetNativeLeafName
(nsAString
*aLeafName
);
1907 nsresult SetNativeLeafName
(const nsAString
*aLeafName
);
1908 nsresult CopyTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1909 nsresult CopyToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1910 nsresult CopyToFollowingLinks
(nsIFile
*newParentDir
, const nsAString
*newName
);
1911 nsresult CopyToFollowingLinksNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1912 nsresult MoveTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1913 nsresult MoveToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1914 nsresult Remove
(PRBool recursive
);
1915 nsresult GetPermissions
(PRUint32
*aPermissions
);
1916 nsresult SetPermissions
(PRUint32 pPermissions
);
1917 nsresult GetPermissionsOfLink
(PRUint32
*aPermissions
);
1918 nsresult SetPermissionsOfLink
(PRUint32 pPermissions
);
1919 nsresult GetLastModifiedTime
(PRInt64
*aLastModifiedTime
);
1920 nsresult SetLastModifiedTime
(PRInt64 aLastModifiedTime
);
1921 nsresult GetFileSize
(PRInt64
*aFileSize
);
1922 nsresult SetFileSize
(PRInt64 aFileSize
);
1923 nsresult GetFileSizeOfLink
(PRInt64
*aFileSizeOfLink
);
1924 nsresult GetTarget
(nsAString
*aTarget
);
1925 nsresult GetNativeTarget
(nsACString
*aNativeTarget
);
1926 nsresult GetPath
(nsAString
*aPath
);
1927 nsresult GetNativePath
(nsACString
*aNativePath
);
1928 nsresult Exists
(PRBool
*_retval
);
1929 nsresult IsWritable
(PRBool
*_retval
);
1930 nsresult IsReadable
(PRBool
*_retval
);
1931 nsresult IsExecutable
(PRBool
*_retval
);
1932 nsresult IsHidden
(PRBool
*_retval
);
1933 nsresult IsDirectory
(PRBool
*_retval
);
1934 nsresult IsFile
(PRBool
*_retval
);
1935 nsresult IsSymlink
(PRBool
*_retval
);
1936 nsresult IsSpecial
(PRBool
*_retval
);
1937 nsresult CreateUnique
(PRUint32 type
, PRUint32 permission
);
1938 nsresult Clone
(nsIFile
**_retval
);
1939 nsresult Equals
(nsIFile
*inFile
, PRBool
*_retval
);
1940 nsresult Contains
(nsIFile
*inFile
, PRBool recir
, PRBool
*_retval
);
1941 nsresult GetParent
(nsIFile
**aParent
);
1942 nsresult GetDirectoryEntries
(nsISimpleEnumerator
**aDirectoryEntries
);
1947 uuid(56c35506
-f14b
-11d3
-99d3
-ddbfac2ccf65
),
1950 interface nsIPrefBranch
: nsISupports
1952 nsresult GetRoot
(char **aRoot
);
1953 nsresult GetPrefType
(const char *aPrefName
, PRInt32
*_retval
);
1954 nsresult GetBoolPref
(const char *aPrefName
, PRBool
*_retval
);
1955 nsresult SetBoolPref
(const char *aPrefName
, PRInt32 aValue
);
1956 nsresult GetCharPref
(const char *aPrefName
, char **_retval
);
1957 nsresult SetCharPref
(const char *aPrefName
, const char *aValue
);
1958 nsresult GetIntPref
(const char *aPrefName
, PRInt32
*_retval
);
1959 nsresult SetIntPref
(const char *aPrefName
, PRInt32 aValue
);
1960 nsresult GetComplexValue
(const char *aPrefName
, const nsIID
*aType
, void **aValue
);
1961 nsresult SetComplexValue
(const char *aPrefName
, const nsIID
*aType
, nsISupports
*aValue
);
1962 nsresult ClearUserPref
(const char *aPrefName
);
1963 nsresult LockPref
(const char *aPrefName
);
1964 nsresult PrefHasUserValue
(const char *aPrefName
, PRBool
*_retval
);
1965 nsresult PrefIsLocked
(const char *aPrefName
, PRBool
*_retval
);
1966 nsresult UnlockPref
(const char *aPrefName
);
1967 nsresult DeleteBranch
(const char *aStartingAt
);
1968 nsresult GetChildList
(const char *aStartingAt
, PRUint32
*aCount
, char ***aChildArray
);
1969 nsresult ResetBranch
(const char *aStartingAt
);
1974 uuid(15fd6940
-8ea7
-11d3
-93ad
-00104ba0fd40
),
1977 interface nsIProtocolHandler
: nsISupports
1979 nsresult GetScheme
(nsACString
*aScheme
);
1980 nsresult GetDefaultPort
(PRInt32
*aDefaultPort
);
1981 nsresult GetProtocolFlags
(PRUint32
*aProtocolFlags
);
1982 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
,
1983 nsIURI
*aBaseURI
, nsIURI
**_retval
);
1984 nsresult NewChannel
(nsIURI
*aURI
, nsIChannel
**_retval
);
1985 nsresult AllowPort
(PRInt32 port
, const char *scheme
, PRBool
*_retval
);
1990 uuid(0e61f3b2
-34d7
-4c79
-bfdc
-4860bc7341b7
),
1993 interface nsIExternalProtocolHandler
: nsIProtocolHandler
1995 nsresult ExternalAppExistsForScheme
(const nsACString
*scheme
, PRBool
*_retval
);
2000 uuid(bddeda3f
-9020-4d12
-8c70
-984ee9f7935e
),
2003 interface nsIIOService
: nsISupports
2005 nsresult GetProtocolHandler
(const char *aScheme
, nsIProtocolHandler
**_retval
);
2006 nsresult GetProtocolFlags
(const char *aScheme
, PRUint32
*_retval
);
2007 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
2009 nsresult NewFileURI
(nsIFile
*aFile
, nsIURI
**_retval
);
2010 nsresult NewChannelFromURI
(nsIURI
*aURI
, nsIChannel
**_retval
);
2011 nsresult NewChannel
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
2012 nsIChannel
**_retval
);
2013 nsresult GetOffline
(PRBool
*aOffline
);
2014 nsresult SetOffline
(PRBool aOffline
);
2015 nsresult AllowPort
(PRInt32 aPort
, const char *aScheme
, PRBool
*_retval
);
2016 nsresult ExtractScheme
(const nsACString
*urlString
, nsACString
* _retval
);
2021 uuid(a50d5516
-5c0a
-4f08
-b427
-703ca0c44ac3
),
2024 interface nsINetUtil
: nsISupports
2026 nsresult ParseContentType
(const nsACString
*aTypeHeader
, nsACString
*aCharset
,
2027 PRBool
*aHadCharset
, nsACString
*_retval
);
2028 nsresult ProtocolHasFlags
(nsIURI
*aURI
, PRUint32 aFlag
, PRBool
*_retval
);
2029 nsresult URIChainHasFlags
(nsIURI
*aURI
, PRUint32 aFlags
, PRBool
*_retval
);
2030 nsresult ToImmutableURI
(nsIURI
*aURI
, nsIURI
**_retval
);
2031 nsresult EscapeString
(const nsACString
*aString
, PRUint32 aEscapeType
, nsACString
*_retval
);
2032 nsresult EscapeURL
(const nsACString
*aStr
, PRUint32 aFlags
, nsACString
*_retval
);
2033 nsresult UnescapeString
(const nsACString
*aStr
, PRUint32 aFlags
, nsACString
*_retval
);
2034 nsresult ExtractCharsetFromContentType
(const nsACString
*aTypeHeader
, nsACString
*aCharset
,
2035 PRInt32
*aCharsetStart
, PRInt32
*aCharsetEnd
, PRBool
*_retval
);
2040 uuid(9c5d3c58
-1dd1
-11b2
-a1c9
-f3699284657a
),
2043 interface nsIWebBrowserFocus
: nsISupports
2045 nsresult Activate
();
2046 nsresult Deactivate
();
2047 nsresult SetFocusAtFirstElement
();
2048 nsresult SetFocusAtLastElement
();
2049 nsresult GetFocusedWindow
(nsIDOMWindow
**aFocusedWindow
);
2050 nsresult SetFocusedWindow
(nsIDOMWindow
*aFocusedWindow
);
2051 nsresult GetFocusedElement
(nsIDOMElement
**aFocusedElement
);
2052 nsresult SetFocusedElement
(nsIDOMElement
*aFocusedElement
);
2057 uuid(ba434c60
-9d52
-11d3
-afb0
-00a024ffc08c
),
2060 interface nsIWebBrowserChrome
: nsISupports
2062 nsresult SetStatus
(PRUint32 statusType
, const PRUnichar
*status
);
2063 nsresult GetWebBrowser
(nsIWebBrowser
**aWebBrowser
);
2064 nsresult SetWebBrowser
(nsIWebBrowser
*aWebBrowser
);
2065 nsresult GetChromeFlags
(PRUint32
*aChromeFlags
);
2066 nsresult SetChromeFlags
(PRUint32 aChromeFlags
);
2067 nsresult DestroyBrowserWindow
();
2068 nsresult SizeBrowserTo
(PRInt32 aCX
, PRInt32 aCY
);
2069 nsresult ShowAsModal
();
2070 nsresult IsWindowModal
(PRBool
*_retval
);
2071 nsresult ExitModalEventLoop
(nsresult aStatus
);
2076 uuid(df31c120
-ded6
-11d1
-bd85
-00805f8ae3f4
),
2079 interface nsIDOMEventListener
: nsISupports
2081 nsresult HandleEvent
(nsIDOMEvent
*event
);
2086 uuid(1c773b30
-d1cf
-11d2
-bd95
-00805f8ae3f4
),
2089 interface nsIDOMEventTarget
: nsISupports
2091 nsresult AddEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
2092 nsresult RemoveEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
2093 nsresult DispatchEvent
(nsIDOMEvent
*evt
, PRBool
*_retval
);
2098 uuid(a66b7b80
-ff46
-bd97
-0080-5f8ae38add32
),
2101 interface nsIDOMEvent
: nsISupports
2103 nsresult GetType
(nsAString
*aType
);
2104 nsresult GetTarget
(nsIDOMEventTarget
**aTarget
);
2105 nsresult GetCurrentTarget
(nsIDOMEventTarget
**aCurrentTarget
);
2106 nsresult GetEventPhase
(PRUint16
*aEventPhase
);
2107 nsresult GetBubbles
(PRBool
*aBubbles
);
2108 nsresult GetCancelable
(PRBool
*aCancelable
);
2109 nsresult GetTimeStamp
(DOMTimeStamp
*aTimeStamp
);
2110 nsresult StopPropagation
();
2111 nsresult PreventDefault
();
2112 nsresult InitEvent
(const nsAString
*eventTypeArg
, PRBool canBubbleArg
, PRBool cancelableArg
);
2115 cpp_quote
("#define CONTEXT_NONE 0x00")
2116 cpp_quote
("#define CONTEXT_LINK 0x01")
2117 cpp_quote
("#define CONTEXT_IMAGE 0x02")
2118 cpp_quote
("#define CONTEXT_DOCUMENT 0x04")
2119 cpp_quote
("#define CONTEXT_TEXT 0x08")
2120 cpp_quote
("#define CONTEXT_INPUT 0x10")
2121 cpp_quote
("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2125 uuid(3478b6b0
-3875-11d4
-94ef
-0020183bf181
),
2128 interface nsIContextMenuListener
: nsISupports
2130 nsresult OnShowContextMenu
(PRUint32 aContextFlags
, nsIDOMEvent
*aEvent
, nsIDOMNode
*aNode
);
2135 uuid(a6cf90c3
-15b3
-11d2
-932e-00805f8add32
),
2138 interface nsIDOMUIEvent
: nsIDOMEvent
2140 nsresult GetView
(nsIDOMAbstractView
**aView
);
2141 nsresult GetDetail
(PRInt32
*aDetail
);
2142 nsresult InitUIEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
2143 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
);
2148 uuid(ff751edc
-8b02
-aae7
-0010-8301838a3123
),
2151 interface nsIDOMMouseEvent
: nsIDOMUIEvent
2153 nsresult GetScreenX
(PRInt32
*aScreenX
);
2154 nsresult GetScreenY
(PRInt32
*aScreenY
);
2155 nsresult GetClientX
(PRInt32
*aClientX
);
2156 nsresult GetClientY
(PRInt32
*aClientY
);
2157 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
2158 nsresult GetShiftKey
(PRBool
*aShiftKey
);
2159 nsresult GetAltKey
(PRBool
*aAltKey
);
2160 nsresult GetMetaKey
(PRBool
*aMetaKey
);
2161 nsresult GetButton
(PRUint16
*aButton
);
2162 nsresult GetRelatedTarget
(nsIDOMEventTarget
**aRelatedTarget
);
2163 nsresult InitMouseEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
2164 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
, PRInt32 screenXArg
, PRInt32 screenYArg
,
2165 PRInt32 clientXArg
, PRInt32 clientYArg
, PRBool ctrlKeyArg
, PRBool altKeyArg
,
2166 PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint16 buttonArg
,
2167 nsIDOMEventTarget
*relatedTargetArg
);
2172 uuid(028e0e6e
-8b01
-11d3
-aae7
-0010838a3123
),
2175 interface nsIDOMKeyEvent
: nsIDOMUIEvent
2177 nsresult GetCharCode
(PRUint32
*aCharCode
);
2178 nsresult GetKeyCode
(PRUint32
*aKeyCode
);
2179 nsresult GetAltKey
(PRBool
*aAltKey
);
2180 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
2181 nsresult GetShiftKey
(PRBool
*aShiftKey
);
2182 nsresult GetMetaKey
(PRBool
*aMetaKey
);
2183 nsresult InitKeyEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
,
2184 PRBool cancelableArg
, nsIDOMAbstractView
*viewArg
, PRBool ctrlKeyArg
,
2185 PRBool altKeyArg
, PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint32 keyCodeArg
,
2186 PRUint32 charCodeArg
);
2191 uuid(3e5432cd
-9568-4bd1
-8cbe
-d50aba110743
),
2194 interface nsIEmbeddingSiteWindow
: nsISupports
2196 nsresult SetDimensions
(PRUint32 flags
, PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
2197 nsresult GetDimensions
(PRUint32 flags
, PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
2198 nsresult SetFocus
();
2199 nsresult GetVisibility
(PRBool
*aVisibility
);
2200 nsresult SetVisibility
(PRBool aVisibility
);
2201 nsresult GetTitle
(PRUnichar
**aTitle
);
2202 nsresult SetTitle
(const PRUnichar
*aTitle
);
2203 nsresult GetSiteWindow
(void **aSiteWindow
);
2208 uuid(2417cbfe
-65ad
-48a6
-b4b6
-eb84db174392
),
2211 interface nsIComponentRegistrar
: nsISupports
2213 nsresult AutoRegister
(nsIFile
*aSpec
);
2214 nsresult AutoUnregister
(nsIFile
*aSpec
);
2215 nsresult RegisterFactory
(const nsCID
*aClass
, const char *aClassName
,
2216 const char *aContractID
, nsIFactory
*aFactory
);
2217 nsresult UnregisterFactory
(const nsCID
*aClass
, nsIFactory
*aFactory
);
2218 nsresult RegisterFactoryLocation
(const nsCID
*aClass
, const char *aClassName
,
2219 const char *aContractID
, nsIFile
*aFile
, const char *aLoaderStr
,
2221 nsresult UnregisterFactoryLocation
(const nsCID
*aClass
, nsIFile
*aFile
);
2222 nsresult IsCIDRegistered
(const nsCID
*aClass
, PRBool
*_retval
);
2223 nsresult IsContractIDRegistered
(const char *aContractID
, PRBool
*_retval
);
2224 nsresult EnumerateCIDs
(nsISimpleEnumerator
**_retval
);
2225 nsresult EnumerateContractIDs
(nsISimpleEnumerator
**_retval
);
2226 nsresult CIDToContractID
(const nsCID
*aClass
, char **_retval
);
2227 nsresult ContractIDToCID
(const char *aContractID
, nsCID
**_retval
);
2232 uuid(1630c61a
-325e-49ca
-8759-a31b16c47aa5
),
2235 interface nsIPromptService
: nsISupports
2237 nsresult Alert
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2238 const PRUnichar
*aText
);
2239 nsresult AlertCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2240 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
);
2241 nsresult Confirm
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2242 const PRUnichar
*aText
, PRBool
*_retval
);
2243 nsresult ConfirmCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2244 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
,
2246 nsresult ConfirmEx
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2247 const PRUnichar
*aText
, PRUint32 aButtonFlags
, const PRUnichar
*aButton0Title
,
2248 const PRUnichar
*aButton1Title
, const PRUnichar
*aButton2Title
,
2249 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRInt32
*_retval
);
2250 nsresult Prompt
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2251 const PRUnichar
*aText
, PRUnichar
**aValue
, const PRUnichar
*aCheckMsg
,
2252 PRBool
*aCheckState
, PRBool
*_retval
);
2253 nsresult PromptUsernameAndPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2254 const PRUnichar
*aText
, PRUnichar
**aUsername
, PRUnichar
**aPassword
,
2255 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRBool
*_retval
);
2256 nsresult PromptPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2257 const PRUnichar
*aText
, PRUnichar
**aPassword
, const PRUnichar
*aCheckMsg
,
2258 PRBool
*aCheckState
, PRBool
*_retval
);
2259 nsresult Select
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2260 const PRUnichar
*aText
, PRUint32 aCount
, const PRUnichar
**aSelectList
,
2261 PRInt32
*aOutSelection
, PRBool
*_retval
);
2266 uuid(b128a1e6
-44f3
-4331-8fbe
-5af360ff21ee
),
2269 interface nsITooltipTextProvider
: nsISupports
2271 nsresult GetNodeText
(nsIDOMNode
*aNode
, PRUnichar
**aText
, PRBool
*_retval
);
2276 uuid(02b0625a
-e7f3
-11d2
-9f5a
-006008a6efe9
),
2279 interface nsIProfile
: nsISupports
2281 nsresult GetProfileCount
(PRInt32
*aProfileCount
);
2282 nsresult GetProfileList
(PRUint32
*length
, PRUnichar
***profileNames
);
2283 nsresult ProfileExists
(const PRUnichar
*profileName
, PRBool
*_retval
);
2284 nsresult GetCurrentProfile
(PRUnichar
**aCurrentProfile
);
2285 nsresult SetCurrentProfile
(const PRUnichar
* aCurrentProfile
);
2286 nsresult ShutDownCurrentProfile
(PRUint32 shutDownType
);
2287 nsresult CreateNewProfile
(const PRUnichar
*profileName
,
2288 const PRUnichar
*nativeProfileDir
, const PRUnichar
*langcode
,
2289 PRBool useExistingDir
);
2290 nsresult RenameProfile
(const PRUnichar
*oldName
, const PRUnichar
*newName
);
2291 nsresult DeleteProfile
(const PRUnichar
*name
, PRBool canDeleteFiles
);
2292 nsresult CloneProfile
(const PRUnichar
*profileName
);
2297 uuid(30465632-a777
-44cc
-90f9
-8145475ef999
),
2300 interface nsIWindowCreator
: nsISupports
2302 nsresult CreateChromeWindow
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
2303 nsIWebBrowserChrome
**_retval
);
2308 uuid(f673ec81
-a4b0
-11d6
-964b
-eb5a2bf216fc
),
2311 interface nsIWindowCreator2
: nsIWindowCreator
2313 nsresult CreateChromeWindow2
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
2314 PRUint32 contextFlags
, nsIURI
*uri
, PRBool
*cancel
,
2315 nsIWebBrowserChrome
**_retval
);
2320 uuid(002286a8
-494b
-43b3
-8ddd
-49e3fc50622b
),
2323 interface nsIWindowWatcher
: nsISupports
2325 nsresult OpenWindow
(nsIDOMWindow
*aParent
, const char *aUrl
, const char *aName
,
2326 const char *aFeatures
, nsISupports
*aArguments
, nsIDOMWindow
**_retval
);
2327 nsresult RegisterNotification
(nsIObserver
*aObserver
);
2328 nsresult UnregisterNotification
(nsIObserver
*aObserver
);
2329 nsresult GetWindowEnumerator
(nsISimpleEnumerator
**_retval
);
2330 nsresult GetNewPrompter
(nsIDOMWindow
*aParent
, nsIPrompt
**_retval
);
2331 nsresult GetNewAuthPrompter
(nsIDOMWindow
*aParent
, nsIAuthPrompt
**_retval
);
2332 nsresult SetWindowCreator
(nsIWindowCreator
*creator
);
2333 nsresult GetChromeForWindow
(nsIDOMWindow
*aWindow
, nsIWebBrowserChrome
**_retval
);
2334 nsresult GetWindowByName
(const PRUnichar
*aTargetName
, nsIDOMWindow
*aCurrentWindow
,
2335 nsIDOMWindow
**_retval
);
2336 nsresult GetActiveWindow
(nsIDOMWindow
**aActiveWindow
);
2337 nsresult SetActiveWindow
(nsIDOMWindow
*aActiveWindow
);
2342 uuid(274cd32e
-3675
-47e1
-9d8a
-fc6504ded9ce
),
2345 interface nsIEditingSession
: nsISupports
2347 nsresult GetEditorStatus
(PRUint32
*aEditorStatus
);
2348 nsresult MakeWindowEditable
(nsIDOMWindow
*window
, const char *aEditorType
,
2349 PRBool doAfterUriLoad
, PRBool aMakeWholeDocumentEditable
, PRBool aInteractive
);
2350 nsresult WindowIsEditable
(nsIDOMWindow
*window
, PRBool
*_retval
);
2351 nsresult GetEditorForWindow
(nsIDOMWindow
*window
, nsIEditor
**_retval
);
2352 nsresult SetupEditorOnWindow
(nsIDOMWindow
*window
);
2353 nsresult TearDownEditorOnWindow
(nsIDOMWindow
*window
);
2354 nsresult SetEditorOnControllers
(nsIDOMWindow
*aWindow
, nsIEditor
*aEditor
);
2355 nsresult DisableJSAndPlugins
(nsIDOMWindow
*aWindow
);
2356 nsresult RestoreJSAndPlugins
(nsIDOMWindow
*aWindow
);
2357 nsresult DetachFromWindow
(nsIDOMWindow
*aWindow
);
2358 nsresult ReattachToWindow
(nsIDOMWindow
*aWindow
);
2363 uuid(83f892cf
-7ed3
-490e-967a
-62640f3158e1
),
2366 interface nsICommandParams
: nsISupports
2368 nsresult GetValueType
(const char *name
, PRInt16
*_retval
);
2369 nsresult GetBooleanValue
(const char *name
, PRBool
*_retval
);
2370 nsresult GetLongValue
(const char *name
, PRInt32
*_retval
);
2371 nsresult GetDoubleValue
(const char *name
, double *_retval
);
2372 nsresult GetStringValue
(const char *name
, nsAString
*_retval
);
2373 nsresult GetCStringValue
(const char *name
, char **_retval
);
2374 nsresult GetISupportsValue
(const char *name
, nsISupports
**_retval
);
2375 nsresult SetBooleanValue
(const char *name
, PRBool value
);
2376 nsresult SetLongValue
(const char *name
, PRInt32 value
);
2377 nsresult SetDoubleValue
(const char *name
, double value
);
2378 nsresult SetStringValue
(const char *name
, const nsAString
*value
);
2379 nsresult SetCStringValue
(const char *name
, const char *value
);
2380 nsresult SetISupportsValue
(const char *name
, nsISupports
*value
);
2381 nsresult RemoveValue
(const char *name
);
2382 nsresult HasMoreElements
(PRBool
*_retval
);
2384 nsresult GetNext
(char **_retval
);
2389 uuid(080d2001
-f91e
-11d4
-a73c
-f9242928207c
),
2392 interface nsICommandManager
: nsISupports
2394 nsresult AddCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandToObserve
);
2395 nsresult RemoveCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandObserved
);
2396 nsresult IsCommandSupported
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
2397 nsresult IsCommandEnabled
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
2398 nsresult GetCommandState
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
,
2399 nsICommandParams
*aCommandParams
);
2400 nsresult DoCommand
(const char *aCommandName
, nsICommandParams
*aCommandParams
,
2401 nsIDOMWindow
*aTargetWindow
);
2406 uuid(47b82b60
-a36f
-4167-8072-6f421151ed50
),
2409 interface nsIControllerContext
: nsISupports
2411 nsresult Init
(nsIControllerCommandTable
*aCommandTable
);
2412 nsresult SetCommandContext
(nsISupports
*aCommandContext
);
2417 uuid(d5b61b82
-1da4
-11d3
-bf87
-00105a1b0627
),
2420 interface nsIController
: nsISupports
2422 nsresult IsCommandEnabled
(const char *command
, PRBool
*_retval
);
2423 nsresult SupportsCommand
(const char *command
, PRBool
*_retval
);
2424 nsresult DoCommand
(const char *command
);
2425 nsresult OnEvent
(const char *eventName
);
2430 uuid(34769de0
-30d0
-4cef
-894a
-fcd8bb27c4b4
),
2433 interface nsIContentSerializer
: nsISupports
2435 nsresult Init
(PRUint32 flags
, PRUint32 aWrapColumn
, const char* aCharSet
, PRBool aIsCopying
,
2436 PRBool aIsWholeDocument
);
2437 nsresult AppendText
(nsIDOMText
*aText
, PRInt32 aStartOffset
, PRInt32 aEndOffset
, nsAString
*aStr
);
2438 nsresult AppendCDATASection
(nsIDOMCDATASection
*aCDATASection
, PRInt32 aStartOffset
,
2439 PRInt32 aEndOffset
, nsAString
*aStr
);
2440 nsresult AppendProcessingInstruction
(nsIDOMProcessingInstruction
* aPI
, PRInt32 aStartOffset
,
2441 PRInt32 aEndOffset
, nsAString
*aStr
);
2442 nsresult AppendComment
(nsIDOMComment
*aComment
, PRInt32 aStartOffset
, PRInt32 aEndOffset
,
2444 nsresult AppendDoctype
(nsIDOMDocumentType
*aDoctype
, nsAString
*aStr
);
2445 nsresult AppendElementStart
(nsIDOMElement
*aElement
, nsIDOMElement
*aOriginalElement
,
2447 nsresult AppendElementEnd
(nsIDOMElement
*aElement
, nsAString
*aStr
);
2448 nsresult Flush
(nsAString
*aStr
);
2449 nsresult AppendDocumentStart
(nsIDOMDocument
*aDocument
, nsAString
*aStr
);
2454 uuid(96b60ba0
-634a
-41e4
-928e-78ab0b3c4b46
),
2457 interface nsIEditor
: nsISupports
2459 typedef void *nsIPresShellPtr
;
2460 typedef void *nsIContentPtr
;
2462 nsresult GetSelection
([out] nsISelection
*_retval
);
2463 nsresult Init
([in] nsIDOMDocument
*doc
, [in] nsIPresShellPtr shell
, [in] nsIContentPtr aRoot
, [in] nsISelectionController
*aSelCon
, [in] PRUint32 aFlags
);
2464 nsresult SetAttributeOrEquivalent
([in] nsIDOMElement
*element
, [in] const nsAString
*sourceAttrName
, [in] const nsAString
*sourceAttrValue
, [in] PRBool aSuppressTransaction
);
2465 nsresult RemoveAttributeOrEquivalent
([in] nsIDOMElement
*element
, [in] const nsAString
*sourceAttrName
, [in] PRBool aSuppressTransaction
);
2466 nsresult PostCreate
();
2467 nsresult PreDestroy
();
2468 nsresult GetFlags
([out] PRUint32
*_retval
);
2469 nsresult SetFlags
([in] PRUint32 val
);
2470 nsresult GetContentsMIMEType
([out] char **_retval
);
2471 nsresult SetContentsMIMEType
([in] const char *val
);
2472 nsresult GetIsDocumentEditable
([out] PRBool
*_retval
);
2473 nsresult GetDocument
([out] nsIDOMDocument
**_retval
);
2474 nsresult GetRootElement
([out] nsIDOMElement
**_retval
);
2475 nsresult GetSelectionController
([out] nsISelectionController
**_retval
);
2476 nsresult DeleteSelection
([in] PRInt16 action
);
2477 nsresult GetDocumentIsEmpty
([out] PRBool
*_retval
);
2478 nsresult GetDocumentModified
([out] PRBool
*_retval
);
2479 nsresult GetDocumentCharacterSet
([out] nsACString
*_retval
);
2480 nsresult SetDocumentCharacterSet
([in] const nsACString
*val
);
2481 nsresult ResetModificationCount
();
2482 nsresult GetModificationCount
([out] PRInt32
*_retval
);
2483 nsresult IncrementModificationCount
([in] PRInt32 aModCount
);
2484 nsresult GetTransactionManager
([out] nsITransactionManager
**_retval
);
2485 nsresult SetTransactionManager
(nsITransactionManager
*aTransactionManager
);
2486 nsresult DoTransaction
([in] nsITransaction
*txn
);
2487 nsresult EnableUndo
([in] PRBool enable
);
2488 nsresult Undo
([in] PRUint32 count
);
2489 nsresult CanUndo
([out] PRBool
*isEnabled
, [out] PRBool
*canUndo
);
2490 nsresult Redo
([in] PRUint32 count
);
2491 nsresult CanRedo
([out] PRBool
*isEnabled
, [out] PRBool
*canRedo
);
2492 nsresult BeginTransaction
();
2493 nsresult EndTransaction
();
2494 nsresult BeginPlaceHolderTransaction
([in] nsIAtom
*name
);
2495 nsresult EndPlaceHolderTransaction
();
2496 nsresult ShouldTxnSetSelection
([out] PRBool
*_retval
);
2497 nsresult SetShouldTxnSetSelection
([in] PRBool should
);
2498 nsresult GetInlineSpellChecker
([out] nsIInlineSpellChecker
**_retval
);
2499 nsresult SyncRealTimeSpell
();
2500 nsresult SetSpellcheckUserOverride
(PRBool enable
);
2502 nsresult CanCut
([out] PRBool
*_retval
);
2504 nsresult CanCopy
([out] PRBool
*_retval
);
2505 nsresult Paste
([in] PRInt32 aSelectionType
);
2506 nsresult CanPaste
([in] PRInt32 aSelectionType
, [out] PRBool
*_retval
);
2507 nsresult SelectAll
();
2508 nsresult BeginningOfDocument
();
2509 nsresult EndOfDocument
();
2510 nsresult CanDrag
([in] nsIDOMEvent
*aEvent
, [out] PRBool
*_retval
);
2511 nsresult DoDrag
([in] nsIDOMEvent
*aEvent
);
2512 nsresult InsertFromDrop
([in] nsIDOMEvent
*aEvent
);
2513 nsresult SetAttribute
([in] nsIDOMElement
*aElement
, [in] const nsAString
*attributestr
, [in] const nsAString
*attvalue
);
2514 nsresult GetAttributeValue
([in] nsIDOMElement
*aElement
, [in] const nsAString
*attributestr
, [out] nsAString
*resultValue
, PRBool
*_retval
);
2515 nsresult RemoveAttribute
([in] nsIDOMElement
*aElement
, [in] const nsAString
*aAttribute
);
2516 nsresult CloneAttribute
([in] const nsAString
*aAttribute
, [in] nsIDOMNode
*aDestNode
, [in] nsIDOMNode
*aSourceNode
);
2517 nsresult CloneAttributes
([in] nsIDOMNode
*destNode
, [in] nsIDOMNode
*sourceNode
);
2518 nsresult CreateNode
([in] const nsAString
*tag
, [in] nsIDOMNode
*parent
, [in] PRInt32 position
, [out] nsIDOMNode
**_retval
);
2519 nsresult InsertNode
([in] nsIDOMNode
*node
, [in] nsIDOMNode
*parent
, [in] PRInt32 aPosition
);
2520 nsresult SplitNode
([in] nsIDOMNode
*existingRightNode
, [in] PRInt32 offset
, [out] nsIDOMNode
**newLeftNode
);
2521 nsresult JoinNodes
([in] nsIDOMNode
*leftNode
, [in] nsIDOMNode
*rightNode
, [in] nsIDOMNode
*parent
);
2522 nsresult DeleteNode
([in] nsIDOMNode
*child
);
2523 nsresult MarkNodeDirty
([in] nsIDOMNode
*node
);
2524 nsresult SwitchTextDirection
();
2525 nsresult OutputToString
([in] nsAString formatType
, [in] PRUint32 flags
, [out] nsAString
*_retval
);
2526 nsresult OutputToStream
([in] nsIOutputStream
*aStream
, [in] nsAString
*formatType
, [in] nsACString
*charsetOverride
, [in] PRUint32 flags
);
2527 nsresult AddEditorObserver
([in] nsIEditorObserver
*observer
);
2528 nsresult RemoveEditorObserver
([in] nsIEditorObserver
*observer
);
2529 nsresult AddEditActionListener
([in] nsIEditActionListener
*listener
);
2530 nsresult RemoveEditActionListener
([in] nsIEditActionListener
*listener
);
2531 nsresult AddDocumentStateListener
([in] nsIDocumentStateListener
*listener
);
2532 nsresult RemoveDocumentStateListener
([in] nsIDocumentStateListener
*listener
);
2533 nsresult DumpContentTree
();
2534 nsresult DebugDumpContent
();
2535 nsresult DebugUnitTests
([out] PRInt32
*outNumTests
, [out] PRInt32
*outNumTestsFailed
);
2536 PRBool IsModifiableNode
(nsIDOMNode
*aNode
);
2541 uuid(afc36593
-5787-4420-93d9
-b2c0ccbf0cad
),
2544 interface nsIHTMLEditor
: nsISupports
2546 nsresult AddDefaultProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
2547 nsresult RemoveDefaultProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
2548 nsresult RemoveAllDefaultProperties
();
2549 nsresult SetCSSInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
2550 nsresult SetInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
2551 nsresult GetInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
, [out] PRBool
*aFirst
, [out] PRBool
*aAny
, [out] PRBool
*aAll
);
2552 nsresult GetInlinePropertyWithAttrValue
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
, [out] PRBool
*aFirst
, [out] PRBool
*aAny
, [out] PRBool
*aAll
, [out] nsAString
*_retval
);
2553 nsresult RemoveAllInlineProperties
();
2554 nsresult RemoveInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
);
2555 nsresult IncreaseFontSize
();
2556 nsresult DecreaseFontSize
();
2557 nsresult CanDrag
([in] nsIDOMEvent
*aEvent
, [out] PRBool
*_retval
);
2558 nsresult DoDrag
([in] nsIDOMEvent
*aEvent
);
2559 nsresult InsertFromDrop
([in] nsIDOMEvent
*aEvent
);
2560 nsresult NodeIsBlock
([in] nsIDOMNode
*node
, PRBool
*_retval
);
2561 nsresult InsertHTML
([in] nsAString
*aInputString
);
2562 nsresult PasteNoFormatting
([in] PRInt32 aSelectionType
);
2563 nsresult RebuildDocumentFromSource
([in] nsAString
*aSourceString
);
2564 nsresult InsertHTMLWithContext
([in] nsAString
*aInputString
, [in] nsAString
*aContextStr
, [in] nsAString
*aInfoStr
, [in] nsAString
*aFlavor
, [in] nsIDOMDocument
*aSourceDoc
, [in] nsIDOMNode
*aDestinationNode
, [in] PRInt32 aDestinationOffset
, [in] PRBool aDeleteSelection
);
2565 nsresult InsertElementAtSelection
([in] nsIDOMElement
*aElement
, [in] PRBool aDeleteSelection
);
2566 nsresult SetDocumentTitle
([in] nsAString
*aTitle
);
2567 nsresult UpdateBaseURL
();
2568 nsresult SelectElement
([in] nsIDOMElement
*aElement
);
2569 nsresult SetCaretAfterElement
([in] nsIDOMElement
*aElement
);
2570 nsresult SetParagraphFormat
([in] nsAString
*aParagraphFormat
);
2571 nsresult GetParagraphState
([out] PRBool
*aMixed
, [out] nsAString
*_retval
);
2572 nsresult GetFontFaceState
([out] PRBool
*aMixed
, [out] nsAString
*_retval
);
2573 nsresult GetFontColorState
([out] PRBool
*aMixed
, [out] nsAString
*_retval
);
2574 nsresult GetBackgroundColorState
([out] PRBool
*aMixed
, [out] nsAString
*_retval
);
2575 nsresult GetHighlightColorState
([out] PRBool
*aMixed
, [out] nsAString
*_retval
);
2576 nsresult GetListState
([out] PRBool
*aMixed
, [out] PRBool
*aOL
, [out] PRBool
*aUL
, [out] PRBool
*aDL
);
2577 nsresult GetListItemState
([out] PRBool
*aMixed
, [out] PRBool
*aLI
, [out] PRBool
*aDT
, [out] PRBool
*aDD
);
2578 nsresult GetAlignment
([out] PRBool
*aMixed
, [out] PRInt16
*aAlign
);
2579 nsresult GetIndentState
([out] PRBool
*aCanIndent
, [out] PRBool
*aCanOutdent
);
2580 nsresult MakeOrChangeList
([in] nsAString
*aListType
, [in] PRBool entireList
, [in] nsAString
*aBulletType
);
2581 nsresult RemoveList
([in] nsAString
*aListType
);
2582 nsresult Indent
([in] nsAString
*aIndent
);
2583 nsresult Align
([in] nsAString
*aAlign
);
2584 nsresult GetElementOrParentByTagName
([in] nsAString
*aTagName
, [in] nsIDOMNode
*aNode
, [out] nsIDOMElement
**_retval
);
2585 nsresult GetSelectedElement
([in] nsAString
*aTagName
, [out] nsIDOMElement
**_retval
);
2586 nsresult GetHeadContentsAsHTML
([out] nsAString
*_retval
);
2587 nsresult ReplaceHeadContentsWithHTML
([in] nsAString
*aSourceToInsert
);
2588 nsresult CreateElementWithDefaults
([in] nsAString
*aTagName
, [out] nsIDOMElement
**_retval
);
2589 nsresult InsertLinkAroundSelection
([in] nsIDOMElement
*aAnchorElement
);
2590 nsresult SetBackgroundColor
([in] nsAString
*aColor
);
2591 nsresult SetBodyAttribute
([in] nsAString
*aAttr
, [in] nsAString
*aValue
);
2592 nsresult IgnoreSpuriousDragEvent
([in] PRBool aIgnoreSpuriousDragEvent
);
2593 nsresult GetLinkedObjects
([out] nsISupportsArray
**_retval
);
2594 nsresult GetIsCSSEnabled
([out] PRBool
*_retval
);
2595 nsresult SetIsCSSEnabled
([in] PRBool prb
);
2596 nsresult AddInsertionListener
([in] nsIContentFilter
*inFilter
);
2597 nsresult RemoveInsertionListener
([in] nsIContentFilter
*inFilter
);
2598 nsresult CreateAnonymousElement
([in] nsAString
*aTag
, [in] nsIDOMNode
*aParentNode
, [in] nsAString
*aAnonClass
, [in] PRBool aIsCreatedHidden
, [out] nsIDOMElement
**_retval
);
2599 nsresult GetSelectionContainer
([out] nsIDOMElement
**_retval
);
2600 nsresult CheckSelectionStateForAnonymousButtons
([in] nsISelection
*aSelection
);
2601 nsresult IsAnonymousElement
([in] nsIDOMElement
*aElement
, [out] PRBool
*_retval
);
2602 nsresult GetReturnInParagraphCreatesNewParagraph
([out] PRBool
*_retval
);
2603 nsresult SetReturnInParagraphCreatesNewParagraph
([in] PRBool prb
);
2608 uuid(8adfb831
-1053-4a19
-884d
-bcdad7277b4b
),
2611 interface nsIDocShell
: nsISupports
2613 nsresult LoadURI
(nsIURI
*uri
, nsIDocShellLoadInfo
*loadInfo
, PRUint32 aLoadFlags
, PRBool firstParty
);
2614 nsresult LoadStream
(nsIInputStream
*aStream
, nsIURI
*aURI
, const nsACString
*aContentType
,
2615 const nsACString
*aContentCharset
, nsIDocShellLoadInfo
*aLoadInfo
);
2616 nsresult InternalLoad
(nsIURI
*aURI
, nsIURI
*aReferrer
, nsISupports
*aOwner
, PRUint32 aFlags
, const PRUnichar
*aWindowTarget
,
2617 const char *aTypeHint
, nsIInputStream
*aPostDataStream
, nsIInputStream
*aHeadersStream
, PRUint32 aLoadFlags
,
2618 nsISHEntry
*aSHEntry
, PRBool firstParty
, nsIDocShell
**aDocShell
, nsIRequest
**aRequest
);
2619 nsresult CreateLoadInfo
(nsIDocShellLoadInfo
**loadInfo
);
2620 nsresult PrepareForNewContentModel
();
2621 nsresult SetCurrentURI
(nsIURI
*aURI
);
2622 nsresult FirePageHideNotification
(PRBool isUnload
);
2623 nsresult GetPresContext
(void /*nsPresContext*/ **aPresContext
);
2624 nsresult GetPresShell
(nsIPresShell
**aPresShell
);
2625 nsresult GetEldestPresShell
(nsIPresShell
**aEldestPresShell
);
2626 nsresult GetContentViewer
(nsIContentViewer
**aContentViewer
);
2627 nsresult GetChromeEventHandler
(nsIDOMEventTarget
**aChromeEventHandler
);
2628 nsresult SetChromeEventHandler
(nsIDOMEventTarget
*aChromeEventHandler
);
2629 nsresult GetDocumentCharsetInfo
(nsIDocumentCharsetInfo
**aDocumentCharsetInfo
);
2630 nsresult SetDocumentCharsetInfo
(nsIDocumentCharsetInfo
*aDocumentCharsetInfo
);
2631 nsresult GetAllowPlugins
(PRBool
*aAllowPlugins
);
2632 nsresult SetAllowPlugins
(PRBool aAllowPlugins
);
2633 nsresult GetAllowJavascript
(PRBool
*aAllowJavascript
);
2634 nsresult SetAllowJavascript
(PRBool aAllowJavascript
);
2635 nsresult GetAllowMetaRedirects
(PRBool
*aAllowMetaRedirects
);
2636 nsresult SetAllowMetaRedirects
(PRBool aAllowMetaRedirects
);
2637 nsresult GetAllowSubframes
(PRBool
*aAllowSubframes
);
2638 nsresult SetAllowSubframes
(PRBool aAllowSubframes
);
2639 nsresult GetAllowImages
(PRBool
*aAllowImages
);
2640 nsresult SetAllowImages
(PRBool aAllowImages
);
2641 nsresult GetAllowDNSPrefetch
(PRBool
*aAllowDNSPrefetch
);
2642 nsresult SetAllowDNSPrefetch
(PRBool aAllowDNSPrefetch
);
2643 nsresult GetDocShellEnumerator
(PRInt32 aItemType
, PRInt32 aDirection
, nsISimpleEnumerator
**_retval
);
2644 nsresult GetAppType
(PRUint32
*aAppType
);
2645 nsresult SetAppType
(PRUint32 aAppType
);
2646 nsresult GetAllowAuth
(PRBool
*aAllowAuth
);
2647 nsresult SetAllowAuth
(PRBool aAllowAuth
);
2648 nsresult GetZoom
(float *aZoom
);
2649 nsresult SetZoom
(float aZoom
);
2650 nsresult GetMarginWidth
(PRInt32
*aMarginWidth
);
2651 nsresult SetMarginWidth
(PRInt32 aMarginWidth
);
2652 nsresult GetMarginHeight
(PRInt32
*aMarginHeight
);
2653 nsresult SetMarginHeight
(PRInt32 aMarginHeight
);
2654 nsresult TabToTreeOwner
(PRBool forward
, PRBool
*tookFocus
);
2655 nsresult GetBusyFlags
(PRUint32
*aBusyFlags
);
2656 nsresult GetLoadType
(PRUint32
*aLoadType
);
2657 nsresult SetLoadType
(PRUint32 aLoadType
);
2658 nsresult IsBeingDestroyed
(PRBool
*_retval
);
2659 nsresult GetIsExecutingOnLoadHandler
(PRBool
*aIsExecutingOnLoadHandler
);
2660 nsresult GetLayoutHistoryState
(nsILayoutHistoryState
**aLayoutHistoryState
);
2661 nsresult SetLayoutHistoryState
(nsILayoutHistoryState
*aLayoutHistoryState
);
2662 nsresult GetShouldSaveLayoutState
(PRBool
*aShouldSaveLayoutState
);
2663 nsresult GetSecurityUI
(nsISecureBrowserUI
**aSecurityUI
);
2664 nsresult SetSecurityUI
(nsISecureBrowserUI
*aSecurityUI
);
2665 nsresult SuspendRefreshURIs
();
2666 nsresult ResumeRefreshURIs
();
2667 nsresult BeginRestore
(nsIContentViewer
*viewer
, PRBool top
);
2668 nsresult FinishRestore
();
2669 nsresult GetRestoringDocument
(PRBool
*aRestoringDocument
);
2670 nsresult GetUseErrorPages
(PRBool
*aUseErrorPages
);
2671 nsresult SetUseErrorPages
(PRBool aUseErrorPages
);
2672 nsresult GetPreviousTransIndex
(PRInt32
*aPreviousTransIndex
);
2673 nsresult GetLoadedTransIndex
(PRInt32
*aLoadedTransIndex
);
2674 nsresult HistoryPurged
(PRInt32 numEntries
);
2675 nsresult GetSessionStorageForURI
(nsIURI
*uri
, nsIDOMStorage
**_retval
);
2676 nsresult GetSessionStorageForPrincipal
(nsIPrincipal
*principal
, PRBool create
, nsIDOMStorage
**_retval
);
2677 nsresult AddSessionStorage
(nsIPrincipal
*principal
, nsIDOMStorage
*storage
);
2678 nsresult GetCurrentDocumentChannel
(nsIChannel
**aCurrentDocumentChannel
);
2679 nsresult SetChildOffset
(PRUint32 offset
);
2680 nsresult GetIsInUnload
(PRBool
*aIsInUnload
);
2681 nsresult GetChannelIsUnsafe
(PRBool
*aChannelIsUnsafe
);
2682 void DetachEditorFromWindow
();
2683 nsresult GetIsOffScreenBrowser
(PRBool
*aIsOffScreenBrowser
);
2684 nsresult SetIsOffScreenBrowser
(PRBool aIsOffScreenBrowser
);
2689 uuid(365d600b
-868a
-452a
-8de8
-f46fad8fee53
),
2692 interface nsIMutationObserver
: nsISupports
2694 void CharacterDataWillChange
(nsIDocument
*aDocument
, nsIContent
*aContent
,
2695 void /*CharacterDataChangeInfo*/ *aInfo
);
2696 void CharacterDataChanged
(nsIDocument
*aDocument
, nsIContent
*aContent
,
2697 void /*CharacterDataChangeInfo*/ *aInfo
);
2698 void AttributeWillChange
(nsIDocument
*aDocument
, nsIContent
* aContent
, PRInt32 aNameSpaceID
,
2699 nsIAtom
*aAttribute
, PRInt32 aModType
);
2700 void AttributeChanged
(nsIDocument
*aDocument
, nsIContent
*aContent
, PRInt32 aNameSpaceID
,
2701 nsIAtom
*aAttribute
, PRInt32 aModType
, PRUint32 aStateMask
);
2702 void ContentAppended
(nsIDocument
*aDocument
, nsIContent
*aContainer
, PRInt32 aNewIndexInContainer
);
2703 void ContentInserted
(nsIDocument
*aDocument
, nsIContent
*aContainer
, nsIContent
*aChild
,
2704 PRInt32 aIndexInContainer
);
2705 void ContentRemoved
(nsIDocument
*aDocument
, nsIContent
*aContainer
, nsIContent
*aChild
,
2706 PRInt32 aIndexInContainer
);
2707 void NodeWillBeDestroyed
(const nsINode
*aNode
);
2708 void ParentChainChanged
(nsIContent
*aContent
);
2713 uuid(4e14e321
-a4bb
-49f8
-a57a
-2363668d14d0
),
2716 interface nsIDocumentObserver
: nsIMutationObserver
2718 typedef int nsUpdateType
;
2720 void BeginUpdate
(nsIDocument
*aDocument
, nsUpdateType aUpdateType
);
2721 void EndUpdate
(nsIDocument
*aDocument
, nsUpdateType aUpdateType
);
2722 void BeginLoad
(nsIDocument
*aDocument
);
2723 void EndLoad
(nsIDocument
*aDocument
);
2724 void ContentStatesChanged
(nsIDocument
*aDocument
, nsIContent
*aContent1
, nsIContent
*aContent2
,
2725 PRInt32 aStateMask
);
2726 void StyleSheetAdded
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, PRBool aDocumentSheet
);
2727 void StyleSheetRemoved
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, PRBool aDocumentSheet
);
2728 void StyleSheetApplicableStateChanged
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
,
2729 PRBool aApplicable
);
2730 void StyleRuleChanged
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, nsIStyleRule
*aOldStyleRule
,
2731 nsIStyleRule
*aNewStyleRule
);
2732 void StyleRuleAdded
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, nsIStyleRule
*aStyleRule
);
2733 void StyleRuleRemoved
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, nsIStyleRule
*aStyleRule
);
2734 void BindToDocument
(nsIDocument
*aDocument
, nsIContent
*aContent
);
2735 void DoneAddingChildren
(nsIContent
*aContent
, PRBool aHaveNotified
);