2 * Copyright 2005-2007 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 * This file is not an usual idl file. Interfaces in this file are XPCOM interfaces
22 * (NOT MSCOM!), but we generate the header file with WIDL compatibile with XPCOM,
26 cpp_quote
("#define GECKO_VERSION \"0.1.0\"");
27 cpp_quote
("#define GECKO_VERSION_STRING \"Wine Gecko \" GECKO_VERSION");
31 typedef HRESULT nsresult
;
32 typedef ULONG nsrefcnt
;
37 typedef REFIID nsIIDRef
;
38 typedef nsIIDRef nsCIDRef
;
40 typedef void** nsQIResult
;
41 typedef WCHAR PRUnichar
;
42 typedef ULONG PRUint32
;
44 typedef WORD PRUint16
;
45 typedef INT16 PRInt16
;
48 typedef LARGE_INTEGER PRInt64
;
49 typedef ULARGE_INTEGER PRUint64
;
50 typedef PRUint64 DOMTimeStamp
;
51 typedef PRUint32 nsLoadFlags
;
67 typedef nsCStringContainer nsACString
;
68 typedef nsStringContainer nsAString
;
70 interface nsIWebBrowserChrome
;
71 interface nsILoadGroup
;
73 interface nsIDOMDocument
;
74 interface nsIDOMEvent
;
80 uuid(00000000-0000-0000-c000
-000000000046)
84 nsresult QueryInterface
(nsIIDRef riid
, nsQIResult result
);
89 /* Currently we don't need a full declaration of these interfaces */
90 typedef nsISupports nsISHistory
;
91 typedef nsISupports nsIWidget
;
92 typedef nsISupports nsIDOMAbstractView
;
93 typedef nsISupports nsIHttpHeaderVisitor
;
94 typedef nsISupports nsIDOMBarProp
;
95 typedef nsISupports nsIDOMWindowCollection
;
96 typedef nsISupports nsIPrompt
;
97 typedef nsISupports nsIAuthPrompt
;
98 typedef nsISupports nsIDOMNamedNodeMap
;
99 typedef nsISupports nsIDOMAttr
;
100 typedef nsISupports nsIDOMDocumentType
;
101 typedef nsISupports nsIDOMDOMImplementation
;
102 typedef nsISupports nsIDOMCDATASection
;
103 typedef nsISupports nsIDOMProcessingInstruction
;
104 typedef nsISupports nsIDOMEntityReference
;
105 typedef nsISupports nsIDOMHTMLFormElement
;
106 typedef nsISupports nsIDOMHTMLOptionsCollection
;
107 typedef nsISupports nsIDOMHTMLCollection
;
108 typedef nsISupports nsIEditor
;
109 typedef nsISupports nsIWebProgressListener
;
110 typedef nsISupports nsIDOMCSSValue
;
111 typedef nsISupports nsIDOMCSSRule
;
112 typedef nsISupports nsIPrintSession
;
113 typedef nsISupports nsIControllerCommandTable
;
114 typedef nsISupports nsIPrincipal
;
115 typedef nsISupports nsIAtom
;
119 uuid(8bb35ed9
-e332
-462d
-9155-4a002ab5c958
)
122 interface nsIServiceManager
: nsISupports
124 nsresult GetService
(nsCIDRef aClass
, nsIIDRef aIID
, void **result
);
125 nsresult GetServiceByContractID
(const char *aContractID
, nsIIDRef aIID
, void **result
);
126 nsresult IsServiceInstantiated
(nsCIDRef aClass
, nsIIDRef aIID
, BOOL
*_retval
);
127 nsresult IsServiceInstantiatedByContractID
(const char *aContractID
, nsIIDRef aIID
, BOOL
*_retval
);
132 uuid(00000001-0000-0000-c000
-000000000046)
135 interface nsIFactory
: nsISupports
137 nsresult CreateInstance
(nsISupports
*aOuter
, const nsIID
*iid
, void **result
);
138 nsresult LockFactory
(PRBool lock
);
143 uuid(db242e01
-e4d9
-11d2
-9dde
-000064657374)
146 interface nsIObserver
: nsISupports
148 nsresult Observe
(nsISupports
*aSubject
, const char *aTopic
, const PRUnichar
*aData
);
153 uuid(a88e5a60
-205a
-4bb1
-94e1
-2628daf51eae
)
156 interface nsIComponentManager
: nsISupports
158 nsresult GetClassObject
(nsCIDRef aClass
, nsIIDRef aIID
, nsQIResult result
);
159 nsresult GetClassObjectByContractID
(const char *aContractID
, nsIIDRef aIID
, nsQIResult result
);
160 nsresult CreateInstance
(nsCIDRef aClass
, nsISupports
*aDelegate
, nsIIDRef aIID
,
162 nsresult CreateInstanceByContractID
(const char *aContractID
, nsISupports
*aDelegate
,
163 nsIIDRef aIID
, nsQIResult result
);
168 uuid(59e7e77a
-38e4
-11d4
-8cf5
-0060b0fc14a3
)
171 interface nsIMemory
: nsISupports
173 void *Alloc
(/*size_t*/ int size
);
174 void *Realloc
(void *_ptr
, /*size_t*/ int newSize
);
175 void Free
(void *_ptr
);
176 nsresult HeapMinimize
(PRBool immediate
);
177 nsresult IsLowMemory
(PRBool
*_retval
);
182 uuid(9188bc85
-f92e
-11d2
-81ef
-0060083a0bcf
)
185 interface nsIWeakReference
: nsISupports
187 nsresult QueryReferent
(const nsIID
*riid
, void **result
);
192 uuid(9188bc86
-f92e
-11d2
-81ef
-0060083a0bcf
)
195 interface nsISupportsWeakReference
: nsISupports
197 nsresult GetWeakReference
(nsIWeakReference
**_retval
);
202 uuid(033a1470
-8b2a
-11d3
-af88
-00a024ffc08c
)
205 interface nsIInterfaceRequestor
: nsISupports
207 nsresult GetInterface
(const nsIID
*riid
, void **result
);
212 uuid(d1899240
-f9d2
-11d2
-bdd6
-000064657374)
215 interface nsISimpleEnumerator
: nsISupports
217 nsresult HasMoreElements
(PRBool
*_retval
);
218 nsresult GetNext
(nsISupports
**_retval
);
223 uuid(114744d9
-c369
-456e
-b55a
-52fe52880d2d
)
226 interface nsIArray
: nsISupports
228 nsresult GetLength
(PRUint32
*aLength
);
229 nsresult QueryElementAt
(PRUint32 index
, const nsIID
*uuid, void **result
);
230 nsresult IndexOf
(PRUint32 startIndex
, nsISupports
*element
, PRUint32
*_retval
);
231 nsresult Enumerate
(nsISimpleEnumerator
**_retval
);
236 uuid(af059da0
-c85b
-40ec
-af07
-ae4bfdc192cc
)
239 interface nsIMutableArray
: nsIArray
241 nsresult AppendElement
(nsISupports
*element
, PRBool weak
);
242 nsresult RemoveElementAt
(PRUint32 index
);
243 nsresult InsertElementAt
(nsISupports
*element
, PRUint32 index
, PRBool weak
);
249 uuid(4d12e540
-83d7
-11d5
-90ed
-0010a4e73d9a
)
252 interface nsIVariant
: nsISupports
277 TYPE_WSTRING_SIZE_IS
,
285 nsresult GetDataType
(PRUint16
*aDataType
);
286 nsresult GetAsInt8
(PRUint8
*_retval
);
287 nsresult GetAsInt16
(PRInt16
*_retval
);
288 nsresult GetAsInt32
(PRInt32
*_retval
);
289 nsresult GetAsInt64
(PRInt64
*_retval
);
290 nsresult GetAsUint8
(PRUint8
*_retval
);
291 nsresult GetAsUint16
(PRUint16
*_retval
);
292 nsresult GetAsUint32
(PRUint32
*_retval
);
293 nsresult GetAsUint64
(PRUint64
*_retval
);
294 nsresult GetAsFloat
(float *_retval
);
295 nsresult GetAsDouble
(double *_retval
);
296 nsresult GetAsBool
(PRBool
*_retval
);
297 nsresult GetAsChar
(char *_retval
);
298 nsresult GetAsWChar
(PRUnichar
*_retval
);
299 nsresult GetAsID
(nsID
*retval);
300 nsresult GetAsAString
(nsAString
*_retval
);
301 nsresult GetAsDOMString
(nsAString
*_retval
);
302 nsresult GetAsACString
(nsACString
*_retval
);
303 nsresult GetAsAUTF8String
(nsACString
*_retval
);
304 nsresult GetAsString
(char **_retval
);
305 nsresult GetAsWString
(PRUnichar
**_retval
);
306 nsresult GetAsISupports
(nsISupports
**_retval
);
307 nsresult GetAsInterface
(nsIID
* *iid
, void **iface
);
308 nsresult GetAsArray
(PRUint16
*type
, nsIID
*iid
, PRUint32
*count
, void **ptr);
309 nsresult GetAsStringWithSize
(PRUint32
*size
, char **str
);
310 nsresult GetAsWStringWithSize
(PRUint32
*size
, PRUnichar
**str
);
315 uuid(5586a590
-8c82
-11d5
-90f3
-0010a4e73d9a
)
318 interface nsIWritableVariant
: nsIVariant
320 nsresult GetWritable
(PRBool
*aWritable
);
321 nsresult SetWritable
(PRBool aWritable
);
322 nsresult SetAsInt8
(PRUint8 aValue
);
323 nsresult SetAsInt16
(PRInt16 aValue
);
324 nsresult SetAsInt32
(PRInt32 aValue
);
325 nsresult SetAsInt64
(PRInt64 aValue
);
326 nsresult SetAsUint8
(PRUint8 aValue
);
327 nsresult SetAsUint16
(PRUint16 aValue
);
328 nsresult SetAsUint32
(PRUint32 aValue
);
329 nsresult SetAsUint64
(PRUint64 aValue
);
330 nsresult SetAsFloat
(float aValue
);
331 nsresult SetAsDouble
(double aValue
);
332 nsresult SetAsBool
(PRBool aValue
);
333 nsresult SetAsChar
(char aValue
);
334 nsresult SetAsWChar
(PRUnichar aValue
);
335 nsresult SetAsID
(const nsID
*aValue
);
336 nsresult SetAsAString
(const nsAString
*aValue
);
337 nsresult SetAsDOMString
(const nsAString
*aValue
);
338 nsresult SetAsACString
(const nsACString
*aValue
);
339 nsresult SetAsAUTF8String
(const nsACString
*aValue
);
340 nsresult SetAsString
(const char *aValue
);
341 nsresult SetAsWString
(const PRUnichar
*aValue
);
342 nsresult SetAsISupports
(nsISupports
*aValue
);
343 nsresult SetAsInterface
(const nsIID
*iid
, void *iface
);
344 nsresult SetAsArray
(PRUint16 type
, const nsIID
*iid
, PRUint32 count
, void *ptr);
345 nsresult SetAsStringWithSize
(PRUint32 size
, const char *str
);
346 nsresult SetAsWStringWithSize
(PRUint32 size
, const PRUnichar
*str
);
347 nsresult SetAsVoid
();
348 nsresult SetAsEmpty
();
349 nsresult SetAsEmptyArray
();
350 nsresult SetFromVariant
(nsIVariant
*aValue
);
355 uuid(fa9c7f6c
-61b3
-11d4
-9877-00c04fa0cf4a
)
358 interface nsIInputStream
: nsISupports
361 nsresult Available
(PRUint32
*_retval
);
362 nsresult Read
(char *aBuf
, PRUint32 aCount
, PRUint32
*_retval
);
363 nsresult ReadSegments
(nsresult
(*aWriter
)(nsIInputStream
*aInStream
,
364 void *aClosure
, const char *aFromSegment
, PRUint32 aToOffset
,
365 PRUint32 aCount
, PRUint32
*aWriteCount
),
366 void *aClosure
, PRUint32 aCount
, PRUint32
*_retval
);
367 nsresult IsNonBlocking
(PRBool
*_retval
);
372 uuid(450cd2d4
-f0fd
-424d
-b365
-b1251f80fd53
)
375 interface nsIStringInputStream
: nsIInputStream
377 nsresult SetData
(const char *data
, PRInt32 dataLen
);
378 nsresult AdoptData
(char *data
, PRInt32 dataLen
);
379 nsresult ShareData
(const char *data
, PRInt32 dataLen
);
384 uuid(07a22cc0
-0ce5
-11d3
-9331-00104ba0fd40
)
387 interface nsIURI
: nsISupports
389 nsresult GetSpec
(nsACString
*aSpec
);
390 nsresult SetSpec
(const nsACString
*aSpec
);
391 nsresult GetPrePath
(nsACString
*aPrePath
);
392 nsresult GetScheme
(nsACString
*aScheme
);
393 nsresult SetScheme
(const nsACString
*aScheme
);
394 nsresult GetUserPass
(nsACString
*aUserPass
);
395 nsresult SetUserPass
(const nsACString
*aUserPass
);
396 nsresult GetUsername
(nsACString
*aUsername
);
397 nsresult SetUsername
(const nsACString
*aUsername
);
398 nsresult GetPassword
(nsACString
*aPassword
);
399 nsresult SetPassword
(const nsACString
*aPassword
);
400 nsresult GetHostPort
(nsACString
*aHostPort
);
401 nsresult SetHostPort
(const nsACString
*aHostPort
);
402 nsresult GetHost
(nsACString
*aHost
);
403 nsresult SetHost
(const nsACString
*aHost
);
404 nsresult GetPort
(PRInt32
*aPort
);
405 nsresult SetPort
(PRInt32 aPort
);
406 nsresult GetPath
(nsACString
*aPath
);
407 nsresult SetPath
(const nsACString
*aPath
);
408 nsresult Equals
(nsIURI
*other
, PRBool
*_retval
);
409 nsresult SchemeIs
(const char *scheme
, PRBool
*_retval
);
410 nsresult Clone
(nsIURI
**_retval
);
411 nsresult Resolve
(const nsACString
*relativePath
, nsACString
*_retval
);
412 nsresult GetAsciiSpec
(nsACString
*aAsciiSpec
);
413 nsresult GetAsciiHost
(nsACString
*aAsciiHost
);
414 nsresult GetOriginCharset
(nsACString
*aOriginCharset
);
419 uuid(ef6bfbd2
-fd46
-48d8
-96b7
-9f8f0fd387fe
)
422 interface nsIRequest
: nsISupports
424 nsresult GetName
(nsACString
*aName
);
425 nsresult IsPending
(PRBool
*_retval
);
426 nsresult GetStatus
(nsresult
*aStatus
);
427 nsresult Cancel
(nsresult aStatus
);
430 nsresult GetLoadGroup
(nsILoadGroup
**aLoadGroup
);
431 nsresult SetLoadGroup
(nsILoadGroup
*aLoadGroup
);
432 nsresult GetLoadFlags
(nsLoadFlags
*aLoadFlags
);
433 nsresult SetLoadFlags
(nsLoadFlags aLoadFlags
);
438 uuid(fd91e2e0
-1481-11d3
-9333-00104ba0fd40
)
441 interface nsIRequestObserver
: nsISupports
443 nsresult OnStartRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
444 nsresult OnStopRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatusCode
);
449 uuid(1a637020
-1482-11d3
-9333-00104ba0fd40
)
452 interface nsIStreamListener
: nsIRequestObserver
454 nsresult OnDataAvailable
(nsIRequest
*aRequest
, nsISupports
*aContext
,
455 nsIInputStream
*aInputStream
, PRUint32 aOffset
, PRUint32 aCount
);
460 uuid(3de0a31c
-feaf
-400f
-9f1e
-4ef71f8b20cc
)
463 interface nsILoadGroup
: nsIRequest
465 nsresult GetGroupObserver
(nsIRequestObserver
**aGroupObserver
);
466 nsresult SetGroupObserver
(nsIRequestObserver
*aGroupObserver
);
467 nsresult GetDefaultLoadRequest
(nsIRequest
**aDefaultLoadRequest
);
468 nsresult SetDefaultLoadRequest
(nsIRequest
*aDefaultLoadRequest
);
469 nsresult AddRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
);
470 nsresult RemoveRequest
(nsIRequest
*aRequest
, nsISupports
*aContext
, nsresult aStatus
);
471 nsresult GetRequests
(nsISimpleEnumerator
**aRequests
);
472 nsresult GetActiveCount
(PRUint32
*aActiveCount
);
473 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
474 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
479 uuid(c63a055a
-a676
-4e71
-bf3c
-6cfa11082018
)
482 interface nsIChannel
: nsIRequest
484 nsresult GetOriginalURI
(nsIURI
**aOriginalURI
);
485 nsresult SetOriginalURI
(nsIURI
*aOriginalURI
);
486 nsresult GetURI
(nsIURI
**aURI
);
487 nsresult GetOwner
(nsISupports
**aOwner
);
488 nsresult SetOwner
(nsISupports
*aOwner
);
489 nsresult GetNotificationCallbacks
(nsIInterfaceRequestor
**aNotificationCallbacks
);
490 nsresult SetNotificationCallbacks
(nsIInterfaceRequestor
*aNotificationCallbacks
);
491 nsresult GetSecurityInfo
(nsISupports
**aSecurityInfo
);
492 nsresult GetContentType
(nsACString
*aContentType
);
493 nsresult SetContentType
(const nsACString
*aContentType
);
494 nsresult GetContentCharset
(nsACString
*aContentCharset
);
495 nsresult SetContentCharset
(const nsACString
*aContentCharset
);
496 nsresult GetContentLength
(PRInt32
*aContentLength
);
497 nsresult SetContentLength
(PRInt32 aContentLength
);
498 nsresult Open
(nsIInputStream
**_retval
);
499 nsresult AsyncOpen
(nsIStreamListener
*aListener
, nsISupports
*aContext
);
504 uuid(9277fe09
-f0cc
-4cd9
-bbce
-581dd94b0260
)
507 interface nsIHttpChannel
: nsIChannel
509 nsresult GetRequestMethod
(nsACString
*aRequestMethod
);
510 nsresult SetRequestMethod
(const nsACString
*aRequestMethod
);
511 nsresult GetReferrer
(nsIURI
**aReferrer
);
512 nsresult SetReferrer
(nsIURI
*aReferrer
);
513 nsresult GetRequestHeader
(const nsACString
*aHeader
, nsACString
*_retval
);
514 nsresult SetRequestHeader
(const nsACString
*aHeader
, const nsACString
*aValue
, PRBool aMerge
);
515 nsresult VisitRequestHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
516 nsresult GetAllowPipelining
(PRBool
*aAllowPipelining
);
517 nsresult SetAllowPipelining
(PRBool aAllowPipelining
);
518 nsresult GetRedirectionLimit
(PRUint32
*aRedirectionLimit
);
519 nsresult SetRedirectionLimit
(PRUint32 aRedirectionLimit
);
520 nsresult GetResponseStatus
(PRUint32
*aResponseStatus
);
521 nsresult GetResponseStatusText
(nsACString
*aResponseStatusText
);
522 nsresult GetRequestSucceeded
(PRBool
*aRequestSucceeded
);
523 nsresult GetResponseHeader
(const nsACString
*header
, nsACString
*_retval
);
524 nsresult SetResponseHeader
(const nsACString
*header
, const nsACString
*value
, PRBool merge
);
525 nsresult VisitResponseHeaders
(nsIHttpHeaderVisitor
*aVisitor
);
526 nsresult IsNoStoreResponse
(PRBool
*_retval
);
527 nsresult IsNoCacheResponse
(PRBool
*_retval
);
532 uuid(ddf633d8
-e9a4
-439d
-ad88
-de636fd9bb75
)
535 interface nsIUploadChannel
: nsISupports
537 nsresult SetUploadStream
(nsIInputStream
*aStream
, const nsACString
*aContentType
,
538 PRInt32 aContentLength
);
539 nsresult GetUploadStream
(nsIInputStream
**aUploadStream
);
544 uuid(a6cf90be
-15b3
-11d2
-932e-00805f8add32
)
547 interface nsIDOMCSSStyleDeclaration
: nsISupports
549 nsresult GetCssText
(nsAString
*aCssText
);
550 nsresult SetCssText
(const nsAString
*aCssText
);
551 nsresult GetPropertyValue
(const nsAString
*propertyName
, nsAString
*_retval
);
552 nsresult GetPropertyCSSValue
(const nsAString
*propertyName
, nsIDOMCSSValue
**_retval
);
553 nsresult RemoveProperty
(const nsAString
*propertyName
, nsAString
*_retval
);
554 nsresult GetPropertyPriority
(const nsAString
*propertyName
, nsAString
*_retval
);
555 nsresult SetProperty
(const nsAString
*propertyName
, const nsAString
*value
,
556 const nsAString
*priority
);
557 nsresult GetLength
(PRUint32
*aLength
);
558 nsresult Item
(PRUint32 index
, nsAString
*_retval
);
559 nsresult GetParentRule
(nsIDOMCSSRule
**aParentRule
);
564 uuid(a6cf907d
-15b3
-11d2
-932e-00805f8add32
)
567 interface nsIDOMNodeList
: nsISupports
569 nsresult Item
(PRUint32 index
, nsIDOMNode
**_retval
);
570 nsresult GetLength
(PRUint32
*aLength
);
575 uuid(a6cf907c
-15b3
-11d2
-932e-00805f8add32
)
578 interface nsIDOMNode
: nsISupports
584 CDATA_SELECTION_NODE
= 4,
585 ENTITY_REFERENCE_NODE
= 5,
587 PROCESSING_INSTRUCTION_NODE
= 7,
590 DOCUMENT_TYPE_NODE
= 10,
591 DOCUMENT_FRAGMENT_NODE
= 11,
595 nsresult GetNodeName
(nsAString
*aNodeName
);
596 nsresult GetNodeValue
(nsAString
*aNodeValue
);
597 nsresult SetNodeValue
(const nsAString
*aNodeValue
);
598 nsresult GetNodeType
(PRUint16
*aNodeType
);
599 nsresult GetParentNode
(nsIDOMNode
**aParentNode
);
600 nsresult GetChildNodes
(nsIDOMNodeList
**aChildNodes
);
601 nsresult GetFirstChild
(nsIDOMNode
**aFirstChild
);
602 nsresult GetLastChild
(nsIDOMNode
**aLastChild
);
603 nsresult GetPreviousSibling
(nsIDOMNode
**aPreviousSibling
);
604 nsresult GetNextSibling
(nsIDOMNode
**aNextSibling
);
605 nsresult GetAttributes
(nsIDOMNamedNodeMap
**aAttributes
);
606 nsresult GetOwnerDocument
(nsIDOMDocument
**aOwnerDocument
);
607 nsresult InsertBefore
(nsIDOMNode
*newChild
, nsIDOMNode
*refChild
, nsIDOMNode
**_retval
);
608 nsresult ReplaceChild
(nsIDOMNode
*newChild
, nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
609 nsresult RemoveChild
(nsIDOMNode
*oldChild
, nsIDOMNode
**_retval
);
610 nsresult AppendChild
(nsIDOMNode
*newChild
, nsIDOMNode
**_retval
);
611 nsresult HasChildNodes
(PRBool
*_retval
);
612 nsresult CloneNode
(PRBool deep
, nsIDOMNode
**_retval
);
613 nsresult Normalize
();
614 nsresult IsSupported
(const nsAString
*feature
, const nsAString
*version, PRBool
*_retval
);
615 nsresult GetNamespaceURI
(nsAString
*aNamespaceURI
);
616 nsresult GetPrefix
(nsAString
*aPrefix
);
617 nsresult SetPrefix
(const nsAString
*aPrefix
);
618 nsresult GetLocalName
(nsAString
*aLocalName
);
619 nsresult HasAttributes
(PRBool
*_retval
);
624 uuid(a6cf9078
-15b3
-11d2
-932e-00805f8add32
)
627 interface nsIDOMElement
: nsIDOMNode
629 nsresult GetTagName
(nsAString
*aTagName
);
630 nsresult GetAttribute
(const nsAString
*name
, nsAString
*_retval
);
631 nsresult SetAttribute
(const nsAString
*name
, const nsAString
*value
);
632 nsresult RemoveAttribute
(const nsAString
*name
);
633 nsresult GetAttributeNode
(const nsAString
*name
, nsIDOMAttr
**_retval
);
634 nsresult SetAttributeNode
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
635 nsresult RemoveAttributeNode
(nsIDOMAttr
*oldAttr
, nsIDOMAttr
**_retval
);
636 nsresult GetElementsByTagName
(const nsAString
*name
, nsIDOMNodeList
**_retval
);
637 nsresult GetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
639 nsresult SetAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
640 const nsAString
*value
);
641 nsresult RemoveAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
);
642 nsresult GetAttributeNodeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
643 nsIDOMAttr
**_retval
);
644 nsresult SetAttributeNodeNS
(nsIDOMAttr
*newAttr
, nsIDOMAttr
**_retval
);
645 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
646 nsIDOMNodeList
**_retval
);
647 nsresult HasAttribute
(const nsAString
*name
, PRBool
*_retval
);
648 nsresult HasAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
654 uuid(99715845-95fc
-4a56
-aa53
-214b65c26e22
)
657 interface nsIDOMElementCSSInlineStyle
: nsISupports
659 nsresult GetStyle
(nsIDOMCSSStyleDeclaration
**aStyle
);
662 cpp_quote
("#undef GetClassName");
666 uuid(a6cf9085
-15b3
-11d2
-932e-00805f8add32
)
669 interface nsIDOMHTMLElement
: nsIDOMElement
671 nsresult GetId
(nsAString
*aId
);
672 nsresult SetId
(const nsAString
*aId
);
673 nsresult GetTitle
(nsAString
*aTitle
);
674 nsresult SetTitle
(const nsAString
*aTitle
);
675 nsresult GetLang
(nsAString
*aLang
);
676 nsresult SetLang
(const nsAString
*aLang
);
677 nsresult GetDir
(nsAString
*aDir
);
678 nsresult SetDir
(const nsAString
*aDir
);
679 nsresult GetClassName
(nsAString
*aClassName
);
680 nsresult SetClassName
(const nsAString
*aClassName
);
685 uuid(da83b2ec
-8264-4410-8496-ada3acd2ae42
)
688 interface nsIDOMNSHTMLElement
: nsISupports
690 nsresult GetOffsetTop
(PRInt32
*aOffsetTop
);
691 nsresult GetOffsetLeft
(PRInt32
*aOffsetLeft
);
692 nsresult GetOffsetWidth
(PRInt32
*aOffsetWidth
);
693 nsresult GetOffsetHeight
(PRInt32
*aOffsetHeight
);
694 nsresult GetOffsetParent
(nsIDOMElement
**aOffsetParent
);
695 nsresult GetInnerHTML
(nsAString
*aInnerHTML
);
696 nsresult SetInnerHTML
(const nsAString
*aInnerHTML
);
697 nsresult GetScrollTop
(PRInt32
*aScrollTop
);
698 nsresult SetScrollTop
(PRInt32 aScrollTop
);
699 nsresult GetScrollLeft
(PRInt32
*aScrollLeft
);
700 nsresult SetScrollLeft
(PRInt32 aScrollLeft
);
701 nsresult GetScrollHeight
(PRInt32
*aScrollHeight
);
702 nsresult GetScrollWidth
(PRInt32
*aScrollWidth
);
703 nsresult GetClientHeight
(PRInt32
*aClientHeight
);
704 nsresult GetClientWidth
(PRInt32
*aClientWidth
);
705 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
706 nsresult SetTabIndex
(PRInt32 aTabIndex
);
709 nsresult ScrollIntoView
(PRBool top
);
714 uuid(a6cf9072
-15b3
-11d2
-932e-00805f8add32
)
717 interface nsIDOMCharacterData
: nsIDOMNode
719 nsresult GetData
(nsAString
*aData
);
720 nsresult SetData
(const nsAString
*aData
);
721 nsresult GetLength
(PRUint32
*aLength
);
722 nsresult SubstringData
(PRUint32 offset
, PRUint32 count
, nsAString
*_retval
);
723 nsresult AppendData
(const nsAString
*arg
);
724 nsresult InsertData
(PRUint32 offset
, const nsAString
*arg
);
725 nsresult DeleteData
(PRUint32 offset
, PRUint32 count
);
726 nsresult ReplaceData
(PRUint32 offset
, PRUint32 count
, const nsAString
*arg
);
731 uuid(a6cf9082
-15b3
-11d2
-932e-00805f8add32
)
734 interface nsIDOMText
: nsIDOMCharacterData
736 nsresult SplitText
(PRUint32 offset
, nsIDOMText
**_retval
);
741 uuid(a6cf9073
-15b3
-11d2
-932e-00805f8add32
)
744 interface nsIDOMComment
: nsIDOMCharacterData
750 uuid(a6cf9076
-15b3
-11d2
-932e-00805f8add32
)
753 interface nsIDOMDocumentFragment
: nsIDOMNode
759 uuid(a6cf9075
-15b3
-11d2
-932e-00805f8add32
)
762 interface nsIDOMDocument
: nsIDOMNode
764 nsresult GetDoctype
(nsIDOMDocumentType
**aDoctype
);
765 nsresult GetImplementation
(nsIDOMDOMImplementation
**aImplementation
);
766 nsresult GetDocumentElement
(nsIDOMElement
**aDocumentElement
);
767 nsresult CreateElement
(const nsAString
*tagName
, nsIDOMElement
**_retval
);
768 nsresult CreateDocumentFragment
(nsIDOMDocumentFragment
**_retval
);
769 nsresult CreateTextNode
(const nsAString
*data
, nsIDOMText
**_retval
);
770 nsresult CreateComment
(const nsAString
*data
, nsIDOMComment
**_retval
);
771 nsresult CreateCDATASection
(const nsAString
*data
, nsIDOMCDATASection
**_retval
);
772 nsresult CreateProcessingInstruction
(const nsAString
*target
, const nsAString
*data
,
773 nsIDOMProcessingInstruction
**_retval
);
774 nsresult CreateAttribute
(const nsAString
*name
, nsIDOMAttr
**_retval
);
775 nsresult CreateEntityReference
(const nsAString
*name
, nsIDOMEntityReference
**_retval
);
776 nsresult GetElementsByTagName
(const nsAString
*tagname
, nsIDOMNodeList
**_retval
);
777 nsresult ImportNode
(nsIDOMNode
*importedNode
, PRBool deep
, nsIDOMNode
**_retval
);
778 nsresult CreateElementNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
779 nsIDOMElement
**_retval
);
780 nsresult CreateAttributeNS
(const nsAString
*namespaceURI
, const nsAString
*qualifiedName
,
781 nsIDOMAttr
**_retval
);
782 nsresult GetElementsByTagNameNS
(const nsAString
*namespaceURI
, const nsAString
*localName
,
783 nsIDOMNodeList
**_retval
);
784 nsresult GetElementById
(const nsAString
*elementId
, nsIDOMElement
**_retval
);
789 uuid(a6cf9084
-15b3
-11d2
-932e-00805f8add32
)
792 interface nsIDOMHTMLDocument
: nsIDOMDocument
794 nsresult GetTitle
(nsAString
*aTitle
);
795 nsresult SetTitle
(const nsAString
*aTitle
);
796 nsresult GetReferrer
(nsAString
*aReferrer
);
797 nsresult GetDomain
(nsAString
*aDomain
);
798 nsresult GetURL
(nsAString
*aURL
);
799 nsresult GetBody
(nsIDOMHTMLElement
**aBody
);
800 nsresult SetBody
(nsIDOMHTMLElement
*aBody
);
801 nsresult GetImages
(nsIDOMHTMLCollection
**aImages
);
802 nsresult GetApplets
(nsIDOMHTMLCollection
**aApplets
);
803 nsresult GetLinks
(nsIDOMHTMLCollection
**aLinks
);
804 nsresult GetForms
(nsIDOMHTMLCollection
**aForms
);
805 nsresult GetAnchors
(nsIDOMHTMLCollection
**aAnchors
);
806 nsresult GetCookie
(nsAString
*aCookie
);
807 nsresult SetCookie
(const nsAString
*aCookie
);
810 nsresult Write
(const nsAString
*text
);
811 nsresult Writeln
(const nsAString
*text
);
812 nsresult GetElementsByName
(const nsAString
*elementName
, nsIDOMNodeList
**_retval
);
817 uuid(a6cf90ce
-15b3
-11d2
-932e-00805f8add32
)
820 interface nsIDOMRange
: nsISupports
822 nsresult GetStartContainer
(nsIDOMNode
**aStartContainer
);
823 nsresult GetStartOffset
(PRInt32
*aStartOffset
);
824 nsresult GetEndContainer
(nsIDOMNode
**aEndContainer
);
825 nsresult GetEndOffset
(PRInt32
*aEndOffset
);
826 nsresult GetCollapsed
(PRBool
*aCollapsed
);
827 nsresult GetCommonAncestorContainer
(nsIDOMNode
**aCommonAncestorContainer
);
828 nsresult SetStart
(nsIDOMNode
*refNode
, PRInt32 offset
);
829 nsresult SetEnd
(nsIDOMNode
*refNode
, PRInt32 offset
);
830 nsresult SetStartBefore
(nsIDOMNode
*refNode
);
831 nsresult SetStartAfter
(nsIDOMNode
*refNode
);
832 nsresult SetEndBefore
(nsIDOMNode
*refNode
);
833 nsresult SetEndAfter
(nsIDOMNode
*refNode
);
834 nsresult Collapse
(PRBool toStart
);
835 nsresult SelectNode
(nsIDOMNode
*refNode
);
836 nsresult SelectNodeContents
(nsIDOMNode
*refNode
);
837 nsresult CompareBoundaryPoints
(PRUint16 how
, nsIDOMRange
*sourceRange
, PRInt16
*_retval
);
838 nsresult DeleteContents
();
839 nsresult ExtractContents
(nsIDOMDocumentFragment
**_retval
);
840 nsresult CloneContents
(nsIDOMDocumentFragment
**_retval
);
841 nsresult InsertNode
(nsIDOMNode
*newNode
);
842 nsresult SurroundContents
(nsIDOMNode
*newParent
);
843 nsresult CloneRange
(nsIDOMRange
**_retval
);
844 nsresult ToString
(nsAString
*_retval
);
850 uuid(a6cf90f2
-15b3
-11d2
-932e-00805f8add32
)
852 interface nsIDOMNSRange
: nsISupports
854 nsresult CreateContextualFragment
([in] const nsAString
*fragment
, [out] nsIDOMDocumentFragment
**_retval
);
855 nsresult IsPointInRange
([in] nsIDOMNode
*parent
, [in] PRInt32 offset
, [out] PRBool
*_retval
);
856 nsresult ComparePoint
([in] nsIDOMNode
*parent
, [in] PRInt32 offset
, [out] PRInt16
*_retval
);
857 nsresult IntersectsNode
([in] nsIDOMNode
*n
, [out] PRBool
*_retval
);
858 nsresult CompareNode
([in] nsIDOMNode
*n
, [out] PRUint16
*_retval
);
865 uuid(7b9badc6
-c9bc
-447a
-8670-dbd195aed24b
)
868 interface nsIDOMDocumentRange
: nsISupports
870 nsresult CreateRange
(nsIDOMRange
**_retval
);
875 uuid(b2c7ed59
-8634-4352-9e37
-5484c8b6e4e1
)
878 interface nsISelection
: nsISupports
880 nsresult GetAnchorNode
(nsIDOMNode
**aAnchorNode
);
881 nsresult GetAnchorOffset
(PRInt32
*aAnchorOffset
);
882 nsresult GetFocusNode
(nsIDOMNode
**aFocusNode
);
883 nsresult GetFocusOffset
(PRInt32
*aFocusOffset
);
884 nsresult GetIsCollapsed
(PRBool
*aIsCollapsed
);
885 nsresult GetRangeCount
(PRInt32
*aRangeCount
);
886 nsresult GetRangeAt
(PRInt32 index
, nsIDOMRange
**_retval
);
887 nsresult Collapse
(nsIDOMNode
*parentNode
, PRInt32 offset
);
888 nsresult Extend
(nsIDOMNode
*parentNode
, PRInt32 offset
);
889 nsresult CollapseToStart
();
890 nsresult CollapseToEnd
();
891 nsresult ContainsNode
(nsIDOMNode
*node
, PRBool entirelyContained
, PRBool
*_retval
);
892 nsresult SelectAllChildren
(nsIDOMNode
*parentNode
);
893 nsresult AddRange
(nsIDOMRange
*range);
894 nsresult RemoveRange
(nsIDOMRange
*range);
895 nsresult RemoveAllRanges
();
896 nsresult DeleteFromDocument
();
897 nsresult SelectionLanguageChange
(PRBool langRTL
);
898 nsresult ToString
(PRUnichar
**_retval
);
903 uuid(a6cf906b
-15b3
-11d2
-932e-00805f8add32
)
906 interface nsIDOMWindow
: nsISupports
908 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
909 nsresult GetParent
(nsIDOMWindow
**aParent
);
910 nsresult GetTop
(nsIDOMWindow
**aTop
);
911 nsresult GetScrollbars
(nsIDOMBarProp
**aScrollbars
);
912 nsresult GetFrames
(nsIDOMWindowCollection
**aFrames
);
913 nsresult GetName
(nsAString
*aName
);
914 nsresult SetName
(const nsAString
*aName
);
915 nsresult GetTextZoom
(float *aTextZoom
);
916 nsresult SetTextZoom
(float aTextZoom
);
917 nsresult GetScrollX
(PRInt32
*aScrollX
);
918 nsresult GetScrollY
(PRInt32
*aScrollY
);
919 nsresult ScrollTo
(PRInt32 xScroll
, PRInt32 yScroll
);
920 nsresult ScrollBy
(PRInt32 xScrollDif
, PRInt32 yScrollDif
);
921 nsresult GetSelection
(nsISelection
**_retval
);
922 nsresult ScrollByLines
(PRInt32 numLines
);
923 nsresult ScrollByPages
(PRInt32 numPages
);
924 nsresult SizeToContent
();
929 uuid(a6cf908e
-15b3
-11d2
-932e-00805f8add32
)
932 interface nsIDOMHTMLBodyElement
: nsIDOMHTMLElement
934 nsresult GetALink
(nsAString
*aALink
);
935 nsresult SetALink
(const nsAString
*aALink
);
936 nsresult GetBackground
(nsAString
*aBackground
);
937 nsresult SetBackground
(const nsAString
*aBackground
);
938 nsresult GetBgColor
(nsAString
*aBgColor
);
939 nsresult SetBgColor
(const nsAString
*aBgColor
);
940 nsresult GetLink
(nsAString
*aLink
);
941 nsresult SetLink
(const nsAString
*aLink
);
942 nsresult GetText
(nsAString
*aText
);
943 nsresult SetText
(const nsAString
*aText
);
944 nsresult GetVLink
(nsAString
*aVLink
);
945 nsresult SetVLink
(const nsAString
*aVLink
);
950 uuid(a6cf9093
-15b3
-11d2
-932e-00805f8add32
)
953 interface nsIDOMHTMLInputElement
: nsIDOMHTMLElement
955 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
956 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
957 nsresult GetDefaultChecked
(PRBool
*aDefaultChecked
);
958 nsresult SetDefaultChecked
(PRBool aDefaultChecked
);
959 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
960 nsresult GetAccept
(nsAString
*aAccept
);
961 nsresult SetAccept
(const nsAString
*aAccept
);
962 nsresult GetAccessKey
(nsAString
*aAccessKey
);
963 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
964 nsresult GetAlign
(nsAString
*aAlign
);
965 nsresult SetAlign
(const nsAString
*aAlign
);
966 nsresult GetAlt
(nsAString
*aAlt
);
967 nsresult SetAlt
(const nsAString
*aAlt
);
968 nsresult GetChecked
(PRBool
*aChecked
);
969 nsresult SetChecked
(PRBool aChecked
);
970 nsresult GetDisabled
(PRBool
*aDisabled
);
971 nsresult SetDisabled
(PRBool aDisabled
);
972 nsresult GetMaxLength
(PRInt32
*aMaxLength
);
973 nsresult SetMaxLength
(PRInt32 aMaxLength
);
974 nsresult GetName
(nsAString
*aName
);
975 nsresult SetName
(const nsAString
*aName
);
976 nsresult GetReadOnly
(PRBool
*aReadOnly
);
977 nsresult SetReadOnly
(PRBool aReadOnly
);
978 nsresult GetSize
(PRUint32
*aSize
);
979 nsresult SetSize
(PRUint32 aSize
);
980 nsresult GetSrc
(nsAString
*aSrc
);
981 nsresult SetSrc
(const nsAString
*aSrc
);
982 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
983 nsresult SetTabIndex
(PRInt32 aTabIndex
);
984 nsresult GetType
(nsAString
*aType
);
985 nsresult SetType
(const nsAString
*aType
);
986 nsresult GetUseMap
(nsAString
*aUseMap
);
987 nsresult SetUseMap
(const nsAString
*aUseMap
);
988 nsresult GetValue
(nsAString
*aValue
);
989 nsresult SetValue
(const nsAString
*aValue
);
998 uuid(a6cf9090
-15b3
-11d2
-932e-00805f8add32
)
1001 interface nsIDOMHTMLSelectElement
: nsIDOMHTMLElement
1003 nsresult GetType
(nsAString
*aType
);
1004 nsresult GetSelectedIndex
(PRInt32
*aSelectedIndex
);
1005 nsresult SetSelectedIndex
(PRInt32 aSelectedIndex
);
1006 nsresult GetValue
(nsAString
*aValue
);
1007 nsresult SetValue
(const nsAString
*aValue
);
1008 nsresult GetLength
(PRUint32
*aLength
);
1009 nsresult SetLength
(PRUint32 aLength
);
1010 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1011 nsresult GetOptions
(nsIDOMHTMLOptionsCollection
**aOptions
);
1012 nsresult GetDisabled
(PRBool
*aDisabled
);
1013 nsresult SetDisabled
(PRBool aDisabled
);
1014 nsresult GetMultiple
(PRBool
*aMultiple
);
1015 nsresult SetMultiple
(PRBool aMultiple
);
1016 nsresult GetName
(nsAString
*aName
);
1017 nsresult SetName
(const nsAString
*aName
);
1018 nsresult GetSize
(PRInt32
*aSize
);
1019 nsresult SetSize
(PRInt32 aSize
);
1020 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1021 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1022 nsresult Add
(nsIDOMHTMLElement
*element
, nsIDOMHTMLElement
*before
);
1023 nsresult Remove
(PRInt32 index
);
1030 uuid(a6cf9094
-15b3
-11d2
-932e-00805f8add32
)
1033 interface nsIDOMHTMLTextAreaElement
: nsIDOMHTMLElement
1035 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
1036 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
1037 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1038 nsresult GetAccessKey
(nsAString
*aAccessKey
);
1039 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
1040 nsresult GetCols
(PRInt32
*aCols
);
1041 nsresult SetCols
(PRInt32 aCols
);
1042 nsresult GetDisabled
(PRBool
*aDisabled
);
1043 nsresult SetDisabled
(PRBool aDisabled
);
1044 nsresult GetName
(nsAString
*aName
);
1045 nsresult SetName
(const nsAString
*aName
);
1046 nsresult GetReadOnly
(PRBool
*aReadOnly
);
1047 nsresult SetReadOnly
(PRBool aReadOnly
);
1048 nsresult GetRows
(PRInt32
*aRows
);
1049 nsresult SetRows
(PRInt32 aRows
);
1050 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1051 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1052 nsresult GetType
(nsAString
*aType
);
1053 nsresult GetValue
(nsAString
*aValue
);
1054 nsresult SetValue
(const nsAString
*aValue
);
1062 uuid(94928ab3
-8b63
-11d3
-989d
-001083010e9b
)
1065 interface nsIURIContentListener
: nsISupports
1067 nsresult OnStartURIOpen
(nsIURI
*aURI
, PRBool
*_retval
);
1068 nsresult DoContent
(const char *aContentType
, PRBool aIsContentPreferred
, nsIRequest
*aRequest
,
1069 nsIStreamListener
**aContentHandler
, PRBool
*_retval
);
1070 nsresult IsPreferred
(const char *aContentType
, char **aDesiredContentType
, PRBool
*_retval
);
1071 nsresult CanHandleContent
(const char *aContentType
, PRBool aIsContentPreferred
,
1072 char **aDesiredContentType
, PRBool
*_retval
);
1073 nsresult GetLoadCookie
(nsISupports
**aLoadCookie
);
1074 nsresult SetLoadCookie
(nsISupports
*aLoadCookie
);
1075 nsresult GetParentContentListener
(nsIURIContentListener
**aParentContentListener
);
1076 nsresult SetParentContentListener
(nsIURIContentListener
*aParentContentListener
);
1081 uuid(44b78386
-1dd2
-11b2
-9ad2
-e4eee2ca1916
)
1084 interface nsITooltipListener
: nsISupports
1086 nsresult OnShowTooltip
(PRInt32 aXCoords
, PRInt32 aYCoords
, const PRUnichar
*aTipText
);
1087 nsresult OnHideTooltip
();
1092 uuid(69e5df00
-7b8b
-11d3
-af61
-00a024ffc08c
)
1095 interface nsIWebBrowser
: nsISupports
1097 nsresult AddWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
1098 nsresult RemoveWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
1099 nsresult GetContainerWindow
(nsIWebBrowserChrome
**aContainerWindow
);
1100 nsresult SetContainerWindow
(nsIWebBrowserChrome
*aContainerWindow
);
1101 nsresult GetParentURIContentListener
(nsIURIContentListener
**aParentURIContentListener
);
1102 nsresult SetParentURIContentListener
(nsIURIContentListener
*aParentURIContentListener
);
1103 nsresult GetContentDOMWindow
(nsIDOMWindow
**aContentDOMWindow
);
1106 cpp_quote
("#define SETUP_IS_CHROME_WRAPPER 7");
1110 uuid(f15398a0
-8018-11d3
-af70
-00a024ffc08c
)
1113 interface nsIWebBrowserSetup
: nsISupports
1115 nsresult SetProperty
(PRUint32 aId
, PRUint32 aValue
);
1118 typedef void* nativeWindow
;
1122 uuid(046bc8a0
-8015-11d3
-af70
-00a024ffc08c
)
1125 interface nsIBaseWindow
: nsISupports
1127 nsresult InitWindow
(nativeWindow parentNativeWindow
, nsIWidget
*parentWidget
, PRInt32 x
,
1128 PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
1131 nsresult SetPosition
(PRInt32 x
, PRInt32 y
);
1132 nsresult GetPosition
(PRInt32
*x
, PRInt32
*y
);
1133 nsresult SetSize
(PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
1134 nsresult GetSize
(PRInt32
*cx
, PRInt32
*cy
);
1135 nsresult SetPositionAndSize
(PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
1136 nsresult GetPositionAndSize
(PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
1137 nsresult Repaint
(PRBool force
);
1138 nsresult GetParentWidget
(nsIWidget
**aParentWidget
);
1139 nsresult SetParentWidget
(nsIWidget
*aParentWidget
);
1140 nsresult GetParentNativeWindow
(nativeWindow
*aParentNativeWindow
);
1141 nsresult SetParentNativeWindow
(nativeWindow aParentNativeWindow
);
1142 nsresult GetVisibility
(PRBool
*aVisibility
);
1143 nsresult SetVisibility
(PRBool aVisibility
);
1144 nsresult GetEnabled
(PRBool
*aEnabled
);
1145 nsresult SetEnabled
(PRBool aEnabled
);
1146 nsresult GetBlurSuppression
(PRBool
*aBlurSuppression
);
1147 nsresult SetBlurSuppression
(PRBool aBlurSuppression
);
1148 nsresult GetMainWidget
(nsIWidget
**aMainWidget
);
1149 nsresult SetFocus
();
1150 nsresult GetTitle
(PRUnichar
**aTitle
);
1151 nsresult SetTitle
(const PRUnichar
*aTitle
);
1154 cpp_quote
("#define LOAD_FLAGS_NONE 0");
1158 uuid(f5d9e7b0
-d930
-11d3
-b057
-00a024ffc08c
)
1161 interface nsIWebNavigation
: nsISupports
1163 nsresult GetCanGoBack
(PRBool
*aCanGoBack
);
1164 nsresult GetCanGoForward
(PRBool
*aCanGoForward
);
1166 nsresult GoForward
();
1167 nsresult GotoIndex
(PRInt32 index
);
1168 nsresult LoadURI
(const PRUnichar
*aURI
, PRUint32 aLoadFlags
, nsIURI
*aReferrer
,
1169 nsIInputStream
*aPostData
, nsIInputStream
*aHeaders
);
1170 nsresult Reload
(PRUint32 aReloadFlags
);
1171 nsresult Stop
(PRUint32 aStopFlags
);
1172 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
1173 nsresult GetCurrentURI
(nsIURI
**aCurrentURI
);
1174 nsresult GetReferringURI
(nsIURI
**aReferringURI
);
1175 nsresult GetSessionHistory
(nsISHistory
**aSessionHistory
);
1176 nsresult SetSessionHistory
(nsISHistory
*aSessionHistory
);
1181 uuid(f1094df6
-ce0e
-42c9
-9847-2f663172c38d
)
1184 interface nsIPrintSettings
: nsISupports
1186 typedef struct {} nsMargin
;
1188 nsresult SetPrintOptions
(PRInt32 aType
, PRBool aTurnOnOff
);
1189 nsresult GetPrintOptions
(PRInt32 aType
, PRBool
*_retval
);
1190 nsresult GetPrintOptionsBits
(PRInt32
*_retval
);
1191 nsresult GetPageSizeInTwips
(PRInt32
*aWidth
, PRInt32
*aHeight
);
1192 nsresult Clone
(nsIPrintSettings
**_retval
);
1193 nsresult Assign
(nsIPrintSettings
*aPS
);
1194 nsresult GetPrintSession
(nsIPrintSession
**aPrintSession
);
1195 nsresult SetPrintSession
(nsIPrintSession
*aPrintSession
);
1196 nsresult GetStartPageRange
(PRInt32
*aStartPageRange
);
1197 nsresult SetStartPageRange
(PRInt32 aStartPageRange
);
1198 nsresult GetEndPageRange
(PRInt32
*aEndPageRange
);
1199 nsresult SetEndPageRange
(PRInt32 aEndPageRange
);
1200 nsresult GetMarginTop
(double *aMarginTop
);
1201 nsresult SetMarginTop
(double aMarginTop
);
1202 nsresult GetMarginLeft
(double *aMarginLeft
);
1203 nsresult SetMarginLeft
(double aMarginLeft
);
1204 nsresult GetMarginBottom
(double *aMarginBottom
);
1205 nsresult SetMarginBottom
(double aMarginBottom
);
1206 nsresult GetMarginRight
(double *aMarginRight
);
1207 nsresult SetMarginRight
(double aMarginRight
);
1208 nsresult GetScaling
(double *aScaling
);
1209 nsresult SetScaling
(double aScaling
);
1210 nsresult GetPrintBGColors
(PRBool
*aPrintBGColors
);
1211 nsresult SetPrintBGColors
(PRBool aPrintBGColors
);
1212 nsresult GetPrintBGImages
(PRBool
*aPrintBGImages
);
1213 nsresult SetPrintBGImages
(PRBool aPrintBGImages
);
1214 nsresult GetPrintRange
(PRInt16
*aPrintRange
);
1215 nsresult SetPrintRange
(PRInt16 aPrintRange
);
1216 nsresult GetTitle
(PRUnichar
**aTitle
);
1217 nsresult SetTitle
(const PRUnichar
*aTitle
);
1218 nsresult GetDocURL
(PRUnichar
**aDocURL
);
1219 nsresult SetDocURL
(const PRUnichar
*aDocURL
);
1220 nsresult GetHeaderStrLeft
(PRUnichar
**aHeaderStrLeft
);
1221 nsresult SetHeaderStrLeft
(const PRUnichar
*aHeaderStrLeft
);
1222 nsresult GetHeaderStrCenter
(PRUnichar
**aHeaderStrCenter
);
1223 nsresult SetHeaderStrCenter
(const PRUnichar
*aHeaderStrCenter
);
1224 nsresult GetHeaderStrRight
(PRUnichar
**aHeaderStrRight
);
1225 nsresult SetHeaderStrRight
(const PRUnichar
*aHeaderStrRight
);
1226 nsresult GetFooterStrLeft
(PRUnichar
**aFooterStrLeft
);
1227 nsresult SetFooterStrLeft
(const PRUnichar
*aFooterStrLeft
);
1228 nsresult GetFooterStrCenter
(PRUnichar
**aFooterStrCenter
);
1229 nsresult SetFooterStrCenter
(const PRUnichar
*aFooterStrCenter
);
1230 nsresult GetFooterStrRight
(PRUnichar
**aFooterStrRight
);
1231 nsresult SetFooterStrRight
(const PRUnichar
*aFooterStrRight
);
1232 nsresult GetHowToEnableFrameUI
(PRInt16
*aHowToEnableFrameUI
);
1233 nsresult SetHowToEnableFrameUI
(PRInt16 aHowToEnableFrameUI
);
1234 nsresult GetIsCancelled
(PRBool
*aIsCancelled
);
1235 nsresult SetIsCancelled
(PRBool aIsCancelled
);
1236 nsresult GetPrintFrameTypeUsage
(PRInt16
*aPrintFrameTypeUsage
);
1237 nsresult SetPrintFrameTypeUsage
(PRInt16 aPrintFrameTypeUsage
);
1238 nsresult GetPrintFrameType
(PRInt16
*aPrintFrameType
);
1239 nsresult SetPrintFrameType
(PRInt16 aPrintFrameType
);
1240 nsresult GetPrintSilent
(PRBool
*aPrintSilent
);
1241 nsresult SetPrintSilent
(PRBool aPrintSilent
);
1242 nsresult GetShrinkToFit
(PRBool
*aShrinkToFit
);
1243 nsresult SetShrinkToFit
(PRBool aShrinkToFit
);
1244 nsresult GetShowPrintProgress
(PRBool
*aShowPrintProgress
);
1245 nsresult SetShowPrintProgress
(PRBool aShowPrintProgress
);
1246 nsresult GetPaperName
(PRUnichar
**aPaperName
);
1247 nsresult SetPaperName
(const PRUnichar
*aPaperName
);
1248 nsresult GetPaperSizeType
(PRInt16
*aPaperSizeType
);
1249 nsresult SetPaperSizeType
(PRInt16 aPaperSizeType
);
1250 nsresult GetPaperData
(PRInt16
*aPaperData
);
1251 nsresult SetPaperData
(PRInt16 aPaperData
);
1252 nsresult GetPaperWidth
(double *aPaperWidth
);
1253 nsresult SetPaperWidth
(double aPaperWidth
);
1254 nsresult GetPaperHeight
(double *aPaperHeight
);
1255 nsresult SetPaperHeight
(double aPaperHeight
);
1256 nsresult GetPaperSizeUnit
(PRInt16
*aPaperSizeUnit
);
1257 nsresult SetPaperSizeUnit
(PRInt16 aPaperSizeUnit
);
1258 nsresult GetPlexName
(PRUnichar
**aPlexName
);
1259 nsresult SetPlexName
(const PRUnichar
*aPlexName
);
1260 nsresult GetColorspace
(PRUnichar
**aColorspace
);
1261 nsresult SetColorspace
(const PRUnichar
*aColorspace
);
1262 nsresult GetResolutionName
(PRUnichar
**aResolutionName
);
1263 nsresult SetResolutionName
(const PRUnichar aResolutionName
);
1264 nsresult GetDownloadFonts
(PRBool
*aDownloadFonts
);
1265 nsresult SetDownloadFonts
(PRBool aDownloadFonts
);
1266 nsresult GetPrintReversed
(PRBool
*aPrintReversed
);
1267 nsresult SetPrintReversed
(PRBool aPrintReversed
);
1268 nsresult GetPrintInColor
(PRBool
*aPrintInColor
);
1269 nsresult SetPrintInColor
(PRBool aPrintInColor
);
1270 nsresult GetPaperSize
(PRInt32
*aPaperSize
);
1271 nsresult SetPaperSize
(PRInt32 aPaperSize
);
1272 nsresult GetOrientation
(PRInt32
*aOrientation
);
1273 nsresult SetOrientation
(PRInt32 aOrientation
);
1274 nsresult GetPrintCommand
(PRUnichar
**aPrintCommand
);
1275 nsresult SetPrintCommand
(const PRUnichar
*aPrintCommand
);
1276 nsresult GetNumCopies
(PRInt32
*aNumCopies
);
1277 nsresult SetNumCopies
(PRInt32 aNumCopies
);
1278 nsresult GetPrinterName
(PRUnichar
**aPrinterName
);
1279 nsresult SetPrinterName
(const PRUnichar
*aPrinterName
);
1280 nsresult GetPrintToFile
(PRBool
*aPrintToFile
);
1281 nsresult SetPrintToFile
(PRBool aPrintToFile
);
1282 nsresult GetToFileName
(PRUnichar
**aToFileName
);
1283 nsresult SetToFileName
(const PRUnichar
*aToFileName
);
1284 nsresult GetPrintPageDelay
(PRInt32
*aPrintPageDelay
);
1285 nsresult SetPrintPageDelay
(PRInt32 aPrintPageDelay
);
1286 nsresult GetIsInitializedFromPrinter
(PRBool
*aIsInitializedFromPrinter
);
1287 nsresult SetIsInitializedFromPrinter
(PRBool aIsInitializedFromPrinter
);
1288 nsresult GetIsInitializedFromPrefs
(PRBool
*aIsInitializedFromPrefs
);
1289 nsresult SetIsInitializedFromPrefs
(PRBool aIsInitializedFromPrefs
);
1290 nsresult SetMarginInTwips
(nsMargin
*aMargin
);
1291 nsresult GetMarginInTwips
(nsMargin
*aMargin
);
1296 uuid(9a7ca4b0
-fbba
-11d4
-a869
-00105a183419
)
1299 interface nsIWebBrowserPrint
: nsISupports
1301 nsresult GetGlobalPrintSettings
(nsIPrintSettings
**aGlobalPrintSettings
);
1302 nsresult GetCurrentPrintSettings
(nsIPrintSettings
**aCurrentPrintSettings
);
1303 nsresult GetCurrentChildDOMWindow
(nsIDOMWindow
**aCurrentChildDOMWindow
);
1304 nsresult GetDoingPrint
(PRBool
*aDoingPrint
);
1305 nsresult GetDoingPrintPreview
(PRBool
*aDoingPrintPreview
);
1306 nsresult GetIsFramesetDocument
(PRBool
*aIsFramesetDocument
);
1307 nsresult GetIsFramesetFrameSelected
(PRBool
*aIsFramesetFrameSelected
);
1308 nsresult GetIsIFrameSelected
(PRBool
*aIsIFrameSelected
);
1309 nsresult GetIsRangeSelection
(PRBool
*aIsRangeSelection
);
1310 nsresult GetPrintPreviewNumPages
(PRInt32
*aPrintPreviewNumPages
);
1311 nsresult Print
(nsIPrintSettings
*aThePrintSettings
, nsIWebProgressListener
*aWPListener
);
1312 nsresult PrintPreview
(nsIPrintSettings
*aThePrintSettings
, nsIDOMWindow
*aChildDOMWin
,
1313 nsIWebProgressListener
*aWPListener
);
1314 nsresult PrintPreviewNavigate
(PRInt16 aNavType
, PRInt32 aPageNum
);
1316 nsresult EnumerateDocumentNames
(PRUint32
*aCount
, PRUnichar
***aResult
);
1317 nsresult ExitPrintPreview
();
1322 uuid(919e792a
-6490-40b8
-bba5
-f9e9ad5640c8
)
1325 interface nsIScrollable
: nsISupports
1328 ScrollOrientation_X
= 1,
1329 ScrollOrientation_Y
= 2
1334 Scrollbar_Never
= 2,
1335 Scrollbar_Always
= 3
1338 nsresult GetCurScrollPos
(PRInt32 scrollOrientation
, PRInt32
*curPos
);
1339 nsresult SetCurScrollPos
(PRInt32 scrollOrientation
, PRInt32 curPos
);
1340 nsresult SetCurScrollPosEx
(PRInt32 curHorizontalPos
, PRInt32 curVerticalPos
);
1341 nsresult GetScrollRange
(PRInt32 scrollOrientation
, PRInt32
*minPos
, PRInt32
*maxPos
);
1342 nsresult SetScrollRange
(PRInt32 scrollOrientation
, PRInt32 minPos
, PRInt32 maxPos
);
1343 nsresult SetScrollRangeEx
(PRInt32 minHorizontalPos
, PRInt32 maxHorizontalPos
,
1344 PRInt32 minVerticalPos
, PRInt32 maxVerticalPos
);
1345 nsresult GetDefaultScrollbarPreferences
(PRInt32 scrollOrientation
, PRInt32
*scrollbarPref
);
1346 nsresult SetDefaultScrollbarPreferences
(PRInt32 scrollOrientation
, PRInt32 scrollbarPref
);
1347 nsresult GetScrollbarVisibility
(PRBool
*verticalVisible
, PRBool
*horizontalVisible
);
1352 uuid(c8c0a080
-0868-11d3
-915f
-d9d889d48e3c
)
1355 interface nsIFile
: nsISupports
1357 nsresult Append
(const nsAString
*node
);
1358 nsresult AppendNative
(const nsAString
*node
);
1359 nsresult Normalize
();
1360 nsresult Create
(PRUint32 type
, PRUint32 permission
);
1361 nsresult GetLeafName
(nsAString
*aLeafName
);
1362 nsresult SetLeafName
(const nsAString
*aLeafName
);
1363 nsresult GetNativeLeafName
(nsAString
*aLeafName
);
1364 nsresult SetNativeLeafName
(const nsAString
*aLeafName
);
1365 nsresult CopyTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1366 nsresult CopyToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1367 nsresult CopyToFollowingLinks
(nsIFile
*newParentDir
, const nsAString
*newName
);
1368 nsresult CopyToFollowingLinksNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1369 nsresult MoveTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1370 nsresult MoveToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1371 nsresult Remove
(PRBool recursive
);
1372 nsresult GetPermissions
(PRUint32
*aPermissions
);
1373 nsresult SetPermissions
(PRUint32 pPermissions
);
1374 nsresult GetPermissionsOfLink
(PRUint32
*aPermissions
);
1375 nsresult SetPermissionsOfLink
(PRUint32 pPermissions
);
1376 nsresult GetLastModifiedTime
(PRInt64
*aLastModifiedTime
);
1377 nsresult SetLastModifiedTime
(PRInt64 aLastModifiedTime
);
1378 nsresult GetFileSize
(PRInt64
*aFileSize
);
1379 nsresult SetFileSize
(PRInt64 aFileSize
);
1380 nsresult GetFileSizeOfLink
(PRInt64
*aFileSizeOfLink
);
1381 nsresult GetTarget
(nsAString
*aTarget
);
1382 nsresult GetNativeTarget
(nsACString
*aNativeTarget
);
1383 nsresult GetPath
(nsAString
*aPath
);
1384 nsresult GetNativePath
(nsACString
*aNativePath
);
1385 nsresult Exists
(PRBool
*_retval
);
1386 nsresult IsWritable
(PRBool
*_retval
);
1387 nsresult IsReadable
(PRBool
*_retval
);
1388 nsresult IsExecutable
(PRBool
*_retval
);
1389 nsresult IsHidden
(PRBool
*_retval
);
1390 nsresult IsDirectory
(PRBool
*_retval
);
1391 nsresult IsFile
(PRBool
*_retval
);
1392 nsresult IsSymlink
(PRBool
*_retval
);
1393 nsresult IsSpecial
(PRBool
*_retval
);
1394 nsresult CreateUnique
(PRUint32 type
, PRUint32 permission
);
1395 nsresult Clone
(nsIFile
**_retval
);
1396 nsresult Equals
(nsIFile
*inFile
, PRBool
*_retval
);
1397 nsresult Contains
(nsIFile
*inFile
, PRBool recir
, PRBool
*_retval
);
1398 nsresult GetParent
(nsIFile
**aParent
);
1399 nsresult GetDirectoryEntries
(nsISimpleEnumerator
**aDirectoryEntries
);
1404 uuid(15fd6940
-8ea7
-11d3
-93ad
-00104ba0fd40
)
1407 interface nsIProtocolHandler
: nsISupports
1409 nsresult GetScheme
(nsACString
*aScheme
);
1410 nsresult GetDefaultPort
(PRInt32
*aDefaultPort
);
1411 nsresult GetProtocolFlags
(PRUint32
*aProtocolFlags
);
1412 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
,
1413 nsIURI
*aBaseURI
, nsIURI
**_retval
);
1414 nsresult NewChannel
(nsIURI
*aURI
, nsIChannel
**_retval
);
1415 nsresult AllowPort
(PRInt32 port
, const char *scheme
, PRBool
*_retval
);
1420 uuid(0e61f3b2
-34d7
-4c79
-bfdc
-4860bc7341b7
)
1423 interface nsIExternalProtocolHandler
: nsIProtocolHandler
1425 nsresult ExternalAppExistsForScheme
(const nsACString
*scheme
, PRBool
*_retval
);
1430 uuid(bddeda3f
-9020-4d12
-8c70
-984ee9f7935e
)
1433 interface nsIIOService
: nsISupports
1435 nsresult GetProtocolHandler
(const char *aScheme
, nsIProtocolHandler
**_retval
);
1436 nsresult GetProtocolFlags
(const char *aScheme
, PRUint32
*_retval
);
1437 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
1439 nsresult NewFileURI
(nsIFile
*aFile
, nsIURI
**_retval
);
1440 nsresult NewChannelFromURI
(nsIURI
*aURI
, nsIChannel
**_retval
);
1441 nsresult NewChannel
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
1442 nsIChannel
**_retval
);
1443 nsresult GetOffline
(PRBool
*aOffline
);
1444 nsresult SetOffline
(PRBool aOffline
);
1445 nsresult AllowPort
(PRInt32 aPort
, const char *aScheme
, PRBool
*_retval
);
1446 nsresult ExtractScheme
(const nsACString
*urlString
, nsACString
* _retval
);
1451 uuid(9c5d3c58
-1dd1
-11b2
-a1c9
-f3699284657a
)
1454 interface nsIWebBrowserFocus
: nsISupports
1456 nsresult Activate
();
1457 nsresult Deactivate
();
1458 nsresult SetFocusAtFirstElement
();
1459 nsresult SetFocusAtLastElement
();
1460 nsresult GetFocusedWindow
(nsIDOMWindow
**aFocusedWindow
);
1461 nsresult SetFocusedWindow
(nsIDOMWindow
*aFocusedWindow
);
1462 nsresult GetFocusedElement
(nsIDOMElement
**aFocusedElement
);
1463 nsresult SetFocusedElement
(nsIDOMElement
*aFocusedElement
);
1468 uuid(ba434c60
-9d52
-11d3
-afb0
-00a024ffc08c
)
1471 interface nsIWebBrowserChrome
: nsISupports
1473 nsresult SetStatus
(PRUint32 statusType
, const PRUnichar
*status
);
1474 nsresult GetWebBrowser
(nsIWebBrowser
**aWebBrowser
);
1475 nsresult SetWebBrowser
(nsIWebBrowser
*aWebBrowser
);
1476 nsresult GetChromeFlags
(PRUint32
*aChromeFlags
);
1477 nsresult SetChromeFlags
(PRUint32 aChromeFlags
);
1478 nsresult DestroyBrowserWindow
();
1479 nsresult SizeBrowserTo
(PRInt32 aCX
, PRInt32 aCY
);
1480 nsresult ShowAsModal
();
1481 nsresult IsWindowModal
(PRBool
*_retval
);
1482 nsresult ExitModalEventLoop
(nsresult aStatus
);
1487 uuid(df31c120
-ded6
-11d1
-bd85
-00805f8ae3f4
)
1490 interface nsIDOMEventListener
: nsISupports
1492 nsresult HandleEvent
(nsIDOMEvent
*event
);
1497 uuid(1c773b30
-d1cf
-11d2
-bd95
-00805f8ae3f4
)
1500 interface nsIDOMEventTarget
: nsISupports
1502 nsresult AddEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
1503 nsresult RemoveEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
1504 nsresult DispatchEvent
(nsIDOMEvent
*evt
, PRBool
*_retval
);
1509 uuid(a66b7b80
-ff46
-bd97
-0080-5f8ae38add32
)
1512 interface nsIDOMEvent
: nsISupports
1514 nsresult GetType
(nsAString
*aType
);
1515 nsresult GetTarget
(nsIDOMEventTarget
**aTarget
);
1516 nsresult GetCurrentTarget
(nsIDOMEventTarget
**aCurrentTarget
);
1517 nsresult GetEventPhase
(PRUint16
*aEventPhase
);
1518 nsresult GetBubbles
(PRBool
*aBubbles
);
1519 nsresult GetCancelable
(PRBool
*aCancelable
);
1520 nsresult GetTimeStamp
(DOMTimeStamp
*aTimeStamp
);
1521 nsresult StopPropagation
();
1522 nsresult PreventDefault
();
1523 nsresult InitEvent
(const nsAString
*eventTypeArg
, PRBool canBubbleArg
, PRBool cancelableArg
);
1526 cpp_quote
("#define CONTEXT_NONE 0x00");
1527 cpp_quote
("#define CONTEXT_LINK 0x01");
1528 cpp_quote
("#define CONTEXT_IMAGE 0x02");
1529 cpp_quote
("#define CONTEXT_DOCUMENT 0x04");
1530 cpp_quote
("#define CONTEXT_TEXT 0x08");
1531 cpp_quote
("#define CONTEXT_INPUT 0x10");
1532 cpp_quote
("#define CONTEXT_BACKGROUND_IMAGE 0x20");
1536 uuid(3478b6b0
-3875-11d4
-94ef
-0020183bf181
)
1539 interface nsIContextMenuListener
: nsISupports
1541 nsresult OnShowContextMenu
(PRUint32 aContextFlags
, nsIDOMEvent
*aEvent
, nsIDOMNode
*aNode
);
1546 uuid(a6cf90c3
-15b3
-11d2
-932e-00805f8add32
)
1549 interface nsIDOMUIEvent
: nsIDOMEvent
1551 nsresult GetView
(nsIDOMAbstractView
**aView
);
1552 nsresult GetDetail
(PRInt32
*aDetail
);
1553 nsresult InitUIEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
1554 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
);
1559 uuid(ff751edc
-8b02
-aae7
-0010-8301838a3123
)
1562 interface nsIDOMMouseEvent
: nsIDOMUIEvent
1564 nsresult GetScreenX
(PRInt32
*aScreenX
);
1565 nsresult GetScreenY
(PRInt32
*aScreenY
);
1566 nsresult GetClientX
(PRInt32
*aClientX
);
1567 nsresult GetClientY
(PRInt32
*aClientY
);
1568 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
1569 nsresult GetShiftKey
(PRBool
*aShiftKey
);
1570 nsresult GetAltKey
(PRBool
*aAltKey
);
1571 nsresult GetMetaKey
(PRBool
*aMetaKey
);
1572 nsresult GetButton
(PRUint16
*aButton
);
1573 nsresult GetRelatedTarget
(nsIDOMEventTarget
* *aRelatedTarget
);
1574 nsresult InitMouseEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
1575 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
, PRInt32 screenXArg
, PRInt32 screenYArg
,
1576 PRInt32 clientXArg
, PRInt32 clientYArg
, PRBool ctrlKeyArg
, PRBool altKeyArg
,
1577 PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint16 buttonArg
,
1578 nsIDOMEventTarget
*relatedTargetArg
);
1583 uuid(028e0e6e
-8b01
-11d3
-aae7
-0010838a3123
)
1586 interface nsIDOMKeyEvent
: nsIDOMUIEvent
1588 nsresult GetCharCode
(PRUint32
*aCharCode
);
1589 nsresult GetKeyCode
(PRUint32
*aKeyCode
);
1590 nsresult GetAltKey
(PRBool
*aAltKey
);
1591 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
1592 nsresult GetShiftKey
(PRBool
*aShiftKey
);
1593 nsresult GetMetaKey
(PRBool
*aMetaKey
);
1594 nsresult InitKeyEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
,
1595 PRBool cancelableArg
, nsIDOMAbstractView
*viewArg
, PRBool ctrlKeyArg
,
1596 PRBool altKeyArg
, PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint32 keyCodeArg
,
1597 PRUint32 charCodeArg
);
1602 uuid(3e5432cd
-9568-4bd1
-8cbe
-d50aba110743
)
1605 interface nsIEmbeddingSiteWindow
: nsISupports
1607 nsresult SetDimensions
(PRUint32 flags
, PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
1608 nsresult GetDimensions
(PRUint32 flags
, PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
1609 nsresult SetFocus
();
1610 nsresult GetVisibility
(PRBool
*aVisibility
);
1611 nsresult SetVisibility
(PRBool aVisibility
);
1612 nsresult GetTitle
(PRUnichar
**aTitle
);
1613 nsresult SetTitle
(const PRUnichar
*aTitle
);
1614 nsresult GetSiteWindow
(void **aSiteWindow
);
1619 uuid(2417cbfe
-65ad
-48a6
-b4b6
-eb84db174392
)
1622 interface nsIComponentRegistrar
: nsISupports
1624 nsresult AutoRegister
(nsIFile
*aSpec
);
1625 nsresult AutoUnregister
(nsIFile
*aSpec
);
1626 nsresult RegisterFactory
(const nsCID
*aClass
, const char *aClassName
,
1627 const char *aContractID
, nsIFactory
*aFactory
);
1628 nsresult UnregisterFactory
(const nsCID
*aClass
, nsIFactory
*aFactory
);
1629 nsresult RegisterFactoryLocation
(const nsCID
*aClass
, const char *aClassName
,
1630 const char *aContractID
, nsIFile
*aFile
, const char *aLoaderStr
,
1632 nsresult UnregisterFactoryLocation
(const nsCID
*aClass
, nsIFile
*aFile
);
1633 nsresult IsCIDRegistered
(const nsCID
*aClass
, PRBool
*_retval
);
1634 nsresult IsContractIDRegistered
(const char *aContractID
, PRBool
*_retval
);
1635 nsresult EnumerateCIDs
(nsISimpleEnumerator
**_retval
);
1636 nsresult EnumerateContractIDs
(nsISimpleEnumerator
**_retval
);
1637 nsresult CIDToContractID
(const nsCID
*aClass
, char **_retval
);
1638 nsresult ContractIDToCID
(const char *aContractID
, nsCID
**_retval
);
1643 uuid(1630c61a
-325e-49ca
-8759-a31b16c47aa5
)
1646 interface nsIPromptService
: nsISupports
1648 nsresult Alert
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1649 const PRUnichar
*aText
);
1650 nsresult AlertCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1651 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
);
1652 nsresult Confirm
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1653 const PRUnichar
*aText
, PRBool
*_retval
);
1654 nsresult ConfirmCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1655 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
,
1657 nsresult ConfirmEx
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1658 const PRUnichar
*aText
, PRUint32 aButtonFlags
, const PRUnichar
*aButton0Title
,
1659 const PRUnichar
*aButton1Title
, const PRUnichar
*aButton2Title
,
1660 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRInt32
*_retval
);
1661 nsresult Prompt
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1662 const PRUnichar
*aText
, PRUnichar
**aValue
, const PRUnichar
*aCheckMsg
,
1663 PRBool
*aCheckState
, PRBool
*_retval
);
1664 nsresult PromptUsernameAndPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1665 const PRUnichar
*aText
, PRUnichar
**aUsername
, PRUnichar
**aPassword
,
1666 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRBool
*_retval
);
1667 nsresult PromptPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1668 const PRUnichar
*aText
, PRUnichar
**aPassword
, const PRUnichar
*aCheckMsg
,
1669 PRBool
*aCheckState
, PRBool
*_retval
);
1670 nsresult Select
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1671 const PRUnichar
*aText
, PRUint32 aCount
, const PRUnichar
**aSelectList
,
1672 PRInt32
*aOutSelection
, PRBool
*_retval
);
1677 uuid(b128a1e6
-44f3
-4331-8fbe
-5af360ff21ee
)
1680 interface nsITooltipTextProvider
: nsISupports
1682 nsresult GetNodeText
(nsIDOMNode
*aNode
, PRUnichar
**aText
, PRBool
*_retval
);
1687 uuid(02b0625a
-e7f3
-11d2
-9f5a
-006008a6efe9
)
1690 interface nsIProfile
: nsISupports
1692 nsresult GetProfileCount
(PRInt32
*aProfileCount
);
1693 nsresult GetProfileList
(PRUint32
*length
, PRUnichar
***profileNames
);
1694 nsresult ProfileExists
(const PRUnichar
*profileName
, PRBool
*_retval
);
1695 nsresult GetCurrentProfile
(PRUnichar
* *aCurrentProfile
);
1696 nsresult SetCurrentProfile
(const PRUnichar
* aCurrentProfile
);
1697 nsresult ShutDownCurrentProfile
(PRUint32 shutDownType
);
1698 nsresult CreateNewProfile
(const PRUnichar
*profileName
,
1699 const PRUnichar
*nativeProfileDir
, const PRUnichar
*langcode
,
1700 PRBool useExistingDir
);
1701 nsresult RenameProfile
(const PRUnichar
*oldName
, const PRUnichar
*newName
);
1702 nsresult DeleteProfile
(const PRUnichar
*name
, PRBool canDeleteFiles
);
1703 nsresult CloneProfile
(const PRUnichar
*profileName
);
1708 uuid(30465632-a777
-44cc
-90f9
-8145475ef999
)
1711 interface nsIWindowCreator
: nsISupports
1713 nsresult CreateChromeWindow
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
1714 nsIWebBrowserChrome
**_retval
);
1719 uuid(f673ec81
-a4b0
-11d6
-964b
-eb5a2bf216fc
)
1722 interface nsIWindowCreator2
: nsIWindowCreator
1724 nsresult CreateChromeWindow2
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
1725 PRUint32 contextFlags
, nsIURI
*uri
, PRBool
*cancel
,
1726 nsIWebBrowserChrome
**_retval
);
1731 uuid(002286a8
-494b
-43b3
-8ddd
-49e3fc50622b
)
1734 interface nsIWindowWatcher
: nsISupports
1736 nsresult OpenWindow
(nsIDOMWindow
*aParent
, const char *aUrl
, const char *aName
,
1737 const char *aFeatures
, nsISupports
*aArguments
, nsIDOMWindow
**_retval
);
1738 nsresult RegisterNotification
(nsIObserver
*aObserver
);
1739 nsresult UnregisterNotification
(nsIObserver
*aObserver
);
1740 nsresult GetWindowEnumerator
(nsISimpleEnumerator
**_retval
);
1741 nsresult GetNewPrompter
(nsIDOMWindow
*aParent
, nsIPrompt
**_retval
);
1742 nsresult GetNewAuthPrompter
(nsIDOMWindow
*aParent
, nsIAuthPrompt
**_retval
);
1743 nsresult SetWindowCreator
(nsIWindowCreator
*creator
);
1744 nsresult GetChromeForWindow
(nsIDOMWindow
*aWindow
, nsIWebBrowserChrome
**_retval
);
1745 nsresult GetWindowByName
(const PRUnichar
*aTargetName
, nsIDOMWindow
*aCurrentWindow
,
1746 nsIDOMWindow
**_retval
);
1747 nsresult GetActiveWindow
(nsIDOMWindow
**aActiveWindow
);
1748 nsresult SetActiveWindow
(nsIDOMWindow
*aActiveWindow
);
1753 uuid(d39fd2b4
-3978-45d2
-a4be
-ba448171b61b
)
1756 interface nsIEditingSession
: nsISupports
1758 nsresult GetEditorStatus
(PRUint32
*aEditorStatus
);
1759 nsresult MakeWindowEditable
(nsIDOMWindow
*window
, const char *aEditorType
,
1760 PRBool doAfterUriLoad
);
1761 nsresult WindowIsEditable
(nsIDOMWindow
*window
, PRBool
*_retval
);
1762 nsresult GetEditorForWindow
(nsIDOMWindow
*window
, nsIEditor
**_retval
);
1763 nsresult SetupEditorOnWindow
(nsIDOMWindow
*window
);
1764 nsresult TearDownEditorOnWindow
(nsIDOMWindow
*window
);
1765 nsresult SetEditorOnControllers
(nsIDOMWindow
*aWindow
, nsIEditor
*aEditor
);
1770 uuid(83f892cf
-7ed3
-490e-967a
-62640f3158e1
)
1773 interface nsICommandParams
: nsISupports
1775 nsresult GetValueType
(const char *name
, PRInt16
*_retval
);
1776 nsresult GetBooleanValue
(const char *name
, PRBool
*_retval
);
1777 nsresult GetLongValue
(const char *name
, PRInt32
*_retval
);
1778 nsresult GetDoubleValue
(const char *name
, double *_retval
);
1779 nsresult GetStringValue
(const char *name
, nsAString
*_retval
);
1780 nsresult GetCStringValue
(const char *name
, char **_retval
);
1781 nsresult GetISupportsValue
(const char *name
, nsISupports
**_retval
);
1782 nsresult SetBooleanValue
(const char *name
, PRBool value
);
1783 nsresult SetLongValue
(const char *name
, PRInt32 value
);
1784 nsresult SetDoubleValue
(const char *name
, double value
);
1785 nsresult SetStringValue
(const char *name
, const nsAString
*value
);
1786 nsresult SetCStringValue
(const char *name
, const char *value
);
1787 nsresult SetISupportsValue
(const char *name
, nsISupports
*value
);
1788 nsresult RemoveValue
(const char *name
);
1789 nsresult HasMoreElements
(PRBool
*_retval
);
1791 nsresult GetNext
(char **_retval
);
1796 uuid(080d2001
-f91e
-11d4
-a73c
-f9242928207c
)
1799 interface nsICommandManager
: nsISupports
1801 nsresult AddCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandToObserve
);
1802 nsresult RemoveCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandObserved
);
1803 nsresult IsCommandSupported
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
1804 nsresult IsCommandEnabled
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
1805 nsresult GetCommandState
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
,
1806 nsICommandParams
*aCommandParams
);
1807 nsresult DoCommand
(const char *aCommandName
, nsICommandParams
*aCommandParams
,
1808 nsIDOMWindow
*aTargetWindow
);
1813 uuid(47b82b60
-a36f
-4167-8072-6f421151ed50
)
1816 interface nsIControllerContext
: nsISupports
1818 nsresult Init
(nsIControllerCommandTable
*aCommandTable
);
1819 nsresult SetCommandContext
(nsISupports
*aCommandContext
);
1824 uuid(d5b61b82
-1da4
-11d3
-bf87
-00105a1b0627
)
1827 interface nsIController
: nsISupports
1829 nsresult IsCommandEnabled
(const char *command
, PRBool
*_retval
);
1830 nsresult SupportsCommand
(const char *command
, PRBool
*_retval
);
1831 nsresult DoCommand
(const char *command
);
1832 nsresult OnEvent
(const char *eventName
);
1837 uuid(d650439a
-ca29
-410d
-a906
-b0557fb62fcd
)
1840 interface nsIContentSerializer
: nsISupports
1842 nsresult Init
(PRUint32 flags
, PRUint32 aWrapColumn
, const char* aCharSet
, PRBool aIsCopying
);
1843 nsresult AppendText
(nsIDOMText
*aText
, PRInt32 aStartOffset
, PRInt32 aEndOffset
, nsAString
*aStr
);
1844 nsresult AppendCDATASection
(nsIDOMCDATASection
*aCDATASection
, PRInt32 aStartOffset
,
1845 PRInt32 aEndOffset
, nsAString
*aStr
);
1846 nsresult AppendProcessingInstruction
(nsIDOMProcessingInstruction
* aPI
, PRInt32 aStartOffset
,
1847 PRInt32 aEndOffset
, nsAString
*aStr
);
1848 nsresult AppendComment
(nsIDOMComment
*aComment
, PRInt32 aStartOffset
, PRInt32 aEndOffset
,
1850 nsresult AppendDoctype
(nsIDOMDocumentType
*aDoctype
, nsAString
*aStr
);
1851 nsresult AppendElementStart
(nsIDOMElement
*aElement
, PRBool aHasChildren
, nsAString
*aStr
);
1852 nsresult AppendElementEnd
(nsIDOMElement
*aElement
, nsAString
*aStr
);
1853 nsresult Flush
(nsAString
*aStr
);
1854 nsresult AppendDocumentStart
(nsIDOMDocument
*aDocument
, nsAString
*aStr
);
1859 uuid(68b97c56
-2289-48ac
-a9e1
-72c30fd3dba2
)
1861 interface nsIScriptContainer
: nsISupports
1863 typedef void *JSObject
;
1865 nsresult GetContext
(void **aContext
);
1866 nsresult GetGlobalObject
(void **aGlobalObject
);
1867 nsresult CompileScript
(const PRUnichar
*aText
, PRInt32 aTextLength
, void *aScopeObject
,
1868 nsIPrincipal
*aPrincipal
, const char *aURL
, PRUint32 aLineNo
, PRUint32 aVersion
, void **_retval
);
1869 nsresult ExecuteScript
(void *aScriptObject
, void *aScopeObject
, nsAString
*aRetVal
, PRBool
*aIsUndefined
);
1870 nsresult CompileFunction
(void *aTarget
, const nsACString
*aName
, PRUint32 aArgCount
,
1871 const char **aArgArray
, const nsAString
*aBody
, const char *aURL
, PRInt32 aLineNo
,
1872 PRBool aShared
, void* *_retval
);
1873 nsresult CallFunction
(nsISupports
*aTarget
, void *aScope
, void *aHandler
, nsIArray
*argv
,
1874 nsIVariant
**_retval
);
1875 nsresult BindEventHandler
(nsISupports
*aTarget
, void *aScope
, nsIAtom
*aName
, void *aHandler
);
1876 nsresult HoldScriptObject
(void *aObject
);
1877 nsresult DropScriptObject
(void *aObject
);
1882 * This is a private Wine interface that is implemented by our implementation
1883 * of nsIURI to store its owner.
1887 uuid(5088272e-900b
-11da
-c687
-000fea57f21a
)
1890 interface nsIWineURI
: nsIURI
1892 typedef struct NSContainer NSContainer
;
1894 nsresult GetNSContainer
(NSContainer
**aNSContainer
);
1895 nsresult SetNSContainer
(NSContainer
*aNSContainer
);
1896 nsresult GetIsDocumentURI
(PRBool
*aIsDocumentURI
);
1897 nsresult SetIsDocumentURI
(PRBool aIsDocumentURI
);
1898 nsresult GetWineURL
(LPCWSTR
*aURL
);
1899 nsresult SetWineURL
(LPCWSTR aURL
);