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
;
70 interface nsIDOMEvent
;
76 uuid(00000000-0000-0000-c000
-000000000046)
80 nsresult QueryInterface
(nsIIDRef riid
, nsQIResult result
);
85 /* Currently we don't need a full declaration of these interfaces */
86 typedef nsISupports nsISHistory
;
87 typedef nsISupports nsISimpleEnumerator
;
88 typedef nsISupports nsIWidget
;
89 typedef nsISupports nsIProtocolHandler
;
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
;
112 typedef nsISupports nsIPrintSession
;
116 uuid(8bb35ed9
-e332
-462d
-9155-4a002ab5c958
)
118 interface nsIServiceManager
: nsISupports
120 nsresult GetService
(nsCIDRef aClass
, nsIIDRef aIID
, void **result
);
121 nsresult GetServiceByContactID
(const char *aContactID
, nsIIDRef aIID
, void **result
);
122 nsresult IsServiceInstantiated
(nsCIDRef aClass
, nsIIDRef aIID
, BOOL
*_retval
);
123 nsresult IsServiceInstantiatedByContractID
(const char *aContractID
, nsIIDRef aIID
, BOOL
*_retval
);
128 uuid(00000001-0000-0000-c000
-000000000046)
130 interface nsIFactory
: nsISupports
132 nsresult CreateInstance
(nsISupports
*aOuter
, const nsIID
*iid
, void **result
);
133 nsresult LockFactory
(PRBool lock
);
138 uuid(db242e01
-e4d9
-11d2
-9dde
-000064657374)
140 interface nsIObserver
: nsISupports
142 nsresult Observe
(nsISupports
*aSubject
, const char *aTopic
, const PRUnichar
*aData
);
147 uuid(a88e5a60
-205a
-4bb1
-94e1
-2628daf51eae
)
149 interface nsIComponentManager
: nsISupports
151 nsresult GetClassObject
(nsCIDRef aClass
, nsIIDRef aIID
, nsQIResult result
);
152 nsresult GetClassObjectByContractID
(const char *aContractID
, nsIIDRef aIID
, nsQIResult result
);
153 nsresult CreateInstance
(nsCIDRef aClass
, nsISupports
*aDelegate
, nsIIDRef aIID
,
155 nsresult CreateInstanceByContractID
(const char *aContractID
, nsISupports
*aDelegate
,
156 nsIIDRef aIID
, nsQIResult result
);
161 uuid(59e7e77a
-38e4
-11d4
-8cf5
-0060b0fc14a3
)
163 interface nsIMemory
: nsISupports
165 void *Alloc
(/*size_t*/ int size
);
166 void *Realloc
(void *_ptr
, /*size_t*/ int newSize
);
167 void Free
(void *_ptr
);
168 nsresult HeapMinimize
(PRBool immediate
);
169 nsresult IsLowMemory
(PRBool
*_retval
);
174 uuid(9188bc85
-f92e
-11d2
-81ef
-0060083a0bcf
)
176 interface nsIWeakReference
: nsISupports
178 nsresult QueryReferent
(const nsIID
*riid
, void **result
);
183 uuid(9188bc86
-f92e
-11d2
-81ef
-0060083a0bcf
)
185 interface nsISupportsWeakReference
: nsISupports
187 nsresult GetWeakReference
(nsIWeakReference
**_retval
);
192 uuid(033a1470
-8b2a
-11d3
-af88
-00a024ffc08c
)
194 interface nsIInterfaceRequestor
: nsISupports
196 nsresult GetInterface
(const nsIID
*riid
, void **result
);
201 uuid(fa9c7f6c
-61b3
-11d4
-9877-00c04fa0cf4a
)
203 interface nsIInputStream
: nsISupports
206 nsresult Available
(PRUint32
*_retval
);
207 nsresult Read
(char *aBuf
, PRUint32 aCount
, PRUint32
*_retval
);
208 nsresult ReadSegments
(nsresult
(*aWriter
)(nsIInputStream
*aInStream
,
209 void *aClosure
, const char *aFromSegment
, PRUint32 aToOffset
,
210 PRUint32 aCount
, PRUint32
*aWriteCount
),
211 void *aClosure
, PRUint32 aCount
, PRUint32
*_retval
);
212 nsresult IsNonBlocking
(PRBool
*_retval
);
217 uuid(450cd2d4
-f0fd
-424d
-b365
-b1251f80fd53
)
219 interface nsIStringInputStream
: nsIInputStream
221 nsresult SetData
(const char *data
, PRInt32 dataLen
);
222 nsresult AdoptData
(char *data
, PRInt32 dataLen
);
223 nsresult ShareData
(const char *data
, PRInt32 dataLen
);
228 uuid(07a22cc0
-0ce5
-11d3
-9331-00104ba0fd40
)
230 interface nsIURI
: nsISupports
232 nsresult GetSpec
(nsACString
*aSpec
);
233 nsresult SetSpec
(const nsACString
*aSpec
);
234 nsresult GetPrePath
(nsACString
*aPrePath
);
235 nsresult GetScheme
(nsACString
*aScheme
);
236 nsresult SetScheme
(const nsACString
*aScheme
);
237 nsresult GetUserPass
(nsACString
*aUserPass
);
238 nsresult SetUserPass
(const nsACString
*aUserPass
);
239 nsresult GetUsername
(nsACString
*aUsername
);
240 nsresult SetUsername
(const nsACString
*aUsername
);
241 nsresult GetPassword
(nsACString
*aPassword
);
242 nsresult SetPassword
(const nsACString
*aPassword
);
243 nsresult GetHostPort
(nsACString
*aHostPort
);
244 nsresult SetHostPort
(const nsACString
*aHostPort
);
245 nsresult GetHost
(nsACString
*aHost
);
246 nsresult SetHost
(const nsACString
*aHost
);
247 nsresult GetPort
(PRInt32
*aPort
);
248 nsresult SetPort
(PRInt32 aPort
);
249 nsresult GetPath
(nsACString
*aPath
);
250 nsresult SetPath
(const nsACString
*aPath
);
251 nsresult Equals
(nsIURI
*other
, PRBool
*_retval
);
252 nsresult SchemeIs
(const char *scheme
, PRBool
*_retval
);
253 nsresult Clone
(nsIURI
**_retval
);
254 nsresult Resolve
(const nsACString
*relativePath
, nsACString
*_retval
);
255 nsresult GetAsciiSpec
(nsACString
*aAsciiSpec
);
256 nsresult GetAsciiHost
(nsACString
*aAsciiHost
);
257 nsresult GetOriginCharset
(nsACString
*aOriginCharset
);
262 uuid(ef6bfbd2
-fd46
-48d8
-96b7
-9f8f0fd387fe
)
264 interface nsIRequest
: nsISupports
266 nsresult GetName
(nsACString
*aName
);
267 nsresult IsPending
(PRBool
*_retval
);
268 nsresult GetStatus
(nsresult
*aStatus
);
269 nsresult Cancel
(nsresult aStatus
);
272 nsresult GetLoadGroup
(nsILoadGroup
**aLoadGroup
);
273 nsresult SetLoadGroup
(nsILoadGroup
*aLoadGroup
);
274 nsresult GetLoadFlags
(nsLoadFlags
*aLoadFlags
);
275 nsresult SetLoadFlags
(nsLoadFlags aLoadFlags
);
280 uuid(fd91e2e0
-1481-11d3
-9333-00104ba0fd40
)
282 interface nsIRequestObserver
: nsISupports
284 nsresult OnStartRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
285 nsresult OnStopRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatusCode
);
290 uuid(1a637020
-1482-11d3
-9333-00104ba0fd40
)
292 interface nsIStreamListener
: nsIRequestObserver
294 nsresult OnDataAvailable
(nsIRequest
*aRequest
, nsISupports
*aContext
,
295 nsIInputStream
*aInputStream
, PRUint32 aOffset
, PRUint32 aCount
);
300 uuid(3de0a31c
-feaf
-400f
-9f1e
-4ef71f8b20cc
)
302 interface nsILoadGroup
: nsIRequest
304 nsresult GetGroupObserver
(nsIRequestObserver
**aGroupObserver
);
305 nsresult SetGroupObserver
(nsIRequestObserver
*aGroupObserver
);
306 nsresult GetDefaultLoadRequest
(nsIRequest
**aDefaultLoadRequest
);
307 nsresult SetDefaultLoadRequest
(nsIRequest
*aDefaultLoadRequest
);
308 nsresult AddRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
309 nsresult RemoveRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatus
);
310 nsresult GetRequests
(nsISimpleEnumerator
**aRequests
);
311 nsresult GetActiveCount
(PRUint32
*aActiveCount
);
312 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
313 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
318 uuid(c63a055a
-a676
-4e71
-bf3c
-6cfa11082018
)
320 interface nsIChannel
: nsIRequest
322 nsresult GetOriginalURI
(nsIURI
**aOriginalURI
);
323 nsresult SetOriginalURI
(nsIURI
*aOriginalURI
);
324 nsresult GetURI
(nsIURI
**aURI
);
325 nsresult GetOwner
(nsISupports
**aOwner
);
326 nsresult SetOwner
(nsISupports
*aOwner
);
327 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
328 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
329 nsresult GetSecurityInfo
(nsISupports
**aSecurityInfo
);
330 nsresult GetContentType
(nsACString
*aContentType
);
331 nsresult SetContentType
(const nsACString
*aContentType
);
332 nsresult GetContentCharset
(nsACString
*aContentCharset
);
333 nsresult SetContentCharset
(const nsACString
*aContentCharset
);
334 nsresult GetContentLength
(PRInt32
*aContentLength
);
335 nsresult SetContentLength
(PRInt32 aContentLength
);
336 nsresult Open
(nsIInputStream
**_retval
);
337 nsresult AsyncOpen
(nsIStreamListener
*aListener
, nsISupports
*aContext
);
342 uuid(9277fe09
-f0cc
-4cd9
-bbce
-581dd94b0260
)
344 interface nsIHttpChannel
: nsIChannel
346 nsresult GetRequestMethod
(nsACString
*aRequestMethod
);
347 nsresult SetRequestMethod
(const nsACString
*aRequestMethod
);
348 nsresult GetReferrer
(nsIURI
**aReferrer
);
349 nsresult SetReferrer
(nsIURI
*aReferrer
);
350 nsresult GetRequestHeader
(const nsACString
*aHeader
, nsACString
*_retval
);
351 nsresult SetRequestHeader
(const nsACString
*aHeader
, const nsACString
*aValue
, PRBool aMerge
);
352 nsresult VisitRequestHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
353 nsresult GetAllowPipelining
(PRBool
*aAllowPipelining
);
354 nsresult SetAllowPipelining
(PRBool aAllowPipelining
);
355 nsresult GetRedirectionLimit
(PRUint32
*aRedirectionLimit
);
356 nsresult SetRedirectionLimit
(PRUint32 aRedirectionLimit
);
357 nsresult GetResponseStatus
(PRUint32
*aResponseStatus
);
358 nsresult GetResponseStatusText
(nsACString
*aResponseStatusText
);
359 nsresult GetRequestSucceeded
(PRBool
*aRequestSucceeded
);
360 nsresult GetResponseHeader
(const nsACString
*header
, nsACString
*_retval
);
361 nsresult SetResponseHeader
(const nsACString
*header
, const nsACString
*value
, PRBool merge
);
362 nsresult VisitResponseHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
363 nsresult IsNoStoreResponse
(PRBool
*_retval
);
364 nsresult IsNoCacheResponse
(PRBool
*_retval
);
369 uuid(ddf633d8
-e9a4
-439d
-ad88
-de636fd9bb75
)
371 interface nsIUploadChannel
: nsISupports
373 nsresult SetUploadStream
(nsIInputStream
*aStream
, const nsACString
*aContentType
,
374 PRInt32 aContentLength
);
375 nsresult GetUploadStream
(nsIInputStream
**aUploadStream
);
380 uuid(a6cf90be
-15b3
-11d2
-932e-00805f8add32
)
382 interface nsIDOMCSSStyleDeclaration
: nsISupports
384 nsresult GetCssText
(nsAString
*aCssText
);
385 nsresult SetCssText
(const nsAString
*aCssText
);
386 nsresult GetPropertyValue
(const nsAString
*propertyName
, nsAString
*_retval
);
387 nsresult GetPropertyCSSValue
(const nsAString
*propertyName
, nsIDOMCSSValue
**_retval
);
388 nsresult RemoveProperty
(const nsAString
*propertyName
, nsAString
*_retval
);
389 nsresult GetPropertyPriority
(const nsAString
*propertyName
, nsAString
*_retval
);
390 nsresult SetProperty
(const nsAString
*propertyName
, const nsAString
*value
,
391 const nsAString
*priority
);
392 nsresult GetLength
(PRUint32
*aLength
);
393 nsresult Item
(PRUint32 index
, nsAString
*_retval
);
394 nsresult GetParentRule
(nsIDOMCSSRule
**aParentRule
);
399 uuid(a6cf907d
-15b3
-11d2
-932e-00805f8add32
)
401 interface nsIDOMNodeList
: nsISupports
403 nsresult Item
(PRUint32 index
, nsIDOMNode
**_retval
);
404 nsresult GetLength
(PRUint32
*aLength
);
409 uuid(a6cf907c
-15b3
-11d2
-932e-00805f8add32
)
411 interface nsIDOMNode
: nsISupports
417 CDATA_SELECTION_NODE
= 4,
418 ENTITY_REFERENCE_NODE
= 5,
420 PROCESSING_INSTRUCTION_NODE
= 7,
423 DOCUMENT_TYPE_NODE
= 10,
424 DOCUMENT_FRAGMENT_NODE
= 11,
428 nsresult GetNodeName
(nsAString
*aNodeName
);
429 nsresult GetNodeValue
(nsAString
*aNodeValue
);
430 nsresult SetNodeValue
(const nsAString
*aNodeValue
);
431 nsresult GetNodeType
(PRUint16
*aNodeType
);
432 nsresult GetParentNode
(nsIDOMNode
**aParentNode
);
433 nsresult GetChildNodes
(nsIDOMNodeList
**aChildNodes
);
434 nsresult GetFirstChild
(nsIDOMNode
**aFirstChild
);
435 nsresult GetLastChild
(nsIDOMNode
**aLastChild
);
436 nsresult GetPreviousSibling
(nsIDOMNode
**aPreviousSibling
);
437 nsresult GetNextSibling
(nsIDOMNode
**aNextSibling
);
438 nsresult GetAttributes
(nsIDOMNamedNodeMap
**aAttributes
);
439 nsresult GetOwnerDocument
(nsIDOMDocument
**aOwnerDocument
);
440 nsresult InsertBefore
(nsIDOMNode
*newChild
, nsIDOMNode
*refChild
, nsIDOMNode
**_retval
);
441 nsresult ReplaceChild
(nsIDOMNode
*newChild
, nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
442 nsresult RemoveChild
(nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
443 nsresult AppendChild
(nsIDOMNode
*newChild
, nsIDOMNode
**_retval
);
444 nsresult HasChildNodes
(PRBool
*_retval
);
445 nsresult CloneNode
(PRBool deep
, nsIDOMNode
**_retval
);
446 nsresult Normalize
();
447 nsresult IsSupported
(const nsAString
*feature
, const nsAString
*version, PRBool
*_retval
);
448 nsresult GetNamespaceURI
(nsAString
*aNamespaceURI
);
449 nsresult GetPrefix
(nsAString
*aPrefix
);
450 nsresult SetPrefix
(const nsAString
*aPrefix
);
451 nsresult GetLocalName
(nsAString
*aLocalName
);
452 nsresult HasAttributes
(PRBool
*_retval
);
457 uuid(a6cf9078
-15b3
-11d2
-932e-00805f8add32
)
459 interface nsIDOMElement
: nsIDOMNode
461 nsresult GetTagName
(nsAString
*aTagName
);
462 nsresult GetAttribute
(const nsAString
*name
, nsAString
*_retval
);
463 nsresult SetAttribute
(const nsAString
*name
, const nsAString
*value
);
464 nsresult RemoveAttribute
(const nsAString
*name
);
465 nsresult GetAttributeNode
(const nsAString
*name
, nsIDOMAttr
**_retval
);
466 nsresult SetAttributeNode
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
467 nsresult RemoveAttributeNode
(nsIDOMAttr
*oldAttr
, nsIDOMAttr
**_retval
);
468 nsresult GetElementsByTagName
(const nsAString
*name
, nsIDOMNodeList
**_retval
);
469 nsresult GetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
471 nsresult SetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
472 const nsAString
*value
);
473 nsresult RemoveAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
);
474 nsresult GetAttributeNodeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
475 nsIDOMAttr
**_retval
);
476 nsresult SetAttributeNodeNS
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
477 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
478 nsIDOMNodeList
**_retval
);
479 nsresult HasAttribute
(const nsAString
*name
, PRBool
*_retval
);
480 nsresult HasAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
486 uuid(99715845-95fc
-4a56
-aa53
-214b65c26e22
)
488 interface nsIDOMElementCSSInlineStyle
: nsISupports
490 nsresult GetStyle
(nsIDOMCSSStyleDeclaration
**aStyle
);
493 cpp_quote
("#undef GetClassName");
497 uuid(a6cf9085
-15b3
-11d2
-932e-00805f8add32
)
499 interface nsIDOMHTMLElement
: nsIDOMElement
501 nsresult GetId
(nsAString
*aId
);
502 nsresult SetId
(const nsAString
*aId
);
503 nsresult GetTitle
(nsAString
*aTitle
);
504 nsresult SetTitle
(const nsAString
*aTitle
);
505 nsresult GetLang
(nsAString
*aLang
);
506 nsresult SetLang
(const nsAString
*aLang
);
507 nsresult GetDir
(nsAString
*aDir
);
508 nsresult SetDir
(const nsAString
*aDir
);
509 nsresult GetClassName
(nsAString
*aClassName
);
510 nsresult SetClassName
(const nsAString
*aClassName
);
515 uuid(da83b2ec
-8264-4410-8496-ada3acd2ae42
)
517 interface nsIDOMNSHTMLElement
: nsISupports
519 nsresult GetOffsetTop
(PRInt32
*aOffsetTop
);
520 nsresult GetOffsetLeft
(PRInt32
*aOffsetLeft
);
521 nsresult GetOffsetWidth
(PRInt32
*aOffsetWidth
);
522 nsresult GetOffsetHeight
(PRInt32
*aOffsetHeight
);
523 nsresult GetOffsetParent
(nsIDOMElement
**aOffsetParent
);
524 nsresult GetInnerHTML
(nsAString
*aInnerHTML
);
525 nsresult SetInnerHTML
(const nsAString
*aInnerHTML
);
526 nsresult GetScrollTop
(PRInt32
*aScrollTop
);
527 nsresult SetScrollTop
(PRInt32 aScrollTop
);
528 nsresult GetScrollLeft
(PRInt32
*aScrollLeft
);
529 nsresult SetScrollLeft
(PRInt32 aScrollLeft
);
530 nsresult GetScrollHeight
(PRInt32
*aScrollHeight
);
531 nsresult GetScrollWidth
(PRInt32
*aScrollWidth
);
532 nsresult GetClientHeight
(PRInt32
*aClientHeight
);
533 nsresult GetClientWidth
(PRInt32
*aClientWidth
);
534 nsresult ScrollIntoView
(PRBool top
);
539 uuid(a6cf9072
-15b3
-11d2
-932e-00805f8add32
)
541 interface nsIDOMCharacterData
: nsIDOMNode
543 nsresult GetData
(nsAString
*aData
);
544 nsresult SetData
(const nsAString
*aData
);
545 nsresult GetLength
(PRUint32
*aLength
);
546 nsresult SubstringData
(PRUint32 offset
, PRUint32 count
, nsAString
*_retval
);
547 nsresult AppendData
(const nsAString
*arg
);
548 nsresult InsertData
(PRUint32 offset
, const nsAString
*arg
);
549 nsresult DeleteData
(PRUint32 offset
, PRUint32 count
);
550 nsresult ReplaceData
(PRUint32 offset
, PRUint32 count
, const nsAString
*arg
);
555 uuid(a6cf9082
-15b3
-11d2
-932e-00805f8add32
)
557 interface nsIDOMText
: nsIDOMCharacterData
559 nsresult SplitText
(PRUint32 offset
, nsIDOMText
**_retval
);
564 uuid(a6cf9075
-15b3
-11d2
-932e-00805f8add32
)
566 interface nsIDOMDocument
: nsIDOMNode
568 nsresult GetDoctype
(nsIDOMDocumentType
**aDoctype
);
569 nsresult GetImplementation
(nsIDOMDOMImplementation
**aImplementation
);
570 nsresult GetDocumentElement
(nsIDOMElement
**aDocumentElement
);
571 nsresult CreateElement
(const nsAString
*tagName
, nsIDOMElement
**_retval
);
572 nsresult CreateDocumentFragment
(nsIDOMDocumentFragment
**_retval
);
573 nsresult CreateTextNode
(const nsAString
*data
, nsIDOMText
**_retval
);
574 nsresult CreateComment
(const nsAString
*data
, nsIDOMComment
**_retval
);
575 nsresult CreateCDATASection
(const nsAString
*data
, nsIDOMCDATASection
**_retval
);
576 nsresult CreateProcessingInstruction
(const nsAString
*target
, const nsAString
*data
,
577 nsIDOMProcessingInstruction
**_retval
);
578 nsresult CreateAttribute
(const nsAString
*name
, nsIDOMAttr
**_retval
);
579 nsresult CreateEntityReference
(const nsAString
*name
, nsIDOMEntityReference
**_retval
);
580 nsresult GetElementsByTagName
(const nsAString
*tagname
, nsIDOMNodeList
**_retval
);
581 nsresult ImportNode
(nsIDOMNode
*importedNode
, PRBool deep
, nsIDOMNode
**_retval
);
582 nsresult CreateElementNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
583 nsIDOMElement
**_retval
);
584 nsresult CreateAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
585 nsIDOMAttr
**_retval
);
586 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
587 nsIDOMNodeList
**_retval
);
588 nsresult GetElementById
(const nsAString
*elementId
, nsIDOMElement
**_retval
);
593 uuid(a6cf9084
-15b3
-11d2
-932e-00805f8add32
)
595 interface nsIDOMHTMLDocument
: nsIDOMDocument
597 nsresult GetTitle
(nsAString
*aTitle
);
598 nsresult SetTitle
(const nsAString
*aTitle
);
599 nsresult GetReferrer
(nsAString
*aReferrer
);
600 nsresult GetDomain
(nsAString
*aDomain
);
601 nsresult GetURL
(nsAString
*aURL
);
602 nsresult GetBody
(nsIDOMHTMLElement
**aBody
);
603 nsresult SetBody
(nsIDOMHTMLElement
*aBody
);
604 nsresult GetImages
(nsIDOMHTMLCollection
**aImages
);
605 nsresult GetApplets
(nsIDOMHTMLCollection
**aApplets
);
606 nsresult GetLinks
(nsIDOMHTMLCollection
**aLinks
);
607 nsresult GetForms
(nsIDOMHTMLCollection
**aForms
);
608 nsresult GetAnchors
(nsIDOMHTMLCollection
**aAnchors
);
609 nsresult GetCookie
(nsAString
*aCookie
);
610 nsresult SetCookie
(const nsAString
*aCookie
);
613 nsresult Write
(const nsAString
*text
);
614 nsresult Writeln
(const nsAString
*text
);
615 nsresult GetElementsByName
(const nsAString
*elementName
, nsIDOMNodeList
**_retval
);
620 uuid(a6cf90ce
-15b3
-11d2
-932e-00805f8add32
)
622 interface nsIDOMRange
: nsISupports
624 nsresult GetStartContainer
(nsIDOMNode
**aStartContainer
);
625 nsresult GetStartOffset
(PRInt32
*aStartOffset
);
626 nsresult GetEndContainer
(nsIDOMNode
**aEndContainer
);
627 nsresult GetEndOffset
(PRInt32
*aEndOffset
);
628 nsresult GetCollapsed
(PRBool
*aCollapsed
);
629 nsresult GetCommonAncestorContainer
(nsIDOMNode
**aCommonAncestorContainer
);
630 nsresult SetStart
(nsIDOMNode
*refNode
, PRInt32 offset
);
631 nsresult SetEnd
(nsIDOMNode
*refNode
, PRInt32 offset
);
632 nsresult SetStartBefore
(nsIDOMNode
*refNode
);
633 nsresult SetStartAfter
(nsIDOMNode
*refNode
);
634 nsresult SetEndBefore
(nsIDOMNode
*refNode
);
635 nsresult SetEndAfter
(nsIDOMNode
*refNode
);
636 nsresult Collapse
(PRBool toStart
);
637 nsresult SelectNode
(nsIDOMNode
*refNode
);
638 nsresult SelectNodeContents
(nsIDOMNode
*refNode
);
639 nsresult CompareBoundaryPoints
(PRUint16 how
, nsIDOMRange
*sourceRange
, PRInt16
*_retval
);
640 nsresult DeleteContents
();
641 nsresult ExtractContents
(nsIDOMDocumentFragment
**_retval
);
642 nsresult CloneContents
(nsIDOMDocumentFragment
**_retval
);
643 nsresult InsertNode
(nsIDOMNode
*newNode
);
644 nsresult SurroundContents
(nsIDOMNode
*newParent
);
645 nsresult CloneRange
(nsIDOMRange
**_retval
);
646 nsresult ToString
(nsAString
*_retval
);
652 uuid(b2c7ed59
-8634-4352-9e37
-5484c8b6e4e1
)
654 interface nsISelection
: nsISupports
656 nsresult GetAnchorNode
(nsIDOMNode
**aAnchorNode
);
657 nsresult GetAnchorOffset
(PRInt32
*aAnchorOffset
);
658 nsresult GetFocusNode
(nsIDOMNode
**aFocusNode
);
659 nsresult GetFocusOffset
(PRInt32
*aFocusOffset
);
660 nsresult GetIsCollapsed
(PRBool
*aIsCollapsed
);
661 nsresult GetRangeCount
(PRInt32
*aRangeCount
);
662 nsresult GetRangeAt
(PRInt32 index
, nsIDOMRange
**_retval
);
663 nsresult Collapse
(nsIDOMNode
*parentNode
, PRInt32 offset
);
664 nsresult Extend
(nsIDOMNode
*parentNode
, PRInt32 offset
);
665 nsresult CollapseToStart
();
666 nsresult CollapseToEnd
();
667 nsresult ContainsNode
(nsIDOMNode
*node
, PRBool entirelyContained
, PRBool
*_retval
);
668 nsresult SelectAllChildren
(nsIDOMNode
*parentNode
);
669 nsresult AddRange
(nsIDOMRange
*range);
670 nsresult RemoveRange
(nsIDOMRange
*range);
671 nsresult RemoveAllRanges
();
672 nsresult DeleteFromDocument
();
673 nsresult SelectionLanguageChange
(PRBool langRTL
);
674 nsresult ToString
(PRUnichar
**_retval
);
679 uuid(a6cf906b
-15b3
-11d2
-932e-00805f8add32
)
681 interface nsIDOMWindow
: nsISupports
683 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
684 nsresult GetParent
(nsIDOMWindow
**aParent
);
685 nsresult GetTop
(nsIDOMWindow
**aTop
);
686 nsresult GetScrollbars
(nsIDOMBarProp
**aScrollbars
);
687 nsresult GetFrames
(nsIDOMWindowCollection
**aFrames
);
688 nsresult GetName
(nsAString
*aName
);
689 nsresult SetName
(const nsAString
*aName
);
690 nsresult GetTextZoom
(float *aTextZoom
);
691 nsresult SetTextZoom
(float aTextZoom
);
692 nsresult GetScrollX
(PRInt32
*aScrollX
);
693 nsresult GetScrollY
(PRInt32
*aScrollY
);
694 nsresult ScrollTo
(PRInt32 xScroll
, PRInt32 yScroll
);
695 nsresult ScrollBy
(PRInt32 xScrollDif
, PRInt32 yScrollDif
);
696 nsresult GetSelection
(nsISelection
**_retval
);
697 nsresult ScrollByLines
(PRInt32 numLines
);
698 nsresult ScrollByPages
(PRInt32 numPages
);
699 nsresult SizeToContent
();
704 uuid(a6cf908e
-15b3
-11d2
-932e-00805f8add32
)
706 interface nsIDOMHTMLBodyElement
: nsIDOMHTMLElement
708 nsresult GetALink
(nsAString
*aALink
);
709 nsresult SetALink
(const nsAString
*aALink
);
710 nsresult GetBackground
(nsAString
*aBackground
);
711 nsresult SetBackground
(const nsAString
*aBackground
);
712 nsresult GetBgColor
(nsAString
*aBgColor
);
713 nsresult SetBgColor
(const nsAString
*aBgColor
);
714 nsresult GetLink
(nsAString
*aLink
);
715 nsresult SetLink
(const nsAString
*aLink
);
716 nsresult GetText
(nsAString
*aText
);
717 nsresult SetText
(const nsAString
*aText
);
718 nsresult GetVLink
(nsAString
*aVLink
);
719 nsresult SetVLink
(const nsAString
*aVLink
);
724 uuid(a6cf9093
-15b3
-11d2
-932e-00805f8add32
)
726 interface nsIDOMHTMLInputElement
: nsIDOMHTMLElement
728 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
729 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
730 nsresult GetDefaultChecked
(PRBool
*aDefaultChecked
);
731 nsresult SetDefaultChecked
(PRBool aDefaultChecked
);
732 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
733 nsresult GetAccept
(nsAString
*aAccept
);
734 nsresult SetAccept
(const nsAString
*aAccept
);
735 nsresult GetAccessKey
(nsAString
*aAccessKey
);
736 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
737 nsresult GetAlign
(nsAString
*aAlign
);
738 nsresult SetAlign
(const nsAString
*aAlign
);
739 nsresult GetAlt
(nsAString
*aAlt
);
740 nsresult SetAlt
(const nsAString
*aAlt
);
741 nsresult GetChecked
(PRBool
*aChecked
);
742 nsresult SetChecked
(PRBool aChecked
);
743 nsresult GetDisabled
(PRBool
*aDisabled
);
744 nsresult SetDisabled
(PRBool aDisabled
);
745 nsresult GetMaxLength
(PRInt32
*aMaxLength
);
746 nsresult SetMaxLength
(PRInt32 aMaxLength
);
747 nsresult GetName
(nsAString
*aName
);
748 nsresult SetName
(const nsAString
*aName
);
749 nsresult GetReadOnly
(PRBool
*aReadOnly
);
750 nsresult SetReadOnly
(PRBool aReadOnly
);
751 nsresult GetSize
(PRUint32
*aSize
);
752 nsresult SetSize
(PRUint32 aSize
);
753 nsresult GetSrc
(nsAString
*aSrc
);
754 nsresult SetSrc
(const nsAString
*aSrc
);
755 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
756 nsresult SetTabIndex
(PRInt32 aTabIndex
);
757 nsresult GetType
(nsAString
*aType
);
758 nsresult SetType
(const nsAString
*aType
);
759 nsresult GetUseMap
(nsAString
*aUseMap
);
760 nsresult SetUseMap
(const nsAString
*aUseMap
);
761 nsresult GetValue
(nsAString
*aValue
);
762 nsresult SetValue
(const nsAString
*aValue
);
771 uuid(a6cf9090
-15b3
-11d2
-932e-00805f8add32
)
773 interface nsIDOMHTMLSelectElement
: nsIDOMHTMLElement
775 nsresult GetType
(nsAString
*aType
);
776 nsresult GetSelectedIndex
(PRInt32
*aSelectedIndex
);
777 nsresult SetSelectedIndex
(PRInt32 aSelectedIndex
);
778 nsresult GetValue
(nsAString
*aValue
);
779 nsresult SetValue
(const nsAString
*aValue
);
780 nsresult GetLength
(PRUint32
*aLength
);
781 nsresult SetLength
(PRUint32 aLength
);
782 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
783 nsresult GetOptions
(nsIDOMHTMLOptionsCollection
**aOptions
);
784 nsresult GetDisabled
(PRBool
*aDisabled
);
785 nsresult SetDisabled
(PRBool aDisabled
);
786 nsresult GetMultiple
(PRBool
*aMultiple
);
787 nsresult SetMultiple
(PRBool aMultiple
);
788 nsresult GetName
(nsAString
*aName
);
789 nsresult SetName
(const nsAString
*aName
);
790 nsresult GetSize
(PRInt32
*aSize
);
791 nsresult SetSize
(PRInt32 aSize
);
792 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
793 nsresult SetTabIndex
(PRInt32 aTabIndex
);
794 nsresult Add
(nsIDOMHTMLElement
*element
, nsIDOMHTMLElement
*before
);
795 nsresult Remove
(PRInt32 index
);
802 uuid(a6cf9094
-15b3
-11d2
-932e-00805f8add32
)
804 interface nsIDOMHTMLTextAreaElement
: nsIDOMHTMLElement
806 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
807 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
808 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
809 nsresult GetAccessKey
(nsAString
*aAccessKey
);
810 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
811 nsresult GetCols
(PRInt32
*aCols
);
812 nsresult SetCols
(PRInt32 aCols
);
813 nsresult GetDisabled
(PRBool
*aDisabled
);
814 nsresult SetDisabled
(PRBool aDisabled
);
815 nsresult GetName
(nsAString
*aName
);
816 nsresult SetName
(const nsAString
*aName
);
817 nsresult GetReadOnly
(PRBool
*aReadOnly
);
818 nsresult SetReadOnly
(PRBool aReadOnly
);
819 nsresult GetRows
(PRInt32
*aRows
);
820 nsresult SetRows
(PRInt32 aRows
);
821 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
822 nsresult SetTabIndex
(PRInt32 aTabIndex
);
823 nsresult GetType
(nsAString
*aType
);
824 nsresult GetValue
(nsAString
*aValue
);
825 nsresult SetValue
(const nsAString
*aValue
);
833 uuid(94928ab3
-8b63
-11d3
-989d
-001083010e9b
)
835 interface nsIURIContentListener
: nsISupports
837 nsresult OnStartURIOpen
(nsIURI
*aURI
, PRBool
*_retval
);
838 nsresult DoContent
(const char *aContentType
, PRBool aIsContentPreferred
, nsIRequest
*aRequest
,
839 nsIStreamListener
**aContentHandler
, PRBool
*_retval
);
840 nsresult IsPreferred
(const char *aContentType
, char **aDesiredContentType
, PRBool
*_retval
);
841 nsresult CanHandleContent
(const char *aContentType
, PRBool aIsContentPreferred
,
842 char **aDesiredContentType
, PRBool
*_retval
);
843 nsresult GetLoadCookie
(nsISupports
**aLoadCookie
);
844 nsresult SetLoadCookie
(nsISupports
*aLoadCookie
);
845 nsresult GetParentContentListener
(nsIURIContentListener
**aParentContentListener
);
846 nsresult SetParentContentListener
(nsIURIContentListener
*aParentContentListener
);
851 uuid(44b78386
-1dd2
-11b2
-9ad2
-e4eee2ca1916
)
853 interface nsITooltipListener
: nsISupports
855 nsresult OnShowTooltip
(PRInt32 aXCoords
, PRInt32 aYCoords
, const PRUnichar
*aTipText
);
856 nsresult OnHideTooltip
();
861 uuid(69e5df00
-7b8b
-11d3
-af61
-00a024ffc08c
)
863 interface nsIWebBrowser
: nsISupports
865 nsresult AddWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
866 nsresult RemoveWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
867 nsresult GetContainerWindow
(nsIWebBrowserChrome
**aContainerWindow
);
868 nsresult SetContainerWindow
(nsIWebBrowserChrome
*aContainerWindow
);
869 nsresult GetParentURIContentListener
(nsIURIContentListener
**aParentURIContentListener
);
870 nsresult SetParentURIContentListener
(nsIURIContentListener
*aParentURIContentListener
);
871 nsresult GetContentDOMWindow
(nsIDOMWindow
**aContentDOMWindow
);
874 cpp_quote
("#define SETUP_IS_CHROME_WRAPPER 7");
878 uuid(f15398a0
-8018-11d3
-af70
-00a024ffc08c
)
880 interface nsIWebBrowserSetup
: nsISupports
882 nsresult SetProperty
(PRUint32 aId
, PRUint32 aValue
);
885 typedef void* nativeWindow
;
889 uuid(046bc8a0
-8015-11d3
-af70
-00a024ffc08c
)
891 interface nsIBaseWindow
: nsISupports
893 nsresult InitWindow
(nativeWindow parentNativeWindow
, nsIWidget
*parentWidget
, PRInt32 x
,
894 PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
897 nsresult SetPosition
(PRInt32 x
, PRInt32 y
);
898 nsresult GetPosition
(PRInt32
*x
, PRInt32
*y
);
899 nsresult SetSize
(PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
900 nsresult GetSize
(PRInt32
*cx
, PRInt32
*cy
);
901 nsresult SetPositionAndSize
(PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
902 nsresult GetPositionAndSize
(PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
903 nsresult Repaint
(PRBool force
);
904 nsresult GetParentWidget
(nsIWidget
**aParentWidget
);
905 nsresult SetParentWidget
(nsIWidget
*aParentWidget
);
906 nsresult GetParentNativeWindow
(nativeWindow
*aParentNativeWindow
);
907 nsresult SetParentNativeWindow
(nativeWindow aParentNativeWindow
);
908 nsresult GetVisibility
(PRBool
*aVisibility
);
909 nsresult SetVisibility
(PRBool aVisibility
);
910 nsresult GetEnabled
(PRBool
*aEnabled
);
911 nsresult SetEnabled
(PRBool aEnabled
);
912 nsresult GetBlurSuppression
(PRBool
*aBlurSuppression
);
913 nsresult SetBlurSuppression
(PRBool aBlurSuppression
);
914 nsresult GetMainWidget
(nsIWidget
**aMainWidget
);
916 nsresult GetTitle
(PRUnichar
**aTitle
);
917 nsresult SetTitle
(const PRUnichar
*aTitle
);
920 cpp_quote
("#define LOAD_FLAGS_NONE 0");
924 uuid(f5d9e7b0
-d930
-11d3
-b057
-00a024ffc08c
)
926 interface nsIWebNavigation
: nsISupports
928 nsresult GetCanGoBack
(PRBool
*aCanGoBack
);
929 nsresult GetCanGoForward
(PRBool
*aCanGoForward
);
931 nsresult GoForward
();
932 nsresult GotoIndex
(PRInt32 index
);
933 nsresult LoadURI
(const PRUnichar
*aURI
, PRUint32 aLoadFlags
, nsIURI
*aReferrer
,
934 nsIInputStream
*aPostData
, nsIInputStream
*aHeaders
);
935 nsresult Reload
(PRUint32 aReloadFlags
);
936 nsresult Stop
(PRUint32 aStopFlags
);
937 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
938 nsresult GetCurrentURI
(nsIURI
**aCurrentURI
);
939 nsresult GetReferringURI
(nsIURI
**aReferringURI
);
940 nsresult GetSessionHistory
(nsISHistory
**aSessionHistory
);
941 nsresult SetSessionHistory
(nsISHistory
*aSessionHistory
);
946 uuid(f1094df6
-ce0e
-42c9
-9847-2f663172c38d
)
948 interface nsIPrintSettings
: nsISupports
950 typedef struct {} nsMargin
;
952 nsresult SetPrintOptions
(PRInt32 aType
, PRBool aTurnOnOff
);
953 nsresult GetPrintOptions
(PRInt32 aType
, PRBool
*_retval
);
954 nsresult GetPrintOptionsBits
(PRInt32
*_retval
);
955 nsresult GetPageSizeInTwips
(PRInt32
*aWidth
, PRInt32
*aHeight
);
956 nsresult Clone
(nsIPrintSettings
**_retval
);
957 nsresult Assign
(nsIPrintSettings
*aPS
);
958 nsresult GetPrintSession
(nsIPrintSession
**aPrintSession
);
959 nsresult SetPrintSession
(nsIPrintSession
*aPrintSession
);
960 nsresult GetStartPageRange
(PRInt32
*aStartPageRange
);
961 nsresult SetStartPageRange
(PRInt32 aStartPageRange
);
962 nsresult GetEndPageRange
(PRInt32
*aEndPageRange
);
963 nsresult SetEndPageRange
(PRInt32 aEndPageRange
);
964 nsresult GetMarginTop
(double *aMarginTop
);
965 nsresult SetMarginTop
(double aMarginTop
);
966 nsresult GetMarginLeft
(double *aMarginLeft
);
967 nsresult SetMarginLeft
(double aMarginLeft
);
968 nsresult GetMarginBottom
(double *aMarginBottom
);
969 nsresult SetMarginBottom
(double aMarginBottom
);
970 nsresult GetMarginRight
(double *aMarginRight
);
971 nsresult SetMarginRight
(double aMarginRight
);
972 nsresult GetScaling
(double *aScaling
);
973 nsresult SetScaling
(double aScaling
);
974 nsresult GetPrintBGColors
(PRBool
*aPrintBGColors
);
975 nsresult SetPrintBGColors
(PRBool aPrintBGColors
);
976 nsresult GetPrintBGImages
(PRBool
*aPrintBGImages
);
977 nsresult SetPrintBGImages
(PRBool aPrintBGImages
);
978 nsresult GetPrintRange
(PRInt16
*aPrintRange
);
979 nsresult SetPrintRange
(PRInt16 aPrintRange
);
980 nsresult GetTitle
(PRUnichar
**aTitle
);
981 nsresult SetTitle
(const PRUnichar
*aTitle
);
982 nsresult GetDocURL
(PRUnichar
**aDocURL
);
983 nsresult SetDocURL
(const PRUnichar
*aDocURL
);
984 nsresult GetHeaderStrLeft
(PRUnichar
**aHeaderStrLeft
);
985 nsresult SetHeaderStrLeft
(const PRUnichar
*aHeaderStrLeft
);
986 nsresult GetHeaderStrCenter
(PRUnichar
**aHeaderStrCenter
);
987 nsresult SetHeaderStrCenter
(const PRUnichar
*aHeaderStrCenter
);
988 nsresult GetHeaderStrRight
(PRUnichar
**aHeaderStrRight
);
989 nsresult SetHeaderStrRight
(const PRUnichar
*aHeaderStrRight
);
990 nsresult GetFooterStrLeft
(PRUnichar
**aFooterStrLeft
);
991 nsresult SetFooterStrLeft
(const PRUnichar
*aFooterStrLeft
);
992 nsresult GetFooterStrCenter
(PRUnichar
**aFooterStrCenter
);
993 nsresult SetFooterStrCenter
(const PRUnichar
*aFooterStrCenter
);
994 nsresult GetFooterStrRight
(PRUnichar
**aFooterStrRight
);
995 nsresult SetFooterStrRight
(const PRUnichar
*aFooterStrRight
);
996 nsresult GetHowToEnableFrameUI
(PRInt16
*aHowToEnableFrameUI
);
997 nsresult SetHowToEnableFrameUI
(PRInt16 aHowToEnableFrameUI
);
998 nsresult GetIsCancelled
(PRBool
*aIsCancelled
);
999 nsresult SetIsCancelled
(PRBool aIsCancelled
);
1000 nsresult GetPrintFrameTypeUsage
(PRInt16
*aPrintFrameTypeUsage
);
1001 nsresult SetPrintFrameTypeUsage
(PRInt16 aPrintFrameTypeUsage
);
1002 nsresult GetPrintFrameType
(PRInt16
*aPrintFrameType
);
1003 nsresult SetPrintFrameType
(PRInt16 aPrintFrameType
);
1004 nsresult GetPrintSilent
(PRBool
*aPrintSilent
);
1005 nsresult SetPrintSilent
(PRBool aPrintSilent
);
1006 nsresult GetShrinkToFit
(PRBool
*aShrinkToFit
);
1007 nsresult SetShrinkToFit
(PRBool aShrinkToFit
);
1008 nsresult GetShowPrintProgress
(PRBool
*aShowPrintProgress
);
1009 nsresult SetShowPrintProgress
(PRBool aShowPrintProgress
);
1010 nsresult GetPaperName
(PRUnichar
**aPaperName
);
1011 nsresult SetPaperName
(const PRUnichar
*aPaperName
);
1012 nsresult GetPaperSizeType
(PRInt16
*aPaperSizeType
);
1013 nsresult SetPaperSizeType
(PRInt16 aPaperSizeType
);
1014 nsresult GetPaperData
(PRInt16
*aPaperData
);
1015 nsresult SetPaperData
(PRInt16 aPaperData
);
1016 nsresult GetPaperWidth
(double *aPaperWidth
);
1017 nsresult SetPaperWidth
(double aPaperWidth
);
1018 nsresult GetPaperHeight
(double *aPaperHeight
);
1019 nsresult SetPaperHeight
(double aPaperHeight
);
1020 nsresult GetPaperSizeUnit
(PRInt16
*aPaperSizeUnit
);
1021 nsresult SetPaperSizeUnit
(PRInt16 aPaperSizeUnit
);
1022 nsresult GetPlexName
(PRUnichar
**aPlexName
);
1023 nsresult SetPlexName
(const PRUnichar
*aPlexName
);
1024 nsresult GetColorspace
(PRUnichar
**aColorspace
);
1025 nsresult SetColorspace
(const PRUnichar
*aColorspace
);
1026 nsresult GetResolutionName
(PRUnichar
**aResolutionName
);
1027 nsresult SetResolutionName
(const PRUnichar aResolutionName
);
1028 nsresult GetDownloadFonts
(PRBool
*aDownloadFonts
);
1029 nsresult SetDownloadFonts
(PRBool aDownloadFonts
);
1030 nsresult GetPrintReversed
(PRBool
*aPrintReversed
);
1031 nsresult SetPrintReversed
(PRBool aPrintReversed
);
1032 nsresult GetPrintInColor
(PRBool
*aPrintInColor
);
1033 nsresult SetPrintInColor
(PRBool aPrintInColor
);
1034 nsresult GetPaperSize
(PRInt32
*aPaperSize
);
1035 nsresult SetPaperSize
(PRInt32 aPaperSize
);
1036 nsresult GetOrientation
(PRInt32
*aOrientation
);
1037 nsresult SetOrientation
(PRInt32 aOrientation
);
1038 nsresult GetPrintCommand
(PRUnichar
**aPrintCommand
);
1039 nsresult SetPrintCommand
(const PRUnichar
*aPrintCommand
);
1040 nsresult GetNumCopies
(PRInt32
*aNumCopies
);
1041 nsresult SetNumCopies
(PRInt32 aNumCopies
);
1042 nsresult GetPrinterName
(PRUnichar
**aPrinterName
);
1043 nsresult SetPrinterName
(const PRUnichar
*aPrinterName
);
1044 nsresult GetPrintToFile
(PRBool
*aPrintToFile
);
1045 nsresult SetPrintToFile
(PRBool aPrintToFile
);
1046 nsresult GetToFileName
(PRUnichar
**aToFileName
);
1047 nsresult SetToFileName
(const PRUnichar
*aToFileName
);
1048 nsresult GetPrintPageDelay
(PRInt32
*aPrintPageDelay
);
1049 nsresult SetPrintPageDelay
(PRInt32 aPrintPageDelay
);
1050 nsresult GetIsInitializedFromPrinter
(PRBool
*aIsInitializedFromPrinter
);
1051 nsresult SetIsInitializedFromPrinter
(PRBool aIsInitializedFromPrinter
);
1052 nsresult GetIsInitializedFromPrefs
(PRBool
*aIsInitializedFromPrefs
);
1053 nsresult SetIsInitializedFromPrefs
(PRBool aIsInitializedFromPrefs
);
1054 nsresult SetMarginInTwips
(nsMargin
*aMargin
);
1055 nsresult GetMarginInTwips
(nsMargin
*aMargin
);
1060 uuid(9a7ca4b0
-fbba
-11d4
-a869
-00105a183419
)
1062 interface nsIWebBrowserPrint
: nsISupports
1064 nsresult GetGlobalPrintSettings
(nsIPrintSettings
**aGlobalPrintSettings
);
1065 nsresult GetCurrentPrintSettings
(nsIPrintSettings
**aCurrentPrintSettings
);
1066 nsresult GetCurrentChildDOMWindow
(nsIDOMWindow
**aCurrentChildDOMWindow
);
1067 nsresult GetDoingPrint
(PRBool
*aDoingPrint
);
1068 nsresult GetDoingPrintPreview
(PRBool
*aDoingPrintPreview
);
1069 nsresult GetIsFramesetDocument
(PRBool
*aIsFramesetDocument
);
1070 nsresult GetIsFramesetFrameSelected
(PRBool
*aIsFramesetFrameSelected
);
1071 nsresult GetIsIFrameSelected
(PRBool
*aIsIFrameSelected
);
1072 nsresult GetIsRangeSelection
(PRBool
*aIsRangeSelection
);
1073 nsresult GetPrintPreviewNumPages
(PRInt32
*aPrintPreviewNumPages
);
1074 nsresult Print
(nsIPrintSettings
*aThePrintSettings
, nsIWebProgressListener
*aWPListener
);
1075 nsresult PrintPreview
(nsIPrintSettings
*aThePrintSettings
, nsIDOMWindow
*aChildDOMWin
,
1076 nsIWebProgressListener
*aWPListener
);
1077 nsresult PrintPreviewNavigate
(PRInt16 aNavType
, PRInt32 aPageNum
);
1079 nsresult EnumerateDocumentNames
(PRUint32
*aCount
, PRUnichar
***aResult
);
1080 nsresult ExitPrintPreview
();
1085 uuid(c8c0a080
-0868-11d3
-915f
-d9d889d48e3c
)
1087 interface nsIFile
: nsISupports
1089 nsresult Append
(const nsAString
*node
);
1090 nsresult AppendNative
(const nsAString
*node
);
1091 nsresult Normalize
();
1092 nsresult Create
(PRUint32 type
, PRUint32 permission
);
1093 nsresult GetLeafName
(nsAString
*aLeafName
);
1094 nsresult SetLeafName
(const nsAString
*aLeafName
);
1095 nsresult GetNativeLeafName
(nsAString
*aLeafName
);
1096 nsresult SetNativeLeafName
(const nsAString
*aLeafName
);
1097 nsresult CopyTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1098 nsresult CopyToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1099 nsresult CopyToFollowingLinks
(nsIFile
*newParentDir
, const nsAString
*newName
);
1100 nsresult CopyToFollowingLinksNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1101 nsresult MoveTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1102 nsresult MoveToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1103 nsresult Remove
(PRBool recursive
);
1104 nsresult GetPermissions
(PRUint32
*aPermissions
);
1105 nsresult SetPermissions
(PRUint32 pPermissions
);
1106 nsresult GetPermissionsOfLink
(PRUint32
*aPermissions
);
1107 nsresult SetPermissionsOfLink
(PRUint32 pPermissions
);
1108 nsresult GetLastModifiedTime
(PRInt64
*aLastModifiedTime
);
1109 nsresult SetLastModifiedTime
(PRInt64 aLastModifiedTime
);
1110 nsresult GetFileSize
(PRInt64
*aFileSize
);
1111 nsresult SetFileSize
(PRInt64 aFileSize
);
1112 nsresult GetFileSizeOfLink
(PRInt64
*aFileSizeOfLink
);
1113 nsresult GetTarget
(nsAString
*aTarget
);
1114 nsresult GetNativeTarget
(nsACString
*aNativeTarget
);
1115 nsresult GetPath
(nsAString
*aPath
);
1116 nsresult GetNativePath
(nsACString
*aNativePath
);
1117 nsresult Exists
(PRBool
*_retval
);
1118 nsresult IsWritable
(PRBool
*_retval
);
1119 nsresult IsReadable
(PRBool
*_retval
);
1120 nsresult IsExecutable
(PRBool
*_retval
);
1121 nsresult IsHidden
(PRBool
*_retval
);
1122 nsresult IsDirectory
(PRBool
*_retval
);
1123 nsresult IsFile
(PRBool
*_retval
);
1124 nsresult IsSymlink
(PRBool
*_retval
);
1125 nsresult IsSpecial
(PRBool
*_retval
);
1126 nsresult CreateUnique
(PRUint32 type
, PRUint32 permission
);
1127 nsresult Clone
(nsIFile
**_retval
);
1128 nsresult Equals
(nsIFile
*inFile
, PRBool
*_retval
);
1129 nsresult Contains
(nsIFile
*inFile
, PRBool recir
, PRBool
*_retval
);
1130 nsresult GetParent
(nsIFile
**aParent
);
1131 nsresult GetDirectoryEntries
(nsISimpleEnumerator
**aDirectoryEntries
);
1136 uuid(bddeda3f
-9020-4d12
-8c70
-984ee9f7935e
)
1138 interface nsIIOService
: nsISupports
1140 nsresult GetProtocolHandler
(const char *aScheme
, nsIProtocolHandler
**_retval
);
1141 nsresult GetProtocolFlags
(const char *aScheme
, PRUint32
*_retval
);
1142 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
1144 nsresult NewFileURI
(nsIFile
*aFile
, nsIURI
**_retval
);
1145 nsresult NewChannelFromURI
(nsIURI
*aURI
, nsIChannel
**_retval
);
1146 nsresult NewChannel
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
1147 nsIChannel
**_retval
);
1148 nsresult GetOffline
(PRBool
*aOffline
);
1149 nsresult SetOffline
(PRBool aOffline
);
1150 nsresult AllowPort
(PRInt32 aPort
, const char *aScheme
, PRBool
*_retval
);
1151 nsresult ExtractScheme
(const nsACString
*urlString
, nsACString
* _retval
);
1156 uuid(9c5d3c58
-1dd1
-11b2
-a1c9
-f3699284657a
)
1158 interface nsIWebBrowserFocus
: nsISupports
1160 nsresult Activate
();
1161 nsresult Deactivate
();
1162 nsresult SetFocusAtFirstElement
();
1163 nsresult SetFocusAtLastElement
();
1164 nsresult GetFocusedWindow
(nsIDOMWindow
**aFocusedWindow
);
1165 nsresult SetFocusedWindow
(nsIDOMWindow
*aFocusedWindow
);
1166 nsresult GetFocusedElement
(nsIDOMElement
**aFocusedElement
);
1167 nsresult SetFocusedElement
(nsIDOMElement
*aFocusedElement
);
1172 uuid(ba434c60
-9d52
-11d3
-afb0
-00a024ffc08c
)
1174 interface nsIWebBrowserChrome
: nsISupports
1176 nsresult SetStatus
(PRUint32 statusType
, const PRUnichar
*status
);
1177 nsresult GetWebBrowser
(nsIWebBrowser
**aWebBrowser
);
1178 nsresult SetWebBrowser
(nsIWebBrowser
*aWebBrowser
);
1179 nsresult GetChromeFlags
(PRUint32
*aChromeFlags
);
1180 nsresult SetChromeFlags
(PRUint32 aChromeFlags
);
1181 nsresult DestroyBrowserWindow
();
1182 nsresult SizeBrowserTo
(PRInt32 aCX
, PRInt32 aCY
);
1183 nsresult ShowAsModal
();
1184 nsresult IsWindowModal
(PRBool
*_retval
);
1185 nsresult ExitModalEventLoop
(nsresult aStatus
);
1190 uuid(df31c120
-ded6
-11d1
-bd85
-00805f8ae3f4
)
1192 interface nsIDOMEventListener
: nsISupports
1194 nsresult HandleEvent
(nsIDOMEvent
*event
);
1199 uuid(1c773b30
-d1cf
-11d2
-bd95
-00805f8ae3f4
)
1201 interface nsIDOMEventTarget
: nsISupports
1203 nsresult AddEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
1204 nsresult RemoveEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
1205 nsresult DispatchEvent
(nsIDOMEvent
*evt
, PRBool
*_retval
);
1210 uuid(a66b7b80
-ff46
-bd97
-0080-5f8ae38add32
)
1212 interface nsIDOMEvent
: nsISupports
1214 nsresult GetType
(nsAString
*aType
);
1215 nsresult GetTarget
(nsIDOMEventTarget
**aTarget
);
1216 nsresult GetCurrentTarget
(nsIDOMEventTarget
**aCurrentTarget
);
1217 nsresult GetEventPhase
(PRUint16
*aEventPhase
);
1218 nsresult GetBubbles
(PRBool
*aBubbles
);
1219 nsresult GetCancelable
(PRBool
*aCancelable
);
1220 nsresult GetTimeStamp
(DOMTimeStamp
*aTimeStamp
);
1221 nsresult StopPropagation
();
1222 nsresult PreventDefault
();
1223 nsresult InitEvent
(const nsAString
*eventTypeArg
, PRBool canBubbleArg
, PRBool cancelableArg
);
1226 cpp_quote
("#define CONTEXT_NONE 0x00");
1227 cpp_quote
("#define CONTEXT_LINK 0x01");
1228 cpp_quote
("#define CONTEXT_IMAGE 0x02");
1229 cpp_quote
("#define CONTEXT_DOCUMENT 0x04");
1230 cpp_quote
("#define CONTEXT_TEXT 0x08");
1231 cpp_quote
("#define CONTEXT_INPUT 0x10");
1232 cpp_quote
("#define CONTEXT_BACKGROUND_IMAGE 0x20");
1236 uuid(3478b6b0
-3875-11d4
-94ef
-0020183bf181
)
1238 interface nsIContextMenuListener
: nsISupports
1240 nsresult OnShowContextMenu
(PRUint32 aContextFlags
, nsIDOMEvent
*aEvent
, nsIDOMNode
*aNode
);
1245 uuid(a6cf90c3
-15b3
-11d2
-932e-00805f8add32
)
1247 interface nsIDOMUIEvent
: nsIDOMEvent
1249 nsresult GetView
(nsIDOMAbstractView
**aView
);
1250 nsresult GetDetail
(PRInt32
*aDetail
);
1251 nsresult InitUIEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
1252 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
);
1257 uuid(ff751edc
-8b02
-aae7
-0010-8301838a3123
)
1259 interface nsIDOMMouseEvent
: nsIDOMUIEvent
1261 nsresult GetScreenX
(PRInt32
*aScreenX
);
1262 nsresult GetScreenY
(PRInt32
*aScreenY
);
1263 nsresult GetClientX
(PRInt32
*aClientX
);
1264 nsresult GetClientY
(PRInt32
*aClientY
);
1265 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
1266 nsresult GetShiftKey
(PRBool
*aShiftKey
);
1267 nsresult GetAltKey
(PRBool
*aAltKey
);
1268 nsresult GetMetaKey
(PRBool
*aMetaKey
);
1269 nsresult GetButton
(PRUint16
*aButton
);
1270 nsresult GetRelatedTarget
(nsIDOMEventTarget
* *aRelatedTarget
);
1271 nsresult InitMouseEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
1272 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
, PRInt32 screenXArg
, PRInt32 screenYArg
,
1273 PRInt32 clientXArg
, PRInt32 clientYArg
, PRBool ctrlKeyArg
, PRBool altKeyArg
,
1274 PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint16 buttonArg
,
1275 nsIDOMEventTarget
*relatedTargetArg
);
1280 uuid(028e0e6e
-8b01
-11d3
-aae7
-0010838a3123
)
1282 interface nsIDOMKeyEvent
: nsIDOMUIEvent
1284 nsresult GetCharCode
(PRUint32
*aCharCode
);
1285 nsresult GetKeyCode
(PRUint32
*aKeyCode
);
1286 nsresult GetAltKey
(PRBool
*aAltKey
);
1287 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
1288 nsresult GetShiftKey
(PRBool
*aShiftKey
);
1289 nsresult GetMetaKey
(PRBool
*aMetaKey
);
1290 nsresult InitKeyEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
,
1291 PRBool cancelableArg
, nsIDOMAbstractView
*viewArg
, PRBool ctrlKeyArg
,
1292 PRBool altKeyArg
, PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint32 keyCodeArg
,
1293 PRUint32 charCodeArg
);
1298 uuid(3e5432cd
-9568-4bd1
-8cbe
-d50aba110743
)
1300 interface nsIEmbeddingSiteWindow
: nsISupports
1302 nsresult SetDimensions
(PRUint32 flags
, PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
1303 nsresult GetDimensions
(PRUint32 flags
, PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
1304 nsresult SetFocus
();
1305 nsresult GetVisibility
(PRBool
*aVisibility
);
1306 nsresult SetVisibility
(PRBool aVisibility
);
1307 nsresult GetTitle
(PRUnichar
**aTitle
);
1308 nsresult SetTitle
(const PRUnichar
*aTitle
);
1309 nsresult GetSiteWindow
(void **aSiteWindow
);
1314 uuid(2417cbfe
-65ad
-48a6
-b4b6
-eb84db174392
)
1316 interface nsIComponentRegistrar
: nsISupports
1318 nsresult AutoRegister
(nsIFile
*aSpec
);
1319 nsresult AutoUnregister
(nsIFile
*aSpec
);
1320 nsresult RegisterFactory
(const nsCID
*aClass
, const char *aClassName
,
1321 const char *aContractID
, nsIFactory
*aFactory
);
1322 nsresult UnregisterFactory
(const nsCID
*aClass
, nsIFactory
*aFactory
);
1323 nsresult RegisterFactoryLocation
(const nsCID
*aClass
, const char *aClassName
,
1324 const char *aContractID
, nsIFile
*aFile
, const char *aLoaderStr
,
1326 nsresult UnregisterFactoryLocation
(const nsCID
*aClass
, nsIFile
*aFile
);
1327 nsresult IsCIDRegistered
(const nsCID
*aClass
, PRBool
*_retval
);
1328 nsresult IsContractIDRegistered
(const char *aContractID
, PRBool
*_retval
);
1329 nsresult EnumerateCIDs
(nsISimpleEnumerator
**_retval
);
1330 nsresult EnumerateContractIDs
(nsISimpleEnumerator
**_retval
);
1331 nsresult CIDToContractID
(const nsCID
*aClass
, char **_retval
);
1332 nsresult ContractIDToCID
(const char *aContractID
, nsCID
**_retval
);
1337 uuid(1630c61a
-325e-49ca
-8759-a31b16c47aa5
)
1339 interface nsIPromptService
: nsISupports
1341 nsresult Alert
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1342 const PRUnichar
*aText
);
1343 nsresult AlertCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1344 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
);
1345 nsresult Confirm
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1346 const PRUnichar
*aText
, PRBool
*_retval
);
1347 nsresult ConfirmCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1348 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
,
1350 nsresult ConfirmEx
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1351 const PRUnichar
*aText
, PRUint32 aButtonFlags
, const PRUnichar
*aButton0Title
,
1352 const PRUnichar
*aButton1Title
, const PRUnichar
*aButton2Title
,
1353 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRInt32
*_retval
);
1354 nsresult Prompt
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1355 const PRUnichar
*aText
, PRUnichar
**aValue
, const PRUnichar
*aCheckMsg
,
1356 PRBool
*aCheckState
, PRBool
*_retval
);
1357 nsresult PromptUsernameAndPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1358 const PRUnichar
*aText
, PRUnichar
**aUsername
, PRUnichar
**aPassword
,
1359 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRBool
*_retval
);
1360 nsresult PromptPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1361 const PRUnichar
*aText
, PRUnichar
**aPassword
, const PRUnichar
*aCheckMsg
,
1362 PRBool
*aCheckState
, PRBool
*_retval
);
1363 nsresult Select
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1364 const PRUnichar
*aText
, PRUint32 aCount
, const PRUnichar
**aSelectList
,
1365 PRInt32
*aOutSelection
, PRBool
*_retval
);
1370 uuid(b128a1e6
-44f3
-4331-8fbe
-5af360ff21ee
)
1372 interface nsITooltipTextProvider
: nsISupports
1374 nsresult GetNodeText
(nsIDOMNode
*aNode
, PRUnichar
**aText
, PRBool
*_retval
);
1379 uuid(02b0625a
-e7f3
-11d2
-9f5a
-006008a6efe9
)
1381 interface nsIProfile
: nsISupports
1383 nsresult GetProfileCount
(PRInt32
*aProfileCount
);
1384 nsresult GetProfileList
(PRUint32
*length
, PRUnichar
***profileNames
);
1385 nsresult ProfileExists
(const PRUnichar
*profileName
, PRBool
*_retval
);
1386 nsresult GetCurrentProfile
(PRUnichar
* *aCurrentProfile
);
1387 nsresult SetCurrentProfile
(const PRUnichar
* aCurrentProfile
);
1388 nsresult ShutDownCurrentProfile
(PRUint32 shutDownType
);
1389 nsresult CreateNewProfile
(const PRUnichar
*profileName
,
1390 const PRUnichar
*nativeProfileDir
, const PRUnichar
*langcode
,
1391 PRBool useExistingDir
);
1392 nsresult RenameProfile
(const PRUnichar
*oldName
, const PRUnichar
*newName
);
1393 nsresult DeleteProfile
(const PRUnichar
*name
, PRBool canDeleteFiles
);
1394 nsresult CloneProfile
(const PRUnichar
*profileName
);
1399 uuid(30465632-a777
-44cc
-90f9
-8145475ef999
)
1401 interface nsIWindowCreator
: nsISupports
1403 nsresult CreateChromeWindow
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
1404 nsIWebBrowserChrome
**_retval
);
1409 uuid(f673ec81
-a4b0
-11d6
-964b
-eb5a2bf216fc
)
1411 interface nsIWindowCreator2
: nsIWindowCreator
1413 nsresult CreateChromeWindow2
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
1414 PRUint32 contextFlags
, nsIURI
*uri
, PRBool
*cancel
,
1415 nsIWebBrowserChrome
**_retval
);
1420 uuid(002286a8
-494b
-43b3
-8ddd
-49e3fc50622b
)
1422 interface nsIWindowWatcher
: nsISupports
1424 nsresult OpenWindow
(nsIDOMWindow
*aParent
, const char *aUrl
, const char *aName
,
1425 const char *aFeatures
, nsISupports
*aArguments
, nsIDOMWindow
**_retval
);
1426 nsresult RegisterNotification
(nsIObserver
*aObserver
);
1427 nsresult UnregisterNotification
(nsIObserver
*aObserver
);
1428 nsresult GetWindowEnumerator
(nsISimpleEnumerator
**_retval
);
1429 nsresult GetNewPrompter
(nsIDOMWindow
*aParent
, nsIPrompt
**_retval
);
1430 nsresult GetNewAuthPrompter
(nsIDOMWindow
*aParent
, nsIAuthPrompt
**_retval
);
1431 nsresult SetWindowCreator
(nsIWindowCreator
*creator
);
1432 nsresult GetChromeForWindow
(nsIDOMWindow
*aWindow
, nsIWebBrowserChrome
**_retval
);
1433 nsresult GetWindowByName
(const PRUnichar
*aTargetName
, nsIDOMWindow
*aCurrentWindow
,
1434 nsIDOMWindow
**_retval
);
1435 nsresult GetActiveWindow
(nsIDOMWindow
**aActiveWindow
);
1436 nsresult SetActiveWindow
(nsIDOMWindow
*aActiveWindow
);
1441 uuid(d39fd2b4
-3978-45d2
-a4be
-ba448171b61b
)
1443 interface nsIEditingSession
: nsISupports
1445 nsresult GetEditorStatus
(PRUint32
*aEditorStatus
);
1446 nsresult MakeWindowEditable
(nsIDOMWindow
*window
, const char *aEditorType
,
1447 PRBool doAfterUriLoad
);
1448 nsresult WindowIsEditable
(nsIDOMWindow
*window
, PRBool
*_retval
);
1449 nsresult GetEditorForWindow
(nsIDOMWindow
*window
, nsIEditor
**_retval
);
1450 nsresult SetupEditorOnWindow
(nsIDOMWindow
*window
);
1451 nsresult TearDownEditorOnWindow
(nsIDOMWindow
*window
);
1452 nsresult SetEditorOnControllers
(nsIDOMWindow
*aWindow
, nsIEditor
*aEditor
);
1457 uuid(83f892cf
-7ed3
-490e-967a
-62640f3158e1
)
1459 interface nsICommandParams
: nsISupports
1461 nsresult GetValueType
(const char *name
, PRInt16
*_retval
);
1462 nsresult GetBooleanValue
(const char *name
, PRBool
*_retval
);
1463 nsresult GetLongValue
(const char *name
, PRInt32
*_retval
);
1464 nsresult GetDoubleValue
(const char *name
, double *_retval
);
1465 nsresult GetStringValue
(const char *name
, nsAString
*_retval
);
1466 nsresult GetCStringValue
(const char *name
, char **_retval
);
1467 nsresult GetISupportsValue
(const char *name
, nsISupports
**_retval
);
1468 nsresult SetBooleanValue
(const char *name
, PRBool value
);
1469 nsresult SetLongValue
(const char *name
, PRInt32 value
);
1470 nsresult SetDoubleValue
(const char *name
, double value
);
1471 nsresult SetStringValue
(const char *name
, const nsAString
*value
);
1472 nsresult SetCStringValue
(const char *name
, const char *value
);
1473 nsresult SetISupportsValue
(const char *name
, nsISupports
*value
);
1474 nsresult RemoveValue
(const char *name
);
1475 nsresult HasMoreElements
(PRBool
*_retval
);
1477 nsresult GetNext
(char **_retval
);
1482 uuid(080d2001
-f91e
-11d4
-a73c
-f9242928207c
)
1484 interface nsICommandManager
: nsISupports
1486 nsresult AddCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandToObserve
);
1487 nsresult RemoveCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandObserved
);
1488 nsresult IsCommandSupported
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
1489 nsresult IsCommandEnabled
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
1490 nsresult GetCommandState
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
,
1491 nsICommandParams
*aCommandParams
);
1492 nsresult DoCommand
(const char *aCommandName
, nsICommandParams
*aCommandParams
,
1493 nsIDOMWindow
*aTargetWindow
);
1498 uuid(d650439a
-ca29
-410d
-a906
-b0557fb62fcd
)
1500 interface nsIContentSerializer
: nsISupports
1502 nsresult Init
(PRUint32 flags
, PRUint32 aWrapColumn
, const char* aCharSet
, PRBool aIsCopying
);
1503 nsresult AppendText
(nsIDOMText
*aText
, PRInt32 aStartOffset
, PRInt32 aEndOffset
, nsAString
*aStr
);
1504 nsresult AppendCDATASection
(nsIDOMCDATASection
*aCDATASection
, PRInt32 aStartOffset
,
1505 PRInt32 aEndOffset
, nsAString
*aStr
);
1506 nsresult AppendProcessingInstruction
(nsIDOMProcessingInstruction
* aPI
, PRInt32 aStartOffset
,
1507 PRInt32 aEndOffset
, nsAString
*aStr
);
1508 nsresult AppendComment
(nsIDOMComment
*aComment
, PRInt32 aStartOffset
, PRInt32 aEndOffset
,
1510 nsresult AppendDoctype
(nsIDOMDocumentType
*aDoctype
, nsAString
*aStr
);
1511 nsresult AppendElementStart
(nsIDOMElement
*aElement
, PRBool aHasChildren
, nsAString
*aStr
);
1512 nsresult AppendElementEnd
(nsIDOMElement
*aElement
, nsAString
*aStr
);
1513 nsresult Flush
(nsAString
*aStr
);
1514 nsresult AppendDocumentStart
(nsIDOMDocument
*aDocument
, nsAString
*aStr
);
1519 * This is a private Wine interface that is implemented by our implementation
1520 * of nsIURI to store its owner.
1524 uuid(5088272e-900b
-11da
-c687
-000fea57f21a
)
1526 interface nsIWineURI
: nsIURI
1528 typedef struct NSContainer NSContainer
;
1530 nsresult GetNSContainer
(NSContainer
**aNSContainer
);
1531 nsresult SetNSContainer
(NSContainer
*aNSContainer
);
1532 nsresult GetMoniker
(IMoniker
**aMoniker
);
1533 nsresult SetMoniker
(IMoniker
*aMoniker
);
1534 nsresult GetIsDocumentURI
(PRBool
*aIsDocumentURI
);
1535 nsresult SetIsDocumentURI
(PRBool aIsDocumentURI
);