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 an usual idl file. Interfaces in this file are XPCOM interfaces
22 * (NOT MSCOM!), but we generate the header file with WIDL compatibile with XPCOM,
26 cpp_quote
("#define GECKO_VERSION \"0.1.0\"");
27 cpp_quote
("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION");
31 typedef HRESULT nsresult
;
32 typedef ULONG nsrefcnt
;
36 typedef REFIID nsIIDRef
;
37 typedef nsIIDRef nsCIDRef
;
39 typedef void** nsQIResult
;
40 typedef WCHAR PRUnichar
;
41 typedef ULONG PRUint32
;
43 typedef WORD PRUint16
;
44 typedef INT16 PRInt16
;
47 typedef LARGE_INTEGER PRInt64
;
48 typedef ULARGE_INTEGER PRUint64
;
49 typedef PRUint64 DOMTimeStamp
;
50 typedef PRUint32 nsLoadFlags
;
66 typedef nsCStringContainer nsACString
;
67 typedef nsStringContainer nsAString
;
69 interface nsIWebBrowserChrome
;
70 interface nsILoadGroup
;
72 interface nsIDOMDocument
;
73 interface nsIDOMEvent
;
79 uuid(00000000-0000-0000-c000
-000000000046)
83 nsresult QueryInterface
(nsIIDRef riid
, nsQIResult result
);
88 /* Currently we don't need a full declaration of these interfaces */
89 typedef nsISupports nsISHistory
;
90 typedef nsISupports nsISimpleEnumerator
;
91 typedef nsISupports nsIWidget
;
92 typedef nsISupports nsIDOMAbstractView
;
93 typedef nsISupports nsIHttpHeaderVisitor
;
94 typedef nsISupports nsIDOMBarProp
;
95 typedef nsISupports nsIDOMWindowCollection
;
96 typedef nsISupports nsIPrompt
;
97 typedef nsISupports nsIAuthPrompt
;
98 typedef nsISupports nsIDOMNamedNodeMap
;
99 typedef nsISupports nsIDOMAttr
;
100 typedef nsISupports nsIDOMDocumentType
;
101 typedef nsISupports nsIDOMDOMImplementation
;
102 typedef nsISupports nsIDOMCDATASection
;
103 typedef nsISupports nsIDOMProcessingInstruction
;
104 typedef nsISupports nsIDOMEntityReference
;
105 typedef nsISupports nsIDOMHTMLFormElement
;
106 typedef nsISupports nsIDOMHTMLOptionsCollection
;
107 typedef nsISupports nsIDOMHTMLCollection
;
108 typedef nsISupports nsIEditor
;
109 typedef nsISupports nsIWebProgressListener
;
110 typedef nsISupports nsIDOMCSSValue
;
111 typedef nsISupports nsIDOMCSSRule
;
112 typedef nsISupports nsIPrintSession
;
113 typedef nsISupports nsIControllerCommandTable
;
117 uuid(8bb35ed9
-e332
-462d
-9155-4a002ab5c958
)
120 interface nsIServiceManager
: nsISupports
122 nsresult GetService
(nsCIDRef aClass
, nsIIDRef aIID
, void **result
);
123 nsresult GetServiceByContactID
(const char *aContactID
, nsIIDRef aIID
, void **result
);
124 nsresult IsServiceInstantiated
(nsCIDRef aClass
, nsIIDRef aIID
, BOOL
*_retval
);
125 nsresult IsServiceInstantiatedByContractID
(const char *aContractID
, nsIIDRef aIID
, BOOL
*_retval
);
130 uuid(00000001-0000-0000-c000
-000000000046)
133 interface nsIFactory
: nsISupports
135 nsresult CreateInstance
(nsISupports
*aOuter
, const nsIID
*iid
, void **result
);
136 nsresult LockFactory
(PRBool lock
);
141 uuid(db242e01
-e4d9
-11d2
-9dde
-000064657374)
144 interface nsIObserver
: nsISupports
146 nsresult Observe
(nsISupports
*aSubject
, const char *aTopic
, const PRUnichar
*aData
);
151 uuid(a88e5a60
-205a
-4bb1
-94e1
-2628daf51eae
)
154 interface nsIComponentManager
: nsISupports
156 nsresult GetClassObject
(nsCIDRef aClass
, nsIIDRef aIID
, nsQIResult result
);
157 nsresult GetClassObjectByContractID
(const char *aContractID
, nsIIDRef aIID
, nsQIResult result
);
158 nsresult CreateInstance
(nsCIDRef aClass
, nsISupports
*aDelegate
, nsIIDRef aIID
,
160 nsresult CreateInstanceByContractID
(const char *aContractID
, nsISupports
*aDelegate
,
161 nsIIDRef aIID
, nsQIResult result
);
166 uuid(59e7e77a
-38e4
-11d4
-8cf5
-0060b0fc14a3
)
169 interface nsIMemory
: nsISupports
171 void *Alloc
(/*size_t*/ int size
);
172 void *Realloc
(void *_ptr
, /*size_t*/ int newSize
);
173 void Free
(void *_ptr
);
174 nsresult HeapMinimize
(PRBool immediate
);
175 nsresult IsLowMemory
(PRBool
*_retval
);
180 uuid(9188bc85
-f92e
-11d2
-81ef
-0060083a0bcf
)
183 interface nsIWeakReference
: nsISupports
185 nsresult QueryReferent
(const nsIID
*riid
, void **result
);
190 uuid(9188bc86
-f92e
-11d2
-81ef
-0060083a0bcf
)
193 interface nsISupportsWeakReference
: nsISupports
195 nsresult GetWeakReference
(nsIWeakReference
**_retval
);
200 uuid(033a1470
-8b2a
-11d3
-af88
-00a024ffc08c
)
203 interface nsIInterfaceRequestor
: nsISupports
205 nsresult GetInterface
(const nsIID
*riid
, void **result
);
210 uuid(fa9c7f6c
-61b3
-11d4
-9877-00c04fa0cf4a
)
213 interface nsIInputStream
: nsISupports
216 nsresult Available
(PRUint32
*_retval
);
217 nsresult Read
(char *aBuf
, PRUint32 aCount
, PRUint32
*_retval
);
218 nsresult ReadSegments
(nsresult
(*aWriter
)(nsIInputStream
*aInStream
,
219 void *aClosure
, const char *aFromSegment
, PRUint32 aToOffset
,
220 PRUint32 aCount
, PRUint32
*aWriteCount
),
221 void *aClosure
, PRUint32 aCount
, PRUint32
*_retval
);
222 nsresult IsNonBlocking
(PRBool
*_retval
);
227 uuid(450cd2d4
-f0fd
-424d
-b365
-b1251f80fd53
)
230 interface nsIStringInputStream
: nsIInputStream
232 nsresult SetData
(const char *data
, PRInt32 dataLen
);
233 nsresult AdoptData
(char *data
, PRInt32 dataLen
);
234 nsresult ShareData
(const char *data
, PRInt32 dataLen
);
239 uuid(07a22cc0
-0ce5
-11d3
-9331-00104ba0fd40
)
242 interface nsIURI
: nsISupports
244 nsresult GetSpec
(nsACString
*aSpec
);
245 nsresult SetSpec
(const nsACString
*aSpec
);
246 nsresult GetPrePath
(nsACString
*aPrePath
);
247 nsresult GetScheme
(nsACString
*aScheme
);
248 nsresult SetScheme
(const nsACString
*aScheme
);
249 nsresult GetUserPass
(nsACString
*aUserPass
);
250 nsresult SetUserPass
(const nsACString
*aUserPass
);
251 nsresult GetUsername
(nsACString
*aUsername
);
252 nsresult SetUsername
(const nsACString
*aUsername
);
253 nsresult GetPassword
(nsACString
*aPassword
);
254 nsresult SetPassword
(const nsACString
*aPassword
);
255 nsresult GetHostPort
(nsACString
*aHostPort
);
256 nsresult SetHostPort
(const nsACString
*aHostPort
);
257 nsresult GetHost
(nsACString
*aHost
);
258 nsresult SetHost
(const nsACString
*aHost
);
259 nsresult GetPort
(PRInt32
*aPort
);
260 nsresult SetPort
(PRInt32 aPort
);
261 nsresult GetPath
(nsACString
*aPath
);
262 nsresult SetPath
(const nsACString
*aPath
);
263 nsresult Equals
(nsIURI
*other
, PRBool
*_retval
);
264 nsresult SchemeIs
(const char *scheme
, PRBool
*_retval
);
265 nsresult Clone
(nsIURI
**_retval
);
266 nsresult Resolve
(const nsACString
*relativePath
, nsACString
*_retval
);
267 nsresult GetAsciiSpec
(nsACString
*aAsciiSpec
);
268 nsresult GetAsciiHost
(nsACString
*aAsciiHost
);
269 nsresult GetOriginCharset
(nsACString
*aOriginCharset
);
274 uuid(ef6bfbd2
-fd46
-48d8
-96b7
-9f8f0fd387fe
)
277 interface nsIRequest
: nsISupports
279 nsresult GetName
(nsACString
*aName
);
280 nsresult IsPending
(PRBool
*_retval
);
281 nsresult GetStatus
(nsresult
*aStatus
);
282 nsresult Cancel
(nsresult aStatus
);
285 nsresult GetLoadGroup
(nsILoadGroup
**aLoadGroup
);
286 nsresult SetLoadGroup
(nsILoadGroup
*aLoadGroup
);
287 nsresult GetLoadFlags
(nsLoadFlags
*aLoadFlags
);
288 nsresult SetLoadFlags
(nsLoadFlags aLoadFlags
);
293 uuid(fd91e2e0
-1481-11d3
-9333-00104ba0fd40
)
296 interface nsIRequestObserver
: nsISupports
298 nsresult OnStartRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
299 nsresult OnStopRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatusCode
);
304 uuid(1a637020
-1482-11d3
-9333-00104ba0fd40
)
307 interface nsIStreamListener
: nsIRequestObserver
309 nsresult OnDataAvailable
(nsIRequest
*aRequest
, nsISupports
*aContext
,
310 nsIInputStream
*aInputStream
, PRUint32 aOffset
, PRUint32 aCount
);
315 uuid(3de0a31c
-feaf
-400f
-9f1e
-4ef71f8b20cc
)
318 interface nsILoadGroup
: nsIRequest
320 nsresult GetGroupObserver
(nsIRequestObserver
**aGroupObserver
);
321 nsresult SetGroupObserver
(nsIRequestObserver
*aGroupObserver
);
322 nsresult GetDefaultLoadRequest
(nsIRequest
**aDefaultLoadRequest
);
323 nsresult SetDefaultLoadRequest
(nsIRequest
*aDefaultLoadRequest
);
324 nsresult AddRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
325 nsresult RemoveRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatus
);
326 nsresult GetRequests
(nsISimpleEnumerator
**aRequests
);
327 nsresult GetActiveCount
(PRUint32
*aActiveCount
);
328 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
329 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
334 uuid(c63a055a
-a676
-4e71
-bf3c
-6cfa11082018
)
337 interface nsIChannel
: nsIRequest
339 nsresult GetOriginalURI
(nsIURI
**aOriginalURI
);
340 nsresult SetOriginalURI
(nsIURI
*aOriginalURI
);
341 nsresult GetURI
(nsIURI
**aURI
);
342 nsresult GetOwner
(nsISupports
**aOwner
);
343 nsresult SetOwner
(nsISupports
*aOwner
);
344 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
345 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
346 nsresult GetSecurityInfo
(nsISupports
**aSecurityInfo
);
347 nsresult GetContentType
(nsACString
*aContentType
);
348 nsresult SetContentType
(const nsACString
*aContentType
);
349 nsresult GetContentCharset
(nsACString
*aContentCharset
);
350 nsresult SetContentCharset
(const nsACString
*aContentCharset
);
351 nsresult GetContentLength
(PRInt32
*aContentLength
);
352 nsresult SetContentLength
(PRInt32 aContentLength
);
353 nsresult Open
(nsIInputStream
**_retval
);
354 nsresult AsyncOpen
(nsIStreamListener
*aListener
, nsISupports
*aContext
);
359 uuid(9277fe09
-f0cc
-4cd9
-bbce
-581dd94b0260
)
362 interface nsIHttpChannel
: nsIChannel
364 nsresult GetRequestMethod
(nsACString
*aRequestMethod
);
365 nsresult SetRequestMethod
(const nsACString
*aRequestMethod
);
366 nsresult GetReferrer
(nsIURI
**aReferrer
);
367 nsresult SetReferrer
(nsIURI
*aReferrer
);
368 nsresult GetRequestHeader
(const nsACString
*aHeader
, nsACString
*_retval
);
369 nsresult SetRequestHeader
(const nsACString
*aHeader
, const nsACString
*aValue
, PRBool aMerge
);
370 nsresult VisitRequestHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
371 nsresult GetAllowPipelining
(PRBool
*aAllowPipelining
);
372 nsresult SetAllowPipelining
(PRBool aAllowPipelining
);
373 nsresult GetRedirectionLimit
(PRUint32
*aRedirectionLimit
);
374 nsresult SetRedirectionLimit
(PRUint32 aRedirectionLimit
);
375 nsresult GetResponseStatus
(PRUint32
*aResponseStatus
);
376 nsresult GetResponseStatusText
(nsACString
*aResponseStatusText
);
377 nsresult GetRequestSucceeded
(PRBool
*aRequestSucceeded
);
378 nsresult GetResponseHeader
(const nsACString
*header
, nsACString
*_retval
);
379 nsresult SetResponseHeader
(const nsACString
*header
, const nsACString
*value
, PRBool merge
);
380 nsresult VisitResponseHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
381 nsresult IsNoStoreResponse
(PRBool
*_retval
);
382 nsresult IsNoCacheResponse
(PRBool
*_retval
);
387 uuid(ddf633d8
-e9a4
-439d
-ad88
-de636fd9bb75
)
390 interface nsIUploadChannel
: nsISupports
392 nsresult SetUploadStream
(nsIInputStream
*aStream
, const nsACString
*aContentType
,
393 PRInt32 aContentLength
);
394 nsresult GetUploadStream
(nsIInputStream
**aUploadStream
);
399 uuid(a6cf90be
-15b3
-11d2
-932e-00805f8add32
)
402 interface nsIDOMCSSStyleDeclaration
: nsISupports
404 nsresult GetCssText
(nsAString
*aCssText
);
405 nsresult SetCssText
(const nsAString
*aCssText
);
406 nsresult GetPropertyValue
(const nsAString
*propertyName
, nsAString
*_retval
);
407 nsresult GetPropertyCSSValue
(const nsAString
*propertyName
, nsIDOMCSSValue
**_retval
);
408 nsresult RemoveProperty
(const nsAString
*propertyName
, nsAString
*_retval
);
409 nsresult GetPropertyPriority
(const nsAString
*propertyName
, nsAString
*_retval
);
410 nsresult SetProperty
(const nsAString
*propertyName
, const nsAString
*value
,
411 const nsAString
*priority
);
412 nsresult GetLength
(PRUint32
*aLength
);
413 nsresult Item
(PRUint32 index
, nsAString
*_retval
);
414 nsresult GetParentRule
(nsIDOMCSSRule
**aParentRule
);
419 uuid(a6cf907d
-15b3
-11d2
-932e-00805f8add32
)
422 interface nsIDOMNodeList
: nsISupports
424 nsresult Item
(PRUint32 index
, nsIDOMNode
**_retval
);
425 nsresult GetLength
(PRUint32
*aLength
);
430 uuid(a6cf907c
-15b3
-11d2
-932e-00805f8add32
)
433 interface nsIDOMNode
: nsISupports
439 CDATA_SELECTION_NODE
= 4,
440 ENTITY_REFERENCE_NODE
= 5,
442 PROCESSING_INSTRUCTION_NODE
= 7,
445 DOCUMENT_TYPE_NODE
= 10,
446 DOCUMENT_FRAGMENT_NODE
= 11,
450 nsresult GetNodeName
(nsAString
*aNodeName
);
451 nsresult GetNodeValue
(nsAString
*aNodeValue
);
452 nsresult SetNodeValue
(const nsAString
*aNodeValue
);
453 nsresult GetNodeType
(PRUint16
*aNodeType
);
454 nsresult GetParentNode
(nsIDOMNode
**aParentNode
);
455 nsresult GetChildNodes
(nsIDOMNodeList
**aChildNodes
);
456 nsresult GetFirstChild
(nsIDOMNode
**aFirstChild
);
457 nsresult GetLastChild
(nsIDOMNode
**aLastChild
);
458 nsresult GetPreviousSibling
(nsIDOMNode
**aPreviousSibling
);
459 nsresult GetNextSibling
(nsIDOMNode
**aNextSibling
);
460 nsresult GetAttributes
(nsIDOMNamedNodeMap
**aAttributes
);
461 nsresult GetOwnerDocument
(nsIDOMDocument
**aOwnerDocument
);
462 nsresult InsertBefore
(nsIDOMNode
*newChild
, nsIDOMNode
*refChild
, nsIDOMNode
**_retval
);
463 nsresult ReplaceChild
(nsIDOMNode
*newChild
, nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
464 nsresult RemoveChild
(nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
465 nsresult AppendChild
(nsIDOMNode
*newChild
, nsIDOMNode
**_retval
);
466 nsresult HasChildNodes
(PRBool
*_retval
);
467 nsresult CloneNode
(PRBool deep
, nsIDOMNode
**_retval
);
468 nsresult Normalize
();
469 nsresult IsSupported
(const nsAString
*feature
, const nsAString
*version, PRBool
*_retval
);
470 nsresult GetNamespaceURI
(nsAString
*aNamespaceURI
);
471 nsresult GetPrefix
(nsAString
*aPrefix
);
472 nsresult SetPrefix
(const nsAString
*aPrefix
);
473 nsresult GetLocalName
(nsAString
*aLocalName
);
474 nsresult HasAttributes
(PRBool
*_retval
);
479 uuid(a6cf9078
-15b3
-11d2
-932e-00805f8add32
)
482 interface nsIDOMElement
: nsIDOMNode
484 nsresult GetTagName
(nsAString
*aTagName
);
485 nsresult GetAttribute
(const nsAString
*name
, nsAString
*_retval
);
486 nsresult SetAttribute
(const nsAString
*name
, const nsAString
*value
);
487 nsresult RemoveAttribute
(const nsAString
*name
);
488 nsresult GetAttributeNode
(const nsAString
*name
, nsIDOMAttr
**_retval
);
489 nsresult SetAttributeNode
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
490 nsresult RemoveAttributeNode
(nsIDOMAttr
*oldAttr
, nsIDOMAttr
**_retval
);
491 nsresult GetElementsByTagName
(const nsAString
*name
, nsIDOMNodeList
**_retval
);
492 nsresult GetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
494 nsresult SetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
495 const nsAString
*value
);
496 nsresult RemoveAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
);
497 nsresult GetAttributeNodeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
498 nsIDOMAttr
**_retval
);
499 nsresult SetAttributeNodeNS
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
500 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
501 nsIDOMNodeList
**_retval
);
502 nsresult HasAttribute
(const nsAString
*name
, PRBool
*_retval
);
503 nsresult HasAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
509 uuid(99715845-95fc
-4a56
-aa53
-214b65c26e22
)
512 interface nsIDOMElementCSSInlineStyle
: nsISupports
514 nsresult GetStyle
(nsIDOMCSSStyleDeclaration
**aStyle
);
517 cpp_quote
("#undef GetClassName");
521 uuid(a6cf9085
-15b3
-11d2
-932e-00805f8add32
)
524 interface nsIDOMHTMLElement
: nsIDOMElement
526 nsresult GetId
(nsAString
*aId
);
527 nsresult SetId
(const nsAString
*aId
);
528 nsresult GetTitle
(nsAString
*aTitle
);
529 nsresult SetTitle
(const nsAString
*aTitle
);
530 nsresult GetLang
(nsAString
*aLang
);
531 nsresult SetLang
(const nsAString
*aLang
);
532 nsresult GetDir
(nsAString
*aDir
);
533 nsresult SetDir
(const nsAString
*aDir
);
534 nsresult GetClassName
(nsAString
*aClassName
);
535 nsresult SetClassName
(const nsAString
*aClassName
);
540 uuid(da83b2ec
-8264-4410-8496-ada3acd2ae42
)
543 interface nsIDOMNSHTMLElement
: nsISupports
545 nsresult GetOffsetTop
(PRInt32
*aOffsetTop
);
546 nsresult GetOffsetLeft
(PRInt32
*aOffsetLeft
);
547 nsresult GetOffsetWidth
(PRInt32
*aOffsetWidth
);
548 nsresult GetOffsetHeight
(PRInt32
*aOffsetHeight
);
549 nsresult GetOffsetParent
(nsIDOMElement
**aOffsetParent
);
550 nsresult GetInnerHTML
(nsAString
*aInnerHTML
);
551 nsresult SetInnerHTML
(const nsAString
*aInnerHTML
);
552 nsresult GetScrollTop
(PRInt32
*aScrollTop
);
553 nsresult SetScrollTop
(PRInt32 aScrollTop
);
554 nsresult GetScrollLeft
(PRInt32
*aScrollLeft
);
555 nsresult SetScrollLeft
(PRInt32 aScrollLeft
);
556 nsresult GetScrollHeight
(PRInt32
*aScrollHeight
);
557 nsresult GetScrollWidth
(PRInt32
*aScrollWidth
);
558 nsresult GetClientHeight
(PRInt32
*aClientHeight
);
559 nsresult GetClientWidth
(PRInt32
*aClientWidth
);
560 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
561 nsresult SetTabIndex
(PRInt32 aTabIndex
);
564 nsresult ScrollIntoView
(PRBool top
);
569 uuid(a6cf9072
-15b3
-11d2
-932e-00805f8add32
)
572 interface nsIDOMCharacterData
: nsIDOMNode
574 nsresult GetData
(nsAString
*aData
);
575 nsresult SetData
(const nsAString
*aData
);
576 nsresult GetLength
(PRUint32
*aLength
);
577 nsresult SubstringData
(PRUint32 offset
, PRUint32 count
, nsAString
*_retval
);
578 nsresult AppendData
(const nsAString
*arg
);
579 nsresult InsertData
(PRUint32 offset
, const nsAString
*arg
);
580 nsresult DeleteData
(PRUint32 offset
, PRUint32 count
);
581 nsresult ReplaceData
(PRUint32 offset
, PRUint32 count
, const nsAString
*arg
);
586 uuid(a6cf9082
-15b3
-11d2
-932e-00805f8add32
)
589 interface nsIDOMText
: nsIDOMCharacterData
591 nsresult SplitText
(PRUint32 offset
, nsIDOMText
**_retval
);
596 uuid(a6cf9073
-15b3
-11d2
-932e-00805f8add32
)
599 interface nsIDOMComment
: nsIDOMCharacterData
605 uuid(a6cf9076
-15b3
-11d2
-932e-00805f8add32
)
608 interface nsIDOMDocumentFragment
: nsIDOMNode
614 uuid(a6cf9075
-15b3
-11d2
-932e-00805f8add32
)
617 interface nsIDOMDocument
: nsIDOMNode
619 nsresult GetDoctype
(nsIDOMDocumentType
**aDoctype
);
620 nsresult GetImplementation
(nsIDOMDOMImplementation
**aImplementation
);
621 nsresult GetDocumentElement
(nsIDOMElement
**aDocumentElement
);
622 nsresult CreateElement
(const nsAString
*tagName
, nsIDOMElement
**_retval
);
623 nsresult CreateDocumentFragment
(nsIDOMDocumentFragment
**_retval
);
624 nsresult CreateTextNode
(const nsAString
*data
, nsIDOMText
**_retval
);
625 nsresult CreateComment
(const nsAString
*data
, nsIDOMComment
**_retval
);
626 nsresult CreateCDATASection
(const nsAString
*data
, nsIDOMCDATASection
**_retval
);
627 nsresult CreateProcessingInstruction
(const nsAString
*target
, const nsAString
*data
,
628 nsIDOMProcessingInstruction
**_retval
);
629 nsresult CreateAttribute
(const nsAString
*name
, nsIDOMAttr
**_retval
);
630 nsresult CreateEntityReference
(const nsAString
*name
, nsIDOMEntityReference
**_retval
);
631 nsresult GetElementsByTagName
(const nsAString
*tagname
, nsIDOMNodeList
**_retval
);
632 nsresult ImportNode
(nsIDOMNode
*importedNode
, PRBool deep
, nsIDOMNode
**_retval
);
633 nsresult CreateElementNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
634 nsIDOMElement
**_retval
);
635 nsresult CreateAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
636 nsIDOMAttr
**_retval
);
637 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
638 nsIDOMNodeList
**_retval
);
639 nsresult GetElementById
(const nsAString
*elementId
, nsIDOMElement
**_retval
);
644 uuid(a6cf9084
-15b3
-11d2
-932e-00805f8add32
)
647 interface nsIDOMHTMLDocument
: nsIDOMDocument
649 nsresult GetTitle
(nsAString
*aTitle
);
650 nsresult SetTitle
(const nsAString
*aTitle
);
651 nsresult GetReferrer
(nsAString
*aReferrer
);
652 nsresult GetDomain
(nsAString
*aDomain
);
653 nsresult GetURL
(nsAString
*aURL
);
654 nsresult GetBody
(nsIDOMHTMLElement
**aBody
);
655 nsresult SetBody
(nsIDOMHTMLElement
*aBody
);
656 nsresult GetImages
(nsIDOMHTMLCollection
**aImages
);
657 nsresult GetApplets
(nsIDOMHTMLCollection
**aApplets
);
658 nsresult GetLinks
(nsIDOMHTMLCollection
**aLinks
);
659 nsresult GetForms
(nsIDOMHTMLCollection
**aForms
);
660 nsresult GetAnchors
(nsIDOMHTMLCollection
**aAnchors
);
661 nsresult GetCookie
(nsAString
*aCookie
);
662 nsresult SetCookie
(const nsAString
*aCookie
);
665 nsresult Write
(const nsAString
*text
);
666 nsresult Writeln
(const nsAString
*text
);
667 nsresult GetElementsByName
(const nsAString
*elementName
, nsIDOMNodeList
**_retval
);
672 uuid(a6cf90ce
-15b3
-11d2
-932e-00805f8add32
)
675 interface nsIDOMRange
: nsISupports
677 nsresult GetStartContainer
(nsIDOMNode
**aStartContainer
);
678 nsresult GetStartOffset
(PRInt32
*aStartOffset
);
679 nsresult GetEndContainer
(nsIDOMNode
**aEndContainer
);
680 nsresult GetEndOffset
(PRInt32
*aEndOffset
);
681 nsresult GetCollapsed
(PRBool
*aCollapsed
);
682 nsresult GetCommonAncestorContainer
(nsIDOMNode
**aCommonAncestorContainer
);
683 nsresult SetStart
(nsIDOMNode
*refNode
, PRInt32 offset
);
684 nsresult SetEnd
(nsIDOMNode
*refNode
, PRInt32 offset
);
685 nsresult SetStartBefore
(nsIDOMNode
*refNode
);
686 nsresult SetStartAfter
(nsIDOMNode
*refNode
);
687 nsresult SetEndBefore
(nsIDOMNode
*refNode
);
688 nsresult SetEndAfter
(nsIDOMNode
*refNode
);
689 nsresult Collapse
(PRBool toStart
);
690 nsresult SelectNode
(nsIDOMNode
*refNode
);
691 nsresult SelectNodeContents
(nsIDOMNode
*refNode
);
692 nsresult CompareBoundaryPoints
(PRUint16 how
, nsIDOMRange
*sourceRange
, PRInt16
*_retval
);
693 nsresult DeleteContents
();
694 nsresult ExtractContents
(nsIDOMDocumentFragment
**_retval
);
695 nsresult CloneContents
(nsIDOMDocumentFragment
**_retval
);
696 nsresult InsertNode
(nsIDOMNode
*newNode
);
697 nsresult SurroundContents
(nsIDOMNode
*newParent
);
698 nsresult CloneRange
(nsIDOMRange
**_retval
);
699 nsresult ToString
(nsAString
*_retval
);
705 uuid(7b9badc6
-c9bc
-447a
-8670-dbd195aed24b
)
708 interface nsIDOMDocumentRange
: nsISupports
710 nsresult CreateRange
(nsIDOMRange
**_retval
);
715 uuid(b2c7ed59
-8634-4352-9e37
-5484c8b6e4e1
)
718 interface nsISelection
: nsISupports
720 nsresult GetAnchorNode
(nsIDOMNode
**aAnchorNode
);
721 nsresult GetAnchorOffset
(PRInt32
*aAnchorOffset
);
722 nsresult GetFocusNode
(nsIDOMNode
**aFocusNode
);
723 nsresult GetFocusOffset
(PRInt32
*aFocusOffset
);
724 nsresult GetIsCollapsed
(PRBool
*aIsCollapsed
);
725 nsresult GetRangeCount
(PRInt32
*aRangeCount
);
726 nsresult GetRangeAt
(PRInt32 index
, nsIDOMRange
**_retval
);
727 nsresult Collapse
(nsIDOMNode
*parentNode
, PRInt32 offset
);
728 nsresult Extend
(nsIDOMNode
*parentNode
, PRInt32 offset
);
729 nsresult CollapseToStart
();
730 nsresult CollapseToEnd
();
731 nsresult ContainsNode
(nsIDOMNode
*node
, PRBool entirelyContained
, PRBool
*_retval
);
732 nsresult SelectAllChildren
(nsIDOMNode
*parentNode
);
733 nsresult AddRange
(nsIDOMRange
*range);
734 nsresult RemoveRange
(nsIDOMRange
*range);
735 nsresult RemoveAllRanges
();
736 nsresult DeleteFromDocument
();
737 nsresult SelectionLanguageChange
(PRBool langRTL
);
738 nsresult ToString
(PRUnichar
**_retval
);
743 uuid(a6cf906b
-15b3
-11d2
-932e-00805f8add32
)
746 interface nsIDOMWindow
: nsISupports
748 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
749 nsresult GetParent
(nsIDOMWindow
**aParent
);
750 nsresult GetTop
(nsIDOMWindow
**aTop
);
751 nsresult GetScrollbars
(nsIDOMBarProp
**aScrollbars
);
752 nsresult GetFrames
(nsIDOMWindowCollection
**aFrames
);
753 nsresult GetName
(nsAString
*aName
);
754 nsresult SetName
(const nsAString
*aName
);
755 nsresult GetTextZoom
(float *aTextZoom
);
756 nsresult SetTextZoom
(float aTextZoom
);
757 nsresult GetScrollX
(PRInt32
*aScrollX
);
758 nsresult GetScrollY
(PRInt32
*aScrollY
);
759 nsresult ScrollTo
(PRInt32 xScroll
, PRInt32 yScroll
);
760 nsresult ScrollBy
(PRInt32 xScrollDif
, PRInt32 yScrollDif
);
761 nsresult GetSelection
(nsISelection
**_retval
);
762 nsresult ScrollByLines
(PRInt32 numLines
);
763 nsresult ScrollByPages
(PRInt32 numPages
);
764 nsresult SizeToContent
();
769 uuid(a6cf908e
-15b3
-11d2
-932e-00805f8add32
)
772 interface nsIDOMHTMLBodyElement
: nsIDOMHTMLElement
774 nsresult GetALink
(nsAString
*aALink
);
775 nsresult SetALink
(const nsAString
*aALink
);
776 nsresult GetBackground
(nsAString
*aBackground
);
777 nsresult SetBackground
(const nsAString
*aBackground
);
778 nsresult GetBgColor
(nsAString
*aBgColor
);
779 nsresult SetBgColor
(const nsAString
*aBgColor
);
780 nsresult GetLink
(nsAString
*aLink
);
781 nsresult SetLink
(const nsAString
*aLink
);
782 nsresult GetText
(nsAString
*aText
);
783 nsresult SetText
(const nsAString
*aText
);
784 nsresult GetVLink
(nsAString
*aVLink
);
785 nsresult SetVLink
(const nsAString
*aVLink
);
790 uuid(a6cf9093
-15b3
-11d2
-932e-00805f8add32
)
793 interface nsIDOMHTMLInputElement
: nsIDOMHTMLElement
795 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
796 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
797 nsresult GetDefaultChecked
(PRBool
*aDefaultChecked
);
798 nsresult SetDefaultChecked
(PRBool aDefaultChecked
);
799 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
800 nsresult GetAccept
(nsAString
*aAccept
);
801 nsresult SetAccept
(const nsAString
*aAccept
);
802 nsresult GetAccessKey
(nsAString
*aAccessKey
);
803 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
804 nsresult GetAlign
(nsAString
*aAlign
);
805 nsresult SetAlign
(const nsAString
*aAlign
);
806 nsresult GetAlt
(nsAString
*aAlt
);
807 nsresult SetAlt
(const nsAString
*aAlt
);
808 nsresult GetChecked
(PRBool
*aChecked
);
809 nsresult SetChecked
(PRBool aChecked
);
810 nsresult GetDisabled
(PRBool
*aDisabled
);
811 nsresult SetDisabled
(PRBool aDisabled
);
812 nsresult GetMaxLength
(PRInt32
*aMaxLength
);
813 nsresult SetMaxLength
(PRInt32 aMaxLength
);
814 nsresult GetName
(nsAString
*aName
);
815 nsresult SetName
(const nsAString
*aName
);
816 nsresult GetReadOnly
(PRBool
*aReadOnly
);
817 nsresult SetReadOnly
(PRBool aReadOnly
);
818 nsresult GetSize
(PRUint32
*aSize
);
819 nsresult SetSize
(PRUint32 aSize
);
820 nsresult GetSrc
(nsAString
*aSrc
);
821 nsresult SetSrc
(const nsAString
*aSrc
);
822 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
823 nsresult SetTabIndex
(PRInt32 aTabIndex
);
824 nsresult GetType
(nsAString
*aType
);
825 nsresult SetType
(const nsAString
*aType
);
826 nsresult GetUseMap
(nsAString
*aUseMap
);
827 nsresult SetUseMap
(const nsAString
*aUseMap
);
828 nsresult GetValue
(nsAString
*aValue
);
829 nsresult SetValue
(const nsAString
*aValue
);
838 uuid(a6cf9090
-15b3
-11d2
-932e-00805f8add32
)
841 interface nsIDOMHTMLSelectElement
: nsIDOMHTMLElement
843 nsresult GetType
(nsAString
*aType
);
844 nsresult GetSelectedIndex
(PRInt32
*aSelectedIndex
);
845 nsresult SetSelectedIndex
(PRInt32 aSelectedIndex
);
846 nsresult GetValue
(nsAString
*aValue
);
847 nsresult SetValue
(const nsAString
*aValue
);
848 nsresult GetLength
(PRUint32
*aLength
);
849 nsresult SetLength
(PRUint32 aLength
);
850 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
851 nsresult GetOptions
(nsIDOMHTMLOptionsCollection
**aOptions
);
852 nsresult GetDisabled
(PRBool
*aDisabled
);
853 nsresult SetDisabled
(PRBool aDisabled
);
854 nsresult GetMultiple
(PRBool
*aMultiple
);
855 nsresult SetMultiple
(PRBool aMultiple
);
856 nsresult GetName
(nsAString
*aName
);
857 nsresult SetName
(const nsAString
*aName
);
858 nsresult GetSize
(PRInt32
*aSize
);
859 nsresult SetSize
(PRInt32 aSize
);
860 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
861 nsresult SetTabIndex
(PRInt32 aTabIndex
);
862 nsresult Add
(nsIDOMHTMLElement
*element
, nsIDOMHTMLElement
*before
);
863 nsresult Remove
(PRInt32 index
);
870 uuid(a6cf9094
-15b3
-11d2
-932e-00805f8add32
)
873 interface nsIDOMHTMLTextAreaElement
: nsIDOMHTMLElement
875 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
876 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
877 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
878 nsresult GetAccessKey
(nsAString
*aAccessKey
);
879 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
880 nsresult GetCols
(PRInt32
*aCols
);
881 nsresult SetCols
(PRInt32 aCols
);
882 nsresult GetDisabled
(PRBool
*aDisabled
);
883 nsresult SetDisabled
(PRBool aDisabled
);
884 nsresult GetName
(nsAString
*aName
);
885 nsresult SetName
(const nsAString
*aName
);
886 nsresult GetReadOnly
(PRBool
*aReadOnly
);
887 nsresult SetReadOnly
(PRBool aReadOnly
);
888 nsresult GetRows
(PRInt32
*aRows
);
889 nsresult SetRows
(PRInt32 aRows
);
890 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
891 nsresult SetTabIndex
(PRInt32 aTabIndex
);
892 nsresult GetType
(nsAString
*aType
);
893 nsresult GetValue
(nsAString
*aValue
);
894 nsresult SetValue
(const nsAString
*aValue
);
902 uuid(94928ab3
-8b63
-11d3
-989d
-001083010e9b
)
905 interface nsIURIContentListener
: nsISupports
907 nsresult OnStartURIOpen
(nsIURI
*aURI
, PRBool
*_retval
);
908 nsresult DoContent
(const char *aContentType
, PRBool aIsContentPreferred
, nsIRequest
*aRequest
,
909 nsIStreamListener
**aContentHandler
, PRBool
*_retval
);
910 nsresult IsPreferred
(const char *aContentType
, char **aDesiredContentType
, PRBool
*_retval
);
911 nsresult CanHandleContent
(const char *aContentType
, PRBool aIsContentPreferred
,
912 char **aDesiredContentType
, PRBool
*_retval
);
913 nsresult GetLoadCookie
(nsISupports
**aLoadCookie
);
914 nsresult SetLoadCookie
(nsISupports
*aLoadCookie
);
915 nsresult GetParentContentListener
(nsIURIContentListener
**aParentContentListener
);
916 nsresult SetParentContentListener
(nsIURIContentListener
*aParentContentListener
);
921 uuid(44b78386
-1dd2
-11b2
-9ad2
-e4eee2ca1916
)
924 interface nsITooltipListener
: nsISupports
926 nsresult OnShowTooltip
(PRInt32 aXCoords
, PRInt32 aYCoords
, const PRUnichar
*aTipText
);
927 nsresult OnHideTooltip
();
932 uuid(69e5df00
-7b8b
-11d3
-af61
-00a024ffc08c
)
935 interface nsIWebBrowser
: nsISupports
937 nsresult AddWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
938 nsresult RemoveWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
939 nsresult GetContainerWindow
(nsIWebBrowserChrome
**aContainerWindow
);
940 nsresult SetContainerWindow
(nsIWebBrowserChrome
*aContainerWindow
);
941 nsresult GetParentURIContentListener
(nsIURIContentListener
**aParentURIContentListener
);
942 nsresult SetParentURIContentListener
(nsIURIContentListener
*aParentURIContentListener
);
943 nsresult GetContentDOMWindow
(nsIDOMWindow
**aContentDOMWindow
);
946 cpp_quote
("#define SETUP_IS_CHROME_WRAPPER 7");
950 uuid(f15398a0
-8018-11d3
-af70
-00a024ffc08c
)
953 interface nsIWebBrowserSetup
: nsISupports
955 nsresult SetProperty
(PRUint32 aId
, PRUint32 aValue
);
958 typedef void* nativeWindow
;
962 uuid(046bc8a0
-8015-11d3
-af70
-00a024ffc08c
)
965 interface nsIBaseWindow
: nsISupports
967 nsresult InitWindow
(nativeWindow parentNativeWindow
, nsIWidget
*parentWidget
, PRInt32 x
,
968 PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
971 nsresult SetPosition
(PRInt32 x
, PRInt32 y
);
972 nsresult GetPosition
(PRInt32
*x
, PRInt32
*y
);
973 nsresult SetSize
(PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
974 nsresult GetSize
(PRInt32
*cx
, PRInt32
*cy
);
975 nsresult SetPositionAndSize
(PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
976 nsresult GetPositionAndSize
(PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
977 nsresult Repaint
(PRBool force
);
978 nsresult GetParentWidget
(nsIWidget
**aParentWidget
);
979 nsresult SetParentWidget
(nsIWidget
*aParentWidget
);
980 nsresult GetParentNativeWindow
(nativeWindow
*aParentNativeWindow
);
981 nsresult SetParentNativeWindow
(nativeWindow aParentNativeWindow
);
982 nsresult GetVisibility
(PRBool
*aVisibility
);
983 nsresult SetVisibility
(PRBool aVisibility
);
984 nsresult GetEnabled
(PRBool
*aEnabled
);
985 nsresult SetEnabled
(PRBool aEnabled
);
986 nsresult GetBlurSuppression
(PRBool
*aBlurSuppression
);
987 nsresult SetBlurSuppression
(PRBool aBlurSuppression
);
988 nsresult GetMainWidget
(nsIWidget
**aMainWidget
);
990 nsresult GetTitle
(PRUnichar
**aTitle
);
991 nsresult SetTitle
(const PRUnichar
*aTitle
);
994 cpp_quote
("#define LOAD_FLAGS_NONE 0");
998 uuid(f5d9e7b0
-d930
-11d3
-b057
-00a024ffc08c
)
1001 interface nsIWebNavigation
: nsISupports
1003 nsresult GetCanGoBack
(PRBool
*aCanGoBack
);
1004 nsresult GetCanGoForward
(PRBool
*aCanGoForward
);
1006 nsresult GoForward
();
1007 nsresult GotoIndex
(PRInt32 index
);
1008 nsresult LoadURI
(const PRUnichar
*aURI
, PRUint32 aLoadFlags
, nsIURI
*aReferrer
,
1009 nsIInputStream
*aPostData
, nsIInputStream
*aHeaders
);
1010 nsresult Reload
(PRUint32 aReloadFlags
);
1011 nsresult Stop
(PRUint32 aStopFlags
);
1012 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
1013 nsresult GetCurrentURI
(nsIURI
**aCurrentURI
);
1014 nsresult GetReferringURI
(nsIURI
**aReferringURI
);
1015 nsresult GetSessionHistory
(nsISHistory
**aSessionHistory
);
1016 nsresult SetSessionHistory
(nsISHistory
*aSessionHistory
);
1021 uuid(f1094df6
-ce0e
-42c9
-9847-2f663172c38d
)
1024 interface nsIPrintSettings
: nsISupports
1026 typedef struct {} nsMargin
;
1028 nsresult SetPrintOptions
(PRInt32 aType
, PRBool aTurnOnOff
);
1029 nsresult GetPrintOptions
(PRInt32 aType
, PRBool
*_retval
);
1030 nsresult GetPrintOptionsBits
(PRInt32
*_retval
);
1031 nsresult GetPageSizeInTwips
(PRInt32
*aWidth
, PRInt32
*aHeight
);
1032 nsresult Clone
(nsIPrintSettings
**_retval
);
1033 nsresult Assign
(nsIPrintSettings
*aPS
);
1034 nsresult GetPrintSession
(nsIPrintSession
**aPrintSession
);
1035 nsresult SetPrintSession
(nsIPrintSession
*aPrintSession
);
1036 nsresult GetStartPageRange
(PRInt32
*aStartPageRange
);
1037 nsresult SetStartPageRange
(PRInt32 aStartPageRange
);
1038 nsresult GetEndPageRange
(PRInt32
*aEndPageRange
);
1039 nsresult SetEndPageRange
(PRInt32 aEndPageRange
);
1040 nsresult GetMarginTop
(double *aMarginTop
);
1041 nsresult SetMarginTop
(double aMarginTop
);
1042 nsresult GetMarginLeft
(double *aMarginLeft
);
1043 nsresult SetMarginLeft
(double aMarginLeft
);
1044 nsresult GetMarginBottom
(double *aMarginBottom
);
1045 nsresult SetMarginBottom
(double aMarginBottom
);
1046 nsresult GetMarginRight
(double *aMarginRight
);
1047 nsresult SetMarginRight
(double aMarginRight
);
1048 nsresult GetScaling
(double *aScaling
);
1049 nsresult SetScaling
(double aScaling
);
1050 nsresult GetPrintBGColors
(PRBool
*aPrintBGColors
);
1051 nsresult SetPrintBGColors
(PRBool aPrintBGColors
);
1052 nsresult GetPrintBGImages
(PRBool
*aPrintBGImages
);
1053 nsresult SetPrintBGImages
(PRBool aPrintBGImages
);
1054 nsresult GetPrintRange
(PRInt16
*aPrintRange
);
1055 nsresult SetPrintRange
(PRInt16 aPrintRange
);
1056 nsresult GetTitle
(PRUnichar
**aTitle
);
1057 nsresult SetTitle
(const PRUnichar
*aTitle
);
1058 nsresult GetDocURL
(PRUnichar
**aDocURL
);
1059 nsresult SetDocURL
(const PRUnichar
*aDocURL
);
1060 nsresult GetHeaderStrLeft
(PRUnichar
**aHeaderStrLeft
);
1061 nsresult SetHeaderStrLeft
(const PRUnichar
*aHeaderStrLeft
);
1062 nsresult GetHeaderStrCenter
(PRUnichar
**aHeaderStrCenter
);
1063 nsresult SetHeaderStrCenter
(const PRUnichar
*aHeaderStrCenter
);
1064 nsresult GetHeaderStrRight
(PRUnichar
**aHeaderStrRight
);
1065 nsresult SetHeaderStrRight
(const PRUnichar
*aHeaderStrRight
);
1066 nsresult GetFooterStrLeft
(PRUnichar
**aFooterStrLeft
);
1067 nsresult SetFooterStrLeft
(const PRUnichar
*aFooterStrLeft
);
1068 nsresult GetFooterStrCenter
(PRUnichar
**aFooterStrCenter
);
1069 nsresult SetFooterStrCenter
(const PRUnichar
*aFooterStrCenter
);
1070 nsresult GetFooterStrRight
(PRUnichar
**aFooterStrRight
);
1071 nsresult SetFooterStrRight
(const PRUnichar
*aFooterStrRight
);
1072 nsresult GetHowToEnableFrameUI
(PRInt16
*aHowToEnableFrameUI
);
1073 nsresult SetHowToEnableFrameUI
(PRInt16 aHowToEnableFrameUI
);
1074 nsresult GetIsCancelled
(PRBool
*aIsCancelled
);
1075 nsresult SetIsCancelled
(PRBool aIsCancelled
);
1076 nsresult GetPrintFrameTypeUsage
(PRInt16
*aPrintFrameTypeUsage
);
1077 nsresult SetPrintFrameTypeUsage
(PRInt16 aPrintFrameTypeUsage
);
1078 nsresult GetPrintFrameType
(PRInt16
*aPrintFrameType
);
1079 nsresult SetPrintFrameType
(PRInt16 aPrintFrameType
);
1080 nsresult GetPrintSilent
(PRBool
*aPrintSilent
);
1081 nsresult SetPrintSilent
(PRBool aPrintSilent
);
1082 nsresult GetShrinkToFit
(PRBool
*aShrinkToFit
);
1083 nsresult SetShrinkToFit
(PRBool aShrinkToFit
);
1084 nsresult GetShowPrintProgress
(PRBool
*aShowPrintProgress
);
1085 nsresult SetShowPrintProgress
(PRBool aShowPrintProgress
);
1086 nsresult GetPaperName
(PRUnichar
**aPaperName
);
1087 nsresult SetPaperName
(const PRUnichar
*aPaperName
);
1088 nsresult GetPaperSizeType
(PRInt16
*aPaperSizeType
);
1089 nsresult SetPaperSizeType
(PRInt16 aPaperSizeType
);
1090 nsresult GetPaperData
(PRInt16
*aPaperData
);
1091 nsresult SetPaperData
(PRInt16 aPaperData
);
1092 nsresult GetPaperWidth
(double *aPaperWidth
);
1093 nsresult SetPaperWidth
(double aPaperWidth
);
1094 nsresult GetPaperHeight
(double *aPaperHeight
);
1095 nsresult SetPaperHeight
(double aPaperHeight
);
1096 nsresult GetPaperSizeUnit
(PRInt16
*aPaperSizeUnit
);
1097 nsresult SetPaperSizeUnit
(PRInt16 aPaperSizeUnit
);
1098 nsresult GetPlexName
(PRUnichar
**aPlexName
);
1099 nsresult SetPlexName
(const PRUnichar
*aPlexName
);
1100 nsresult GetColorspace
(PRUnichar
**aColorspace
);
1101 nsresult SetColorspace
(const PRUnichar
*aColorspace
);
1102 nsresult GetResolutionName
(PRUnichar
**aResolutionName
);
1103 nsresult SetResolutionName
(const PRUnichar aResolutionName
);
1104 nsresult GetDownloadFonts
(PRBool
*aDownloadFonts
);
1105 nsresult SetDownloadFonts
(PRBool aDownloadFonts
);
1106 nsresult GetPrintReversed
(PRBool
*aPrintReversed
);
1107 nsresult SetPrintReversed
(PRBool aPrintReversed
);
1108 nsresult GetPrintInColor
(PRBool
*aPrintInColor
);
1109 nsresult SetPrintInColor
(PRBool aPrintInColor
);
1110 nsresult GetPaperSize
(PRInt32
*aPaperSize
);
1111 nsresult SetPaperSize
(PRInt32 aPaperSize
);
1112 nsresult GetOrientation
(PRInt32
*aOrientation
);
1113 nsresult SetOrientation
(PRInt32 aOrientation
);
1114 nsresult GetPrintCommand
(PRUnichar
**aPrintCommand
);
1115 nsresult SetPrintCommand
(const PRUnichar
*aPrintCommand
);
1116 nsresult GetNumCopies
(PRInt32
*aNumCopies
);
1117 nsresult SetNumCopies
(PRInt32 aNumCopies
);
1118 nsresult GetPrinterName
(PRUnichar
**aPrinterName
);
1119 nsresult SetPrinterName
(const PRUnichar
*aPrinterName
);
1120 nsresult GetPrintToFile
(PRBool
*aPrintToFile
);
1121 nsresult SetPrintToFile
(PRBool aPrintToFile
);
1122 nsresult GetToFileName
(PRUnichar
**aToFileName
);
1123 nsresult SetToFileName
(const PRUnichar
*aToFileName
);
1124 nsresult GetPrintPageDelay
(PRInt32
*aPrintPageDelay
);
1125 nsresult SetPrintPageDelay
(PRInt32 aPrintPageDelay
);
1126 nsresult GetIsInitializedFromPrinter
(PRBool
*aIsInitializedFromPrinter
);
1127 nsresult SetIsInitializedFromPrinter
(PRBool aIsInitializedFromPrinter
);
1128 nsresult GetIsInitializedFromPrefs
(PRBool
*aIsInitializedFromPrefs
);
1129 nsresult SetIsInitializedFromPrefs
(PRBool aIsInitializedFromPrefs
);
1130 nsresult SetMarginInTwips
(nsMargin
*aMargin
);
1131 nsresult GetMarginInTwips
(nsMargin
*aMargin
);
1136 uuid(9a7ca4b0
-fbba
-11d4
-a869
-00105a183419
)
1139 interface nsIWebBrowserPrint
: nsISupports
1141 nsresult GetGlobalPrintSettings
(nsIPrintSettings
**aGlobalPrintSettings
);
1142 nsresult GetCurrentPrintSettings
(nsIPrintSettings
**aCurrentPrintSettings
);
1143 nsresult GetCurrentChildDOMWindow
(nsIDOMWindow
**aCurrentChildDOMWindow
);
1144 nsresult GetDoingPrint
(PRBool
*aDoingPrint
);
1145 nsresult GetDoingPrintPreview
(PRBool
*aDoingPrintPreview
);
1146 nsresult GetIsFramesetDocument
(PRBool
*aIsFramesetDocument
);
1147 nsresult GetIsFramesetFrameSelected
(PRBool
*aIsFramesetFrameSelected
);
1148 nsresult GetIsIFrameSelected
(PRBool
*aIsIFrameSelected
);
1149 nsresult GetIsRangeSelection
(PRBool
*aIsRangeSelection
);
1150 nsresult GetPrintPreviewNumPages
(PRInt32
*aPrintPreviewNumPages
);
1151 nsresult Print
(nsIPrintSettings
*aThePrintSettings
, nsIWebProgressListener
*aWPListener
);
1152 nsresult PrintPreview
(nsIPrintSettings
*aThePrintSettings
, nsIDOMWindow
*aChildDOMWin
,
1153 nsIWebProgressListener
*aWPListener
);
1154 nsresult PrintPreviewNavigate
(PRInt16 aNavType
, PRInt32 aPageNum
);
1156 nsresult EnumerateDocumentNames
(PRUint32
*aCount
, PRUnichar
***aResult
);
1157 nsresult ExitPrintPreview
();
1162 uuid(919e792a
-6490-40b8
-bba5
-f9e9ad5640c8
)
1165 interface nsIScrollable
: nsISupports
1168 ScrollOrientation_X
= 1,
1169 ScrollOrientation_Y
= 2
1174 Scrollbar_Never
= 2,
1175 Scrollbar_Always
= 3
1178 nsresult GetCurScrollPos
(PRInt32 scrollOrientation
, PRInt32
*curPos
);
1179 nsresult SetCurScrollPos
(PRInt32 scrollOrientation
, PRInt32 curPos
);
1180 nsresult SetCurScrollPosEx
(PRInt32 curHorizontalPos
, PRInt32 curVerticalPos
);
1181 nsresult GetScrollRange
(PRInt32 scrollOrientation
, PRInt32
*minPos
, PRInt32
*maxPos
);
1182 nsresult SetScrollRange
(PRInt32 scrollOrientation
, PRInt32 minPos
, PRInt32 maxPos
);
1183 nsresult SetScrollRangeEx
(PRInt32 minHorizontalPos
, PRInt32 maxHorizontalPos
,
1184 PRInt32 minVerticalPos
, PRInt32 maxVerticalPos
);
1185 nsresult GetDefaultScrollbarPreferences
(PRInt32 scrollOrientation
, PRInt32
*scrollbarPref
);
1186 nsresult SetDefaultScrollbarPreferences
(PRInt32 scrollOrientation
, PRInt32 scrollbarPref
);
1187 nsresult GetScrollbarVisibility
(PRBool
*verticalVisible
, PRBool
*horizontalVisible
);
1192 uuid(c8c0a080
-0868-11d3
-915f
-d9d889d48e3c
)
1195 interface nsIFile
: nsISupports
1197 nsresult Append
(const nsAString
*node
);
1198 nsresult AppendNative
(const nsAString
*node
);
1199 nsresult Normalize
();
1200 nsresult Create
(PRUint32 type
, PRUint32 permission
);
1201 nsresult GetLeafName
(nsAString
*aLeafName
);
1202 nsresult SetLeafName
(const nsAString
*aLeafName
);
1203 nsresult GetNativeLeafName
(nsAString
*aLeafName
);
1204 nsresult SetNativeLeafName
(const nsAString
*aLeafName
);
1205 nsresult CopyTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1206 nsresult CopyToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1207 nsresult CopyToFollowingLinks
(nsIFile
*newParentDir
, const nsAString
*newName
);
1208 nsresult CopyToFollowingLinksNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1209 nsresult MoveTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1210 nsresult MoveToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1211 nsresult Remove
(PRBool recursive
);
1212 nsresult GetPermissions
(PRUint32
*aPermissions
);
1213 nsresult SetPermissions
(PRUint32 pPermissions
);
1214 nsresult GetPermissionsOfLink
(PRUint32
*aPermissions
);
1215 nsresult SetPermissionsOfLink
(PRUint32 pPermissions
);
1216 nsresult GetLastModifiedTime
(PRInt64
*aLastModifiedTime
);
1217 nsresult SetLastModifiedTime
(PRInt64 aLastModifiedTime
);
1218 nsresult GetFileSize
(PRInt64
*aFileSize
);
1219 nsresult SetFileSize
(PRInt64 aFileSize
);
1220 nsresult GetFileSizeOfLink
(PRInt64
*aFileSizeOfLink
);
1221 nsresult GetTarget
(nsAString
*aTarget
);
1222 nsresult GetNativeTarget
(nsACString
*aNativeTarget
);
1223 nsresult GetPath
(nsAString
*aPath
);
1224 nsresult GetNativePath
(nsACString
*aNativePath
);
1225 nsresult Exists
(PRBool
*_retval
);
1226 nsresult IsWritable
(PRBool
*_retval
);
1227 nsresult IsReadable
(PRBool
*_retval
);
1228 nsresult IsExecutable
(PRBool
*_retval
);
1229 nsresult IsHidden
(PRBool
*_retval
);
1230 nsresult IsDirectory
(PRBool
*_retval
);
1231 nsresult IsFile
(PRBool
*_retval
);
1232 nsresult IsSymlink
(PRBool
*_retval
);
1233 nsresult IsSpecial
(PRBool
*_retval
);
1234 nsresult CreateUnique
(PRUint32 type
, PRUint32 permission
);
1235 nsresult Clone
(nsIFile
**_retval
);
1236 nsresult Equals
(nsIFile
*inFile
, PRBool
*_retval
);
1237 nsresult Contains
(nsIFile
*inFile
, PRBool recir
, PRBool
*_retval
);
1238 nsresult GetParent
(nsIFile
**aParent
);
1239 nsresult GetDirectoryEntries
(nsISimpleEnumerator
**aDirectoryEntries
);
1244 uuid(15fd6940
-8ea7
-11d3
-93ad
-00104ba0fd40
)
1247 interface nsIProtocolHandler
: nsISupports
1249 nsresult GetScheme
(nsACString
*aScheme
);
1250 nsresult GetDefaultPort
(PRInt32
*aDefaultPort
);
1251 nsresult GetProtocolFlags
(PRUint32
*aProtocolFlags
);
1252 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
,
1253 nsIURI
*aBaseURI
, nsIURI
**_retval
);
1254 nsresult NewChannel
(nsIURI
*aURI
, nsIChannel
**_retval
);
1255 nsresult AllowPort
(PRInt32 port
, const char *scheme
, PRBool
*_retval
);
1260 uuid(0e61f3b2
-34d7
-4c79
-bfdc
-4860bc7341b7
)
1263 interface nsIExternalProtocolHandler
: nsIProtocolHandler
1265 nsresult ExternalAppExistsForScheme
(const nsACString
*scheme
, PRBool
*_retval
);
1270 uuid(bddeda3f
-9020-4d12
-8c70
-984ee9f7935e
)
1273 interface nsIIOService
: nsISupports
1275 nsresult GetProtocolHandler
(const char *aScheme
, nsIProtocolHandler
**_retval
);
1276 nsresult GetProtocolFlags
(const char *aScheme
, PRUint32
*_retval
);
1277 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
1279 nsresult NewFileURI
(nsIFile
*aFile
, nsIURI
**_retval
);
1280 nsresult NewChannelFromURI
(nsIURI
*aURI
, nsIChannel
**_retval
);
1281 nsresult NewChannel
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
1282 nsIChannel
**_retval
);
1283 nsresult GetOffline
(PRBool
*aOffline
);
1284 nsresult SetOffline
(PRBool aOffline
);
1285 nsresult AllowPort
(PRInt32 aPort
, const char *aScheme
, PRBool
*_retval
);
1286 nsresult ExtractScheme
(const nsACString
*urlString
, nsACString
* _retval
);
1291 uuid(9c5d3c58
-1dd1
-11b2
-a1c9
-f3699284657a
)
1294 interface nsIWebBrowserFocus
: nsISupports
1296 nsresult Activate
();
1297 nsresult Deactivate
();
1298 nsresult SetFocusAtFirstElement
();
1299 nsresult SetFocusAtLastElement
();
1300 nsresult GetFocusedWindow
(nsIDOMWindow
**aFocusedWindow
);
1301 nsresult SetFocusedWindow
(nsIDOMWindow
*aFocusedWindow
);
1302 nsresult GetFocusedElement
(nsIDOMElement
**aFocusedElement
);
1303 nsresult SetFocusedElement
(nsIDOMElement
*aFocusedElement
);
1308 uuid(ba434c60
-9d52
-11d3
-afb0
-00a024ffc08c
)
1311 interface nsIWebBrowserChrome
: nsISupports
1313 nsresult SetStatus
(PRUint32 statusType
, const PRUnichar
*status
);
1314 nsresult GetWebBrowser
(nsIWebBrowser
**aWebBrowser
);
1315 nsresult SetWebBrowser
(nsIWebBrowser
*aWebBrowser
);
1316 nsresult GetChromeFlags
(PRUint32
*aChromeFlags
);
1317 nsresult SetChromeFlags
(PRUint32 aChromeFlags
);
1318 nsresult DestroyBrowserWindow
();
1319 nsresult SizeBrowserTo
(PRInt32 aCX
, PRInt32 aCY
);
1320 nsresult ShowAsModal
();
1321 nsresult IsWindowModal
(PRBool
*_retval
);
1322 nsresult ExitModalEventLoop
(nsresult aStatus
);
1327 uuid(df31c120
-ded6
-11d1
-bd85
-00805f8ae3f4
)
1330 interface nsIDOMEventListener
: nsISupports
1332 nsresult HandleEvent
(nsIDOMEvent
*event
);
1337 uuid(1c773b30
-d1cf
-11d2
-bd95
-00805f8ae3f4
)
1340 interface nsIDOMEventTarget
: nsISupports
1342 nsresult AddEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
1343 nsresult RemoveEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
1344 nsresult DispatchEvent
(nsIDOMEvent
*evt
, PRBool
*_retval
);
1349 uuid(a66b7b80
-ff46
-bd97
-0080-5f8ae38add32
)
1352 interface nsIDOMEvent
: nsISupports
1354 nsresult GetType
(nsAString
*aType
);
1355 nsresult GetTarget
(nsIDOMEventTarget
**aTarget
);
1356 nsresult GetCurrentTarget
(nsIDOMEventTarget
**aCurrentTarget
);
1357 nsresult GetEventPhase
(PRUint16
*aEventPhase
);
1358 nsresult GetBubbles
(PRBool
*aBubbles
);
1359 nsresult GetCancelable
(PRBool
*aCancelable
);
1360 nsresult GetTimeStamp
(DOMTimeStamp
*aTimeStamp
);
1361 nsresult StopPropagation
();
1362 nsresult PreventDefault
();
1363 nsresult InitEvent
(const nsAString
*eventTypeArg
, PRBool canBubbleArg
, PRBool cancelableArg
);
1366 cpp_quote
("#define CONTEXT_NONE 0x00");
1367 cpp_quote
("#define CONTEXT_LINK 0x01");
1368 cpp_quote
("#define CONTEXT_IMAGE 0x02");
1369 cpp_quote
("#define CONTEXT_DOCUMENT 0x04");
1370 cpp_quote
("#define CONTEXT_TEXT 0x08");
1371 cpp_quote
("#define CONTEXT_INPUT 0x10");
1372 cpp_quote
("#define CONTEXT_BACKGROUND_IMAGE 0x20");
1376 uuid(3478b6b0
-3875-11d4
-94ef
-0020183bf181
)
1379 interface nsIContextMenuListener
: nsISupports
1381 nsresult OnShowContextMenu
(PRUint32 aContextFlags
, nsIDOMEvent
*aEvent
, nsIDOMNode
*aNode
);
1386 uuid(a6cf90c3
-15b3
-11d2
-932e-00805f8add32
)
1389 interface nsIDOMUIEvent
: nsIDOMEvent
1391 nsresult GetView
(nsIDOMAbstractView
**aView
);
1392 nsresult GetDetail
(PRInt32
*aDetail
);
1393 nsresult InitUIEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
1394 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
);
1399 uuid(ff751edc
-8b02
-aae7
-0010-8301838a3123
)
1402 interface nsIDOMMouseEvent
: nsIDOMUIEvent
1404 nsresult GetScreenX
(PRInt32
*aScreenX
);
1405 nsresult GetScreenY
(PRInt32
*aScreenY
);
1406 nsresult GetClientX
(PRInt32
*aClientX
);
1407 nsresult GetClientY
(PRInt32
*aClientY
);
1408 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
1409 nsresult GetShiftKey
(PRBool
*aShiftKey
);
1410 nsresult GetAltKey
(PRBool
*aAltKey
);
1411 nsresult GetMetaKey
(PRBool
*aMetaKey
);
1412 nsresult GetButton
(PRUint16
*aButton
);
1413 nsresult GetRelatedTarget
(nsIDOMEventTarget
* *aRelatedTarget
);
1414 nsresult InitMouseEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
1415 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
, PRInt32 screenXArg
, PRInt32 screenYArg
,
1416 PRInt32 clientXArg
, PRInt32 clientYArg
, PRBool ctrlKeyArg
, PRBool altKeyArg
,
1417 PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint16 buttonArg
,
1418 nsIDOMEventTarget
*relatedTargetArg
);
1423 uuid(028e0e6e
-8b01
-11d3
-aae7
-0010838a3123
)
1426 interface nsIDOMKeyEvent
: nsIDOMUIEvent
1428 nsresult GetCharCode
(PRUint32
*aCharCode
);
1429 nsresult GetKeyCode
(PRUint32
*aKeyCode
);
1430 nsresult GetAltKey
(PRBool
*aAltKey
);
1431 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
1432 nsresult GetShiftKey
(PRBool
*aShiftKey
);
1433 nsresult GetMetaKey
(PRBool
*aMetaKey
);
1434 nsresult InitKeyEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
,
1435 PRBool cancelableArg
, nsIDOMAbstractView
*viewArg
, PRBool ctrlKeyArg
,
1436 PRBool altKeyArg
, PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint32 keyCodeArg
,
1437 PRUint32 charCodeArg
);
1442 uuid(3e5432cd
-9568-4bd1
-8cbe
-d50aba110743
)
1445 interface nsIEmbeddingSiteWindow
: nsISupports
1447 nsresult SetDimensions
(PRUint32 flags
, PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
1448 nsresult GetDimensions
(PRUint32 flags
, PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
1449 nsresult SetFocus
();
1450 nsresult GetVisibility
(PRBool
*aVisibility
);
1451 nsresult SetVisibility
(PRBool aVisibility
);
1452 nsresult GetTitle
(PRUnichar
**aTitle
);
1453 nsresult SetTitle
(const PRUnichar
*aTitle
);
1454 nsresult GetSiteWindow
(void **aSiteWindow
);
1459 uuid(2417cbfe
-65ad
-48a6
-b4b6
-eb84db174392
)
1462 interface nsIComponentRegistrar
: nsISupports
1464 nsresult AutoRegister
(nsIFile
*aSpec
);
1465 nsresult AutoUnregister
(nsIFile
*aSpec
);
1466 nsresult RegisterFactory
(const nsCID
*aClass
, const char *aClassName
,
1467 const char *aContractID
, nsIFactory
*aFactory
);
1468 nsresult UnregisterFactory
(const nsCID
*aClass
, nsIFactory
*aFactory
);
1469 nsresult RegisterFactoryLocation
(const nsCID
*aClass
, const char *aClassName
,
1470 const char *aContractID
, nsIFile
*aFile
, const char *aLoaderStr
,
1472 nsresult UnregisterFactoryLocation
(const nsCID
*aClass
, nsIFile
*aFile
);
1473 nsresult IsCIDRegistered
(const nsCID
*aClass
, PRBool
*_retval
);
1474 nsresult IsContractIDRegistered
(const char *aContractID
, PRBool
*_retval
);
1475 nsresult EnumerateCIDs
(nsISimpleEnumerator
**_retval
);
1476 nsresult EnumerateContractIDs
(nsISimpleEnumerator
**_retval
);
1477 nsresult CIDToContractID
(const nsCID
*aClass
, char **_retval
);
1478 nsresult ContractIDToCID
(const char *aContractID
, nsCID
**_retval
);
1483 uuid(1630c61a
-325e-49ca
-8759-a31b16c47aa5
)
1486 interface nsIPromptService
: nsISupports
1488 nsresult Alert
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1489 const PRUnichar
*aText
);
1490 nsresult AlertCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1491 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
);
1492 nsresult Confirm
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1493 const PRUnichar
*aText
, PRBool
*_retval
);
1494 nsresult ConfirmCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1495 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
,
1497 nsresult ConfirmEx
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1498 const PRUnichar
*aText
, PRUint32 aButtonFlags
, const PRUnichar
*aButton0Title
,
1499 const PRUnichar
*aButton1Title
, const PRUnichar
*aButton2Title
,
1500 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRInt32
*_retval
);
1501 nsresult Prompt
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1502 const PRUnichar
*aText
, PRUnichar
**aValue
, const PRUnichar
*aCheckMsg
,
1503 PRBool
*aCheckState
, PRBool
*_retval
);
1504 nsresult PromptUsernameAndPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1505 const PRUnichar
*aText
, PRUnichar
**aUsername
, PRUnichar
**aPassword
,
1506 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRBool
*_retval
);
1507 nsresult PromptPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1508 const PRUnichar
*aText
, PRUnichar
**aPassword
, const PRUnichar
*aCheckMsg
,
1509 PRBool
*aCheckState
, PRBool
*_retval
);
1510 nsresult Select
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1511 const PRUnichar
*aText
, PRUint32 aCount
, const PRUnichar
**aSelectList
,
1512 PRInt32
*aOutSelection
, PRBool
*_retval
);
1517 uuid(b128a1e6
-44f3
-4331-8fbe
-5af360ff21ee
)
1520 interface nsITooltipTextProvider
: nsISupports
1522 nsresult GetNodeText
(nsIDOMNode
*aNode
, PRUnichar
**aText
, PRBool
*_retval
);
1527 uuid(02b0625a
-e7f3
-11d2
-9f5a
-006008a6efe9
)
1530 interface nsIProfile
: nsISupports
1532 nsresult GetProfileCount
(PRInt32
*aProfileCount
);
1533 nsresult GetProfileList
(PRUint32
*length
, PRUnichar
***profileNames
);
1534 nsresult ProfileExists
(const PRUnichar
*profileName
, PRBool
*_retval
);
1535 nsresult GetCurrentProfile
(PRUnichar
* *aCurrentProfile
);
1536 nsresult SetCurrentProfile
(const PRUnichar
* aCurrentProfile
);
1537 nsresult ShutDownCurrentProfile
(PRUint32 shutDownType
);
1538 nsresult CreateNewProfile
(const PRUnichar
*profileName
,
1539 const PRUnichar
*nativeProfileDir
, const PRUnichar
*langcode
,
1540 PRBool useExistingDir
);
1541 nsresult RenameProfile
(const PRUnichar
*oldName
, const PRUnichar
*newName
);
1542 nsresult DeleteProfile
(const PRUnichar
*name
, PRBool canDeleteFiles
);
1543 nsresult CloneProfile
(const PRUnichar
*profileName
);
1548 uuid(30465632-a777
-44cc
-90f9
-8145475ef999
)
1551 interface nsIWindowCreator
: nsISupports
1553 nsresult CreateChromeWindow
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
1554 nsIWebBrowserChrome
**_retval
);
1559 uuid(f673ec81
-a4b0
-11d6
-964b
-eb5a2bf216fc
)
1562 interface nsIWindowCreator2
: nsIWindowCreator
1564 nsresult CreateChromeWindow2
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
1565 PRUint32 contextFlags
, nsIURI
*uri
, PRBool
*cancel
,
1566 nsIWebBrowserChrome
**_retval
);
1571 uuid(002286a8
-494b
-43b3
-8ddd
-49e3fc50622b
)
1574 interface nsIWindowWatcher
: nsISupports
1576 nsresult OpenWindow
(nsIDOMWindow
*aParent
, const char *aUrl
, const char *aName
,
1577 const char *aFeatures
, nsISupports
*aArguments
, nsIDOMWindow
**_retval
);
1578 nsresult RegisterNotification
(nsIObserver
*aObserver
);
1579 nsresult UnregisterNotification
(nsIObserver
*aObserver
);
1580 nsresult GetWindowEnumerator
(nsISimpleEnumerator
**_retval
);
1581 nsresult GetNewPrompter
(nsIDOMWindow
*aParent
, nsIPrompt
**_retval
);
1582 nsresult GetNewAuthPrompter
(nsIDOMWindow
*aParent
, nsIAuthPrompt
**_retval
);
1583 nsresult SetWindowCreator
(nsIWindowCreator
*creator
);
1584 nsresult GetChromeForWindow
(nsIDOMWindow
*aWindow
, nsIWebBrowserChrome
**_retval
);
1585 nsresult GetWindowByName
(const PRUnichar
*aTargetName
, nsIDOMWindow
*aCurrentWindow
,
1586 nsIDOMWindow
**_retval
);
1587 nsresult GetActiveWindow
(nsIDOMWindow
**aActiveWindow
);
1588 nsresult SetActiveWindow
(nsIDOMWindow
*aActiveWindow
);
1593 uuid(d39fd2b4
-3978-45d2
-a4be
-ba448171b61b
)
1596 interface nsIEditingSession
: nsISupports
1598 nsresult GetEditorStatus
(PRUint32
*aEditorStatus
);
1599 nsresult MakeWindowEditable
(nsIDOMWindow
*window
, const char *aEditorType
,
1600 PRBool doAfterUriLoad
);
1601 nsresult WindowIsEditable
(nsIDOMWindow
*window
, PRBool
*_retval
);
1602 nsresult GetEditorForWindow
(nsIDOMWindow
*window
, nsIEditor
**_retval
);
1603 nsresult SetupEditorOnWindow
(nsIDOMWindow
*window
);
1604 nsresult TearDownEditorOnWindow
(nsIDOMWindow
*window
);
1605 nsresult SetEditorOnControllers
(nsIDOMWindow
*aWindow
, nsIEditor
*aEditor
);
1610 uuid(83f892cf
-7ed3
-490e-967a
-62640f3158e1
)
1613 interface nsICommandParams
: nsISupports
1615 nsresult GetValueType
(const char *name
, PRInt16
*_retval
);
1616 nsresult GetBooleanValue
(const char *name
, PRBool
*_retval
);
1617 nsresult GetLongValue
(const char *name
, PRInt32
*_retval
);
1618 nsresult GetDoubleValue
(const char *name
, double *_retval
);
1619 nsresult GetStringValue
(const char *name
, nsAString
*_retval
);
1620 nsresult GetCStringValue
(const char *name
, char **_retval
);
1621 nsresult GetISupportsValue
(const char *name
, nsISupports
**_retval
);
1622 nsresult SetBooleanValue
(const char *name
, PRBool value
);
1623 nsresult SetLongValue
(const char *name
, PRInt32 value
);
1624 nsresult SetDoubleValue
(const char *name
, double value
);
1625 nsresult SetStringValue
(const char *name
, const nsAString
*value
);
1626 nsresult SetCStringValue
(const char *name
, const char *value
);
1627 nsresult SetISupportsValue
(const char *name
, nsISupports
*value
);
1628 nsresult RemoveValue
(const char *name
);
1629 nsresult HasMoreElements
(PRBool
*_retval
);
1631 nsresult GetNext
(char **_retval
);
1636 uuid(080d2001
-f91e
-11d4
-a73c
-f9242928207c
)
1639 interface nsICommandManager
: nsISupports
1641 nsresult AddCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandToObserve
);
1642 nsresult RemoveCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandObserved
);
1643 nsresult IsCommandSupported
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
1644 nsresult IsCommandEnabled
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
1645 nsresult GetCommandState
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
,
1646 nsICommandParams
*aCommandParams
);
1647 nsresult DoCommand
(const char *aCommandName
, nsICommandParams
*aCommandParams
,
1648 nsIDOMWindow
*aTargetWindow
);
1653 uuid(47b82b60
-a36f
-4167-8072-6f421151ed50
)
1656 interface nsIControllerContext
: nsISupports
1658 nsresult Init
(nsIControllerCommandTable
*aCommandTable
);
1659 nsresult SetCommandContext
(nsISupports
*aCommandContext
);
1664 uuid(d5b61b82
-1da4
-11d3
-bf87
-00105a1b0627
)
1667 interface nsIController
: nsISupports
1669 nsresult IsCommandEnabled
(const char *command
, PRBool
*_retval
);
1670 nsresult SupportsCommand
(const char *command
, PRBool
*_retval
);
1671 nsresult DoCommand
(const char *command
);
1672 nsresult OnEvent
(const char *eventName
);
1677 uuid(d650439a
-ca29
-410d
-a906
-b0557fb62fcd
)
1680 interface nsIContentSerializer
: nsISupports
1682 nsresult Init
(PRUint32 flags
, PRUint32 aWrapColumn
, const char* aCharSet
, PRBool aIsCopying
);
1683 nsresult AppendText
(nsIDOMText
*aText
, PRInt32 aStartOffset
, PRInt32 aEndOffset
, nsAString
*aStr
);
1684 nsresult AppendCDATASection
(nsIDOMCDATASection
*aCDATASection
, PRInt32 aStartOffset
,
1685 PRInt32 aEndOffset
, nsAString
*aStr
);
1686 nsresult AppendProcessingInstruction
(nsIDOMProcessingInstruction
* aPI
, PRInt32 aStartOffset
,
1687 PRInt32 aEndOffset
, nsAString
*aStr
);
1688 nsresult AppendComment
(nsIDOMComment
*aComment
, PRInt32 aStartOffset
, PRInt32 aEndOffset
,
1690 nsresult AppendDoctype
(nsIDOMDocumentType
*aDoctype
, nsAString
*aStr
);
1691 nsresult AppendElementStart
(nsIDOMElement
*aElement
, PRBool aHasChildren
, nsAString
*aStr
);
1692 nsresult AppendElementEnd
(nsIDOMElement
*aElement
, nsAString
*aStr
);
1693 nsresult Flush
(nsAString
*aStr
);
1694 nsresult AppendDocumentStart
(nsIDOMDocument
*aDocument
, nsAString
*aStr
);
1699 * This is a private Wine interface that is implemented by our implementation
1700 * of nsIURI to store its owner.
1704 uuid(5088272e-900b
-11da
-c687
-000fea57f21a
)
1707 interface nsIWineURI
: nsIURI
1709 typedef struct NSContainer NSContainer
;
1711 nsresult GetNSContainer
(NSContainer
**aNSContainer
);
1712 nsresult SetNSContainer
(NSContainer
*aNSContainer
);
1713 nsresult GetIsDocumentURI
(PRBool
*aIsDocumentURI
);
1714 nsresult SetIsDocumentURI
(PRBool aIsDocumentURI
);
1715 nsresult GetWineURL
(LPCWSTR
*aURL
);
1716 nsresult SetWineURL
(LPCWSTR aURL
);