2 * Copyright 2005-2006 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,
28 typedef HRESULT nsresult
;
29 typedef ULONG nsrefcnt
;
33 typedef REFIID nsIIDRef
;
34 typedef nsIIDRef nsCIDRef
;
36 typedef void** nsQIResult
;
37 typedef WCHAR PRUnichar
;
38 typedef ULONG PRUint32
;
40 typedef WORD PRUint16
;
41 typedef INT16 PRInt16
;
44 typedef LARGE_INTEGER PRInt64
;
45 typedef ULARGE_INTEGER PRUint64
;
46 typedef PRUint64 DOMTimeStamp
;
47 typedef PRUint32 nsLoadFlags
;
63 typedef nsCStringContainer nsACString
;
64 typedef nsStringContainer nsAString
;
66 interface nsIWebBrowserChrome
;
67 interface nsILoadGroup
;
69 interface nsIDOMDocument
;
75 uuid(00000000-0000-0000-c000
-000000000046)
79 nsresult QueryInterface
(nsIIDRef riid
, nsQIResult result
);
84 /* Currently we don't need a full declaration of these interfaces */
85 typedef nsISupports nsISHistory
;
86 typedef nsISupports nsISimpleEnumerator
;
87 typedef nsISupports nsIWidget
;
88 typedef nsISupports nsIProtocolHandler
;
89 typedef nsISupports nsIDOMEventTarget
;
90 typedef nsISupports nsIDOMAbstractView
;
91 typedef nsISupports nsIHttpHeaderVisitor
;
92 typedef nsISupports nsIDOMBarProp
;
93 typedef nsISupports nsIDOMWindowCollection
;
94 typedef nsISupports nsIPrompt
;
95 typedef nsISupports nsIAuthPrompt
;
96 typedef nsISupports nsIDOMNamedNodeMap
;
97 typedef nsISupports nsIDOMAttr
;
98 typedef nsISupports nsIDOMDocumentType
;
99 typedef nsISupports nsIDOMDOMImplementation
;
100 typedef nsISupports nsIDOMDocumentFragment
;
101 typedef nsISupports nsIDOMComment
;
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
;
115 uuid(8bb35ed9
-e332
-462d
-9155-4a002ab5c958
)
117 interface nsIServiceManager
: nsISupports
119 nsresult GetService
(nsCIDRef aClass
, nsIIDRef aIID
, void **result
);
120 nsresult GetServiceByContactID
(const char *aContactID
, nsIIDRef aIID
, void **result
);
121 nsresult IsServiceInstantiated
(nsCIDRef aClass
, nsIIDRef aIID
, BOOL
*_retval
);
122 nsresult IsServiceInstantiatedByContractID
(const char *aContractID
, nsIIDRef aIID
, BOOL
*_retval
);
127 uuid(00000001-0000-0000-c000
-000000000046)
129 interface nsIFactory
: nsISupports
131 nsresult CreateInstance
(nsISupports
*aOuter
, const nsIID
*iid
, void **result
);
132 nsresult LockFactory
(PRBool lock
);
137 uuid(db242e01
-e4d9
-11d2
-9dde
-000064657374)
139 interface nsIObserver
: nsISupports
141 nsresult Observe
(nsISupports
*aSubject
, const char *aTopic
, const PRUnichar
*aData
);
146 uuid(a88e5a60
-205a
-4bb1
-94e1
-2628daf51eae
)
148 interface nsIComponentManager
: nsISupports
150 nsresult GetClassObject
(nsCIDRef aClass
, nsIIDRef aIID
, nsQIResult result
);
151 nsresult GetClassObjectByContractID
(const char *aContractID
, nsIIDRef aIID
, nsQIResult result
);
152 nsresult CreateInstance
(nsCIDRef aClass
, nsISupports
*aDelegate
, nsIIDRef aIID
,
154 nsresult CreateInstanceByContractID
(const char *aContractID
, nsISupports
*aDelegate
,
155 nsIIDRef aIID
, nsQIResult result
);
160 uuid(59e7e77a
-38e4
-11d4
-8cf5
-0060b0fc14a3
)
162 interface nsIMemory
: nsISupports
164 void *Alloc
(/*size_t*/ int size
);
165 void *Realloc
(void *_ptr
, /*size_t*/ int newSize
);
166 void Free
(void *_ptr
);
167 nsresult HeapMinimize
(PRBool immediate
);
168 nsresult IsLowMemory
(PRBool
*_retval
);
173 uuid(9188bc85
-f92e
-11d2
-81ef
-0060083a0bcf
)
175 interface nsIWeakReference
: nsISupports
177 nsresult QueryReferent
(const nsIID
*riid
, void **result
);
182 uuid(9188bc86
-f92e
-11d2
-81ef
-0060083a0bcf
)
184 interface nsISupportsWeakReference
: nsISupports
186 nsresult GetWeakReference
(nsIWeakReference
**_retval
);
191 uuid(033a1470
-8b2a
-11d3
-af88
-00a024ffc08c
)
193 interface nsIInterfaceRequestor
: nsISupports
195 nsresult GetInterface
(const nsIID
*riid
, void **result
);
200 uuid(fa9c7f6c
-61b3
-11d4
-9877-00c04fa0cf4a
)
202 interface nsIInputStream
: nsISupports
205 nsresult Available
(PRUint32
*_retval
);
206 nsresult Read
(char *aBuf
, PRUint32 aCount
, PRUint32
*_retval
);
207 nsresult ReadSegments
(nsresult
(*aWriter
)(nsIInputStream
*aInStream
,
208 void *aClosure
, const char *aFromSegment
, PRUint32 aToOffset
,
209 PRUint32 aCount
, PRUint32
*aWriteCount
),
210 void *aClosure
, PRUint32 aCount
, PRUint32
*_retval
);
211 nsresult IsNonBlocking
(PRBool
*_retval
);
216 uuid(450cd2d4
-f0fd
-424d
-b365
-b1251f80fd53
)
218 interface nsIStringInputStream
: nsIInputStream
220 nsresult SetData
(const char *data
, PRInt32 dataLen
);
221 nsresult AdoptData
(char *data
, PRInt32 dataLen
);
222 nsresult ShareData
(const char *data
, PRInt32 dataLen
);
227 uuid(07a22cc0
-0ce5
-11d3
-9331-00104ba0fd40
)
229 interface nsIURI
: nsISupports
231 nsresult GetSpec
(nsACString
*aSpec
);
232 nsresult SetSpec
(const nsACString
*aSpec
);
233 nsresult GetPrePath
(nsACString
*aPrePath
);
234 nsresult GetScheme
(nsACString
*aScheme
);
235 nsresult SetScheme
(const nsACString
*aScheme
);
236 nsresult GetUserPass
(nsACString
*aUserPass
);
237 nsresult SetUserPass
(const nsACString
*aUserPass
);
238 nsresult GetUsername
(nsACString
*aUsername
);
239 nsresult SetUsername
(const nsACString
*aUsername
);
240 nsresult GetPassword
(nsACString
*aPassword
);
241 nsresult SetPassword
(const nsACString
*aPassword
);
242 nsresult GetHostPort
(nsACString
*aHostPort
);
243 nsresult SetHostPort
(const nsACString
*aHostPort
);
244 nsresult GetHost
(nsACString
*aHost
);
245 nsresult SetHost
(const nsACString
*aHost
);
246 nsresult GetPort
(PRInt32
*aPort
);
247 nsresult SetPort
(PRInt32 aPort
);
248 nsresult GetPath
(nsACString
*aPath
);
249 nsresult SetPath
(const nsACString
*aPath
);
250 nsresult Equals
(nsIURI
*other
, PRBool
*_retval
);
251 nsresult SchemeIs
(const char *scheme
, PRBool
*_retval
);
252 nsresult Clone
(nsIURI
**_retval
);
253 nsresult Resolve
(const nsACString
*relativePath
, nsACString
*_retval
);
254 nsresult GetAsciiSpec
(nsACString
*aAsciiSpec
);
255 nsresult GetAsciiHost
(nsACString
*aAsciiHost
);
256 nsresult GetOriginCharset
(nsACString
*aOriginCharset
);
261 uuid(ef6bfbd2
-fd46
-48d8
-96b7
-9f8f0fd387fe
)
263 interface nsIRequest
: nsISupports
265 nsresult GetName
(nsACString
*aName
);
266 nsresult IsPending
(PRBool
*_retval
);
267 nsresult GetStatus
(nsresult
*aStatus
);
268 nsresult Cancel
(nsresult aStatus
);
271 nsresult GetLoadGroup
(nsILoadGroup
**aLoadGroup
);
272 nsresult SetLoadGroup
(nsILoadGroup
*aLoadGroup
);
273 nsresult GetLoadFlags
(nsLoadFlags
*aLoadFlags
);
274 nsresult SetLoadFlags
(nsLoadFlags aLoadFlags
);
279 uuid(fd91e2e0
-1481-11d3
-9333-00104ba0fd40
)
281 interface nsIRequestObserver
: nsISupports
283 nsresult OnStartRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
284 nsresult OnStopRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatusCode
);
289 uuid(1a637020
-1482-11d3
-9333-00104ba0fd40
)
291 interface nsIStreamListener
: nsIRequestObserver
293 nsresult OnDataAvailable
(nsIRequest
*aRequest
, nsISupports
*aContext
,
294 nsIInputStream
*aInputStream
, PRUint32 aOffset
, PRUint32 aCount
);
299 uuid(3de0a31c
-feaf
-400f
-9f1e
-4ef71f8b20cc
)
301 interface nsILoadGroup
: nsIRequest
303 nsresult GetGroupObserver
(nsIRequestObserver
**aGroupObserver
);
304 nsresult SetGroupObserver
(nsIRequestObserver
*aGroupObserver
);
305 nsresult GetDefaultLoadRequest
(nsIRequest
**aDefaultLoadRequest
);
306 nsresult SetDefaultLoadRequest
(nsIRequest
*aDefaultLoadRequest
);
307 nsresult AddRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
308 nsresult RemoveRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatus
);
309 nsresult GetRequests
(nsISimpleEnumerator
**aRequests
);
310 nsresult GetActiveCount
(PRUint32
*aActiveCount
);
311 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
312 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
317 uuid(c63a055a
-a676
-4e71
-bf3c
-6cfa11082018
)
319 interface nsIChannel
: nsIRequest
321 nsresult GetOriginalURI
(nsIURI
**aOriginalURI
);
322 nsresult SetOriginalURI
(nsIURI
*aOriginalURI
);
323 nsresult GetURI
(nsIURI
**aURI
);
324 nsresult GetOwner
(nsISupports
**aOwner
);
325 nsresult SetOwner
(nsISupports
*aOwner
);
326 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
327 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
328 nsresult GetSecurityInfo
(nsISupports
**aSecurityInfo
);
329 nsresult GetContentType
(nsACString
*aContentType
);
330 nsresult SetContentType
(const nsACString
*aContentType
);
331 nsresult GetContentCharset
(nsACString
*aContentCharset
);
332 nsresult SetContentCharset
(const nsACString
*aContentCharset
);
333 nsresult GetContentLength
(PRInt32
*aContentLength
);
334 nsresult SetContentLength
(PRInt32 aContentLength
);
335 nsresult Open
(nsIInputStream
**_retval
);
336 nsresult AsyncOpen
(nsIStreamListener
*aListener
, nsISupports
*aContext
);
341 uuid(9277fe09
-f0cc
-4cd9
-bbce
-581dd94b0260
)
343 interface nsIHttpChannel
: nsIChannel
345 nsresult GetRequestMethod
(nsACString
*aRequestMethod
);
346 nsresult SetRequestMethod
(const nsACString
*aRequestMethod
);
347 nsresult GetReferrer
(nsIURI
**aReferrer
);
348 nsresult SetReferrer
(nsIURI
*aReferrer
);
349 nsresult GetRequestHeader
(const nsACString
*aHeader
, nsACString
*_retval
);
350 nsresult SetRequestHeader
(const nsACString
*aHeader
, const nsACString
*aValue
, PRBool aMerge
);
351 nsresult VisitRequestHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
352 nsresult GetAllowPipelining
(PRBool
*aAllowPipelining
);
353 nsresult SetAllowPipelining
(PRBool aAllowPipelining
);
354 nsresult GetRedirectionLimit
(PRUint32
*aRedirectionLimit
);
355 nsresult SetRedirectionLimit
(PRUint32 aRedirectionLimit
);
356 nsresult GetResponseStatus
(PRUint32
*aResponseStatus
);
357 nsresult GetResponseStatusText
(nsACString
*aResponseStatusText
);
358 nsresult GetRequestSucceeded
(PRBool
*aRequestSucceeded
);
359 nsresult GetResponseHeader
(const nsACString
*header
, nsACString
*_retval
);
360 nsresult SetResponseHeader
(const nsACString
*header
, const nsACString
*value
, PRBool merge
);
361 nsresult VisitResponseHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
362 nsresult IsNoStoreResponse
(PRBool
*_retval
);
363 nsresult IsNoCacheResponse
(PRBool
*_retval
);
368 uuid(ddf633d8
-e9a4
-439d
-ad88
-de636fd9bb75
)
370 interface nsIUploadChannel
: nsISupports
372 nsresult SetUploadStream
(nsIInputStream
*aStream
, const nsACString
*aContentType
,
373 PRInt32 aContentLength
);
374 nsresult GetUploadStream
(nsIInputStream
**aUploadStream
);
379 uuid(a6cf90be
-15b3
-11d2
-932e-00805f8add32
)
381 interface nsIDOMCSSStyleDeclaration
: nsISupports
383 nsresult GetCssText
(nsAString
*aCssText
);
384 nsresult SetCssText
(const nsAString
*aCssText
);
385 nsresult GetPropertyValue
(const nsAString
*propertyName
, nsAString
*_retval
);
386 nsresult GetPropertyCSSValue
(const nsAString
*propertyName
, nsIDOMCSSValue
**_retval
);
387 nsresult RemoveProperty
(const nsAString
*propertyName
, nsAString
*_retval
);
388 nsresult GetPropertyPriority
(const nsAString
*propertyName
, nsAString
*_retval
);
389 nsresult SetProperty
(const nsAString
*propertyName
, const nsAString
*value
,
390 const nsAString
*priority
);
391 nsresult GetLength
(PRUint32
*aLength
);
392 nsresult Item
(PRUint32 index
, nsAString
*_retval
);
393 nsresult GetParentRule
(nsIDOMCSSRule
**aParentRule
);
398 uuid(a6cf907d
-15b3
-11d2
-932e-00805f8add32
)
400 interface nsIDOMNodeList
: nsISupports
402 nsresult Item
(PRUint32 index
, nsIDOMNode
**_retval
);
403 nsresult GetLength
(PRUint32
*aLength
);
408 uuid(a6cf907c
-15b3
-11d2
-932e-00805f8add32
)
410 interface nsIDOMNode
: nsISupports
416 CDATA_SELECTION_NODE
= 4,
417 ENTITY_REFERENCE_NODE
= 5,
419 PROCESSING_INSTRUCTION_NODE
= 7,
422 DOCUMENT_TYPE_NODE
= 10,
423 DOCUMENT_FRAGMENT_NODE
= 11,
427 nsresult GetNodeName
(nsAString
*aNodeName
);
428 nsresult GetNodeValue
(nsAString
*aNodeValue
);
429 nsresult SetNodeValue
(const nsAString
*aNodeValue
);
430 nsresult GetNodeType
(PRUint16
*aNodeType
);
431 nsresult GetParentNode
(nsIDOMNode
**aParentNode
);
432 nsresult GetChildNodes
(nsIDOMNodeList
**aChildNodes
);
433 nsresult GetFirstChild
(nsIDOMNode
**aFirstChild
);
434 nsresult GetLastChild
(nsIDOMNode
**aLastChild
);
435 nsresult GetPreviousSibling
(nsIDOMNode
**aPreviousSibling
);
436 nsresult GetNextSibling
(nsIDOMNode
**aNextSibling
);
437 nsresult GetAttributes
(nsIDOMNamedNodeMap
**aAttributes
);
438 nsresult GetOwnerDocument
(nsIDOMDocument
**aOwnerDocument
);
439 nsresult InsertBefore
(nsIDOMNode
*newChild
, nsIDOMNode
*refChild
, nsIDOMNode
**_retval
);
440 nsresult ReplaceChild
(nsIDOMNode
*newChild
, nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
441 nsresult RemoveChild
(nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
442 nsresult AppendChild
(nsIDOMNode
*newChild
, nsIDOMNode
**_retval
);
443 nsresult HasChildNodes
(PRBool
*_retval
);
444 nsresult CloneNode
(PRBool deep
, nsIDOMNode
**_retval
);
445 nsresult Normalize
();
446 nsresult IsSupported
(const nsAString
*feature
, const nsAString
*version, PRBool
*_retval
);
447 nsresult GetNamespaceURI
(nsAString
*aNamespaceURI
);
448 nsresult GetPrefix
(nsAString
*aPrefix
);
449 nsresult SetPrefix
(const nsAString
*aPrefix
);
450 nsresult GetLocalName
(nsAString
*aLocalName
);
451 nsresult HasAttributes
(PRBool
*_retval
);
456 uuid(a6cf9078
-15b3
-11d2
-932e-00805f8add32
)
458 interface nsIDOMElement
: nsIDOMNode
460 nsresult GetTagName
(nsAString
*aTagName
);
461 nsresult GetAttribute
(const nsAString
*name
, nsAString
*_retval
);
462 nsresult SetAttribute
(const nsAString
*name
, const nsAString
*value
);
463 nsresult RemoveAttribute
(const nsAString
*name
);
464 nsresult GetAttributeNode
(const nsAString
*name
, nsIDOMAttr
**_retval
);
465 nsresult SetAttributeNode
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
466 nsresult RemoveAttributeNode
(nsIDOMAttr
*oldAttr
, nsIDOMAttr
**_retval
);
467 nsresult GetElementsByTagName
(const nsAString
*name
, nsIDOMNodeList
**_retval
);
468 nsresult GetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
470 nsresult SetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
471 const nsAString
*value
);
472 nsresult RemoveAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
);
473 nsresult GetAttributeNodeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
474 nsIDOMAttr
**_retval
);
475 nsresult SetAttributeNodeNS
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
476 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
477 nsIDOMNodeList
**_retval
);
478 nsresult HasAttribute
(const nsAString
*name
, PRBool
*_retval
);
479 nsresult HasAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
485 uuid(99715845-95fc
-4a56
-aa53
-214b65c26e22
)
487 interface nsIDOMElementCSSInlineStyle
: nsISupports
489 nsresult GetStyle
(nsIDOMCSSStyleDeclaration
**aStyle
);
492 cpp_quote
("#undef GetClassName");
496 uuid(a6cf9085
-15b3
-11d2
-932e-00805f8add32
)
498 interface nsIDOMHTMLElement
: nsIDOMElement
500 nsresult GetId
(nsAString
*aId
);
501 nsresult SetId
(const nsAString
*aId
);
502 nsresult GetTitle
(nsAString
*aTitle
);
503 nsresult SetTitle
(const nsAString
*aTitle
);
504 nsresult GetLang
(nsAString
*aLang
);
505 nsresult SetLang
(const nsAString
*aLang
);
506 nsresult GetDir
(nsAString
*aDir
);
507 nsresult SetDir
(const nsAString
*aDir
);
508 nsresult GetClassName
(nsAString
*aClassName
);
509 nsresult SetClassName
(const nsAString
*aClassName
);
514 uuid(da83b2ec
-8264-4410-8496-ada3acd2ae42
)
516 interface nsIDOMNSHTMLElement
: nsISupports
518 nsresult GetOffsetTop
(PRInt32
*aOffsetTop
);
519 nsresult GetOffsetLeft
(PRInt32
*aOffsetLeft
);
520 nsresult GetOffsetWidth
(PRInt32
*aOffsetWidth
);
521 nsresult GetOffsetHeight
(PRInt32
*aOffsetHeight
);
522 nsresult GetOffsetParent
(nsIDOMElement
**aOffsetParent
);
523 nsresult GetInnerHTML
(nsAString
*aInnerHTML
);
524 nsresult SetInnerHTML
(const nsAString
*aInnerHTML
);
525 nsresult GetScrollTop
(PRInt32
*aScrollTop
);
526 nsresult SetScrollTop
(PRInt32 aScrollTop
);
527 nsresult GetScrollLeft
(PRInt32
*aScrollLeft
);
528 nsresult SetScrollLeft
(PRInt32 aScrollLeft
);
529 nsresult GetScrollHeight
(PRInt32
*aScrollHeight
);
530 nsresult GetScrollWidth
(PRInt32
*aScrollWidth
);
531 nsresult GetClientHeight
(PRInt32
*aClientHeight
);
532 nsresult GetClientWidth
(PRInt32
*aClientWidth
);
533 nsresult ScrollIntoView
(PRBool top
);
538 uuid(a6cf9072
-15b3
-11d2
-932e-00805f8add32
)
540 interface nsIDOMCharacterData
: nsIDOMNode
542 nsresult GetData
(nsAString
*aData
);
543 nsresult SetData
(const nsAString
*aData
);
544 nsresult GetLength
(PRUint32
*aLength
);
545 nsresult SubstringData
(PRUint32 offset
, PRUint32 count
, nsAString
*_retval
);
546 nsresult AppendData
(const nsAString
*arg
);
547 nsresult InsertData
(PRUint32 offset
, const nsAString
*arg
);
548 nsresult DeleteData
(PRUint32 offset
, PRUint32 count
);
549 nsresult ReplaceData
(PRUint32 offset
, PRUint32 count
, const nsAString
*arg
);
554 uuid(a6cf9082
-15b3
-11d2
-932e-00805f8add32
)
556 interface nsIDOMText
: nsIDOMCharacterData
558 nsresult SplitText
(PRUint32 offset
, nsIDOMText
**_retval
);
563 uuid(a6cf9075
-15b3
-11d2
-932e-00805f8add32
)
565 interface nsIDOMDocument
: nsIDOMNode
567 nsresult GetDoctype
(nsIDOMDocumentType
**aDoctype
);
568 nsresult GetImplementation
(nsIDOMDOMImplementation
**aImplementation
);
569 nsresult GetDocumentElement
(nsIDOMElement
**aDocumentElement
);
570 nsresult CreateElement
(const nsAString
*tagName
, nsIDOMElement
**_retval
);
571 nsresult CreateDocumentFragment
(nsIDOMDocumentFragment
**_retval
);
572 nsresult CreateTextNode
(const nsAString
*data
, nsIDOMText
**_retval
);
573 nsresult CreateComment
(const nsAString
*data
, nsIDOMComment
**_retval
);
574 nsresult CreateCDATASection
(const nsAString
*data
, nsIDOMCDATASection
**_retval
);
575 nsresult CreateProcessingInstruction
(const nsAString
*target
, const nsAString
*data
,
576 nsIDOMProcessingInstruction
**_retval
);
577 nsresult CreateAttribute
(const nsAString
*name
, nsIDOMAttr
**_retval
);
578 nsresult CreateEntityReference
(const nsAString
*name
, nsIDOMEntityReference
**_retval
);
579 nsresult GetElementsByTagName
(const nsAString
*tagname
, nsIDOMNodeList
**_retval
);
580 nsresult ImportNode
(nsIDOMNode
*importedNode
, PRBool deep
, nsIDOMNode
**_retval
);
581 nsresult CreateElementNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
582 nsIDOMElement
**_retval
);
583 nsresult CreateAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
584 nsIDOMAttr
**_retval
);
585 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
586 nsIDOMNodeList
**_retval
);
587 nsresult GetElementById
(const nsAString
*elementId
, nsIDOMElement
**_retval
);
592 uuid(a6cf9084
-15b3
-11d2
-932e-00805f8add32
)
594 interface nsIDOMHTMLDocument
: nsIDOMDocument
596 nsresult GetTitle
(nsAString
*aTitle
);
597 nsresult SetTitle
(const nsAString
*aTitle
);
598 nsresult GetReferrer
(nsAString
*aReferrer
);
599 nsresult GetDomain
(nsAString
*aDomain
);
600 nsresult GetURL
(nsAString
*aURL
);
601 nsresult GetBody
(nsIDOMHTMLElement
**aBody
);
602 nsresult SetBody
(nsIDOMHTMLElement
*aBody
);
603 nsresult GetImages
(nsIDOMHTMLCollection
**aImages
);
604 nsresult GetApplets
(nsIDOMHTMLCollection
**aApplets
);
605 nsresult GetLinks
(nsIDOMHTMLCollection
**aLinks
);
606 nsresult GetForms
(nsIDOMHTMLCollection
**aForms
);
607 nsresult GetAnchors
(nsIDOMHTMLCollection
**aAnchors
);
608 nsresult GetCookie
(nsAString
*aCookie
);
609 nsresult SetCookie
(const nsAString
*aCookie
);
612 nsresult Write
(const nsAString
*text
);
613 nsresult Writeln
(const nsAString
*text
);
614 nsresult GetElementsByName
(const nsAString
*elementName
, nsIDOMNodeList
**_retval
);
619 uuid(a6cf90ce
-15b3
-11d2
-932e-00805f8add32
)
621 interface nsIDOMRange
: nsISupports
623 nsresult GetStartContainer
(nsIDOMNode
**aStartContainer
);
624 nsresult GetStartOffset
(PRInt32
*aStartOffset
);
625 nsresult GetEndContainer
(nsIDOMNode
**aEndContainer
);
626 nsresult GetEndOffset
(PRInt32
*aEndOffset
);
627 nsresult GetCollapsed
(PRBool
*aCollapsed
);
628 nsresult GetCommonAncestorContainer
(nsIDOMNode
**aCommonAncestorContainer
);
629 nsresult SetStart
(nsIDOMNode
*refNode
, PRInt32 offset
);
630 nsresult SetEnd
(nsIDOMNode
*refNode
, PRInt32 offset
);
631 nsresult SetStartBefore
(nsIDOMNode
*refNode
);
632 nsresult SetStartAfter
(nsIDOMNode
*refNode
);
633 nsresult SetEndBefore
(nsIDOMNode
*refNode
);
634 nsresult SetEndAfter
(nsIDOMNode
*refNode
);
635 nsresult Collapse
(PRBool toStart
);
636 nsresult SelectNode
(nsIDOMNode
*refNode
);
637 nsresult SelectNodeContents
(nsIDOMNode
*refNode
);
638 nsresult CompareBoundaryPoints
(PRUint16 how
, nsIDOMRange
*sourceRange
, PRInt16
*_retval
);
639 nsresult DeleteContents
();
640 nsresult ExtractContents
(nsIDOMDocumentFragment
**_retval
);
641 nsresult CloneContents
(nsIDOMDocumentFragment
**_retval
);
642 nsresult InsertNode
(nsIDOMNode
*newNode
);
643 nsresult SurroundContents
(nsIDOMNode
*newParent
);
644 nsresult CloneRange
(nsIDOMRange
**_retval
);
645 nsresult ToString
(nsAString
*_retval
);
651 uuid(b2c7ed59
-8634-4352-9e37
-5484c8b6e4e1
)
653 interface nsISelection
: nsISupports
655 nsresult GetAnchorNode
(nsIDOMNode
**aAnchorNode
);
656 nsresult GetAnchorOffset
(PRInt32
*aAnchorOffset
);
657 nsresult GetFocusNode
(nsIDOMNode
**aFocusNode
);
658 nsresult GetFocusOffset
(PRInt32
*aFocusOffset
);
659 nsresult GetIsCollapsed
(PRBool
*aIsCollapsed
);
660 nsresult GetRangeCount
(PRInt32
*aRangeCount
);
661 nsresult GetRangeAt
(PRInt32 index
, nsIDOMRange
**_retval
);
662 nsresult Collapse
(nsIDOMNode
*parentNode
, PRInt32 offset
);
663 nsresult Extend
(nsIDOMNode
*parentNode
, PRInt32 offset
);
664 nsresult CollapseToStart
();
665 nsresult CollapseToEnd
();
666 nsresult ContainsNode
(nsIDOMNode
*node
, PRBool entirelyContained
, PRBool
*_retval
);
667 nsresult SelectAllChildren
(nsIDOMNode
*parentNode
);
668 nsresult AddRange
(nsIDOMRange
*range);
669 nsresult RemoveRange
(nsIDOMRange
*range);
670 nsresult RemoveAllRanges
();
671 nsresult DeleteFromDocument
();
672 nsresult SelectionLanguageChange
(PRBool langRTL
);
673 nsresult ToString
(PRUnichar
**_retval
);
678 uuid(a6cf906b
-15b3
-11d2
-932e-00805f8add32
)
680 interface nsIDOMWindow
: nsISupports
682 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
683 nsresult GetParent
(nsIDOMWindow
**aParent
);
684 nsresult GetTop
(nsIDOMWindow
**aTop
);
685 nsresult GetScrollbars
(nsIDOMBarProp
**aScrollbars
);
686 nsresult GetFrames
(nsIDOMWindowCollection
**aFrames
);
687 nsresult GetName
(nsAString
*aName
);
688 nsresult SetName
(const nsAString
*aName
);
689 nsresult GetTextZoom
(float *aTextZoom
);
690 nsresult SetTextZoom
(float aTextZoom
);
691 nsresult GetScrollX
(PRInt32
*aScrollX
);
692 nsresult GetScrollY
(PRInt32
*aScrollY
);
693 nsresult ScrollTo
(PRInt32 xScroll
, PRInt32 yScroll
);
694 nsresult ScrollBy
(PRInt32 xScrollDif
, PRInt32 yScrollDif
);
695 nsresult GetSelection
(nsISelection
**_retval
);
696 nsresult ScrollByLines
(PRInt32 numLines
);
697 nsresult ScrollByPages
(PRInt32 numPages
);
698 nsresult SizeToContent
();
703 uuid(a6cf908e
-15b3
-11d2
-932e-00805f8add32
)
705 interface nsIDOMHTMLBodyElement
: nsIDOMHTMLElement
707 nsresult GetALink
(nsAString
*aALink
);
708 nsresult SetALink
(const nsAString
*aALink
);
709 nsresult GetBackground
(nsAString
*aBackground
);
710 nsresult SetBackground
(const nsAString
*aBackground
);
711 nsresult GetBgColor
(nsAString
*aBgColor
);
712 nsresult SetBgColor
(const nsAString
*aBgColor
);
713 nsresult GetLink
(nsAString
*aLink
);
714 nsresult SetLink
(const nsAString
*aLink
);
715 nsresult GetText
(nsAString
*aText
);
716 nsresult SetText
(const nsAString
*aText
);
717 nsresult GetVLink
(nsAString
*aVLink
);
718 nsresult SetVLink
(const nsAString
*aVLink
);
723 uuid(a6cf9093
-15b3
-11d2
-932e-00805f8add32
)
725 interface nsIDOMHTMLInputElement
: nsIDOMHTMLElement
727 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
728 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
729 nsresult GetDefaultChecked
(PRBool
*aDefaultChecked
);
730 nsresult SetDefaultChecked
(PRBool aDefaultChecked
);
731 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
732 nsresult GetAccept
(nsAString
*aAccept
);
733 nsresult SetAccept
(const nsAString
*aAccept
);
734 nsresult GetAccessKey
(nsAString
*aAccessKey
);
735 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
736 nsresult GetAlign
(nsAString
*aAlign
);
737 nsresult SetAlign
(const nsAString
*aAlign
);
738 nsresult GetAlt
(nsAString
*aAlt
);
739 nsresult SetAlt
(const nsAString
*aAlt
);
740 nsresult GetChecked
(PRBool
*aChecked
);
741 nsresult SetChecked
(PRBool aChecked
);
742 nsresult GetDisabled
(PRBool
*aDisabled
);
743 nsresult SetDisabled
(PRBool aDisabled
);
744 nsresult GetMaxLength
(PRInt32
*aMaxLength
);
745 nsresult SetMaxLength
(PRInt32 aMaxLength
);
746 nsresult GetName
(nsAString
*aName
);
747 nsresult SetName
(const nsAString
*aName
);
748 nsresult GetReadOnly
(PRBool
*aReadOnly
);
749 nsresult SetReadOnly
(PRBool aReadOnly
);
750 nsresult GetSize
(PRUint32
*aSize
);
751 nsresult SetSize
(PRUint32 aSize
);
752 nsresult GetSrc
(nsAString
*aSrc
);
753 nsresult SetSrc
(const nsAString
*aSrc
);
754 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
755 nsresult SetTabIndex
(PRInt32 aTabIndex
);
756 nsresult GetType
(nsAString
*aType
);
757 nsresult SetType
(const nsAString
*aType
);
758 nsresult GetUseMap
(nsAString
*aUseMap
);
759 nsresult SetUseMap
(const nsAString
*aUseMap
);
760 nsresult GetValue
(nsAString
*aValue
);
761 nsresult SetValue
(const nsAString
*aValue
);
770 uuid(a6cf9090
-15b3
-11d2
-932e-00805f8add32
)
772 interface nsIDOMHTMLSelectElement
: nsIDOMHTMLElement
774 nsresult GetType
(nsAString
*aType
);
775 nsresult GetSelectedIndex
(PRInt32
*aSelectedIndex
);
776 nsresult SetSelectedIndex
(PRInt32 aSelectedIndex
);
777 nsresult GetValue
(nsAString
*aValue
);
778 nsresult SetValue
(const nsAString
*aValue
);
779 nsresult GetLength
(PRUint32
*aLength
);
780 nsresult SetLength
(PRUint32 aLength
);
781 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
782 nsresult GetOptions
(nsIDOMHTMLOptionsCollection
**aOptions
);
783 nsresult GetDisabled
(PRBool
*aDisabled
);
784 nsresult SetDisabled
(PRBool aDisabled
);
785 nsresult GetMultiple
(PRBool
*aMultiple
);
786 nsresult SetMultiple
(PRBool aMultiple
);
787 nsresult GetName
(nsAString
*aName
);
788 nsresult SetName
(const nsAString
*aName
);
789 nsresult GetSize
(PRInt32
*aSize
);
790 nsresult SetSize
(PRInt32 aSize
);
791 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
792 nsresult SetTabIndex
(PRInt32 aTabIndex
);
793 nsresult Add
(nsIDOMHTMLElement
*element
, nsIDOMHTMLElement
*before
);
794 nsresult Remove
(PRInt32 index
);
801 uuid(a6cf9094
-15b3
-11d2
-932e-00805f8add32
)
803 interface nsIDOMHTMLTextAreaElement
: nsIDOMHTMLElement
805 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
806 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
807 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
808 nsresult GetAccessKey
(nsAString
*aAccessKey
);
809 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
810 nsresult GetCols
(PRInt32
*aCols
);
811 nsresult SetCols
(PRInt32 aCols
);
812 nsresult GetDisabled
(PRBool
*aDisabled
);
813 nsresult SetDisabled
(PRBool aDisabled
);
814 nsresult GetName
(nsAString
*aName
);
815 nsresult SetName
(const nsAString
*aName
);
816 nsresult GetReadOnly
(PRBool
*aReadOnly
);
817 nsresult SetReadOnly
(PRBool aReadOnly
);
818 nsresult GetRows
(PRInt32
*aRows
);
819 nsresult SetRows
(PRInt32 aRows
);
820 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
821 nsresult SetTabIndex
(PRInt32 aTabIndex
);
822 nsresult GetType
(nsAString
*aType
);
823 nsresult GetValue
(nsAString
*aValue
);
824 nsresult SetValue
(const nsAString
*aValue
);
832 uuid(94928ab3
-8b63
-11d3
-989d
-001083010e9b
)
834 interface nsIURIContentListener
: nsISupports
836 nsresult OnStartURIOpen
(nsIURI
*aURI
, PRBool
*_retval
);
837 nsresult DoContent
(const char *aContentType
, PRBool aIsContentPreferred
, nsIRequest
*aRequest
,
838 nsIStreamListener
**aContentHandler
, PRBool
*_retval
);
839 nsresult IsPreferred
(const char *aContentType
, char **aDesiredContentType
, PRBool
*_retval
);
840 nsresult CanHandleContent
(const char *aContentType
, PRBool aIsContentPreferred
,
841 char **aDesiredContentType
, PRBool
*_retval
);
842 nsresult GetLoadCookie
(nsISupports
**aLoadCookie
);
843 nsresult SetLoadCookie
(nsISupports
*aLoadCookie
);
844 nsresult GetParentContentListener
(nsIURIContentListener
**aParentContentListener
);
845 nsresult SetParentContentListener
(nsIURIContentListener
*aParentContentListener
);
850 uuid(44b78386
-1dd2
-11b2
-9ad2
-e4eee2ca1916
)
852 interface nsITooltipListener
: nsISupports
854 nsresult OnShowTooltip
(PRInt32 aXCoords
, PRInt32 aYCoords
, const PRUnichar
*aTipText
);
855 nsresult OnHideTooltip
();
860 uuid(69e5df00
-7b8b
-11d3
-af61
-00a024ffc08c
)
862 interface nsIWebBrowser
: nsISupports
864 nsresult AddWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
865 nsresult RemoveWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
866 nsresult GetContainerWindow
(nsIWebBrowserChrome
**aContainerWindow
);
867 nsresult SetContainerWindow
(nsIWebBrowserChrome
*aContainerWindow
);
868 nsresult GetParentURIContentListener
(nsIURIContentListener
**aParentURIContentListener
);
869 nsresult SetParentURIContentListener
(nsIURIContentListener
*aParentURIContentListener
);
870 nsresult GetContentDOMWindow
(nsIDOMWindow
**aContentDOMWindow
);
873 cpp_quote
("#define SETUP_IS_CHROME_WRAPPER 7");
877 uuid(f15398a0
-8018-11d3
-af70
-00a024ffc08c
)
879 interface nsIWebBrowserSetup
: nsISupports
881 nsresult SetProperty
(PRUint32 aId
, PRUint32 aValue
);
884 typedef void* nativeWindow
;
888 uuid(046bc8a0
-8015-11d3
-af70
-00a024ffc08c
)
890 interface nsIBaseWindow
: nsISupports
892 nsresult InitWindow
(nativeWindow parentNativeWindow
, nsIWidget
*parentWidget
, PRInt32 x
,
893 PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
896 nsresult SetPosition
(PRInt32 x
, PRInt32 y
);
897 nsresult GetPosition
(PRInt32
*x
, PRInt32
*y
);
898 nsresult SetSize
(PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
899 nsresult GetSize
(PRInt32
*cx
, PRInt32
*cy
);
900 nsresult SetPositionAndSize
(PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
901 nsresult GetPositionAndSize
(PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
902 nsresult Repaint
(PRBool force
);
903 nsresult GetParentWidget
(nsIWidget
**aParentWidget
);
904 nsresult SetParentWidget
(nsIWidget
*aParentWidget
);
905 nsresult GetParentNativeWindow
(nativeWindow
*aParentNativeWindow
);
906 nsresult SetParentNativeWindow
(nativeWindow aParentNativeWindow
);
907 nsresult GetVisibility
(PRBool
*aVisibility
);
908 nsresult SetVisibility
(PRBool aVisibility
);
909 nsresult GetEnabled
(PRBool
*aEnabled
);
910 nsresult SetEnabled
(PRBool aEnabled
);
911 nsresult GetBlurSuppression
(PRBool
*aBlurSuppression
);
912 nsresult SetBlurSuppression
(PRBool aBlurSuppression
);
913 nsresult GetMainWidget
(nsIWidget
**aMainWidget
);
915 nsresult GetTitle
(PRUnichar
**aTitle
);
916 nsresult SetTitle
(const PRUnichar
*aTitle
);
919 cpp_quote
("#define LOAD_FLAGS_NONE 0");
923 uuid(f5d9e7b0
-d930
-11d3
-b057
-00a024ffc08c
)
925 interface nsIWebNavigation
: nsISupports
927 nsresult GetCanGoBack
(PRBool
*aCanGoBack
);
928 nsresult GetCanGoForward
(PRBool
*aCanGoForward
);
930 nsresult GoForward
();
931 nsresult GotoIndex
(PRInt32 index
);
932 nsresult LoadURI
(const PRUnichar
*aURI
, PRUint32 aLoadFlags
, nsIURI
*aReferrer
,
933 nsIInputStream
*aPostData
, nsIInputStream
*aHeaders
);
934 nsresult Reload
(PRUint32 aReloadFlags
);
935 nsresult Stop
(PRUint32 aStopFlags
);
936 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
937 nsresult GetCurrentURI
(nsIURI
**aCurrentURI
);
938 nsresult GetReferringURI
(nsIURI
**aReferringURI
);
939 nsresult GetSessionHistory
(nsISHistory
**aSessionHistory
);
940 nsresult SetSessionHistory
(nsISHistory
*aSessionHistory
);
945 uuid(c8c0a080
-0868-11d3
-915f
-d9d889d48e3c
)
947 interface nsIFile
: nsISupports
949 nsresult Append
(const nsAString
*node
);
950 nsresult AppendNative
(const nsAString
*node
);
951 nsresult Normalize
();
952 nsresult Create
(PRUint32 type
, PRUint32 permission
);
953 nsresult GetLeafName
(nsAString
*aLeafName
);
954 nsresult SetLeafName
(const nsAString
*aLeafName
);
955 nsresult GetNativeLeafName
(nsAString
*aLeafName
);
956 nsresult SetNativeLeafName
(const nsAString
*aLeafName
);
957 nsresult CopyTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
958 nsresult CopyToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
959 nsresult CopyToFollowingLinks
(nsIFile
*newParentDir
, const nsAString
*newName
);
960 nsresult CopyToFollowingLinksNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
961 nsresult MoveTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
962 nsresult MoveToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
963 nsresult Remove
(PRBool recursive
);
964 nsresult GetPermissions
(PRUint32
*aPermissions
);
965 nsresult SetPermissions
(PRUint32 pPermissions
);
966 nsresult GetPermissionsOfLink
(PRUint32
*aPermissions
);
967 nsresult SetPermissionsOfLink
(PRUint32 pPermissions
);
968 nsresult GetLastModifiedTime
(PRInt64
*aLastModifiedTime
);
969 nsresult SetLastModifiedTime
(PRInt64 aLastModifiedTime
);
970 nsresult GetFileSize
(PRInt64
*aFileSize
);
971 nsresult SetFileSize
(PRInt64 aFileSize
);
972 nsresult GetFileSizeOfLink
(PRInt64
*aFileSizeOfLink
);
973 nsresult GetTarget
(nsAString
*aTarget
);
974 nsresult GetNativeTarget
(nsACString
*aNativeTarget
);
975 nsresult GetPath
(nsAString
*aPath
);
976 nsresult GetNativePath
(nsACString
*aNativePath
);
977 nsresult Exists
(PRBool
*_retval
);
978 nsresult IsWritable
(PRBool
*_retval
);
979 nsresult IsReadable
(PRBool
*_retval
);
980 nsresult IsExecutable
(PRBool
*_retval
);
981 nsresult IsHidden
(PRBool
*_retval
);
982 nsresult IsDirectory
(PRBool
*_retval
);
983 nsresult IsFile
(PRBool
*_retval
);
984 nsresult IsSymlink
(PRBool
*_retval
);
985 nsresult IsSpecial
(PRBool
*_retval
);
986 nsresult CreateUnique
(PRUint32 type
, PRUint32 permission
);
987 nsresult Clone
(nsIFile
**_retval
);
988 nsresult Equals
(nsIFile
*inFile
, PRBool
*_retval
);
989 nsresult Contains
(nsIFile
*inFile
, PRBool recir
, PRBool
*_retval
);
990 nsresult GetParent
(nsIFile
**aParent
);
991 nsresult GetDirectoryEntries
(nsISimpleEnumerator
**aDirectoryEntries
);
996 uuid(bddeda3f
-9020-4d12
-8c70
-984ee9f7935e
)
998 interface nsIIOService
: nsISupports
1000 nsresult GetProtocolHandler
(const char *aScheme
, nsIProtocolHandler
**_retval
);
1001 nsresult GetProtocolFlags
(const char *aScheme
, PRUint32
*_retval
);
1002 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
1004 nsresult NewFileURI
(nsIFile
*aFile
, nsIURI
**_retval
);
1005 nsresult NewChannelFromURI
(nsIURI
*aURI
, nsIChannel
**_retval
);
1006 nsresult NewChannel
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
1007 nsIChannel
**_retval
);
1008 nsresult GetOffline
(PRBool
*aOffline
);
1009 nsresult SetOffline
(PRBool aOffline
);
1010 nsresult AllowPort
(PRInt32 aPort
, const char *aScheme
, PRBool
*_retval
);
1011 nsresult ExtractScheme
(const nsACString
*urlString
, nsACString
* _retval
);
1016 uuid(9c5d3c58
-1dd1
-11b2
-a1c9
-f3699284657a
)
1018 interface nsIWebBrowserFocus
: nsISupports
1020 nsresult Activate
();
1021 nsresult Deactivate
();
1022 nsresult SetFocusAtFirstElement
();
1023 nsresult SetFocusAtLastElement
();
1024 nsresult GetFocusedWindow
(nsIDOMWindow
**aFocusedWindow
);
1025 nsresult SetFocusedWindow
(nsIDOMWindow
*aFocusedWindow
);
1026 nsresult GetFocusedElement
(nsIDOMElement
**aFocusedElement
);
1027 nsresult SetFocusedElement
(nsIDOMElement
*aFocusedElement
);
1032 uuid(ba434c60
-9d52
-11d3
-afb0
-00a024ffc08c
)
1034 interface nsIWebBrowserChrome
: nsISupports
1036 nsresult SetStatus
(PRUint32 statusType
, const PRUnichar
*status
);
1037 nsresult GetWebBrowser
(nsIWebBrowser
**aWebBrowser
);
1038 nsresult SetWebBrowser
(nsIWebBrowser
*aWebBrowser
);
1039 nsresult GetChromeFlags
(PRUint32
*aChromeFlags
);
1040 nsresult SetChromeFlags
(PRUint32 aChromeFlags
);
1041 nsresult DestroyBrowserWindow
();
1042 nsresult SizeBrowserTo
(PRInt32 aCX
, PRInt32 aCY
);
1043 nsresult ShowAsModal
();
1044 nsresult IsWindowModal
(PRBool
*_retval
);
1045 nsresult ExitModalEventLoop
(nsresult aStatus
);
1050 uuid(a66b7b80
-ff46
-bd97
-0080-5f8ae38add32
)
1052 interface nsIDOMEvent
: nsISupports
1054 nsresult GetType
(nsAString
*aType
);
1055 nsresult GetTarget
(nsIDOMEventTarget
**aTarget
);
1056 nsresult GetCurrentTarget
(nsIDOMEventTarget
**aCurrentTarget
);
1057 nsresult GetEventPhase
(PRUint16
*aEventPhase
);
1058 nsresult GetBubbles
(PRBool
*aBubbles
);
1059 nsresult GetCancelable
(PRBool
*aCancelable
);
1060 nsresult GetTimeStamp
(DOMTimeStamp
*aTimeStamp
);
1061 nsresult StopPropagation
();
1062 nsresult PreventDefault
();
1063 nsresult InitEvent
(const nsAString
*eventTypeArg
, PRBool canBubbleArg
, PRBool cancelableArg
);
1066 cpp_quote
("#define CONTEXT_NONE 0x00");
1067 cpp_quote
("#define CONTEXT_LINK 0x01");
1068 cpp_quote
("#define CONTEXT_IMAGE 0x02");
1069 cpp_quote
("#define CONTEXT_DOCUMENT 0x04");
1070 cpp_quote
("#define CONTEXT_TEXT 0x08");
1071 cpp_quote
("#define CONTEXT_INPUT 0x10");
1072 cpp_quote
("#define CONTEXT_BACKGROUND_IMAGE 0x20");
1076 uuid(3478b6b0
-3875-11d4
-94ef
-0020183bf181
)
1078 interface nsIContextMenuListener
: nsISupports
1080 nsresult OnShowContextMenu
(PRUint32 aContextFlags
, nsIDOMEvent
*aEvent
, nsIDOMNode
*aNode
);
1085 uuid(a6cf90c3
-15b3
-11d2
-932e-00805f8add32
)
1087 interface nsIDOMUIEvent
: nsIDOMEvent
1089 nsresult GetView
(nsIDOMAbstractView
**aView
);
1090 nsresult GetDetail
(PRInt32
*aDetail
);
1091 nsresult InitUIEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
1092 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
);
1097 uuid(ff751edc
-8b02
-aae7
-0010-8301838a3123
)
1099 interface nsIDOMMouseEvent
: nsIDOMUIEvent
1101 nsresult GetScreenX
(PRInt32
*aScreenX
);
1102 nsresult GetScreenY
(PRInt32
*aScreenY
);
1103 nsresult GetClientX
(PRInt32
*aClientX
);
1104 nsresult GetClientY
(PRInt32
*aClientY
);
1105 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
1106 nsresult GetShiftKey
(PRBool
*aShiftKey
);
1107 nsresult GetAltKey
(PRBool
*aAltKey
);
1108 nsresult GetMetaKey
(PRBool
*aMetaKey
);
1109 nsresult GetButton
(PRUint16
*aButton
);
1110 nsresult GetRelatedTarget
(nsIDOMEventTarget
* *aRelatedTarget
);
1111 nsresult InitMouseEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
1112 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
, PRInt32 screenXArg
, PRInt32 screenYArg
,
1113 PRInt32 clientXArg
, PRInt32 clientYArg
, PRBool ctrlKeyArg
, PRBool altKeyArg
,
1114 PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint16 buttonArg
,
1115 nsIDOMEventTarget
*relatedTargetArg
);
1120 uuid(3e5432cd
-9568-4bd1
-8cbe
-d50aba110743
)
1122 interface nsIEmbeddingSiteWindow
: nsISupports
1124 nsresult SetDimensions
(PRUint32 flags
, PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
1125 nsresult GetDimensions
(PRUint32 flags
, PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
1126 nsresult SetFocus
();
1127 nsresult GetVisibility
(PRBool
*aVisibility
);
1128 nsresult SetVisibility
(PRBool aVisibility
);
1129 nsresult GetTitle
(PRUnichar
**aTitle
);
1130 nsresult SetTitle
(const PRUnichar
*aTitle
);
1131 nsresult GetSiteWindow
(void **aSiteWindow
);
1136 uuid(2417cbfe
-65ad
-48a6
-b4b6
-eb84db174392
)
1138 interface nsIComponentRegistrar
: nsISupports
1140 nsresult AutoRegister
(nsIFile
*aSpec
);
1141 nsresult AutoUnregister
(nsIFile
*aSpec
);
1142 nsresult RegisterFactory
(const nsCID
*aClass
, const char *aClassName
,
1143 const char *aContractID
, nsIFactory
*aFactory
);
1144 nsresult UnregisterFactory
(const nsCID
*aClass
, nsIFactory
*aFactory
);
1145 nsresult RegisterFactoryLocation
(const nsCID
*aClass
, const char *aClassName
,
1146 const char *aContractID
, nsIFile
*aFile
, const char *aLoaderStr
,
1148 nsresult UnregisterFactoryLocation
(const nsCID
*aClass
, nsIFile
*aFile
);
1149 nsresult IsCIDRegistered
(const nsCID
*aClass
, PRBool
*_retval
);
1150 nsresult IsContractIDRegistered
(const char *aContractID
, PRBool
*_retval
);
1151 nsresult EnumerateCIDs
(nsISimpleEnumerator
**_retval
);
1152 nsresult EnumerateContractIDs
(nsISimpleEnumerator
**_retval
);
1153 nsresult CIDToContractID
(const nsCID
*aClass
, char **_retval
);
1154 nsresult ContractIDToCID
(const char *aContractID
, nsCID
**_retval
);
1159 uuid(1630c61a
-325e-49ca
-8759-a31b16c47aa5
)
1161 interface nsIPromptService
: nsISupports
1163 nsresult Alert
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1164 const PRUnichar
*aText
);
1165 nsresult AlertCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1166 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
);
1167 nsresult Confirm
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1168 const PRUnichar
*aText
, PRBool
*_retval
);
1169 nsresult ConfirmCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1170 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
,
1172 nsresult ConfirmEx
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1173 const PRUnichar
*aText
, PRUint32 aButtonFlags
, const PRUnichar
*aButton0Title
,
1174 const PRUnichar
*aButton1Title
, const PRUnichar
*aButton2Title
,
1175 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRInt32
*_retval
);
1176 nsresult Prompt
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1177 const PRUnichar
*aText
, PRUnichar
**aValue
, const PRUnichar
*aCheckMsg
,
1178 PRBool
*aCheckState
, PRBool
*_retval
);
1179 nsresult PromptUsernameAndPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1180 const PRUnichar
*aText
, PRUnichar
**aUsername
, PRUnichar
**aPassword
,
1181 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRBool
*_retval
);
1182 nsresult PromptPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1183 const PRUnichar
*aText
, PRUnichar
**aPassword
, const PRUnichar
*aCheckMsg
,
1184 PRBool
*aCheckState
, PRBool
*_retval
);
1185 nsresult Select
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1186 const PRUnichar
*aText
, PRUint32 aCount
, const PRUnichar
**aSelectList
,
1187 PRInt32
*aOutSelection
, PRBool
*_retval
);
1192 uuid(b128a1e6
-44f3
-4331-8fbe
-5af360ff21ee
)
1194 interface nsITooltipTextProvider
: nsISupports
1196 nsresult GetNodeText
(nsIDOMNode
*aNode
, PRUnichar
**aText
, PRBool
*_retval
);
1201 uuid(02b0625a
-e7f3
-11d2
-9f5a
-006008a6efe9
)
1203 interface nsIProfile
: nsISupports
1205 nsresult GetProfileCount
(PRInt32
*aProfileCount
);
1206 nsresult GetProfileList
(PRUint32
*length
, PRUnichar
***profileNames
);
1207 nsresult ProfileExists
(const PRUnichar
*profileName
, PRBool
*_retval
);
1208 nsresult GetCurrentProfile
(PRUnichar
* *aCurrentProfile
);
1209 nsresult SetCurrentProfile
(const PRUnichar
* aCurrentProfile
);
1210 nsresult ShutDownCurrentProfile
(PRUint32 shutDownType
);
1211 nsresult CreateNewProfile
(const PRUnichar
*profileName
,
1212 const PRUnichar
*nativeProfileDir
, const PRUnichar
*langcode
,
1213 PRBool useExistingDir
);
1214 nsresult RenameProfile
(const PRUnichar
*oldName
, const PRUnichar
*newName
);
1215 nsresult DeleteProfile
(const PRUnichar
*name
, PRBool canDeleteFiles
);
1216 nsresult CloneProfile
(const PRUnichar
*profileName
);
1221 uuid(30465632-a777
-44cc
-90f9
-8145475ef999
)
1223 interface nsIWindowCreator
: nsISupports
1225 nsresult CreateChromeWindow
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
1226 nsIWebBrowserChrome
**_retval
);
1231 uuid(f673ec81
-a4b0
-11d6
-964b
-eb5a2bf216fc
)
1233 interface nsIWindowCreator2
: nsIWindowCreator
1235 nsresult CreateChromeWindow2
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
1236 PRUint32 contextFlags
, nsIURI
*uri
, PRBool
*cancel
,
1237 nsIWebBrowserChrome
**_retval
);
1242 uuid(002286a8
-494b
-43b3
-8ddd
-49e3fc50622b
)
1244 interface nsIWindowWatcher
: nsISupports
1246 nsresult OpenWindow
(nsIDOMWindow
*aParent
, const char *aUrl
, const char *aName
,
1247 const char *aFeatures
, nsISupports
*aArguments
, nsIDOMWindow
**_retval
);
1248 nsresult RegisterNotification
(nsIObserver
*aObserver
);
1249 nsresult UnregisterNotification
(nsIObserver
*aObserver
);
1250 nsresult GetWindowEnumerator
(nsISimpleEnumerator
**_retval
);
1251 nsresult GetNewPrompter
(nsIDOMWindow
*aParent
, nsIPrompt
**_retval
);
1252 nsresult GetNewAuthPrompter
(nsIDOMWindow
*aParent
, nsIAuthPrompt
**_retval
);
1253 nsresult SetWindowCreator
(nsIWindowCreator
*creator
);
1254 nsresult GetChromeForWindow
(nsIDOMWindow
*aWindow
, nsIWebBrowserChrome
**_retval
);
1255 nsresult GetWindowByName
(const PRUnichar
*aTargetName
, nsIDOMWindow
*aCurrentWindow
,
1256 nsIDOMWindow
**_retval
);
1257 nsresult GetActiveWindow
(nsIDOMWindow
**aActiveWindow
);
1258 nsresult SetActiveWindow
(nsIDOMWindow
*aActiveWindow
);
1263 uuid(d39fd2b4
-3978-45d2
-a4be
-ba448171b61b
)
1265 interface nsIEditingSession
: nsISupports
1267 nsresult GetEditorStatus
(PRUint32
*aEditorStatus
);
1268 nsresult MakeWindowEditable
(nsIDOMWindow
*window
, const char *aEditorType
,
1269 PRBool doAfterUriLoad
);
1270 nsresult WindowIsEditable
(nsIDOMWindow
*window
, PRBool
*_retval
);
1271 nsresult GetEditorForWindow
(nsIDOMWindow
*window
, nsIEditor
**_retval
);
1272 nsresult SetupEditorOnWindow
(nsIDOMWindow
*window
);
1273 nsresult TearDownEditorOnWindow
(nsIDOMWindow
*window
);
1274 nsresult SetEditorOnControllers
(nsIDOMWindow
*aWindow
, nsIEditor
*aEditor
);
1279 uuid(83f892cf
-7ed3
-490e-967a
-62640f3158e1
)
1281 interface nsICommandParams
: nsISupports
1283 nsresult GetValueType
(const char *name
, PRInt16
*_retval
);
1284 nsresult GetBooleanValue
(const char *name
, PRBool
*_retval
);
1285 nsresult GetLongValue
(const char *name
, PRInt32
*_retval
);
1286 nsresult GetDoubleValue
(const char *name
, double *_retval
);
1287 nsresult GetStringValue
(const char *name
, nsAString
*_retval
);
1288 nsresult GetCStringValue
(const char *name
, char **_retval
);
1289 nsresult GetISupportsValue
(const char *name
, nsISupports
**_retval
);
1290 nsresult SetBooleanValue
(const char *name
, PRBool value
);
1291 nsresult SetLongValue
(const char *name
, PRInt32 value
);
1292 nsresult SetDoubleValue
(const char *name
, double value
);
1293 nsresult SetStringValue
(const char *name
, const nsAString
*value
);
1294 nsresult SetCStringValue
(const char *name
, const char *value
);
1295 nsresult SetISupportsValue
(const char *name
, nsISupports
*value
);
1296 nsresult RemoveValue
(const char *name
);
1297 nsresult HasMoreElements
(PRBool
*_retval
);
1299 nsresult GetNext
(char **_retval
);
1304 uuid(080d2001
-f91e
-11d4
-a73c
-f9242928207c
)
1306 interface nsICommandManager
: nsISupports
1308 nsresult AddCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandToObserve
);
1309 nsresult RemoveCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandObserved
);
1310 nsresult IsCommandSupported
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
1311 nsresult IsCommandEnabled
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
1312 nsresult GetCommandState
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
,
1313 nsICommandParams
*aCommandParams
);
1314 nsresult DoCommand
(const char *aCommandName
, nsICommandParams
*aCommandParams
,
1315 nsIDOMWindow
*aTargetWindow
);
1320 uuid(d650439a
-ca29
-410d
-a906
-b0557fb62fcd
)
1322 interface nsIContentSerializer
: nsISupports
1324 nsresult Init
(PRUint32 flags
, PRUint32 aWrapColumn
, const char* aCharSet
, PRBool aIsCopying
);
1325 nsresult AppendText
(nsIDOMText
*aText
, PRInt32 aStartOffset
, PRInt32 aEndOffset
, nsAString
*aStr
);
1326 nsresult AppendCDATASection
(nsIDOMCDATASection
*aCDATASection
, PRInt32 aStartOffset
,
1327 PRInt32 aEndOffset
, nsAString
*aStr
);
1328 nsresult AppendProcessingInstruction
(nsIDOMProcessingInstruction
* aPI
, PRInt32 aStartOffset
,
1329 PRInt32 aEndOffset
, nsAString
*aStr
);
1330 nsresult AppendComment
(nsIDOMComment
*aComment
, PRInt32 aStartOffset
, PRInt32 aEndOffset
,
1332 nsresult AppendDoctype
(nsIDOMDocumentType
*aDoctype
, nsAString
*aStr
);
1333 nsresult AppendElementStart
(nsIDOMElement
*aElement
, PRBool aHasChildren
, nsAString
*aStr
);
1334 nsresult AppendElementEnd
(nsIDOMElement
*aElement
, nsAString
*aStr
);
1335 nsresult Flush
(nsAString
*aStr
);
1336 nsresult AppendDocumentStart
(nsIDOMDocument
*aDocument
, nsAString
*aStr
);
1341 * This is a private Wine interface that is implemented by our implementation
1342 * of nsIURI to store its owner.
1346 uuid(5088272e-900b
-11da
-c687
-000fea57f21a
)
1348 interface nsIWineURI
: nsIURI
1350 typedef struct NSContainer NSContainer
;
1352 nsresult GetNSContainer
(NSContainer
**aNSContainer
);
1353 nsresult SetNSContainer
(NSContainer
*aNSContainer
);
1354 nsresult GetMoniker
(IMoniker
**aMoniker
);
1355 nsresult SetMoniker
(IMoniker
*aMoniker
);