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 nsIDOMClientRect
;
135 typedef nsISupports nsIDOMLocation
;
136 typedef nsISupports nsIDocument
;
137 typedef nsISupports nsIContent
;
138 typedef nsISupports nsINode
;
139 typedef nsISupports nsIStyleSheet
;
140 typedef nsISupports nsIStyleRule
;
141 typedef nsISupports nsIVariant
;
142 typedef nsISupports nsIDOMUserDataHandler
;
143 typedef nsISupports nsIDocShellLoadInfo
;
144 typedef nsISupports nsISHEntry
;
145 typedef nsISupports nsIPresShell
;
146 typedef nsISupports nsIContentViewer
;
147 typedef nsISupports nsIDocumentCharsetInfo
;
148 typedef nsISupports nsILayoutHistoryState
;
149 typedef nsISupports nsISecureBrowserUI
;
150 typedef nsISupports nsIDOMStorage
;
154 uuid(8bb35ed9
-e332
-462d
-9155-4a002ab5c958
),
158 interface nsIServiceManager
: nsISupports
160 nsresult GetService
(nsCIDRef aClass
, nsIIDRef aIID
, void **result
);
161 nsresult GetServiceByContractID
(const char *aContractID
, nsIIDRef aIID
, void **result
);
162 nsresult IsServiceInstantiated
(nsCIDRef aClass
, nsIIDRef aIID
, BOOL
*_retval
);
163 nsresult IsServiceInstantiatedByContractID
(const char *aContractID
, nsIIDRef aIID
, BOOL
*_retval
);
168 uuid(00000001-0000-0000-c000
-000000000046),
172 interface nsIFactory
: nsISupports
174 nsresult CreateInstance
(nsISupports
*aOuter
, const nsIID
*iid
, void **result
);
175 nsresult LockFactory
(PRBool lock
);
180 uuid(db242e01
-e4d9
-11d2
-9dde
-000064657374),
184 interface nsIObserver
: nsISupports
186 nsresult Observe
(nsISupports
*aSubject
, const char *aTopic
, const PRUnichar
*aData
);
191 uuid(a88e5a60
-205a
-4bb1
-94e1
-2628daf51eae
),
195 interface nsIComponentManager
: nsISupports
197 nsresult GetClassObject
(nsCIDRef aClass
, nsIIDRef aIID
, nsQIResult result
);
198 nsresult GetClassObjectByContractID
(const char *aContractID
, nsIIDRef aIID
, nsQIResult result
);
199 nsresult CreateInstance
(nsCIDRef aClass
, nsISupports
*aDelegate
, nsIIDRef aIID
,
201 nsresult CreateInstanceByContractID
(const char *aContractID
, nsISupports
*aDelegate
,
202 nsIIDRef aIID
, nsQIResult result
);
207 uuid(59e7e77a
-38e4
-11d4
-8cf5
-0060b0fc14a3
),
211 interface nsIMemory
: nsISupports
213 void *Alloc
(/*size_t*/ int size
);
214 void *Realloc
(void *_ptr
, /*size_t*/ int newSize
);
215 void Free
(void *_ptr
);
216 nsresult HeapMinimize
(PRBool immediate
);
217 nsresult IsLowMemory
(PRBool
*_retval
);
222 uuid(9188bc85
-f92e
-11d2
-81ef
-0060083a0bcf
),
226 interface nsIWeakReference
: nsISupports
228 nsresult QueryReferent
(const nsIID
*riid
, void **result
);
233 uuid(9188bc86
-f92e
-11d2
-81ef
-0060083a0bcf
),
237 interface nsISupportsWeakReference
: nsISupports
239 nsresult GetWeakReference
(nsIWeakReference
**_retval
);
244 uuid(033a1470
-8b2a
-11d3
-af88
-00a024ffc08c
),
248 interface nsIInterfaceRequestor
: nsISupports
250 nsresult GetInterface
(const nsIID
*riid
, void **result
);
255 uuid(4a2abaf0
-6886-11d3
-9382-00104ba0fd40
),
259 interface nsIRunnable
: nsISupports
266 uuid(d1899240
-f9d2
-11d2
-bdd6
-000064657374),
270 interface nsISimpleEnumerator
: nsISupports
272 nsresult HasMoreElements
(PRBool
*_retval
);
273 nsresult GetNext
(nsISupports
**_retval
);
278 uuid(fa9c7f6c
-61b3
-11d4
-9877-00c04fa0cf4a
),
282 interface nsIInputStream
: nsISupports
285 nsresult Available
(PRUint32
*_retval
);
286 nsresult Read
(char *aBuf
, PRUint32 aCount
, PRUint32
*_retval
);
287 nsresult ReadSegments
(nsresult
(*aWriter
)(nsIInputStream
*aInStream
,
288 void *aClosure
, const char *aFromSegment
, PRUint32 aToOffset
,
289 PRUint32 aCount
, PRUint32
*aWriteCount
),
290 void *aClosure
, PRUint32 aCount
, PRUint32
*_retval
);
291 nsresult IsNonBlocking
(PRBool
*_retval
);
296 uuid(07a22cc0
-0ce5
-11d3
-9331-00104ba0fd40
),
300 interface nsIURI
: nsISupports
302 nsresult GetSpec
(nsACString
*aSpec
);
303 nsresult SetSpec
(const nsACString
*aSpec
);
304 nsresult GetPrePath
(nsACString
*aPrePath
);
305 nsresult GetScheme
(nsACString
*aScheme
);
306 nsresult SetScheme
(const nsACString
*aScheme
);
307 nsresult GetUserPass
(nsACString
*aUserPass
);
308 nsresult SetUserPass
(const nsACString
*aUserPass
);
309 nsresult GetUsername
(nsACString
*aUsername
);
310 nsresult SetUsername
(const nsACString
*aUsername
);
311 nsresult GetPassword
(nsACString
*aPassword
);
312 nsresult SetPassword
(const nsACString
*aPassword
);
313 nsresult GetHostPort
(nsACString
*aHostPort
);
314 nsresult SetHostPort
(const nsACString
*aHostPort
);
315 nsresult GetHost
(nsACString
*aHost
);
316 nsresult SetHost
(const nsACString
*aHost
);
317 nsresult GetPort
(PRInt32
*aPort
);
318 nsresult SetPort
(PRInt32 aPort
);
319 nsresult GetPath
(nsACString
*aPath
);
320 nsresult SetPath
(const nsACString
*aPath
);
321 nsresult Equals
(nsIURI
*other
, PRBool
*_retval
);
322 nsresult SchemeIs
(const char *scheme
, PRBool
*_retval
);
323 nsresult Clone
(nsIURI
**_retval
);
324 nsresult Resolve
(const nsACString
*relativePath
, nsACString
*_retval
);
325 nsresult GetAsciiSpec
(nsACString
*aAsciiSpec
);
326 nsresult GetAsciiHost
(nsACString
*aAsciiHost
);
327 nsresult GetOriginCharset
(nsACString
*aOriginCharset
);
332 uuid(d6116970
-8034-11d3
-9399-00104ba0fd40
),
336 interface nsIURL
: nsIURI
338 nsresult GetFilePath
(nsACString
*aFilePath
);
339 nsresult SetFilePath
(const nsACString
*aFilePath
);
340 nsresult GetParam
(nsACString
*aParam
);
341 nsresult SetParam
(const nsACString
*aParam
);
342 nsresult GetQuery
(nsACString
*aQuery
);
343 nsresult SetQuery
(const nsACString
*aQuery
);
344 nsresult GetRef
(nsACString
*aRef
);
345 nsresult SetRef
(const nsACString
*aRef
);
346 nsresult GetDirectory
(nsACString
*aDirectory
);
347 nsresult SetDirectory
(const nsACString
*aDirectory
);
348 nsresult GetFileName
(nsACString
*aFileName
);
349 nsresult SetFileName
(const nsACString
*aFileName
);
350 nsresult GetFileBaseName
(nsACString
*aFileBaseName
);
351 nsresult SetFileBaseName
(const nsACString
*aFileBaseName
);
352 nsresult GetFileExtension
(nsACString
*aFileExtension
);
353 nsresult SetFileExtension
(const nsACString
*aFileExtension
);
354 nsresult GetCommonBaseSpec
(nsIURI
*aURIToCompare
, nsACString
*_retval
);
355 nsresult GetRelativeSpec
(nsIURI
*aURIToCompare
, nsACString
*_retval
);
360 uuid(ef6bfbd2
-fd46
-48d8
-96b7
-9f8f0fd387fe
),
364 interface nsIRequest
: nsISupports
366 nsresult GetName
(nsACString
*aName
);
367 nsresult IsPending
(PRBool
*_retval
);
368 nsresult GetStatus
(nsresult
*aStatus
);
369 nsresult Cancel
(nsresult aStatus
);
372 nsresult GetLoadGroup
(nsILoadGroup
**aLoadGroup
);
373 nsresult SetLoadGroup
(nsILoadGroup
*aLoadGroup
);
374 nsresult GetLoadFlags
(nsLoadFlags
*aLoadFlags
);
375 nsresult SetLoadFlags
(nsLoadFlags aLoadFlags
);
380 uuid(fd91e2e0
-1481-11d3
-9333-00104ba0fd40
),
384 interface nsIRequestObserver
: nsISupports
386 nsresult OnStartRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
387 nsresult OnStopRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatusCode
);
392 uuid(1a637020
-1482-11d3
-9333-00104ba0fd40
),
396 interface nsIStreamListener
: nsIRequestObserver
398 nsresult OnDataAvailable
(nsIRequest
*aRequest
, nsISupports
*aContext
,
399 nsIInputStream
*aInputStream
, PRUint32 aOffset
, PRUint32 aCount
);
404 uuid(3de0a31c
-feaf
-400f
-9f1e
-4ef71f8b20cc
),
408 interface nsILoadGroup
: nsIRequest
410 nsresult GetGroupObserver
(nsIRequestObserver
**aGroupObserver
);
411 nsresult SetGroupObserver
(nsIRequestObserver
*aGroupObserver
);
412 nsresult GetDefaultLoadRequest
(nsIRequest
**aDefaultLoadRequest
);
413 nsresult SetDefaultLoadRequest
(nsIRequest
*aDefaultLoadRequest
);
414 nsresult AddRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
415 nsresult RemoveRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatus
);
416 nsresult GetRequests
(nsISimpleEnumerator
**aRequests
);
417 nsresult GetActiveCount
(PRUint32
*aActiveCount
);
418 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
419 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
424 uuid(c63a055a
-a676
-4e71
-bf3c
-6cfa11082018
),
428 interface nsIChannel
: nsIRequest
430 nsresult GetOriginalURI
(nsIURI
**aOriginalURI
);
431 nsresult SetOriginalURI
(nsIURI
*aOriginalURI
);
432 nsresult GetURI
(nsIURI
**aURI
);
433 nsresult GetOwner
(nsISupports
**aOwner
);
434 nsresult SetOwner
(nsISupports
*aOwner
);
435 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
436 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
437 nsresult GetSecurityInfo
(nsISupports
**aSecurityInfo
);
438 nsresult GetContentType
(nsACString
*aContentType
);
439 nsresult SetContentType
(const nsACString
*aContentType
);
440 nsresult GetContentCharset
(nsACString
*aContentCharset
);
441 nsresult SetContentCharset
(const nsACString
*aContentCharset
);
442 nsresult GetContentLength
(PRInt32
*aContentLength
);
443 nsresult SetContentLength
(PRInt32 aContentLength
);
444 nsresult Open
(nsIInputStream
**_retval
);
445 nsresult AsyncOpen
(nsIStreamListener
*aListener
, nsISupports
*aContext
);
450 uuid(9277fe09
-f0cc
-4cd9
-bbce
-581dd94b0260
),
454 interface nsIHttpChannel
: nsIChannel
456 nsresult GetRequestMethod
(nsACString
*aRequestMethod
);
457 nsresult SetRequestMethod
(const nsACString
*aRequestMethod
);
458 nsresult GetReferrer
(nsIURI
**aReferrer
);
459 nsresult SetReferrer
(nsIURI
*aReferrer
);
460 nsresult GetRequestHeader
(const nsACString
*aHeader
, nsACString
*_retval
);
461 nsresult SetRequestHeader
(const nsACString
*aHeader
, const nsACString
*aValue
, PRBool aMerge
);
462 nsresult VisitRequestHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
463 nsresult GetAllowPipelining
(PRBool
*aAllowPipelining
);
464 nsresult SetAllowPipelining
(PRBool aAllowPipelining
);
465 nsresult GetRedirectionLimit
(PRUint32
*aRedirectionLimit
);
466 nsresult SetRedirectionLimit
(PRUint32 aRedirectionLimit
);
467 nsresult GetResponseStatus
(PRUint32
*aResponseStatus
);
468 nsresult GetResponseStatusText
(nsACString
*aResponseStatusText
);
469 nsresult GetRequestSucceeded
(PRBool
*aRequestSucceeded
);
470 nsresult GetResponseHeader
(const nsACString
*header
, nsACString
*_retval
);
471 nsresult SetResponseHeader
(const nsACString
*header
, const nsACString
*value
, PRBool merge
);
472 nsresult VisitResponseHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
473 nsresult IsNoStoreResponse
(PRBool
*_retval
);
474 nsresult IsNoCacheResponse
(PRBool
*_retval
);
479 uuid(0eb66361
-faaa
-4e52
-8c7e
-6c25f11f8e3c
),
483 interface nsIHttpChannelInternal
: nsISupports
485 nsresult GetDocumentURI
(nsIURI
**aDocumentURI
);
486 nsresult SetDocumentURI
(nsIURI
*aDocumentURI
);
487 nsresult GetRequestVersion
(PRUint32
*major
, PRUint32
*minor
);
488 nsresult GetResponseVersion
(PRUint32
*major
, PRUint32
*minor
);
489 nsresult SetCookie
(const char *aCookieHeader
);
490 nsresult SetupFallbackChannel
(const char *aFallbackKey
);
491 nsresult GetForceAllowThirdPartyCookie
(PRBool
*aForceAllowThirdPartyCookie
);
492 nsresult SetForceAllowThirdPartyCookie
(PRBool aForceAllowThirdPartyCookie
);
497 uuid(ddf633d8
-e9a4
-439d
-ad88
-de636fd9bb75
),
501 interface nsIUploadChannel
: nsISupports
503 nsresult SetUploadStream
(nsIInputStream
*aStream
, const nsACString
*aContentType
,
504 PRInt32 aContentLength
);
505 nsresult GetUploadStream
(nsIInputStream
**aUploadStream
);
510 uuid(a6cf90c1
-15b3
-11d2
-932e-00805f8add32
),
514 interface nsIDOMCSSRule
: nsISupports
516 nsresult GetType
(PRUint16
*aType
);
517 nsresult GetCssText
(nsAString
*aCssText
);
518 nsresult SetCssText
(const nsAString
*aCssText
);
519 nsresult GetParentStyleSheet
(nsIDOMCSSStyleSheet
**aParentStyleSheet
);
520 nsresult GetParentRule
(nsIDOMCSSRule
**aParentRule
);
525 uuid(a6cf90be
-15b3
-11d2
-932e-00805f8add32
),
529 interface nsIDOMCSSStyleDeclaration
: nsISupports
531 nsresult GetCssText
(nsAString
*aCssText
);
532 nsresult SetCssText
(const nsAString
*aCssText
);
533 nsresult GetPropertyValue
(const nsAString
*propertyName
, nsAString
*_retval
);
534 nsresult GetPropertyCSSValue
(const nsAString
*propertyName
, nsIDOMCSSValue
**_retval
);
535 nsresult RemoveProperty
(const nsAString
*propertyName
, nsAString
*_retval
);
536 nsresult GetPropertyPriority
(const nsAString
*propertyName
, nsAString
*_retval
);
537 nsresult SetProperty
(const nsAString
*propertyName
, const nsAString
*value
,
538 const nsAString
*priority
);
539 nsresult GetLength
(PRUint32
*aLength
);
540 nsresult Item
(PRUint32 index
, nsAString
*_retval
);
541 nsresult GetParentRule
(nsIDOMCSSRule
**aParentRule
);
546 uuid(a6cf90c0
-15b3
-11d2
-932e-00805f8add32
),
550 interface nsIDOMCSSRuleList
: nsISupports
552 nsresult GetLength
(PRUint32
*aLength
);
553 nsresult Item
(PRUint32 index
, nsIDOMCSSRule
**_retval
);
558 uuid(a6cf9080
-15b3
-11d2
-932e-00805f8add32
),
562 interface nsIDOMStyleSheet
: nsISupports
564 nsresult GetType
(nsAString
*aType
);
565 nsresult GetDisabled
(PRBool
*aDisabled
);
566 nsresult SetDisabled
(PRBool aDisabled
);
567 nsresult GetOwnerNode
(nsIDOMNode
**aOwnerNode
);
568 nsresult GetParentStyleSheet
(nsIDOMStyleSheet
**aParentStyleSheet
);
569 nsresult GetHref
(nsAString
*aHref
);
570 nsresult GetTitle
(nsAString
*aTitle
);
571 nsresult GetMedia
(nsIDOMMediaList
**aMedia
);
576 uuid(a6cf90c2
-15b3
-11d2
-932e-00805f8add32
),
580 interface nsIDOMCSSStyleSheet
: nsIDOMStyleSheet
582 nsresult GetOwnerRule
(nsIDOMCSSRule
**aOwnerRule
);
583 nsresult GetCssRules
(nsIDOMCSSRuleList
**aCssRules
);
584 nsresult InsertRule
(const nsAString
*rule
, PRUint32 index
, PRUint32
*_retval
);
585 nsresult DeleteRule
(PRUint32 index
);
590 uuid(a6cf9081
-15b3
-11d2
-932e-00805f8add32
),
594 interface nsIDOMStyleSheetList
: nsISupports
596 nsresult GetLength
(PRUint32
*aLength
);
597 nsresult Item
(PRUint32 index
, nsIDOMStyleSheet
**_retval
);
602 uuid(a6cf907d
-15b3
-11d2
-932e-00805f8add32
),
606 interface nsIDOMNodeList
: nsISupports
608 nsresult Item
(PRUint32 index
, nsIDOMNode
**_retval
);
609 nsresult GetLength
(PRUint32
*aLength
);
614 uuid(29fb2a18
-1dd2
-11b2
-8dd9
-a6fd5d5ad12f
),
618 interface nsIDOM3Node
: nsISupports
626 IMPLEMENTATION_SPECIFIC
= 32
629 nsresult GetBaseURI
(nsAString
*aBaseURI
);
630 nsresult CompareDocumentPosition
(nsIDOMNode
*other
, PRUint16
*_retval
);
631 nsresult GetTextContent
(nsAString
*aTextContent
);
632 nsresult SetTextContent
(const nsAString
*aTextContent
);
633 nsresult IsSameNode
(nsIDOMNode
*other
, PRBool
*_retval
);
634 nsresult LookupPrefix
(const nsAString
*namespaceURI
, PRBool
*_retval
);
635 nsresult IsDefaultNamespace
(const nsAString
*namespaceURI
, PRBool
*_retval
);
636 nsresult LookupNamespaceURI
(const nsAString
*prefix
, nsAString _retval
);
637 nsresult IsEqualNode
(nsIDOMNode
*arg
, PRBool
*_retval
);
638 nsresult GetFeature
(const nsAString
*feature
, const nsAString
*version, nsISupports
**_retval
);
639 nsresult SetUserData
(const nsAString
*key
, nsIVariant
*data
, nsIDOMUserDataHandler
*handler
, nsIVariant
**_retval
);
640 nsresult GetUserData
(const nsAString
*key
, nsIVariant
**_retval
);
645 uuid(a6cf907c
-15b3
-11d2
-932e-00805f8add32
),
649 interface nsIDOMNode
: nsISupports
655 CDATA_SELECTION_NODE
= 4,
656 ENTITY_REFERENCE_NODE
= 5,
658 PROCESSING_INSTRUCTION_NODE
= 7,
661 DOCUMENT_TYPE_NODE
= 10,
662 DOCUMENT_FRAGMENT_NODE
= 11,
666 nsresult GetNodeName
(nsAString
*aNodeName
);
667 nsresult GetNodeValue
(nsAString
*aNodeValue
);
668 nsresult SetNodeValue
(const nsAString
*aNodeValue
);
669 nsresult GetNodeType
(PRUint16
*aNodeType
);
670 nsresult GetParentNode
(nsIDOMNode
**aParentNode
);
671 nsresult GetChildNodes
(nsIDOMNodeList
**aChildNodes
);
672 nsresult GetFirstChild
(nsIDOMNode
**aFirstChild
);
673 nsresult GetLastChild
(nsIDOMNode
**aLastChild
);
674 nsresult GetPreviousSibling
(nsIDOMNode
**aPreviousSibling
);
675 nsresult GetNextSibling
(nsIDOMNode
**aNextSibling
);
676 nsresult GetAttributes
(nsIDOMNamedNodeMap
**aAttributes
);
677 nsresult GetOwnerDocument
(nsIDOMDocument
**aOwnerDocument
);
678 nsresult InsertBefore
(nsIDOMNode
*newChild
, nsIDOMNode
*refChild
, nsIDOMNode
**_retval
);
679 nsresult ReplaceChild
(nsIDOMNode
*newChild
, nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
680 nsresult RemoveChild
(nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
681 nsresult AppendChild
(nsIDOMNode
*newChild
, nsIDOMNode
**_retval
);
682 nsresult HasChildNodes
(PRBool
*_retval
);
683 nsresult CloneNode
(PRBool deep
, nsIDOMNode
**_retval
);
684 nsresult Normalize
();
685 nsresult IsSupported
(const nsAString
*feature
, const nsAString
*version, PRBool
*_retval
);
686 nsresult GetNamespaceURI
(nsAString
*aNamespaceURI
);
687 nsresult GetPrefix
(nsAString
*aPrefix
);
688 nsresult SetPrefix
(const nsAString
*aPrefix
);
689 nsresult GetLocalName
(nsAString
*aLocalName
);
690 nsresult HasAttributes
(PRBool
*_retval
);
695 uuid(a6cf9078
-15b3
-11d2
-932e-00805f8add32
),
699 interface nsIDOMElement
: nsIDOMNode
701 nsresult GetTagName
(nsAString
*aTagName
);
702 nsresult GetAttribute
(const nsAString
*name
, nsAString
*_retval
);
703 nsresult SetAttribute
(const nsAString
*name
, const nsAString
*value
);
704 nsresult RemoveAttribute
(const nsAString
*name
);
705 nsresult GetAttributeNode
(const nsAString
*name
, nsIDOMAttr
**_retval
);
706 nsresult SetAttributeNode
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
707 nsresult RemoveAttributeNode
(nsIDOMAttr
*oldAttr
, nsIDOMAttr
**_retval
);
708 nsresult GetElementsByTagName
(const nsAString
*name
, nsIDOMNodeList
**_retval
);
709 nsresult GetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
711 nsresult SetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
712 const nsAString
*value
);
713 nsresult RemoveAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
);
714 nsresult GetAttributeNodeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
715 nsIDOMAttr
**_retval
);
716 nsresult SetAttributeNodeNS
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
717 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
718 nsIDOMNodeList
**_retval
);
719 nsresult HasAttribute
(const nsAString
*name
, PRBool
*_retval
);
720 nsresult HasAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
726 uuid(99715845-95fc
-4a56
-aa53
-214b65c26e22
),
730 interface nsIDOMElementCSSInlineStyle
: nsISupports
732 nsresult GetStyle
(nsIDOMCSSStyleDeclaration
**aStyle
);
737 uuid(f0aef489
-18c5
-4de6
-99d5
-58b3758b098c
),
741 interface nsIDOMNSElement
: nsISupports
743 nsresult GetElementsByClassName
(const nsAString
*classes
, nsIDOMNodeList
**_retval
);
744 nsresult GetClientRects
(nsIDOMClientRectList
**_retval
);
745 nsresult GetBoundingClientRect
(nsIDOMClientRect
**_retval
);
746 nsresult GetScrollTop
(PRInt32
*aScrollTop
);
747 nsresult SetScrollTop
(PRInt32 aScrollTop
);
748 nsresult GetScrollLeft
(PRInt32
*aScrollLeft
);
749 nsresult SetScrollLeft
(PRInt32 aScrollLeft
);
750 nsresult GetScrollHeight
(PRInt32
*aScrollHeight
);
751 nsresult GetScrollWidth
(PRInt32
*aScrollWidth
);
752 nsresult GetClientTop
(PRInt32
*aClientTop
);
753 nsresult GetClientLeft
(PRInt32
*aClientLeft
);
754 nsresult GetClientHeight
(PRInt32
*aClientHeight
);
755 nsresult GetClientWidth
(PRInt32
*aClientWidth
);
756 nsresult GetFirstElementChild
(nsIDOMElement
**aFirstElementChild
);
757 nsresult GetLastElementChild
(nsIDOMElement
**aLastElementChild
);
758 nsresult GetPreviousElementSibling
(nsIDOMElement
**aPreviousElementSibling
);
759 nsresult GetNextElementSibling
(nsIDOMElement
**aNextElementSibling
);
760 nsresult GetChildElementCount
(PRUint32
*aChildElementCount
);
761 nsresult GetChildren
(nsIDOMNodeList
**aChildren
);
764 cpp_quote
("#undef GetClassName")
768 uuid(a6cf9085
-15b3
-11d2
-932e-00805f8add32
),
772 interface nsIDOMHTMLElement
: nsIDOMElement
774 nsresult GetId
(nsAString
*aId
);
775 nsresult SetId
(const nsAString
*aId
);
776 nsresult GetTitle
(nsAString
*aTitle
);
777 nsresult SetTitle
(const nsAString
*aTitle
);
778 nsresult GetLang
(nsAString
*aLang
);
779 nsresult SetLang
(const nsAString
*aLang
);
780 nsresult GetDir
(nsAString
*aDir
);
781 nsresult SetDir
(const nsAString
*aDir
);
782 nsresult GetClassName
(nsAString
*aClassName
);
783 nsresult SetClassName
(const nsAString
*aClassName
);
788 uuid(7f142f9a
-fba7
-4949-93d6
-cf08a974ac51
),
792 interface nsIDOMNSHTMLElement
: nsISupports
794 nsresult GetOffsetTop
(PRInt32
*aOffsetTop
);
795 nsresult GetOffsetLeft
(PRInt32
*aOffsetLeft
);
796 nsresult GetOffsetWidth
(PRInt32
*aOffsetWidth
);
797 nsresult GetOffsetHeight
(PRInt32
*aOffsetHeight
);
798 nsresult GetOffsetParent
(nsIDOMElement
**aOffsetParent
);
799 nsresult GetInnerHTML
(nsAString
*aInnerHTML
);
800 nsresult SetInnerHTML
(const nsAString
*aInnerHTML
);
801 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
802 nsresult SetTabIndex
(PRInt32 aTabIndex
);
803 nsresult GetContentEditable
(nsAString
*aContentEditable
);
804 nsresult SetContentEditable
(const nsAString
*aContentEditable
);
805 nsresult GetDraggable
(PRBool
*aDraggable
);
806 nsresult SetDraggable
(PRBool aDraggable
);
809 nsresult ScrollIntoView
(PRBool top
);
810 nsresult GetSpellcheck
(PRBool
*aSpellcheck
);
811 nsresult SetSpellcheck
(PRBool aSpellcheck
);
816 uuid(a6cf9083
-15b3
-11d2
-932e-00805f8add32
),
820 interface nsIDOMHTMLCollection
: nsISupports
822 nsresult GetLength
(PRUint32
*aLength
);
823 nsresult Item
(PRUint32 index
, nsIDOMNode
**_retval
);
824 nsresult NamedItem
(const nsAString
*name
, nsIDOMNode
**_retval
);
829 uuid(a6cf9072
-15b3
-11d2
-932e-00805f8add32
),
833 interface nsIDOMCharacterData
: nsIDOMNode
835 nsresult GetData
(nsAString
*aData
);
836 nsresult SetData
(const nsAString
*aData
);
837 nsresult GetLength
(PRUint32
*aLength
);
838 nsresult SubstringData
(PRUint32 offset
, PRUint32 count
, nsAString
*_retval
);
839 nsresult AppendData
(const nsAString
*arg
);
840 nsresult InsertData
(PRUint32 offset
, const nsAString
*arg
);
841 nsresult DeleteData
(PRUint32 offset
, PRUint32 count
);
842 nsresult ReplaceData
(PRUint32 offset
, PRUint32 count
, const nsAString
*arg
);
847 uuid(a6cf9082
-15b3
-11d2
-932e-00805f8add32
),
851 interface nsIDOMText
: nsIDOMCharacterData
853 nsresult SplitText
(PRUint32 offset
, nsIDOMText
**_retval
);
858 uuid(a6cf9073
-15b3
-11d2
-932e-00805f8add32
),
862 interface nsIDOMComment
: nsIDOMCharacterData
868 uuid(a6cf9076
-15b3
-11d2
-932e-00805f8add32
),
872 interface nsIDOMDocumentFragment
: nsIDOMNode
878 uuid(f51ebade
-8b1a
-11d3
-aae7
-0010830123b4
),
882 interface nsIDOMAbstractView
: nsISupports
884 nsresult GetDocument
(nsIDOMDocumentView
**aDocument
);
889 uuid(0b9341f3
-95d4
-4fa4
-adcd
-e119e0db2889
),
893 interface nsIDOMViewCSS
: nsIDOMAbstractView
895 nsresult GetComputedStyle
(nsIDOMElement
*elt
, const nsAString
*pseudoElt
, nsIDOMCSSStyleDeclaration
**_retval
);
900 uuid(a6cf9075
-15b3
-11d2
-932e-00805f8add32
),
904 interface nsIDOMDocument
: nsIDOMNode
906 nsresult GetDoctype
(nsIDOMDocumentType
**aDoctype
);
907 nsresult GetImplementation
(nsIDOMDOMImplementation
**aImplementation
);
908 nsresult GetDocumentElement
(nsIDOMElement
**aDocumentElement
);
909 nsresult CreateElement
(const nsAString
*tagName
, nsIDOMElement
**_retval
);
910 nsresult CreateDocumentFragment
(nsIDOMDocumentFragment
**_retval
);
911 nsresult CreateTextNode
(const nsAString
*data
, nsIDOMText
**_retval
);
912 nsresult CreateComment
(const nsAString
*data
, nsIDOMComment
**_retval
);
913 nsresult CreateCDATASection
(const nsAString
*data
, nsIDOMCDATASection
**_retval
);
914 nsresult CreateProcessingInstruction
(const nsAString
*target
, const nsAString
*data
,
915 nsIDOMProcessingInstruction
**_retval
);
916 nsresult CreateAttribute
(const nsAString
*name
, nsIDOMAttr
**_retval
);
917 nsresult CreateEntityReference
(const nsAString
*name
, nsIDOMEntityReference
**_retval
);
918 nsresult GetElementsByTagName
(const nsAString
*tagname
, nsIDOMNodeList
**_retval
);
919 nsresult ImportNode
(nsIDOMNode
*importedNode
, PRBool deep
, nsIDOMNode
**_retval
);
920 nsresult CreateElementNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
921 nsIDOMElement
**_retval
);
922 nsresult CreateAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
923 nsIDOMAttr
**_retval
);
924 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
925 nsIDOMNodeList
**_retval
);
926 nsresult GetElementById
(const nsAString
*elementId
, nsIDOMElement
**_retval
);
931 uuid(09a439ad
-4079-46d5
-a050
-4d7015d1a108
),
935 interface nsIDOMNSDocument
: nsISupports
937 nsresult GetCharacterSet
(nsAString
*aCharacterSet
);
938 nsresult GetDir
(nsAString
*aDir
);
939 nsresult SetDir
(const nsAString
*aDir
);
940 nsresult GetLocation
(nsIDOMLocation
**aLocation
);
941 nsresult GetTitle
(nsAString
*aTitle
);
942 nsresult SetTitle
(const nsAString
*aTitle
);
943 nsresult GetContentType
(nsAString
*aContentType
);
944 nsresult GetReadyState
(nsAString
*aReadyState
);
945 nsresult GetLastModified
(nsAString
*aLastModified
);
946 nsresult GetReferrer
(nsAString
*aReferrer
);
947 nsresult HasFocus
(PRBool
*_retval
);
948 nsresult GetActiveElement
(nsIDOMElement
**aActiveElement
);
949 nsresult GetElementsByClassName
(const nsAString
*classes
, nsIDOMNodeList
**_retval
);
950 nsresult ElementFromPoint
(PRInt32 x
, PRInt32 y
, nsIDOMElement
**_retval
);
952 /* Wine extensions */
953 nsresult WineAddObserver
(nsIDocumentObserver
*aObserver
);
954 nsresult WineRemoveObserver
(nsIDocumentObserver
*aObserver
);
955 nsresult WineAddScriptRunner
(nsIRunnable
*aRunnable
);
960 uuid(a6cf9084
-15b3
-11d2
-932e-00805f8add32
),
964 interface nsIDOMHTMLDocument
: nsIDOMDocument
966 nsresult GetTitle
(nsAString
*aTitle
);
967 nsresult SetTitle
(const nsAString
*aTitle
);
968 nsresult GetReferrer
(nsAString
*aReferrer
);
969 nsresult GetDomain
(nsAString
*aDomain
);
970 nsresult GetURL
(nsAString
*aURL
);
971 nsresult GetBody
(nsIDOMHTMLElement
**aBody
);
972 nsresult SetBody
(nsIDOMHTMLElement
*aBody
);
973 nsresult GetImages
(nsIDOMHTMLCollection
**aImages
);
974 nsresult GetApplets
(nsIDOMHTMLCollection
**aApplets
);
975 nsresult GetLinks
(nsIDOMHTMLCollection
**aLinks
);
976 nsresult GetForms
(nsIDOMHTMLCollection
**aForms
);
977 nsresult GetAnchors
(nsIDOMHTMLCollection
**aAnchors
);
978 nsresult GetCookie
(nsAString
*aCookie
);
979 nsresult SetCookie
(const nsAString
*aCookie
);
982 nsresult Write
(const nsAString
*text
);
983 nsresult Writeln
(const nsAString
*text
);
984 nsresult GetElementsByName
(const nsAString
*elementName
, nsIDOMNodeList
**_retval
);
989 uuid(79beb289
-3644-4b54
-9432-9fb993945629
),
993 interface nsIDOMNSHTMLDocument
: nsISupports
995 nsresult GetWidth
(PRInt32
*aWidth
);
996 nsresult GetHeight
(PRInt32
*aHeight
);
997 nsresult GetAlinkColor
(nsAString
*aAlinkColor
);
998 nsresult SetAlinkColor
(const nsAString
*aAlinkColor
);
999 nsresult GetLinkColor
(nsAString
*aLinkColor
);
1000 nsresult SetLinkColor
(const nsAString
*aLinkColor
);
1001 nsresult GetVlinkColor
(nsAString
*aVlinkColor
);
1002 nsresult SetVlinkColor
(const nsAString
*aVlinkColor
);
1003 nsresult GetBgColor
(nsAString
*aBgColor
);
1004 nsresult SetBgColor
(const nsAString
*aBgColor
);
1005 nsresult GetFgColor
(nsAString
*aFgColor
);
1006 nsresult SetFgColor
(const nsAString
*aFgColor
);
1007 nsresult GetDomain
(nsAString
*aDomain
);
1008 nsresult SetDomain
(const nsAString
*aDomain
);
1009 nsresult GetEmbeds
(nsIDOMHTMLCollection
**aEmbeds
);
1010 nsresult GetSelection
(nsAString
*_retval
);
1011 nsresult Open
(nsACString
*aContentType
, PRBool aReplace
, nsIDOMDocument
**_retval
);
1015 nsresult CaptureEvents
(PRInt32 eventFlags
);
1016 nsresult ReleaseEvents
(PRInt32 eventFlags
);
1017 nsresult RouteEvent
(nsIDOMEvent
*evt
);
1018 nsresult GetCompatMode
(nsAString
*aCompatMode
);
1019 nsresult GetPlugins
(nsIDOMHTMLCollection
**aPlugins
);
1020 nsresult GetDesignMode
(nsAString
*aDesignMode
);
1021 nsresult SetDesignMode
(const nsAString
*aDesignMode
);
1022 nsresult ExecCommand
(const nsAString
*commandID
, PRBool doShowUI
, const nsAString
*value
, PRBool
*_retval
);
1023 nsresult ExecCommandShowHelp
(const nsAString
*commandID
, PRBool
*_retval
);
1024 nsresult QueryCommandEnabled
(const nsAString
*commandID
, PRBool
*_retval
);
1025 nsresult QueryCommandIndeterm
(const nsAString
*commandID
, PRBool
*_retval
);
1026 nsresult QueryCommandState
(const nsAString
*commandID
, PRBool
*_retval
);
1027 nsresult QueryCommandSupported
(const nsAString
*commandID
, PRBool
*_retval
);
1028 nsresult QueryCommandText
(const nsAString
*commandID
, nsAString
*_retval
);
1029 nsresult QueryCommandValue
(const nsAString
*commandID
, nsAString
*_retval
);
1034 uuid(3d9f4973
-dd2e
-48f5
-b5f7
-2634e09eadd9
),
1038 interface nsIDOMDocumentStyle
: nsISupports
1040 nsresult GetStyleSheets
(nsIDOMStyleSheetList
**aStyleSheets
);
1045 uuid(1acdb2ba
-1dd2
-11b2
-95bc
-9542495d2569
),
1049 interface nsIDOMDocumentView
: nsISupports
1051 nsresult GetDefaultView
(nsIDOMAbstractView
**aDefaultView
);
1056 uuid(46b91d66
-28e2
-11d4
-ab1e
-0010830123b4
),
1060 interface nsIDOMDocumentEvent
: nsISupports
1062 cpp_quote
("#undef CreateEvent")
1063 nsresult CreateEvent
(const nsAString
*eventType
, nsIDOMEvent
**_retval
);
1068 uuid(a6cf90ce
-15b3
-11d2
-932e-00805f8add32
),
1072 interface nsIDOMRange
: nsISupports
1081 nsresult GetStartContainer
(nsIDOMNode
**aStartContainer
);
1082 nsresult GetStartOffset
(PRInt32
*aStartOffset
);
1083 nsresult GetEndContainer
(nsIDOMNode
**aEndContainer
);
1084 nsresult GetEndOffset
(PRInt32
*aEndOffset
);
1085 nsresult GetCollapsed
(PRBool
*aCollapsed
);
1086 nsresult GetCommonAncestorContainer
(nsIDOMNode
**aCommonAncestorContainer
);
1087 nsresult SetStart
(nsIDOMNode
*refNode
, PRInt32 offset
);
1088 nsresult SetEnd
(nsIDOMNode
*refNode
, PRInt32 offset
);
1089 nsresult SetStartBefore
(nsIDOMNode
*refNode
);
1090 nsresult SetStartAfter
(nsIDOMNode
*refNode
);
1091 nsresult SetEndBefore
(nsIDOMNode
*refNode
);
1092 nsresult SetEndAfter
(nsIDOMNode
*refNode
);
1093 nsresult Collapse
(PRBool toStart
);
1094 nsresult SelectNode
(nsIDOMNode
*refNode
);
1095 nsresult SelectNodeContents
(nsIDOMNode
*refNode
);
1096 nsresult CompareBoundaryPoints
(PRUint16 how
, nsIDOMRange
*sourceRange
, PRInt16
*_retval
);
1097 nsresult DeleteContents
();
1098 nsresult ExtractContents
(nsIDOMDocumentFragment
**_retval
);
1099 nsresult CloneContents
(nsIDOMDocumentFragment
**_retval
);
1100 nsresult InsertNode
(nsIDOMNode
*newNode
);
1101 nsresult SurroundContents
(nsIDOMNode
*newParent
);
1102 nsresult CloneRange
(nsIDOMRange
**_retval
);
1103 nsresult ToString
(nsAString
*_retval
);
1109 uuid(59188642-23b4
-41d6
-bde1
-302c3906d1f0
),
1113 interface nsIDOMNSRange
: nsISupports
1115 nsresult CreateContextualFragment
([in] const nsAString
*fragment
, [out] nsIDOMDocumentFragment
**_retval
);
1116 nsresult IsPointInRange
([in] nsIDOMNode
*parent
, [in] PRInt32 offset
, [out] PRBool
*_retval
);
1117 nsresult ComparePoint
([in] nsIDOMNode
*parent
, [in] PRInt32 offset
, [out] PRInt16
*_retval
);
1123 uuid(7b9badc6
-c9bc
-447a
-8670-dbd195aed24b
),
1127 interface nsIDOMDocumentRange
: nsISupports
1129 nsresult CreateRange
(nsIDOMRange
**_retval
);
1134 uuid(b2c7ed59
-8634-4352-9e37
-5484c8b6e4e1
),
1138 interface nsISelection
: nsISupports
1140 nsresult GetAnchorNode
(nsIDOMNode
**aAnchorNode
);
1141 nsresult GetAnchorOffset
(PRInt32
*aAnchorOffset
);
1142 nsresult GetFocusNode
(nsIDOMNode
**aFocusNode
);
1143 nsresult GetFocusOffset
(PRInt32
*aFocusOffset
);
1144 nsresult GetIsCollapsed
(PRBool
*aIsCollapsed
);
1145 nsresult GetRangeCount
(PRInt32
*aRangeCount
);
1146 nsresult GetRangeAt
(PRInt32 index
, nsIDOMRange
**_retval
);
1147 nsresult Collapse
(nsIDOMNode
*parentNode
, PRInt32 offset
);
1148 nsresult Extend
(nsIDOMNode
*parentNode
, PRInt32 offset
);
1149 nsresult CollapseToStart
();
1150 nsresult CollapseToEnd
();
1151 nsresult ContainsNode
(nsIDOMNode
*node
, PRBool entirelyContained
, PRBool
*_retval
);
1152 nsresult SelectAllChildren
(nsIDOMNode
*parentNode
);
1153 nsresult AddRange
(nsIDOMRange
*range);
1154 nsresult RemoveRange
(nsIDOMRange
*range);
1155 nsresult RemoveAllRanges
();
1156 nsresult DeleteFromDocument
();
1157 nsresult SelectionLanguageChange
(PRBool langRTL
);
1158 nsresult ToString
(PRUnichar
**_retval
);
1163 uuid(a6cf906f
-15b3
-11d2
-932e-00805f8add32
),
1167 interface nsIDOMWindowCollection
: nsISupports
1169 nsresult GetLength
(PRUint32
*aLength
);
1170 nsresult Item
(PRUint32 index
, nsIDOMWindow
**_retval
);
1171 nsresult NamedItem
(const nsAString
*name
, nsIDOMWindow
**_retval
);
1176 uuid(a6cf906b
-15b3
-11d2
-932e-00805f8add32
),
1180 interface nsIDOMWindow
: nsISupports
1182 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
1183 nsresult GetParent
(nsIDOMWindow
**aParent
);
1184 nsresult GetTop
(nsIDOMWindow
**aTop
);
1185 nsresult GetScrollbars
(nsIDOMBarProp
**aScrollbars
);
1186 nsresult GetFrames
(nsIDOMWindowCollection
**aFrames
);
1187 nsresult GetName
(nsAString
*aName
);
1188 nsresult SetName
(const nsAString
*aName
);
1189 nsresult GetTextZoom
(float *aTextZoom
);
1190 nsresult SetTextZoom
(float aTextZoom
);
1191 nsresult GetScrollX
(PRInt32
*aScrollX
);
1192 nsresult GetScrollY
(PRInt32
*aScrollY
);
1193 nsresult ScrollTo
(PRInt32 xScroll
, PRInt32 yScroll
);
1194 nsresult ScrollBy
(PRInt32 xScrollDif
, PRInt32 yScrollDif
);
1195 nsresult GetSelection
(nsISelection
**_retval
);
1196 nsresult ScrollByLines
(PRInt32 numLines
);
1197 nsresult ScrollByPages
(PRInt32 numPages
);
1198 nsresult SizeToContent
();
1203 uuid(a6cf908e
-15b3
-11d2
-932e-00805f8add32
),
1207 interface nsIDOMHTMLBodyElement
: nsIDOMHTMLElement
1209 nsresult GetALink
(nsAString
*aALink
);
1210 nsresult SetALink
(const nsAString
*aALink
);
1211 nsresult GetBackground
(nsAString
*aBackground
);
1212 nsresult SetBackground
(const nsAString
*aBackground
);
1213 nsresult GetBgColor
(nsAString
*aBgColor
);
1214 nsresult SetBgColor
(const nsAString
*aBgColor
);
1215 nsresult GetLink
(nsAString
*aLink
);
1216 nsresult SetLink
(const nsAString
*aLink
);
1217 nsresult GetText
(nsAString
*aText
);
1218 nsresult SetText
(const nsAString
*aText
);
1219 nsresult GetVLink
(nsAString
*aVLink
);
1220 nsresult SetVLink
(const nsAString
*aVLink
);
1225 uuid(a6cf908f
-15b3
-11d2
-932e-00805f8add32
),
1229 interface nsIDOMHTMLFormElement
: nsIDOMHTMLElement
1231 nsresult GetElements
(nsIDOMHTMLCollection
**aElements
);
1232 nsresult GetLength
(PRInt32
*aLength
);
1233 nsresult GetName
(nsAString
*aName
);
1234 nsresult SetName
(const nsAString
*aName
);
1235 nsresult GetAcceptCharset
(nsAString
*aAcceptCharset
);
1236 nsresult SetAcceptCharset
(const nsAString
*aAcceptCharset
);
1237 nsresult GetAction
(nsAString
*aAction
);
1238 nsresult SetAction
(const nsAString
*aAction
);
1239 nsresult GetEnctype
(nsAString
*aEnctype
);
1240 nsresult SetEnctype
(const nsAString
*aEnctype
);
1241 nsresult GetMethod
(nsAString
*aMethod
);
1242 nsresult SetMethod
(const nsAString
*aMethod
);
1243 nsresult GetTarget
(nsAString
*aTarget
);
1244 nsresult SetTarget
(const nsAString
*aTarget
);
1251 uuid(a6cf9093
-15b3
-11d2
-932e-00805f8add32
),
1255 interface nsIDOMHTMLInputElement
: nsIDOMHTMLElement
1257 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
1258 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
1259 nsresult GetDefaultChecked
(PRBool
*aDefaultChecked
);
1260 nsresult SetDefaultChecked
(PRBool aDefaultChecked
);
1261 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1262 nsresult GetAccept
(nsAString
*aAccept
);
1263 nsresult SetAccept
(const nsAString
*aAccept
);
1264 nsresult GetAccessKey
(nsAString
*aAccessKey
);
1265 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
1266 nsresult GetAlign
(nsAString
*aAlign
);
1267 nsresult SetAlign
(const nsAString
*aAlign
);
1268 nsresult GetAlt
(nsAString
*aAlt
);
1269 nsresult SetAlt
(const nsAString
*aAlt
);
1270 nsresult GetChecked
(PRBool
*aChecked
);
1271 nsresult SetChecked
(PRBool aChecked
);
1272 nsresult GetDisabled
(PRBool
*aDisabled
);
1273 nsresult SetDisabled
(PRBool aDisabled
);
1274 nsresult GetMaxLength
(PRInt32
*aMaxLength
);
1275 nsresult SetMaxLength
(PRInt32 aMaxLength
);
1276 nsresult GetName
(nsAString
*aName
);
1277 nsresult SetName
(const nsAString
*aName
);
1278 nsresult GetReadOnly
(PRBool
*aReadOnly
);
1279 nsresult SetReadOnly
(PRBool aReadOnly
);
1280 nsresult GetSize
(PRUint32
*aSize
);
1281 nsresult SetSize
(PRUint32 aSize
);
1282 nsresult GetSrc
(nsAString
*aSrc
);
1283 nsresult SetSrc
(const nsAString
*aSrc
);
1284 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1285 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1286 nsresult GetType
(nsAString
*aType
);
1287 nsresult SetType
(const nsAString
*aType
);
1288 nsresult GetUseMap
(nsAString
*aUseMap
);
1289 nsresult SetUseMap
(const nsAString
*aUseMap
);
1290 nsresult GetValue
(nsAString
*aValue
);
1291 nsresult SetValue
(const nsAString
*aValue
);
1300 uuid(a6cf9092
-15b3
-11d2
-932e-00805f8add32
),
1304 interface nsIDOMHTMLOptionElement
: nsIDOMHTMLElement
1306 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1307 nsresult GetDefaultSelected
(PRBool
*aDefaultSelected
);
1308 nsresult SetDefaultSelected
(PRBool aDefaultSelected
);
1309 nsresult GetText
(nsAString
*aText
);
1310 nsresult GetIndex
(PRInt32
*aIndex
);
1311 nsresult GetDisabled
(PRBool
*aDisabled
);
1312 nsresult SetDisabled
(PRBool aDisabled
);
1313 nsresult GetLabel
(nsAString
*aLabel
);
1314 nsresult SetLabel
(const nsAString
*aLabel
);
1315 nsresult GetSelected
(PRBool
*aSelected
);
1316 nsresult SetSelected
(PRBool aSelected
);
1317 nsresult GetValue
(nsAString
*aValue
);
1318 nsresult SetValue
(const nsAString
*aValue
);
1323 uuid(bce0213c
-f70f
-488f
-b93f
-688acca55d63
),
1327 interface nsIDOMHTMLOptionsCollection
: nsISupports
1329 nsresult GetLength
(PRUint32
*aLength
);
1330 nsresult SetLength
(PRUint32 aLength
);
1331 nsresult Item
(PRUint32 index
, nsIDOMNode
**_retval
);
1332 nsresult NamedItem
(const nsAString
*name
, nsIDOMNode
**_retval
);
1337 uuid(a6cf9090
-15b3
-11d2
-932e-00805f8add32
),
1341 interface nsIDOMHTMLSelectElement
: nsIDOMHTMLElement
1343 nsresult GetType
(nsAString
*aType
);
1344 nsresult GetSelectedIndex
(PRInt32
*aSelectedIndex
);
1345 nsresult SetSelectedIndex
(PRInt32 aSelectedIndex
);
1346 nsresult GetValue
(nsAString
*aValue
);
1347 nsresult SetValue
(const nsAString
*aValue
);
1348 nsresult GetLength
(PRUint32
*aLength
);
1349 nsresult SetLength
(PRUint32 aLength
);
1350 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1351 nsresult GetOptions
(nsIDOMHTMLOptionsCollection
**aOptions
);
1352 nsresult GetDisabled
(PRBool
*aDisabled
);
1353 nsresult SetDisabled
(PRBool aDisabled
);
1354 nsresult GetMultiple
(PRBool
*aMultiple
);
1355 nsresult SetMultiple
(PRBool aMultiple
);
1356 nsresult GetName
(nsAString
*aName
);
1357 nsresult SetName
(const nsAString
*aName
);
1358 nsresult GetSize
(PRInt32
*aSize
);
1359 nsresult SetSize
(PRInt32 aSize
);
1360 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1361 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1362 nsresult Add
(nsIDOMHTMLElement
*element
, nsIDOMHTMLElement
*before
);
1363 nsresult Remove
(PRInt32 index
);
1370 uuid(a6cf9094
-15b3
-11d2
-932e-00805f8add32
),
1374 interface nsIDOMHTMLTextAreaElement
: nsIDOMHTMLElement
1376 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
1377 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
1378 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1379 nsresult GetAccessKey
(nsAString
*aAccessKey
);
1380 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
1381 nsresult GetCols
(PRInt32
*aCols
);
1382 nsresult SetCols
(PRInt32 aCols
);
1383 nsresult GetDisabled
(PRBool
*aDisabled
);
1384 nsresult SetDisabled
(PRBool aDisabled
);
1385 nsresult GetName
(nsAString
*aName
);
1386 nsresult SetName
(const nsAString
*aName
);
1387 nsresult GetReadOnly
(PRBool
*aReadOnly
);
1388 nsresult SetReadOnly
(PRBool aReadOnly
);
1389 nsresult GetRows
(PRInt32
*aRows
);
1390 nsresult SetRows
(PRInt32 aRows
);
1391 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1392 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1393 nsresult GetType
(nsAString
*aType
);
1394 nsresult GetValue
(nsAString
*aValue
);
1395 nsresult SetValue
(const nsAString
*aValue
);
1403 uuid(a6cf90b1
-15b3
-11d2
-932e-00805f8add32
),
1407 interface nsIDOMHTMLScriptElement
: nsIDOMHTMLElement
1409 nsresult GetText
(nsAString
*aText
);
1410 nsresult SetText
(const nsAString
*aText
);
1411 nsresult GetHtmlFor
(nsAString
*aHtmlFor
);
1412 nsresult SetHtmlFor
(const nsAString
*aHtmlFor
);
1413 nsresult GetEvent
(nsAString
*aEvent
);
1414 nsresult SetEvent
(const nsAString
*aEvent
);
1415 nsresult GetCharset
(nsAString
*aCharset
);
1416 nsresult SetCharset
(const nsAString
*aCharset
);
1417 nsresult GetDefer
(PRBool
*aDefer
);
1418 nsresult SetDefer
(PRBool aDefer
);
1419 nsresult GetSrc
(nsAString
*aSrc
);
1420 nsresult SetSrc
(const nsAString
*aSrc
);
1421 nsresult GetType
(nsAString
*aType
);
1422 nsresult SetType
(const nsAString
*aType
);
1427 uuid(a6cf90ab
-15b3
-11d2
-932e-00805f8add32
),
1431 interface nsIDOMHTMLImageElement
: nsIDOMHTMLElement
1433 nsresult GetName
(nsAString
*aName
);
1434 nsresult SetName
(const nsAString
*aName
);
1435 nsresult GetAlign
(nsAString
*aAlign
);
1436 nsresult SetAlign
(const nsAString
*aAlign
);
1437 nsresult GetAlt
(nsAString
*aAlt
);
1438 nsresult SetAlt
(const nsAString
*aAlt
);
1439 nsresult GetBorder
(nsAString
*aBorder
);
1440 nsresult SetBorder
(const nsAString
*aBorder
);
1441 nsresult GetHeight
(PRInt32
*aHeight
);
1442 nsresult SetHeight
(PRInt32 aHeight
);
1443 nsresult GetHspace
(PRInt32
*aHspace
);
1444 nsresult SetHspace
(PRInt32 aHspace
);
1445 nsresult GetIsMap
(PRBool
*aIsMap
);
1446 nsresult SetIsMap
(PRBool aIsMap
);
1447 nsresult GetLongDesc
(nsAString
*aLongDesc
);
1448 nsresult SetLongDesc
(const nsAString
*aLongDesc
);
1449 nsresult GetSrc
(nsAString
*aSrc
);
1450 nsresult SetSrc
(const nsAString
*aSrc
);
1451 nsresult GetUseMap
(nsAString
*aUseMap
);
1452 nsresult SetUseMap
(const nsAString
*aUseMap
);
1453 nsresult GetVspace
(PRInt32
*aVspace
);
1454 nsresult SetVspace
(PRInt32 aVspace
);
1455 nsresult GetWidth
(PRInt32
*aWidth
);
1456 nsresult SetWidth
(PRInt32 aWidth
);
1461 uuid(a6cf90aa
-15b3
-11d2
-932e-00805f8add32
),
1465 interface nsIDOMHTMLAnchorElement
: nsIDOMHTMLElement
1467 nsresult GetAccessKey
(nsAString
*aAccessKey
);
1468 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
1469 nsresult GetCharset
(nsAString
*aCharset
);
1470 nsresult SetCharset
(const nsAString
*aCharset
);
1471 nsresult GetCoords
(nsAString
*aCoords
);
1472 nsresult SetCoords
(const nsAString
*aCoords
);
1473 nsresult GetHref
(nsAString
*aHref
);
1474 nsresult SetHref
(const nsAString
*aHref
);
1475 nsresult GetHreflang
(nsAString
*aHreflang
);
1476 nsresult SetHreflang
(const nsAString
*aHreflang
);
1477 nsresult GetName
(nsAString
*aName
);
1478 nsresult SetName
(const nsAString
*aName
);
1479 nsresult GetRel
(nsAString
*aRel
);
1480 nsresult SetRel
(const nsAString
*aRel
);
1481 nsresult GetRev
(nsAString
*aRev
);
1482 nsresult SetRev
(const nsAString
*aRev
);
1483 nsresult GetShape
(nsAString
*aShape
);
1484 nsresult SetShape
(const nsAString
*aShape
);
1485 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1486 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1487 nsresult GetTarget
(nsAString
*aTarget
);
1488 nsresult SetTarget
(const nsAString
*aTarget
);
1489 nsresult GetType
(nsAString
*aType
);
1490 nsresult SetType
(const nsAString
*aType
);
1497 uuid(a6cf90b2
-15b3
-11d2
-932e-00805f8add32
),
1501 interface nsIDOMHTMLTableElement
: nsIDOMHTMLElement
1503 nsresult GetCaption
(nsIDOMHTMLTableCaptionElement
**aCaption
);
1504 nsresult SetCaption
(nsIDOMHTMLTableCaptionElement
*aCaption
);
1505 nsresult GetTHead
(nsIDOMHTMLTableSectionElement
**aTHead
);
1506 nsresult SetTHead
(nsIDOMHTMLTableSectionElement
*aTHead
);
1507 nsresult GetTFoot
(nsIDOMHTMLTableSectionElement
**aTFoot
);
1508 nsresult SetTFoot
(nsIDOMHTMLTableSectionElement
*aTFoot
);
1509 nsresult GetRows
(nsIDOMHTMLCollection
**aRows
);
1510 nsresult GetTBodies
(nsIDOMHTMLCollection
**aTBodies
);
1511 nsresult GetAlign
(nsAString
*aAlign
);
1512 nsresult SetAlign
(const nsAString
*aAlign
);
1513 nsresult GetBgColor
(nsAString
*aBgColor
);
1514 nsresult SetBgColor
(const nsAString
*aBgColor
);
1515 nsresult GetBorder
(nsAString
*aBorder
);
1516 nsresult SetBorder
(const nsAString
*aBorder
);
1517 nsresult GetCellPadding
(nsAString
*aCellPadding
);
1518 nsresult SetCellPadding
(const nsAString
*aCellPadding
);
1519 nsresult GetCellSpacing
(nsAString
*aCellSpacing
);
1520 nsresult SetCellSpacing
(const nsAString
*aCellSpacing
);
1521 nsresult GetFrame
(nsAString
*aFrame
);
1522 nsresult SetFrame
(const nsAString
*aFrame
);
1523 nsresult GetRules
(nsAString
*aRules
);
1524 nsresult SetRules
(const nsAString
*aRules
);
1525 nsresult GetSummary
(nsAString
*aSummary
);
1526 nsresult SetSummary
(const nsAString
*aSummary
);
1527 nsresult GetWidth
(nsAString
*aWidth
);
1528 nsresult SetWidth
(const nsAString
*aWidth
);
1529 nsresult CreateTHead
(nsIDOMHTMLElement
**_retval
);
1530 nsresult DeleteTHead
();
1531 nsresult CreateTFoot
(nsIDOMHTMLElement
**_retval
);
1532 nsresult DeleteTFoot
();
1533 nsresult CreateCaption
(nsIDOMHTMLElement
**_retval
);
1534 nsresult DeleteCaption
();
1535 nsresult InsertRow
(PRInt32 index
, nsIDOMHTMLElement
**_retval
);
1536 nsresult DeleteRow
(PRInt32 index
);
1541 uuid(a6cf90b6
-15b3
-11d2
-932e-00805f8add32
),
1545 interface nsIDOMHTMLTableRowElement
: nsIDOMHTMLElement
1547 nsresult GetRowIndex
(PRInt32
*aRowIndex
);
1548 nsresult GetSectionRowIndex
(PRInt32
*aSectionRowIndex
);
1549 nsresult GetCells
(nsIDOMHTMLCollection
**aCells
);
1550 nsresult GetAlign
(nsAString
*aAlign
);
1551 nsresult SetAlign
(const nsAString
*aAlign
);
1552 nsresult GetBgColor
(nsAString
*aBgColor
);
1553 nsresult SetBgColor
(const nsAString
*aBgColor
);
1554 nsresult GetCh
(nsAString
*aCh
);
1555 nsresult SetCh
(const nsAString
*aCh
);
1556 nsresult GetChOff
(nsAString
*aChOff
);
1557 nsresult SetChOff
(const nsAString
*aChOff
);
1558 nsresult GetVAlign
(nsAString
*aVAlign
);
1559 nsresult SetVAlign
(const nsAString
*aVAlign
);
1560 nsresult InsertCell
(PRInt32 index
, nsIDOMHTMLElement
**_retval
);
1561 nsresult DeleteCell
(PRInt32 index
);
1566 uuid(a6cf90ba
-15b3
-11d2
-932e-00805f8add32
),
1570 interface nsIDOMHTMLIFrameElement
: nsIDOMHTMLElement
1572 nsresult GetAlign
(nsAString
*aAlign
);
1573 nsresult SetAlign
(const nsAString
*aAlign
);
1574 nsresult GetFrameBorder
(nsAString
*aFrameBorder
);
1575 nsresult SetFrameBorder
(const nsAString
*aFrameBorder
);
1576 nsresult GetHeight
(nsAString
*aHeight
);
1577 nsresult SetHeight
(const nsAString
*aHeight
);
1578 nsresult GetLongDesc
(nsAString
*aLongDesc
);
1579 nsresult SetLongDesc
(const nsAString
*aLongDesc
);
1580 nsresult GetMarginHeight
(nsAString
*aMarginHeight
);
1581 nsresult SetMarginHeight
(const nsAString
*aMarginHeight
);
1582 nsresult GetMarginWidth
(nsAString
*aMarginWidth
);
1583 nsresult SetMarginWidth
(const nsAString
*aMarginWidth
);
1584 nsresult GetName
(nsAString
*aName
);
1585 nsresult SetName
(const nsAString
*aName
);
1586 nsresult GetScrolling
(nsAString
*aScrolling
);
1587 nsresult SetScrolling
(const nsAString
*aScrolling
);
1588 nsresult GetSrc
(nsAString
*aSrc
);
1589 nsresult SetSrc
(const nsAString
*aSrc
);
1590 nsresult GetWidth
(nsAString
*aWidth
);
1591 nsresult SetWidth
(const nsAString
*aWidth
);
1592 nsresult GetContentDocument
(nsIDOMDocument
**aContentDocument
);
1597 uuid(a6cf90b9
-15b3
-11d2
-932e-00805f8add32
),
1601 interface nsIDOMHTMLFrameElement
: nsIDOMHTMLElement
1603 nsresult GetFrameBorder
(nsAString
*aFrameBorder
);
1604 nsresult SetFrameBorder
(const nsAString
*aFrameBorder
);
1605 nsresult GetLongDesc
(nsAString
*aLongDesc
);
1606 nsresult SetLongDesc
(const nsAString
*aLongDesc
);
1607 nsresult GetMarginHeight
(nsAString
*aMarginHeight
);
1608 nsresult SetMarginHeight
(const nsAString
*aMarginHeight
);
1609 nsresult GetMarginWidth
(nsAString
*aMarginWidth
);
1610 nsresult SetMarginWidth
(const nsAString
*aMarginWidth
);
1611 nsresult GetName
(nsAString
*aName
);
1612 nsresult SetName
(const nsAString
*aName
);
1613 nsresult GetNoResize
(PRBool
*aNoResize
);
1614 nsresult SetNoResize
(PRBool aNoResize
);
1615 nsresult GetScrolling
(nsAString
*aScrolling
);
1616 nsresult SetScrolling
(const nsAString
*aScrolling
);
1617 nsresult GetSrc
(nsAString
*aSrc
);
1618 nsresult SetSrc
(const nsAString
*aSrc
);
1619 nsresult GetContentDocument
(nsIDOMDocument
**aContentDocument
);
1624 uuid(94928ab3
-8b63
-11d3
-989d
-001083010e9b
),
1628 interface nsIURIContentListener
: nsISupports
1630 nsresult OnStartURIOpen
(nsIURI
*aURI
, PRBool
*_retval
);
1631 nsresult DoContent
(const char *aContentType
, PRBool aIsContentPreferred
, nsIRequest
*aRequest
,
1632 nsIStreamListener
**aContentHandler
, PRBool
*_retval
);
1633 nsresult IsPreferred
(const char *aContentType
, char **aDesiredContentType
, PRBool
*_retval
);
1634 nsresult CanHandleContent
(const char *aContentType
, PRBool aIsContentPreferred
,
1635 char **aDesiredContentType
, PRBool
*_retval
);
1636 nsresult GetLoadCookie
(nsISupports
**aLoadCookie
);
1637 nsresult SetLoadCookie
(nsISupports
*aLoadCookie
);
1638 nsresult GetParentContentListener
(nsIURIContentListener
**aParentContentListener
);
1639 nsresult SetParentContentListener
(nsIURIContentListener
*aParentContentListener
);
1644 uuid(44b78386
-1dd2
-11b2
-9ad2
-e4eee2ca1916
),
1648 interface nsITooltipListener
: nsISupports
1650 nsresult OnShowTooltip
(PRInt32 aXCoords
, PRInt32 aYCoords
, const PRUnichar
*aTipText
);
1651 nsresult OnHideTooltip
();
1656 uuid(69e5df00
-7b8b
-11d3
-af61
-00a024ffc08c
),
1660 interface nsIWebBrowser
: nsISupports
1662 nsresult AddWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
1663 nsresult RemoveWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
1664 nsresult GetContainerWindow
(nsIWebBrowserChrome
**aContainerWindow
);
1665 nsresult SetContainerWindow
(nsIWebBrowserChrome
*aContainerWindow
);
1666 nsresult GetParentURIContentListener
(nsIURIContentListener
**aParentURIContentListener
);
1667 nsresult SetParentURIContentListener
(nsIURIContentListener
*aParentURIContentListener
);
1668 nsresult GetContentDOMWindow
(nsIDOMWindow
**aContentDOMWindow
);
1671 cpp_quote
("#define SETUP_ALLOW_JAVASCRIPT 2")
1672 cpp_quote
("#define SETUP_IS_CHROME_WRAPPER 7")
1676 uuid(f15398a0
-8018-11d3
-af70
-00a024ffc08c
),
1680 interface nsIWebBrowserSetup
: nsISupports
1682 nsresult SetProperty
(PRUint32 aId
, PRUint32 aValue
);
1685 typedef void* nativeWindow
;
1689 uuid(046bc8a0
-8015-11d3
-af70
-00a024ffc08c
),
1693 interface nsIBaseWindow
: nsISupports
1695 nsresult InitWindow
(nativeWindow parentNativeWindow
, nsIWidget
*parentWidget
, PRInt32 x
,
1696 PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
1699 nsresult SetPosition
(PRInt32 x
, PRInt32 y
);
1700 nsresult GetPosition
(PRInt32
*x
, PRInt32
*y
);
1701 nsresult SetSize
(PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
1702 nsresult GetSize
(PRInt32
*cx
, PRInt32
*cy
);
1703 nsresult SetPositionAndSize
(PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
1704 nsresult GetPositionAndSize
(PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
1705 nsresult Repaint
(PRBool force
);
1706 nsresult GetParentWidget
(nsIWidget
**aParentWidget
);
1707 nsresult SetParentWidget
(nsIWidget
*aParentWidget
);
1708 nsresult GetParentNativeWindow
(nativeWindow
*aParentNativeWindow
);
1709 nsresult SetParentNativeWindow
(nativeWindow aParentNativeWindow
);
1710 nsresult GetVisibility
(PRBool
*aVisibility
);
1711 nsresult SetVisibility
(PRBool aVisibility
);
1712 nsresult GetEnabled
(PRBool
*aEnabled
);
1713 nsresult SetEnabled
(PRBool aEnabled
);
1714 nsresult GetBlurSuppression
(PRBool
*aBlurSuppression
);
1715 nsresult SetBlurSuppression
(PRBool aBlurSuppression
);
1716 nsresult GetMainWidget
(nsIWidget
**aMainWidget
);
1717 nsresult SetFocus
();
1718 nsresult GetTitle
(PRUnichar
**aTitle
);
1719 nsresult SetTitle
(const PRUnichar
*aTitle
);
1722 cpp_quote
("#define LOAD_FLAGS_NONE 0x00000")
1723 cpp_quote
("#define LOAD_INITIAL_DOCUMENT_URI 0x80000")
1727 uuid(f5d9e7b0
-d930
-11d3
-b057
-00a024ffc08c
),
1731 interface nsIWebNavigation
: nsISupports
1733 nsresult GetCanGoBack
(PRBool
*aCanGoBack
);
1734 nsresult GetCanGoForward
(PRBool
*aCanGoForward
);
1736 nsresult GoForward
();
1737 nsresult GotoIndex
(PRInt32 index
);
1738 nsresult LoadURI
(const PRUnichar
*aURI
, PRUint32 aLoadFlags
, nsIURI
*aReferrer
,
1739 nsIInputStream
*aPostData
, nsIInputStream
*aHeaders
);
1740 nsresult Reload
(PRUint32 aReloadFlags
);
1741 nsresult Stop
(PRUint32 aStopFlags
);
1742 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
1743 nsresult GetCurrentURI
(nsIURI
**aCurrentURI
);
1744 nsresult GetReferringURI
(nsIURI
**aReferringURI
);
1745 nsresult GetSessionHistory
(nsISHistory
**aSessionHistory
);
1746 nsresult SetSessionHistory
(nsISHistory
*aSessionHistory
);
1751 uuid(570f39d0
-efd0
-11d3
-b093
-00a024ffc08c
),
1755 interface nsIWebProgress
: nsISupports
1757 nsresult AddProgressListener
(nsIWebProgressListener
*aListener
, PRUint32 aNotifyMask
);
1758 nsresult RemoveProgressListener
(nsIWebProgressListener
*aListener
);
1759 nsresult GetDOMWindow
(nsIDOMWindow
**aDOMWindow
);
1760 nsresult GetIsLoadingDocument
(PRBool
*aIsLoadingDocument
);
1765 uuid(343700dd
-078b
-42b6
-a809
-b9c1d7e951d0
),
1769 interface nsIPrintSettings
: nsISupports
1771 typedef struct { char dummy
; } nsIntMargin
;
1773 nsresult SetPrintOptions
(PRInt32 aType
, PRBool aTurnOnOff
);
1774 nsresult GetPrintOptions
(PRInt32 aType
, PRBool
*_retval
);
1775 nsresult GetPrintOptionsBits
(PRInt32
*_retval
);
1776 nsresult GetEffectivePageSize
(double *aWidth
, double *aHeight
);
1777 nsresult Clone
(nsIPrintSettings
**_retval
);
1778 nsresult Assign
(nsIPrintSettings
*aPS
);
1779 nsresult GetPrintSession
(nsIPrintSession
**aPrintSession
);
1780 nsresult SetPrintSession
(nsIPrintSession
*aPrintSession
);
1781 nsresult GetStartPageRange
(PRInt32
*aStartPageRange
);
1782 nsresult SetStartPageRange
(PRInt32 aStartPageRange
);
1783 nsresult GetEndPageRange
(PRInt32
*aEndPageRange
);
1784 nsresult SetEndPageRange
(PRInt32 aEndPageRange
);
1785 nsresult GetEdgeTop
(double *aEdgeTop
);
1786 nsresult SetEdgeTop
(double aEdgeTop
);
1787 nsresult GetEdgeLeft
(double *aEdgeLeft
);
1788 nsresult SetEdgeLeft
(double aEdgeLeft
);
1789 nsresult GetEdgeBottom
(double *aEdgeBottom
);
1790 nsresult SetEdgeBottom
(double aEdgeBottom
);
1791 nsresult GetEdgeRight
(double *aEdgeRight
);
1792 nsresult SetEdgeRight
(double aEdgeRight
);
1793 nsresult GetMarginTop
(double *aMarginTop
);
1794 nsresult SetMarginTop
(double aMarginTop
);
1795 nsresult GetMarginLeft
(double *aMarginLeft
);
1796 nsresult SetMarginLeft
(double aMarginLeft
);
1797 nsresult GetMarginBottom
(double *aMarginBottom
);
1798 nsresult SetMarginBottom
(double aMarginBottom
);
1799 nsresult GetMarginRight
(double *aMarginRight
);
1800 nsresult SetMarginRight
(double aMarginRight
);
1801 nsresult GetUnwriteableMarginTop
(double *aUnwriteableMarginTop
);
1802 nsresult SetUnwriteableMarginTop
(double aUnwriteableMarginTop
);
1803 nsresult GetUnwriteableMarginLeft
(double *aUnwriteableMarginLeft
);
1804 nsresult SetUnwriteableMarginLeft
(double aUnwriteableMarginLeft
);
1805 nsresult GetUnwriteableMarginBottom
(double *aUnwriteableMarginBottom
);
1806 nsresult SetUnwriteableMarginBottom
(double aUnwriteableMarginBottom
);
1807 nsresult GetUnwriteableMarginRight
(double *aUnwriteableMarginRight
);
1808 nsresult SetUnwriteableMarginRight
(double aUnwriteableMarginRight
);
1809 nsresult GetScaling
(double *aScaling
);
1810 nsresult SetScaling
(double aScaling
);
1811 nsresult GetPrintBGColors
(PRBool
*aPrintBGColors
);
1812 nsresult SetPrintBGColors
(PRBool aPrintBGColors
);
1813 nsresult GetPrintBGImages
(PRBool
*aPrintBGImages
);
1814 nsresult SetPrintBGImages
(PRBool aPrintBGImages
);
1815 nsresult GetPrintRange
(PRInt16
*aPrintRange
);
1816 nsresult SetPrintRange
(PRInt16 aPrintRange
);
1817 nsresult GetTitle
(PRUnichar
**aTitle
);
1818 nsresult SetTitle
(const PRUnichar
*aTitle
);
1819 nsresult GetDocURL
(PRUnichar
**aDocURL
);
1820 nsresult SetDocURL
(const PRUnichar
*aDocURL
);
1821 nsresult GetHeaderStrLeft
(PRUnichar
**aHeaderStrLeft
);
1822 nsresult SetHeaderStrLeft
(const PRUnichar
*aHeaderStrLeft
);
1823 nsresult GetHeaderStrCenter
(PRUnichar
**aHeaderStrCenter
);
1824 nsresult SetHeaderStrCenter
(const PRUnichar
*aHeaderStrCenter
);
1825 nsresult GetHeaderStrRight
(PRUnichar
**aHeaderStrRight
);
1826 nsresult SetHeaderStrRight
(const PRUnichar
*aHeaderStrRight
);
1827 nsresult GetFooterStrLeft
(PRUnichar
**aFooterStrLeft
);
1828 nsresult SetFooterStrLeft
(const PRUnichar
*aFooterStrLeft
);
1829 nsresult GetFooterStrCenter
(PRUnichar
**aFooterStrCenter
);
1830 nsresult SetFooterStrCenter
(const PRUnichar
*aFooterStrCenter
);
1831 nsresult GetFooterStrRight
(PRUnichar
**aFooterStrRight
);
1832 nsresult SetFooterStrRight
(const PRUnichar
*aFooterStrRight
);
1833 nsresult GetHowToEnableFrameUI
(PRInt16
*aHowToEnableFrameUI
);
1834 nsresult SetHowToEnableFrameUI
(PRInt16 aHowToEnableFrameUI
);
1835 nsresult GetIsCancelled
(PRBool
*aIsCancelled
);
1836 nsresult SetIsCancelled
(PRBool aIsCancelled
);
1837 nsresult GetPrintFrameTypeUsage
(PRInt16
*aPrintFrameTypeUsage
);
1838 nsresult SetPrintFrameTypeUsage
(PRInt16 aPrintFrameTypeUsage
);
1839 nsresult GetPrintFrameType
(PRInt16
*aPrintFrameType
);
1840 nsresult SetPrintFrameType
(PRInt16 aPrintFrameType
);
1841 nsresult GetPrintSilent
(PRBool
*aPrintSilent
);
1842 nsresult SetPrintSilent
(PRBool aPrintSilent
);
1843 nsresult GetShrinkToFit
(PRBool
*aShrinkToFit
);
1844 nsresult SetShrinkToFit
(PRBool aShrinkToFit
);
1845 nsresult GetShowPrintProgress
(PRBool
*aShowPrintProgress
);
1846 nsresult SetShowPrintProgress
(PRBool aShowPrintProgress
);
1847 nsresult GetPaperName
(PRUnichar
**aPaperName
);
1848 nsresult SetPaperName
(const PRUnichar
*aPaperName
);
1849 nsresult GetPaperSizeType
(PRInt16
*aPaperSizeType
);
1850 nsresult SetPaperSizeType
(PRInt16 aPaperSizeType
);
1851 nsresult GetPaperData
(PRInt16
*aPaperData
);
1852 nsresult SetPaperData
(PRInt16 aPaperData
);
1853 nsresult GetPaperWidth
(double *aPaperWidth
);
1854 nsresult SetPaperWidth
(double aPaperWidth
);
1855 nsresult GetPaperHeight
(double *aPaperHeight
);
1856 nsresult SetPaperHeight
(double aPaperHeight
);
1857 nsresult GetPaperSizeUnit
(PRInt16
*aPaperSizeUnit
);
1858 nsresult SetPaperSizeUnit
(PRInt16 aPaperSizeUnit
);
1859 nsresult GetPlexName
(PRUnichar
**aPlexName
);
1860 nsresult SetPlexName
(const PRUnichar
*aPlexName
);
1861 nsresult GetColorspace
(PRUnichar
**aColorspace
);
1862 nsresult SetColorspace
(const PRUnichar
*aColorspace
);
1863 nsresult GetResolutionName
(PRUnichar
**aResolutionName
);
1864 nsresult SetResolutionName
(const PRUnichar aResolutionName
);
1865 nsresult GetDownloadFonts
(PRBool
*aDownloadFonts
);
1866 nsresult SetDownloadFonts
(PRBool aDownloadFonts
);
1867 nsresult GetPrintReversed
(PRBool
*aPrintReversed
);
1868 nsresult SetPrintReversed
(PRBool aPrintReversed
);
1869 nsresult GetPrintInColor
(PRBool
*aPrintInColor
);
1870 nsresult SetPrintInColor
(PRBool aPrintInColor
);
1871 nsresult GetOrientation
(PRInt32
*aOrientation
);
1872 nsresult SetOrientation
(PRInt32 aOrientation
);
1873 nsresult GetPrintCommand
(PRUnichar
**aPrintCommand
);
1874 nsresult SetPrintCommand
(const PRUnichar
*aPrintCommand
);
1875 nsresult GetNumCopies
(PRInt32
*aNumCopies
);
1876 nsresult SetNumCopies
(PRInt32 aNumCopies
);
1877 nsresult GetPrinterName
(PRUnichar
**aPrinterName
);
1878 nsresult SetPrinterName
(const PRUnichar
*aPrinterName
);
1879 nsresult GetPrintToFile
(PRBool
*aPrintToFile
);
1880 nsresult SetPrintToFile
(PRBool aPrintToFile
);
1881 nsresult GetToFileName
(PRUnichar
**aToFileName
);
1882 nsresult SetToFileName
(const PRUnichar
*aToFileName
);
1883 nsresult GetOutputFormat
(PRInt16
*aOutputFormat
);
1884 nsresult SetOutputFormat
(PRInt16 aOutputFormat
);
1885 nsresult GetPrintPageDelay
(PRInt32
*aPrintPageDelay
);
1886 nsresult SetPrintPageDelay
(PRInt32 aPrintPageDelay
);
1887 nsresult GetIsInitializedFromPrinter
(PRBool
*aIsInitializedFromPrinter
);
1888 nsresult SetIsInitializedFromPrinter
(PRBool aIsInitializedFromPrinter
);
1889 nsresult GetIsInitializedFromPrefs
(PRBool
*aIsInitializedFromPrefs
);
1890 nsresult SetIsInitializedFromPrefs
(PRBool aIsInitializedFromPrefs
);
1891 nsresult SetMarginInTwips
(nsIntMargin
*aMargin
);
1892 nsresult SetEdgeInTwips
(nsIntMargin
*aEdge
);
1893 nsresult GetMarginInTwips
(nsIntMargin
*aMargin
);
1894 nsresult GetEdgeInTwips
(nsIntMargin
*aEdge
);
1895 nsresult SetupSilentPrinting
();
1896 nsresult SetUnwriteableMarginInTwips
(nsIntMargin
*aEdge
);
1897 nsresult GetUnwriteableMarginInTwips
(nsIntMargin
*aEdge
);
1902 uuid(9a7ca4b0
-fbba
-11d4
-a869
-00105a183419
),
1906 interface nsIWebBrowserPrint
: nsISupports
1908 nsresult GetGlobalPrintSettings
(nsIPrintSettings
**aGlobalPrintSettings
);
1909 nsresult GetCurrentPrintSettings
(nsIPrintSettings
**aCurrentPrintSettings
);
1910 nsresult GetCurrentChildDOMWindow
(nsIDOMWindow
**aCurrentChildDOMWindow
);
1911 nsresult GetDoingPrint
(PRBool
*aDoingPrint
);
1912 nsresult GetDoingPrintPreview
(PRBool
*aDoingPrintPreview
);
1913 nsresult GetIsFramesetDocument
(PRBool
*aIsFramesetDocument
);
1914 nsresult GetIsFramesetFrameSelected
(PRBool
*aIsFramesetFrameSelected
);
1915 nsresult GetIsIFrameSelected
(PRBool
*aIsIFrameSelected
);
1916 nsresult GetIsRangeSelection
(PRBool
*aIsRangeSelection
);
1917 nsresult GetPrintPreviewNumPages
(PRInt32
*aPrintPreviewNumPages
);
1918 nsresult Print
(nsIPrintSettings
*aThePrintSettings
, nsIWebProgressListener
*aWPListener
);
1919 nsresult PrintPreview
(nsIPrintSettings
*aThePrintSettings
, nsIDOMWindow
*aChildDOMWin
,
1920 nsIWebProgressListener
*aWPListener
);
1921 nsresult PrintPreviewNavigate
(PRInt16 aNavType
, PRInt32 aPageNum
);
1923 nsresult EnumerateDocumentNames
(PRUint32
*aCount
, PRUnichar
***aResult
);
1924 nsresult ExitPrintPreview
();
1929 uuid(919e792a
-6490-40b8
-bba5
-f9e9ad5640c8
),
1933 interface nsIScrollable
: nsISupports
1936 ScrollOrientation_X
= 1,
1937 ScrollOrientation_Y
= 2
1942 Scrollbar_Never
= 2,
1943 Scrollbar_Always
= 3
1946 nsresult GetCurScrollPos
(PRInt32 scrollOrientation
, PRInt32
*curPos
);
1947 nsresult SetCurScrollPos
(PRInt32 scrollOrientation
, PRInt32 curPos
);
1948 nsresult SetCurScrollPosEx
(PRInt32 curHorizontalPos
, PRInt32 curVerticalPos
);
1949 nsresult GetScrollRange
(PRInt32 scrollOrientation
, PRInt32
*minPos
, PRInt32
*maxPos
);
1950 nsresult SetScrollRange
(PRInt32 scrollOrientation
, PRInt32 minPos
, PRInt32 maxPos
);
1951 nsresult SetScrollRangeEx
(PRInt32 minHorizontalPos
, PRInt32 maxHorizontalPos
,
1952 PRInt32 minVerticalPos
, PRInt32 maxVerticalPos
);
1953 nsresult GetDefaultScrollbarPreferences
(PRInt32 scrollOrientation
, PRInt32
*scrollbarPref
);
1954 nsresult SetDefaultScrollbarPreferences
(PRInt32 scrollOrientation
, PRInt32 scrollbarPref
);
1955 nsresult GetScrollbarVisibility
(PRBool
*verticalVisible
, PRBool
*horizontalVisible
);
1960 uuid(c8c0a080
-0868-11d3
-915f
-d9d889d48e3c
),
1964 interface nsIFile
: nsISupports
1966 nsresult Append
(const nsAString
*node
);
1967 nsresult AppendNative
(const nsAString
*node
);
1968 nsresult Normalize
();
1969 nsresult Create
(PRUint32 type
, PRUint32 permission
);
1970 nsresult GetLeafName
(nsAString
*aLeafName
);
1971 nsresult SetLeafName
(const nsAString
*aLeafName
);
1972 nsresult GetNativeLeafName
(nsAString
*aLeafName
);
1973 nsresult SetNativeLeafName
(const nsAString
*aLeafName
);
1974 nsresult CopyTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1975 nsresult CopyToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1976 nsresult CopyToFollowingLinks
(nsIFile
*newParentDir
, const nsAString
*newName
);
1977 nsresult CopyToFollowingLinksNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1978 nsresult MoveTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1979 nsresult MoveToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1980 nsresult Remove
(PRBool recursive
);
1981 nsresult GetPermissions
(PRUint32
*aPermissions
);
1982 nsresult SetPermissions
(PRUint32 pPermissions
);
1983 nsresult GetPermissionsOfLink
(PRUint32
*aPermissions
);
1984 nsresult SetPermissionsOfLink
(PRUint32 pPermissions
);
1985 nsresult GetLastModifiedTime
(PRInt64
*aLastModifiedTime
);
1986 nsresult SetLastModifiedTime
(PRInt64 aLastModifiedTime
);
1987 nsresult GetFileSize
(PRInt64
*aFileSize
);
1988 nsresult SetFileSize
(PRInt64 aFileSize
);
1989 nsresult GetFileSizeOfLink
(PRInt64
*aFileSizeOfLink
);
1990 nsresult GetTarget
(nsAString
*aTarget
);
1991 nsresult GetNativeTarget
(nsACString
*aNativeTarget
);
1992 nsresult GetPath
(nsAString
*aPath
);
1993 nsresult GetNativePath
(nsACString
*aNativePath
);
1994 nsresult Exists
(PRBool
*_retval
);
1995 nsresult IsWritable
(PRBool
*_retval
);
1996 nsresult IsReadable
(PRBool
*_retval
);
1997 nsresult IsExecutable
(PRBool
*_retval
);
1998 nsresult IsHidden
(PRBool
*_retval
);
1999 nsresult IsDirectory
(PRBool
*_retval
);
2000 nsresult IsFile
(PRBool
*_retval
);
2001 nsresult IsSymlink
(PRBool
*_retval
);
2002 nsresult IsSpecial
(PRBool
*_retval
);
2003 nsresult CreateUnique
(PRUint32 type
, PRUint32 permission
);
2004 nsresult Clone
(nsIFile
**_retval
);
2005 nsresult Equals
(nsIFile
*inFile
, PRBool
*_retval
);
2006 nsresult Contains
(nsIFile
*inFile
, PRBool recir
, PRBool
*_retval
);
2007 nsresult GetParent
(nsIFile
**aParent
);
2008 nsresult GetDirectoryEntries
(nsISimpleEnumerator
**aDirectoryEntries
);
2013 uuid(56c35506
-f14b
-11d3
-99d3
-ddbfac2ccf65
),
2017 interface nsIPrefBranch
: nsISupports
2019 nsresult GetRoot
(char **aRoot
);
2020 nsresult GetPrefType
(const char *aPrefName
, PRInt32
*_retval
);
2021 nsresult GetBoolPref
(const char *aPrefName
, PRBool
*_retval
);
2022 nsresult SetBoolPref
(const char *aPrefName
, PRInt32 aValue
);
2023 nsresult GetCharPref
(const char *aPrefName
, char **_retval
);
2024 nsresult SetCharPref
(const char *aPrefName
, const char *aValue
);
2025 nsresult GetIntPref
(const char *aPrefName
, PRInt32
*_retval
);
2026 nsresult SetIntPref
(const char *aPrefName
, PRInt32 aValue
);
2027 nsresult GetComplexValue
(const char *aPrefName
, const nsIID
*aType
, void **aValue
);
2028 nsresult SetComplexValue
(const char *aPrefName
, const nsIID
*aType
, nsISupports
*aValue
);
2029 nsresult ClearUserPref
(const char *aPrefName
);
2030 nsresult LockPref
(const char *aPrefName
);
2031 nsresult PrefHasUserValue
(const char *aPrefName
, PRBool
*_retval
);
2032 nsresult PrefIsLocked
(const char *aPrefName
, PRBool
*_retval
);
2033 nsresult UnlockPref
(const char *aPrefName
);
2034 nsresult DeleteBranch
(const char *aStartingAt
);
2035 nsresult GetChildList
(const char *aStartingAt
, PRUint32
*aCount
, char ***aChildArray
);
2036 nsresult ResetBranch
(const char *aStartingAt
);
2041 uuid(15fd6940
-8ea7
-11d3
-93ad
-00104ba0fd40
),
2045 interface nsIProtocolHandler
: nsISupports
2047 nsresult GetScheme
(nsACString
*aScheme
);
2048 nsresult GetDefaultPort
(PRInt32
*aDefaultPort
);
2049 nsresult GetProtocolFlags
(PRUint32
*aProtocolFlags
);
2050 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
,
2051 nsIURI
*aBaseURI
, nsIURI
**_retval
);
2052 nsresult NewChannel
(nsIURI
*aURI
, nsIChannel
**_retval
);
2053 nsresult AllowPort
(PRInt32 port
, const char *scheme
, PRBool
*_retval
);
2058 uuid(0e61f3b2
-34d7
-4c79
-bfdc
-4860bc7341b7
),
2062 interface nsIExternalProtocolHandler
: nsIProtocolHandler
2064 nsresult ExternalAppExistsForScheme
(const nsACString
*scheme
, PRBool
*_retval
);
2069 uuid(bddeda3f
-9020-4d12
-8c70
-984ee9f7935e
),
2073 interface nsIIOService
: nsISupports
2075 nsresult GetProtocolHandler
(const char *aScheme
, nsIProtocolHandler
**_retval
);
2076 nsresult GetProtocolFlags
(const char *aScheme
, PRUint32
*_retval
);
2077 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
2079 nsresult NewFileURI
(nsIFile
*aFile
, nsIURI
**_retval
);
2080 nsresult NewChannelFromURI
(nsIURI
*aURI
, nsIChannel
**_retval
);
2081 nsresult NewChannel
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
2082 nsIChannel
**_retval
);
2083 nsresult GetOffline
(PRBool
*aOffline
);
2084 nsresult SetOffline
(PRBool aOffline
);
2085 nsresult AllowPort
(PRInt32 aPort
, const char *aScheme
, PRBool
*_retval
);
2086 nsresult ExtractScheme
(const nsACString
*urlString
, nsACString
* _retval
);
2091 uuid(a50d5516
-5c0a
-4f08
-b427
-703ca0c44ac3
),
2095 interface nsINetUtil
: nsISupports
2097 nsresult ParseContentType
(const nsACString
*aTypeHeader
, nsACString
*aCharset
,
2098 PRBool
*aHadCharset
, nsACString
*_retval
);
2099 nsresult ProtocolHasFlags
(nsIURI
*aURI
, PRUint32 aFlag
, PRBool
*_retval
);
2100 nsresult URIChainHasFlags
(nsIURI
*aURI
, PRUint32 aFlags
, PRBool
*_retval
);
2101 nsresult ToImmutableURI
(nsIURI
*aURI
, nsIURI
**_retval
);
2102 nsresult EscapeString
(const nsACString
*aString
, PRUint32 aEscapeType
, nsACString
*_retval
);
2103 nsresult EscapeURL
(const nsACString
*aStr
, PRUint32 aFlags
, nsACString
*_retval
);
2104 nsresult UnescapeString
(const nsACString
*aStr
, PRUint32 aFlags
, nsACString
*_retval
);
2105 nsresult ExtractCharsetFromContentType
(const nsACString
*aTypeHeader
, nsACString
*aCharset
,
2106 PRInt32
*aCharsetStart
, PRInt32
*aCharsetEnd
, PRBool
*_retval
);
2111 uuid(9c5d3c58
-1dd1
-11b2
-a1c9
-f3699284657a
),
2115 interface nsIWebBrowserFocus
: nsISupports
2117 nsresult Activate
();
2118 nsresult Deactivate
();
2119 nsresult SetFocusAtFirstElement
();
2120 nsresult SetFocusAtLastElement
();
2121 nsresult GetFocusedWindow
(nsIDOMWindow
**aFocusedWindow
);
2122 nsresult SetFocusedWindow
(nsIDOMWindow
*aFocusedWindow
);
2123 nsresult GetFocusedElement
(nsIDOMElement
**aFocusedElement
);
2124 nsresult SetFocusedElement
(nsIDOMElement
*aFocusedElement
);
2129 uuid(ba434c60
-9d52
-11d3
-afb0
-00a024ffc08c
),
2133 interface nsIWebBrowserChrome
: nsISupports
2135 nsresult SetStatus
(PRUint32 statusType
, const PRUnichar
*status
);
2136 nsresult GetWebBrowser
(nsIWebBrowser
**aWebBrowser
);
2137 nsresult SetWebBrowser
(nsIWebBrowser
*aWebBrowser
);
2138 nsresult GetChromeFlags
(PRUint32
*aChromeFlags
);
2139 nsresult SetChromeFlags
(PRUint32 aChromeFlags
);
2140 nsresult DestroyBrowserWindow
();
2141 nsresult SizeBrowserTo
(PRInt32 aCX
, PRInt32 aCY
);
2142 nsresult ShowAsModal
();
2143 nsresult IsWindowModal
(PRBool
*_retval
);
2144 nsresult ExitModalEventLoop
(nsresult aStatus
);
2149 uuid(df31c120
-ded6
-11d1
-bd85
-00805f8ae3f4
),
2153 interface nsIDOMEventListener
: nsISupports
2155 nsresult HandleEvent
(nsIDOMEvent
*event
);
2160 uuid(1c773b30
-d1cf
-11d2
-bd95
-00805f8ae3f4
),
2164 interface nsIDOMEventTarget
: nsISupports
2166 nsresult AddEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
2167 nsresult RemoveEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
2168 nsresult DispatchEvent
(nsIDOMEvent
*evt
, PRBool
*_retval
);
2173 uuid(a66b7b80
-ff46
-bd97
-0080-5f8ae38add32
),
2177 interface nsIDOMEvent
: nsISupports
2179 nsresult GetType
(nsAString
*aType
);
2180 nsresult GetTarget
(nsIDOMEventTarget
**aTarget
);
2181 nsresult GetCurrentTarget
(nsIDOMEventTarget
**aCurrentTarget
);
2182 nsresult GetEventPhase
(PRUint16
*aEventPhase
);
2183 nsresult GetBubbles
(PRBool
*aBubbles
);
2184 nsresult GetCancelable
(PRBool
*aCancelable
);
2185 nsresult GetTimeStamp
(DOMTimeStamp
*aTimeStamp
);
2186 nsresult StopPropagation
();
2187 nsresult PreventDefault
();
2188 nsresult InitEvent
(const nsAString
*eventTypeArg
, PRBool canBubbleArg
, PRBool cancelableArg
);
2191 cpp_quote
("#define CONTEXT_NONE 0x00")
2192 cpp_quote
("#define CONTEXT_LINK 0x01")
2193 cpp_quote
("#define CONTEXT_IMAGE 0x02")
2194 cpp_quote
("#define CONTEXT_DOCUMENT 0x04")
2195 cpp_quote
("#define CONTEXT_TEXT 0x08")
2196 cpp_quote
("#define CONTEXT_INPUT 0x10")
2197 cpp_quote
("#define CONTEXT_BACKGROUND_IMAGE 0x20")
2201 uuid(3478b6b0
-3875-11d4
-94ef
-0020183bf181
),
2205 interface nsIContextMenuListener
: nsISupports
2207 nsresult OnShowContextMenu
(PRUint32 aContextFlags
, nsIDOMEvent
*aEvent
, nsIDOMNode
*aNode
);
2212 uuid(a6cf90c3
-15b3
-11d2
-932e-00805f8add32
),
2216 interface nsIDOMUIEvent
: nsIDOMEvent
2218 nsresult GetView
(nsIDOMAbstractView
**aView
);
2219 nsresult GetDetail
(PRInt32
*aDetail
);
2220 nsresult InitUIEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
2221 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
);
2226 uuid(ff751edc
-8b02
-aae7
-0010-8301838a3123
),
2230 interface nsIDOMMouseEvent
: nsIDOMUIEvent
2232 nsresult GetScreenX
(PRInt32
*aScreenX
);
2233 nsresult GetScreenY
(PRInt32
*aScreenY
);
2234 nsresult GetClientX
(PRInt32
*aClientX
);
2235 nsresult GetClientY
(PRInt32
*aClientY
);
2236 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
2237 nsresult GetShiftKey
(PRBool
*aShiftKey
);
2238 nsresult GetAltKey
(PRBool
*aAltKey
);
2239 nsresult GetMetaKey
(PRBool
*aMetaKey
);
2240 nsresult GetButton
(PRUint16
*aButton
);
2241 nsresult GetRelatedTarget
(nsIDOMEventTarget
**aRelatedTarget
);
2242 nsresult InitMouseEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
2243 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
, PRInt32 screenXArg
, PRInt32 screenYArg
,
2244 PRInt32 clientXArg
, PRInt32 clientYArg
, PRBool ctrlKeyArg
, PRBool altKeyArg
,
2245 PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint16 buttonArg
,
2246 nsIDOMEventTarget
*relatedTargetArg
);
2251 uuid(028e0e6e
-8b01
-11d3
-aae7
-0010838a3123
),
2255 interface nsIDOMKeyEvent
: nsIDOMUIEvent
2257 nsresult GetCharCode
(PRUint32
*aCharCode
);
2258 nsresult GetKeyCode
(PRUint32
*aKeyCode
);
2259 nsresult GetAltKey
(PRBool
*aAltKey
);
2260 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
2261 nsresult GetShiftKey
(PRBool
*aShiftKey
);
2262 nsresult GetMetaKey
(PRBool
*aMetaKey
);
2263 nsresult InitKeyEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
,
2264 PRBool cancelableArg
, nsIDOMAbstractView
*viewArg
, PRBool ctrlKeyArg
,
2265 PRBool altKeyArg
, PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint32 keyCodeArg
,
2266 PRUint32 charCodeArg
);
2271 uuid(3e5432cd
-9568-4bd1
-8cbe
-d50aba110743
),
2275 interface nsIEmbeddingSiteWindow
: nsISupports
2277 nsresult SetDimensions
(PRUint32 flags
, PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
2278 nsresult GetDimensions
(PRUint32 flags
, PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
2279 nsresult SetFocus
();
2280 nsresult GetVisibility
(PRBool
*aVisibility
);
2281 nsresult SetVisibility
(PRBool aVisibility
);
2282 nsresult GetTitle
(PRUnichar
**aTitle
);
2283 nsresult SetTitle
(const PRUnichar
*aTitle
);
2284 nsresult GetSiteWindow
(void **aSiteWindow
);
2289 uuid(2417cbfe
-65ad
-48a6
-b4b6
-eb84db174392
),
2293 interface nsIComponentRegistrar
: nsISupports
2295 nsresult AutoRegister
(nsIFile
*aSpec
);
2296 nsresult AutoUnregister
(nsIFile
*aSpec
);
2297 nsresult RegisterFactory
(const nsCID
*aClass
, const char *aClassName
,
2298 const char *aContractID
, nsIFactory
*aFactory
);
2299 nsresult UnregisterFactory
(const nsCID
*aClass
, nsIFactory
*aFactory
);
2300 nsresult RegisterFactoryLocation
(const nsCID
*aClass
, const char *aClassName
,
2301 const char *aContractID
, nsIFile
*aFile
, const char *aLoaderStr
,
2303 nsresult UnregisterFactoryLocation
(const nsCID
*aClass
, nsIFile
*aFile
);
2304 nsresult IsCIDRegistered
(const nsCID
*aClass
, PRBool
*_retval
);
2305 nsresult IsContractIDRegistered
(const char *aContractID
, PRBool
*_retval
);
2306 nsresult EnumerateCIDs
(nsISimpleEnumerator
**_retval
);
2307 nsresult EnumerateContractIDs
(nsISimpleEnumerator
**_retval
);
2308 nsresult CIDToContractID
(const nsCID
*aClass
, char **_retval
);
2309 nsresult ContractIDToCID
(const char *aContractID
, nsCID
**_retval
);
2314 uuid(1630c61a
-325e-49ca
-8759-a31b16c47aa5
),
2318 interface nsIPromptService
: nsISupports
2320 nsresult Alert
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2321 const PRUnichar
*aText
);
2322 nsresult AlertCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2323 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
);
2324 nsresult Confirm
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2325 const PRUnichar
*aText
, PRBool
*_retval
);
2326 nsresult ConfirmCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2327 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
,
2329 nsresult ConfirmEx
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2330 const PRUnichar
*aText
, PRUint32 aButtonFlags
, const PRUnichar
*aButton0Title
,
2331 const PRUnichar
*aButton1Title
, const PRUnichar
*aButton2Title
,
2332 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRInt32
*_retval
);
2333 nsresult Prompt
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2334 const PRUnichar
*aText
, PRUnichar
**aValue
, const PRUnichar
*aCheckMsg
,
2335 PRBool
*aCheckState
, PRBool
*_retval
);
2336 nsresult PromptUsernameAndPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2337 const PRUnichar
*aText
, PRUnichar
**aUsername
, PRUnichar
**aPassword
,
2338 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRBool
*_retval
);
2339 nsresult PromptPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2340 const PRUnichar
*aText
, PRUnichar
**aPassword
, const PRUnichar
*aCheckMsg
,
2341 PRBool
*aCheckState
, PRBool
*_retval
);
2342 nsresult Select
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
2343 const PRUnichar
*aText
, PRUint32 aCount
, const PRUnichar
**aSelectList
,
2344 PRInt32
*aOutSelection
, PRBool
*_retval
);
2349 uuid(b128a1e6
-44f3
-4331-8fbe
-5af360ff21ee
),
2353 interface nsITooltipTextProvider
: nsISupports
2355 nsresult GetNodeText
(nsIDOMNode
*aNode
, PRUnichar
**aText
, PRBool
*_retval
);
2360 uuid(02b0625a
-e7f3
-11d2
-9f5a
-006008a6efe9
),
2364 interface nsIProfile
: nsISupports
2366 nsresult GetProfileCount
(PRInt32
*aProfileCount
);
2367 nsresult GetProfileList
(PRUint32
*length
, PRUnichar
***profileNames
);
2368 nsresult ProfileExists
(const PRUnichar
*profileName
, PRBool
*_retval
);
2369 nsresult GetCurrentProfile
(PRUnichar
**aCurrentProfile
);
2370 nsresult SetCurrentProfile
(const PRUnichar
* aCurrentProfile
);
2371 nsresult ShutDownCurrentProfile
(PRUint32 shutDownType
);
2372 nsresult CreateNewProfile
(const PRUnichar
*profileName
,
2373 const PRUnichar
*nativeProfileDir
, const PRUnichar
*langcode
,
2374 PRBool useExistingDir
);
2375 nsresult RenameProfile
(const PRUnichar
*oldName
, const PRUnichar
*newName
);
2376 nsresult DeleteProfile
(const PRUnichar
*name
, PRBool canDeleteFiles
);
2377 nsresult CloneProfile
(const PRUnichar
*profileName
);
2382 uuid(30465632-a777
-44cc
-90f9
-8145475ef999
),
2386 interface nsIWindowCreator
: nsISupports
2388 nsresult CreateChromeWindow
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
2389 nsIWebBrowserChrome
**_retval
);
2394 uuid(f673ec81
-a4b0
-11d6
-964b
-eb5a2bf216fc
),
2398 interface nsIWindowCreator2
: nsIWindowCreator
2400 nsresult CreateChromeWindow2
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
2401 PRUint32 contextFlags
, nsIURI
*uri
, PRBool
*cancel
,
2402 nsIWebBrowserChrome
**_retval
);
2407 uuid(002286a8
-494b
-43b3
-8ddd
-49e3fc50622b
),
2411 interface nsIWindowWatcher
: nsISupports
2413 nsresult OpenWindow
(nsIDOMWindow
*aParent
, const char *aUrl
, const char *aName
,
2414 const char *aFeatures
, nsISupports
*aArguments
, nsIDOMWindow
**_retval
);
2415 nsresult RegisterNotification
(nsIObserver
*aObserver
);
2416 nsresult UnregisterNotification
(nsIObserver
*aObserver
);
2417 nsresult GetWindowEnumerator
(nsISimpleEnumerator
**_retval
);
2418 nsresult GetNewPrompter
(nsIDOMWindow
*aParent
, nsIPrompt
**_retval
);
2419 nsresult GetNewAuthPrompter
(nsIDOMWindow
*aParent
, nsIAuthPrompt
**_retval
);
2420 nsresult SetWindowCreator
(nsIWindowCreator
*creator
);
2421 nsresult GetChromeForWindow
(nsIDOMWindow
*aWindow
, nsIWebBrowserChrome
**_retval
);
2422 nsresult GetWindowByName
(const PRUnichar
*aTargetName
, nsIDOMWindow
*aCurrentWindow
,
2423 nsIDOMWindow
**_retval
);
2424 nsresult GetActiveWindow
(nsIDOMWindow
**aActiveWindow
);
2425 nsresult SetActiveWindow
(nsIDOMWindow
*aActiveWindow
);
2430 uuid(274cd32e
-3675
-47e1
-9d8a
-fc6504ded9ce
),
2434 interface nsIEditingSession
: nsISupports
2436 nsresult GetEditorStatus
(PRUint32
*aEditorStatus
);
2437 nsresult MakeWindowEditable
(nsIDOMWindow
*window
, const char *aEditorType
,
2438 PRBool doAfterUriLoad
, PRBool aMakeWholeDocumentEditable
, PRBool aInteractive
);
2439 nsresult WindowIsEditable
(nsIDOMWindow
*window
, PRBool
*_retval
);
2440 nsresult GetEditorForWindow
(nsIDOMWindow
*window
, nsIEditor
**_retval
);
2441 nsresult SetupEditorOnWindow
(nsIDOMWindow
*window
);
2442 nsresult TearDownEditorOnWindow
(nsIDOMWindow
*window
);
2443 nsresult SetEditorOnControllers
(nsIDOMWindow
*aWindow
, nsIEditor
*aEditor
);
2444 nsresult DisableJSAndPlugins
(nsIDOMWindow
*aWindow
);
2445 nsresult RestoreJSAndPlugins
(nsIDOMWindow
*aWindow
);
2446 nsresult DetachFromWindow
(nsIDOMWindow
*aWindow
);
2447 nsresult ReattachToWindow
(nsIDOMWindow
*aWindow
);
2452 uuid(83f892cf
-7ed3
-490e-967a
-62640f3158e1
),
2456 interface nsICommandParams
: nsISupports
2458 nsresult GetValueType
(const char *name
, PRInt16
*_retval
);
2459 nsresult GetBooleanValue
(const char *name
, PRBool
*_retval
);
2460 nsresult GetLongValue
(const char *name
, PRInt32
*_retval
);
2461 nsresult GetDoubleValue
(const char *name
, double *_retval
);
2462 nsresult GetStringValue
(const char *name
, nsAString
*_retval
);
2463 nsresult GetCStringValue
(const char *name
, char **_retval
);
2464 nsresult GetISupportsValue
(const char *name
, nsISupports
**_retval
);
2465 nsresult SetBooleanValue
(const char *name
, PRBool value
);
2466 nsresult SetLongValue
(const char *name
, PRInt32 value
);
2467 nsresult SetDoubleValue
(const char *name
, double value
);
2468 nsresult SetStringValue
(const char *name
, const nsAString
*value
);
2469 nsresult SetCStringValue
(const char *name
, const char *value
);
2470 nsresult SetISupportsValue
(const char *name
, nsISupports
*value
);
2471 nsresult RemoveValue
(const char *name
);
2472 nsresult HasMoreElements
(PRBool
*_retval
);
2474 nsresult GetNext
(char **_retval
);
2479 uuid(080d2001
-f91e
-11d4
-a73c
-f9242928207c
),
2483 interface nsICommandManager
: nsISupports
2485 nsresult AddCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandToObserve
);
2486 nsresult RemoveCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandObserved
);
2487 nsresult IsCommandSupported
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
2488 nsresult IsCommandEnabled
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
2489 nsresult GetCommandState
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
,
2490 nsICommandParams
*aCommandParams
);
2491 nsresult DoCommand
(const char *aCommandName
, nsICommandParams
*aCommandParams
,
2492 nsIDOMWindow
*aTargetWindow
);
2497 uuid(47b82b60
-a36f
-4167-8072-6f421151ed50
),
2501 interface nsIControllerContext
: nsISupports
2503 nsresult Init
(nsIControllerCommandTable
*aCommandTable
);
2504 nsresult SetCommandContext
(nsISupports
*aCommandContext
);
2509 uuid(d5b61b82
-1da4
-11d3
-bf87
-00105a1b0627
),
2513 interface nsIController
: nsISupports
2515 nsresult IsCommandEnabled
(const char *command
, PRBool
*_retval
);
2516 nsresult SupportsCommand
(const char *command
, PRBool
*_retval
);
2517 nsresult DoCommand
(const char *command
);
2518 nsresult OnEvent
(const char *eventName
);
2523 uuid(34769de0
-30d0
-4cef
-894a
-fcd8bb27c4b4
),
2527 interface nsIContentSerializer
: nsISupports
2529 nsresult Init
(PRUint32 flags
, PRUint32 aWrapColumn
, const char* aCharSet
, PRBool aIsCopying
,
2530 PRBool aIsWholeDocument
);
2531 nsresult AppendText
(nsIDOMText
*aText
, PRInt32 aStartOffset
, PRInt32 aEndOffset
, nsAString
*aStr
);
2532 nsresult AppendCDATASection
(nsIDOMCDATASection
*aCDATASection
, PRInt32 aStartOffset
,
2533 PRInt32 aEndOffset
, nsAString
*aStr
);
2534 nsresult AppendProcessingInstruction
(nsIDOMProcessingInstruction
* aPI
, PRInt32 aStartOffset
,
2535 PRInt32 aEndOffset
, nsAString
*aStr
);
2536 nsresult AppendComment
(nsIDOMComment
*aComment
, PRInt32 aStartOffset
, PRInt32 aEndOffset
,
2538 nsresult AppendDoctype
(nsIDOMDocumentType
*aDoctype
, nsAString
*aStr
);
2539 nsresult AppendElementStart
(nsIDOMElement
*aElement
, nsIDOMElement
*aOriginalElement
,
2541 nsresult AppendElementEnd
(nsIDOMElement
*aElement
, nsAString
*aStr
);
2542 nsresult Flush
(nsAString
*aStr
);
2543 nsresult AppendDocumentStart
(nsIDOMDocument
*aDocument
, nsAString
*aStr
);
2548 uuid(96b60ba0
-634a
-41e4
-928e-78ab0b3c4b46
),
2552 interface nsIEditor
: nsISupports
2554 typedef void *nsIPresShellPtr
;
2555 typedef void *nsIContentPtr
;
2557 nsresult GetSelection
([out] nsISelection
*_retval
);
2558 nsresult Init
([in] nsIDOMDocument
*doc
, [in] nsIPresShellPtr shell
, [in] nsIContentPtr aRoot
, [in] nsISelectionController
*aSelCon
, [in] PRUint32 aFlags
);
2559 nsresult SetAttributeOrEquivalent
([in] nsIDOMElement
*element
, [in] const nsAString
*sourceAttrName
, [in] const nsAString
*sourceAttrValue
, [in] PRBool aSuppressTransaction
);
2560 nsresult RemoveAttributeOrEquivalent
([in] nsIDOMElement
*element
, [in] const nsAString
*sourceAttrName
, [in] PRBool aSuppressTransaction
);
2561 nsresult PostCreate
();
2562 nsresult PreDestroy
();
2563 nsresult GetFlags
([out] PRUint32
*_retval
);
2564 nsresult SetFlags
([in] PRUint32 val
);
2565 nsresult GetContentsMIMEType
([out] char **_retval
);
2566 nsresult SetContentsMIMEType
([in] const char *val
);
2567 nsresult GetIsDocumentEditable
([out] PRBool
*_retval
);
2568 nsresult GetDocument
([out] nsIDOMDocument
**_retval
);
2569 nsresult GetRootElement
([out] nsIDOMElement
**_retval
);
2570 nsresult GetSelectionController
([out] nsISelectionController
**_retval
);
2571 nsresult DeleteSelection
([in] PRInt16 action
);
2572 nsresult GetDocumentIsEmpty
([out] PRBool
*_retval
);
2573 nsresult GetDocumentModified
([out] PRBool
*_retval
);
2574 nsresult GetDocumentCharacterSet
([out] nsACString
*_retval
);
2575 nsresult SetDocumentCharacterSet
([in] const nsACString
*val
);
2576 nsresult ResetModificationCount
();
2577 nsresult GetModificationCount
([out] PRInt32
*_retval
);
2578 nsresult IncrementModificationCount
([in] PRInt32 aModCount
);
2579 nsresult GetTransactionManager
([out] nsITransactionManager
**_retval
);
2580 nsresult SetTransactionManager
(nsITransactionManager
*aTransactionManager
);
2581 nsresult DoTransaction
([in] nsITransaction
*txn
);
2582 nsresult EnableUndo
([in] PRBool enable
);
2583 nsresult Undo
([in] PRUint32 count
);
2584 nsresult CanUndo
([out] PRBool
*isEnabled
, [out] PRBool
*canUndo
);
2585 nsresult Redo
([in] PRUint32 count
);
2586 nsresult CanRedo
([out] PRBool
*isEnabled
, [out] PRBool
*canRedo
);
2587 nsresult BeginTransaction
();
2588 nsresult EndTransaction
();
2589 nsresult BeginPlaceHolderTransaction
([in] nsIAtom
*name
);
2590 nsresult EndPlaceHolderTransaction
();
2591 nsresult ShouldTxnSetSelection
([out] PRBool
*_retval
);
2592 nsresult SetShouldTxnSetSelection
([in] PRBool should
);
2593 nsresult GetInlineSpellChecker
([out] nsIInlineSpellChecker
**_retval
);
2594 nsresult SyncRealTimeSpell
();
2595 nsresult SetSpellcheckUserOverride
(PRBool enable
);
2597 nsresult CanCut
([out] PRBool
*_retval
);
2599 nsresult CanCopy
([out] PRBool
*_retval
);
2600 nsresult Paste
([in] PRInt32 aSelectionType
);
2601 nsresult CanPaste
([in] PRInt32 aSelectionType
, [out] PRBool
*_retval
);
2602 nsresult SelectAll
();
2603 nsresult BeginningOfDocument
();
2604 nsresult EndOfDocument
();
2605 nsresult CanDrag
([in] nsIDOMEvent
*aEvent
, [out] PRBool
*_retval
);
2606 nsresult DoDrag
([in] nsIDOMEvent
*aEvent
);
2607 nsresult InsertFromDrop
([in] nsIDOMEvent
*aEvent
);
2608 nsresult SetAttribute
([in] nsIDOMElement
*aElement
, [in] const nsAString
*attributestr
, [in] const nsAString
*attvalue
);
2609 nsresult GetAttributeValue
([in] nsIDOMElement
*aElement
, [in] const nsAString
*attributestr
, [out] nsAString
*resultValue
, PRBool
*_retval
);
2610 nsresult RemoveAttribute
([in] nsIDOMElement
*aElement
, [in] const nsAString
*aAttribute
);
2611 nsresult CloneAttribute
([in] const nsAString
*aAttribute
, [in] nsIDOMNode
*aDestNode
, [in] nsIDOMNode
*aSourceNode
);
2612 nsresult CloneAttributes
([in] nsIDOMNode
*destNode
, [in] nsIDOMNode
*sourceNode
);
2613 nsresult CreateNode
([in] const nsAString
*tag
, [in] nsIDOMNode
*parent
, [in] PRInt32 position
, [out] nsIDOMNode
**_retval
);
2614 nsresult InsertNode
([in] nsIDOMNode
*node
, [in] nsIDOMNode
*parent
, [in] PRInt32 aPosition
);
2615 nsresult SplitNode
([in] nsIDOMNode
*existingRightNode
, [in] PRInt32 offset
, [out] nsIDOMNode
**newLeftNode
);
2616 nsresult JoinNodes
([in] nsIDOMNode
*leftNode
, [in] nsIDOMNode
*rightNode
, [in] nsIDOMNode
*parent
);
2617 nsresult DeleteNode
([in] nsIDOMNode
*child
);
2618 nsresult MarkNodeDirty
([in] nsIDOMNode
*node
);
2619 nsresult SwitchTextDirection
();
2620 nsresult OutputToString
([in] nsAString formatType
, [in] PRUint32 flags
, [out] nsAString
*_retval
);
2621 nsresult OutputToStream
([in] nsIOutputStream
*aStream
, [in] nsAString
*formatType
, [in] nsACString
*charsetOverride
, [in] PRUint32 flags
);
2622 nsresult AddEditorObserver
([in] nsIEditorObserver
*observer
);
2623 nsresult RemoveEditorObserver
([in] nsIEditorObserver
*observer
);
2624 nsresult AddEditActionListener
([in] nsIEditActionListener
*listener
);
2625 nsresult RemoveEditActionListener
([in] nsIEditActionListener
*listener
);
2626 nsresult AddDocumentStateListener
([in] nsIDocumentStateListener
*listener
);
2627 nsresult RemoveDocumentStateListener
([in] nsIDocumentStateListener
*listener
);
2628 nsresult DumpContentTree
();
2629 nsresult DebugDumpContent
();
2630 nsresult DebugUnitTests
([out] PRInt32
*outNumTests
, [out] PRInt32
*outNumTestsFailed
);
2631 PRBool IsModifiableNode
(nsIDOMNode
*aNode
);
2636 uuid(afc36593
-5787-4420-93d9
-b2c0ccbf0cad
),
2640 interface nsIHTMLEditor
: nsISupports
2642 nsresult AddDefaultProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
2643 nsresult RemoveDefaultProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
2644 nsresult RemoveAllDefaultProperties
();
2645 nsresult SetCSSInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
2646 nsresult SetInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
);
2647 nsresult GetInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
, [out] PRBool
*aFirst
, [out] PRBool
*aAny
, [out] PRBool
*aAll
);
2648 nsresult GetInlinePropertyWithAttrValue
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
, [in] nsAString
*aValue
, [out] PRBool
*aFirst
, [out] PRBool
*aAny
, [out] PRBool
*aAll
, [out] nsAString
*_retval
);
2649 nsresult RemoveAllInlineProperties
();
2650 nsresult RemoveInlineProperty
([in] nsIAtom
*aProperty
, [in] nsAString
*aAttribute
);
2651 nsresult IncreaseFontSize
();
2652 nsresult DecreaseFontSize
();
2653 nsresult CanDrag
([in] nsIDOMEvent
*aEvent
, [out] PRBool
*_retval
);
2654 nsresult DoDrag
([in] nsIDOMEvent
*aEvent
);
2655 nsresult InsertFromDrop
([in] nsIDOMEvent
*aEvent
);
2656 nsresult NodeIsBlock
([in] nsIDOMNode
*node
, PRBool
*_retval
);
2657 nsresult InsertHTML
([in] nsAString
*aInputString
);
2658 nsresult PasteNoFormatting
([in] PRInt32 aSelectionType
);
2659 nsresult RebuildDocumentFromSource
([in] nsAString
*aSourceString
);
2660 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
);
2661 nsresult InsertElementAtSelection
([in] nsIDOMElement
*aElement
, [in] PRBool aDeleteSelection
);
2662 nsresult SetDocumentTitle
([in] nsAString
*aTitle
);
2663 nsresult UpdateBaseURL
();
2664 nsresult SelectElement
([in] nsIDOMElement
*aElement
);
2665 nsresult SetCaretAfterElement
([in] nsIDOMElement
*aElement
);
2666 nsresult SetParagraphFormat
([in] nsAString
*aParagraphFormat
);
2667 nsresult GetParagraphState
([out] PRBool
*aMixed
, [out] nsAString
*_retval
);
2668 nsresult GetFontFaceState
([out] PRBool
*aMixed
, [out] nsAString
*_retval
);
2669 nsresult GetFontColorState
([out] PRBool
*aMixed
, [out] nsAString
*_retval
);
2670 nsresult GetBackgroundColorState
([out] PRBool
*aMixed
, [out] nsAString
*_retval
);
2671 nsresult GetHighlightColorState
([out] PRBool
*aMixed
, [out] nsAString
*_retval
);
2672 nsresult GetListState
([out] PRBool
*aMixed
, [out] PRBool
*aOL
, [out] PRBool
*aUL
, [out] PRBool
*aDL
);
2673 nsresult GetListItemState
([out] PRBool
*aMixed
, [out] PRBool
*aLI
, [out] PRBool
*aDT
, [out] PRBool
*aDD
);
2674 nsresult GetAlignment
([out] PRBool
*aMixed
, [out] PRInt16
*aAlign
);
2675 nsresult GetIndentState
([out] PRBool
*aCanIndent
, [out] PRBool
*aCanOutdent
);
2676 nsresult MakeOrChangeList
([in] nsAString
*aListType
, [in] PRBool entireList
, [in] nsAString
*aBulletType
);
2677 nsresult RemoveList
([in] nsAString
*aListType
);
2678 nsresult Indent
([in] nsAString
*aIndent
);
2679 nsresult Align
([in] nsAString
*aAlign
);
2680 nsresult GetElementOrParentByTagName
([in] nsAString
*aTagName
, [in] nsIDOMNode
*aNode
, [out] nsIDOMElement
**_retval
);
2681 nsresult GetSelectedElement
([in] nsAString
*aTagName
, [out] nsIDOMElement
**_retval
);
2682 nsresult GetHeadContentsAsHTML
([out] nsAString
*_retval
);
2683 nsresult ReplaceHeadContentsWithHTML
([in] nsAString
*aSourceToInsert
);
2684 nsresult CreateElementWithDefaults
([in] nsAString
*aTagName
, [out] nsIDOMElement
**_retval
);
2685 nsresult InsertLinkAroundSelection
([in] nsIDOMElement
*aAnchorElement
);
2686 nsresult SetBackgroundColor
([in] nsAString
*aColor
);
2687 nsresult SetBodyAttribute
([in] nsAString
*aAttr
, [in] nsAString
*aValue
);
2688 nsresult IgnoreSpuriousDragEvent
([in] PRBool aIgnoreSpuriousDragEvent
);
2689 nsresult GetLinkedObjects
([out] nsISupportsArray
**_retval
);
2690 nsresult GetIsCSSEnabled
([out] PRBool
*_retval
);
2691 nsresult SetIsCSSEnabled
([in] PRBool prb
);
2692 nsresult AddInsertionListener
([in] nsIContentFilter
*inFilter
);
2693 nsresult RemoveInsertionListener
([in] nsIContentFilter
*inFilter
);
2694 nsresult CreateAnonymousElement
([in] nsAString
*aTag
, [in] nsIDOMNode
*aParentNode
, [in] nsAString
*aAnonClass
, [in] PRBool aIsCreatedHidden
, [out] nsIDOMElement
**_retval
);
2695 nsresult GetSelectionContainer
([out] nsIDOMElement
**_retval
);
2696 nsresult CheckSelectionStateForAnonymousButtons
([in] nsISelection
*aSelection
);
2697 nsresult IsAnonymousElement
([in] nsIDOMElement
*aElement
, [out] PRBool
*_retval
);
2698 nsresult GetReturnInParagraphCreatesNewParagraph
([out] PRBool
*_retval
);
2699 nsresult SetReturnInParagraphCreatesNewParagraph
([in] PRBool prb
);
2704 uuid(8adfb831
-1053-4a19
-884d
-bcdad7277b4b
),
2708 interface nsIDocShell
: nsISupports
2710 nsresult LoadURI
(nsIURI
*uri
, nsIDocShellLoadInfo
*loadInfo
, PRUint32 aLoadFlags
, PRBool firstParty
);
2711 nsresult LoadStream
(nsIInputStream
*aStream
, nsIURI
*aURI
, const nsACString
*aContentType
,
2712 const nsACString
*aContentCharset
, nsIDocShellLoadInfo
*aLoadInfo
);
2713 nsresult InternalLoad
(nsIURI
*aURI
, nsIURI
*aReferrer
, nsISupports
*aOwner
, PRUint32 aFlags
, const PRUnichar
*aWindowTarget
,
2714 const char *aTypeHint
, nsIInputStream
*aPostDataStream
, nsIInputStream
*aHeadersStream
, PRUint32 aLoadFlags
,
2715 nsISHEntry
*aSHEntry
, PRBool firstParty
, nsIDocShell
**aDocShell
, nsIRequest
**aRequest
);
2716 nsresult CreateLoadInfo
(nsIDocShellLoadInfo
**loadInfo
);
2717 nsresult PrepareForNewContentModel
();
2718 nsresult SetCurrentURI
(nsIURI
*aURI
);
2719 nsresult FirePageHideNotification
(PRBool isUnload
);
2720 nsresult GetPresContext
(void /*nsPresContext*/ **aPresContext
);
2721 nsresult GetPresShell
(nsIPresShell
**aPresShell
);
2722 nsresult GetEldestPresShell
(nsIPresShell
**aEldestPresShell
);
2723 nsresult GetContentViewer
(nsIContentViewer
**aContentViewer
);
2724 nsresult GetChromeEventHandler
(nsIDOMEventTarget
**aChromeEventHandler
);
2725 nsresult SetChromeEventHandler
(nsIDOMEventTarget
*aChromeEventHandler
);
2726 nsresult GetDocumentCharsetInfo
(nsIDocumentCharsetInfo
**aDocumentCharsetInfo
);
2727 nsresult SetDocumentCharsetInfo
(nsIDocumentCharsetInfo
*aDocumentCharsetInfo
);
2728 nsresult GetAllowPlugins
(PRBool
*aAllowPlugins
);
2729 nsresult SetAllowPlugins
(PRBool aAllowPlugins
);
2730 nsresult GetAllowJavascript
(PRBool
*aAllowJavascript
);
2731 nsresult SetAllowJavascript
(PRBool aAllowJavascript
);
2732 nsresult GetAllowMetaRedirects
(PRBool
*aAllowMetaRedirects
);
2733 nsresult SetAllowMetaRedirects
(PRBool aAllowMetaRedirects
);
2734 nsresult GetAllowSubframes
(PRBool
*aAllowSubframes
);
2735 nsresult SetAllowSubframes
(PRBool aAllowSubframes
);
2736 nsresult GetAllowImages
(PRBool
*aAllowImages
);
2737 nsresult SetAllowImages
(PRBool aAllowImages
);
2738 nsresult GetAllowDNSPrefetch
(PRBool
*aAllowDNSPrefetch
);
2739 nsresult SetAllowDNSPrefetch
(PRBool aAllowDNSPrefetch
);
2740 nsresult GetDocShellEnumerator
(PRInt32 aItemType
, PRInt32 aDirection
, nsISimpleEnumerator
**_retval
);
2741 nsresult GetAppType
(PRUint32
*aAppType
);
2742 nsresult SetAppType
(PRUint32 aAppType
);
2743 nsresult GetAllowAuth
(PRBool
*aAllowAuth
);
2744 nsresult SetAllowAuth
(PRBool aAllowAuth
);
2745 nsresult GetZoom
(float *aZoom
);
2746 nsresult SetZoom
(float aZoom
);
2747 nsresult GetMarginWidth
(PRInt32
*aMarginWidth
);
2748 nsresult SetMarginWidth
(PRInt32 aMarginWidth
);
2749 nsresult GetMarginHeight
(PRInt32
*aMarginHeight
);
2750 nsresult SetMarginHeight
(PRInt32 aMarginHeight
);
2751 nsresult TabToTreeOwner
(PRBool forward
, PRBool
*tookFocus
);
2752 nsresult GetBusyFlags
(PRUint32
*aBusyFlags
);
2753 nsresult GetLoadType
(PRUint32
*aLoadType
);
2754 nsresult SetLoadType
(PRUint32 aLoadType
);
2755 nsresult IsBeingDestroyed
(PRBool
*_retval
);
2756 nsresult GetIsExecutingOnLoadHandler
(PRBool
*aIsExecutingOnLoadHandler
);
2757 nsresult GetLayoutHistoryState
(nsILayoutHistoryState
**aLayoutHistoryState
);
2758 nsresult SetLayoutHistoryState
(nsILayoutHistoryState
*aLayoutHistoryState
);
2759 nsresult GetShouldSaveLayoutState
(PRBool
*aShouldSaveLayoutState
);
2760 nsresult GetSecurityUI
(nsISecureBrowserUI
**aSecurityUI
);
2761 nsresult SetSecurityUI
(nsISecureBrowserUI
*aSecurityUI
);
2762 nsresult SuspendRefreshURIs
();
2763 nsresult ResumeRefreshURIs
();
2764 nsresult BeginRestore
(nsIContentViewer
*viewer
, PRBool top
);
2765 nsresult FinishRestore
();
2766 nsresult GetRestoringDocument
(PRBool
*aRestoringDocument
);
2767 nsresult GetUseErrorPages
(PRBool
*aUseErrorPages
);
2768 nsresult SetUseErrorPages
(PRBool aUseErrorPages
);
2769 nsresult GetPreviousTransIndex
(PRInt32
*aPreviousTransIndex
);
2770 nsresult GetLoadedTransIndex
(PRInt32
*aLoadedTransIndex
);
2771 nsresult HistoryPurged
(PRInt32 numEntries
);
2772 nsresult GetSessionStorageForURI
(nsIURI
*uri
, nsIDOMStorage
**_retval
);
2773 nsresult GetSessionStorageForPrincipal
(nsIPrincipal
*principal
, PRBool create
, nsIDOMStorage
**_retval
);
2774 nsresult AddSessionStorage
(nsIPrincipal
*principal
, nsIDOMStorage
*storage
);
2775 nsresult GetCurrentDocumentChannel
(nsIChannel
**aCurrentDocumentChannel
);
2776 nsresult SetChildOffset
(PRUint32 offset
);
2777 nsresult GetIsInUnload
(PRBool
*aIsInUnload
);
2778 nsresult GetChannelIsUnsafe
(PRBool
*aChannelIsUnsafe
);
2779 void DetachEditorFromWindow
();
2780 nsresult GetIsOffScreenBrowser
(PRBool
*aIsOffScreenBrowser
);
2781 nsresult SetIsOffScreenBrowser
(PRBool aIsOffScreenBrowser
);
2786 uuid(365d600b
-868a
-452a
-8de8
-f46fad8fee53
),
2790 interface nsIMutationObserver
: nsISupports
2792 void CharacterDataWillChange
(nsIDocument
*aDocument
, nsIContent
*aContent
,
2793 void /*CharacterDataChangeInfo*/ *aInfo
);
2794 void CharacterDataChanged
(nsIDocument
*aDocument
, nsIContent
*aContent
,
2795 void /*CharacterDataChangeInfo*/ *aInfo
);
2796 void AttributeWillChange
(nsIDocument
*aDocument
, nsIContent
* aContent
, PRInt32 aNameSpaceID
,
2797 nsIAtom
*aAttribute
, PRInt32 aModType
);
2798 void AttributeChanged
(nsIDocument
*aDocument
, nsIContent
*aContent
, PRInt32 aNameSpaceID
,
2799 nsIAtom
*aAttribute
, PRInt32 aModType
, PRUint32 aStateMask
);
2800 void ContentAppended
(nsIDocument
*aDocument
, nsIContent
*aContainer
, PRInt32 aNewIndexInContainer
);
2801 void ContentInserted
(nsIDocument
*aDocument
, nsIContent
*aContainer
, nsIContent
*aChild
,
2802 PRInt32 aIndexInContainer
);
2803 void ContentRemoved
(nsIDocument
*aDocument
, nsIContent
*aContainer
, nsIContent
*aChild
,
2804 PRInt32 aIndexInContainer
);
2805 void NodeWillBeDestroyed
(const nsINode
*aNode
);
2806 void ParentChainChanged
(nsIContent
*aContent
);
2811 uuid(4e14e321
-a4bb
-49f8
-a57a
-2363668d14d0
),
2815 interface nsIDocumentObserver
: nsIMutationObserver
2817 typedef int nsUpdateType
;
2819 void BeginUpdate
(nsIDocument
*aDocument
, nsUpdateType aUpdateType
);
2820 void EndUpdate
(nsIDocument
*aDocument
, nsUpdateType aUpdateType
);
2821 void BeginLoad
(nsIDocument
*aDocument
);
2822 void EndLoad
(nsIDocument
*aDocument
);
2823 void ContentStatesChanged
(nsIDocument
*aDocument
, nsIContent
*aContent1
, nsIContent
*aContent2
,
2824 PRInt32 aStateMask
);
2825 void StyleSheetAdded
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, PRBool aDocumentSheet
);
2826 void StyleSheetRemoved
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, PRBool aDocumentSheet
);
2827 void StyleSheetApplicableStateChanged
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
,
2828 PRBool aApplicable
);
2829 void StyleRuleChanged
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, nsIStyleRule
*aOldStyleRule
,
2830 nsIStyleRule
*aNewStyleRule
);
2831 void StyleRuleAdded
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, nsIStyleRule
*aStyleRule
);
2832 void StyleRuleRemoved
(nsIDocument
*aDocument
, nsIStyleSheet
*aStyleSheet
, nsIStyleRule
*aStyleRule
);
2833 void BindToDocument
(nsIDocument
*aDocument
, nsIContent
*aContent
);
2834 void DoneAddingChildren
(nsIContent
*aContent
, PRBool aHaveNotified
);