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
829 nsresult GetStartContainer
(nsIDOMNode
**aStartContainer
);
830 nsresult GetStartOffset
(PRInt32
*aStartOffset
);
831 nsresult GetEndContainer
(nsIDOMNode
**aEndContainer
);
832 nsresult GetEndOffset
(PRInt32
*aEndOffset
);
833 nsresult GetCollapsed
(PRBool
*aCollapsed
);
834 nsresult GetCommonAncestorContainer
(nsIDOMNode
**aCommonAncestorContainer
);
835 nsresult SetStart
(nsIDOMNode
*refNode
, PRInt32 offset
);
836 nsresult SetEnd
(nsIDOMNode
*refNode
, PRInt32 offset
);
837 nsresult SetStartBefore
(nsIDOMNode
*refNode
);
838 nsresult SetStartAfter
(nsIDOMNode
*refNode
);
839 nsresult SetEndBefore
(nsIDOMNode
*refNode
);
840 nsresult SetEndAfter
(nsIDOMNode
*refNode
);
841 nsresult Collapse
(PRBool toStart
);
842 nsresult SelectNode
(nsIDOMNode
*refNode
);
843 nsresult SelectNodeContents
(nsIDOMNode
*refNode
);
844 nsresult CompareBoundaryPoints
(PRUint16 how
, nsIDOMRange
*sourceRange
, PRInt16
*_retval
);
845 nsresult DeleteContents
();
846 nsresult ExtractContents
(nsIDOMDocumentFragment
**_retval
);
847 nsresult CloneContents
(nsIDOMDocumentFragment
**_retval
);
848 nsresult InsertNode
(nsIDOMNode
*newNode
);
849 nsresult SurroundContents
(nsIDOMNode
*newParent
);
850 nsresult CloneRange
(nsIDOMRange
**_retval
);
851 nsresult ToString
(nsAString
*_retval
);
857 uuid(a6cf90f2
-15b3
-11d2
-932e-00805f8add32
)
859 interface nsIDOMNSRange
: nsISupports
861 nsresult CreateContextualFragment
([in] const nsAString
*fragment
, [out] nsIDOMDocumentFragment
**_retval
);
862 nsresult IsPointInRange
([in] nsIDOMNode
*parent
, [in] PRInt32 offset
, [out] PRBool
*_retval
);
863 nsresult ComparePoint
([in] nsIDOMNode
*parent
, [in] PRInt32 offset
, [out] PRInt16
*_retval
);
864 nsresult IntersectsNode
([in] nsIDOMNode
*n
, [out] PRBool
*_retval
);
865 nsresult CompareNode
([in] nsIDOMNode
*n
, [out] PRUint16
*_retval
);
872 uuid(7b9badc6
-c9bc
-447a
-8670-dbd195aed24b
)
875 interface nsIDOMDocumentRange
: nsISupports
877 nsresult CreateRange
(nsIDOMRange
**_retval
);
882 uuid(b2c7ed59
-8634-4352-9e37
-5484c8b6e4e1
)
885 interface nsISelection
: nsISupports
887 nsresult GetAnchorNode
(nsIDOMNode
**aAnchorNode
);
888 nsresult GetAnchorOffset
(PRInt32
*aAnchorOffset
);
889 nsresult GetFocusNode
(nsIDOMNode
**aFocusNode
);
890 nsresult GetFocusOffset
(PRInt32
*aFocusOffset
);
891 nsresult GetIsCollapsed
(PRBool
*aIsCollapsed
);
892 nsresult GetRangeCount
(PRInt32
*aRangeCount
);
893 nsresult GetRangeAt
(PRInt32 index
, nsIDOMRange
**_retval
);
894 nsresult Collapse
(nsIDOMNode
*parentNode
, PRInt32 offset
);
895 nsresult Extend
(nsIDOMNode
*parentNode
, PRInt32 offset
);
896 nsresult CollapseToStart
();
897 nsresult CollapseToEnd
();
898 nsresult ContainsNode
(nsIDOMNode
*node
, PRBool entirelyContained
, PRBool
*_retval
);
899 nsresult SelectAllChildren
(nsIDOMNode
*parentNode
);
900 nsresult AddRange
(nsIDOMRange
*range);
901 nsresult RemoveRange
(nsIDOMRange
*range);
902 nsresult RemoveAllRanges
();
903 nsresult DeleteFromDocument
();
904 nsresult SelectionLanguageChange
(PRBool langRTL
);
905 nsresult ToString
(PRUnichar
**_retval
);
910 uuid(a6cf906b
-15b3
-11d2
-932e-00805f8add32
)
913 interface nsIDOMWindow
: nsISupports
915 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
916 nsresult GetParent
(nsIDOMWindow
**aParent
);
917 nsresult GetTop
(nsIDOMWindow
**aTop
);
918 nsresult GetScrollbars
(nsIDOMBarProp
**aScrollbars
);
919 nsresult GetFrames
(nsIDOMWindowCollection
**aFrames
);
920 nsresult GetName
(nsAString
*aName
);
921 nsresult SetName
(const nsAString
*aName
);
922 nsresult GetTextZoom
(float *aTextZoom
);
923 nsresult SetTextZoom
(float aTextZoom
);
924 nsresult GetScrollX
(PRInt32
*aScrollX
);
925 nsresult GetScrollY
(PRInt32
*aScrollY
);
926 nsresult ScrollTo
(PRInt32 xScroll
, PRInt32 yScroll
);
927 nsresult ScrollBy
(PRInt32 xScrollDif
, PRInt32 yScrollDif
);
928 nsresult GetSelection
(nsISelection
**_retval
);
929 nsresult ScrollByLines
(PRInt32 numLines
);
930 nsresult ScrollByPages
(PRInt32 numPages
);
931 nsresult SizeToContent
();
936 uuid(a6cf908e
-15b3
-11d2
-932e-00805f8add32
)
939 interface nsIDOMHTMLBodyElement
: nsIDOMHTMLElement
941 nsresult GetALink
(nsAString
*aALink
);
942 nsresult SetALink
(const nsAString
*aALink
);
943 nsresult GetBackground
(nsAString
*aBackground
);
944 nsresult SetBackground
(const nsAString
*aBackground
);
945 nsresult GetBgColor
(nsAString
*aBgColor
);
946 nsresult SetBgColor
(const nsAString
*aBgColor
);
947 nsresult GetLink
(nsAString
*aLink
);
948 nsresult SetLink
(const nsAString
*aLink
);
949 nsresult GetText
(nsAString
*aText
);
950 nsresult SetText
(const nsAString
*aText
);
951 nsresult GetVLink
(nsAString
*aVLink
);
952 nsresult SetVLink
(const nsAString
*aVLink
);
957 uuid(a6cf9093
-15b3
-11d2
-932e-00805f8add32
)
960 interface nsIDOMHTMLInputElement
: nsIDOMHTMLElement
962 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
963 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
964 nsresult GetDefaultChecked
(PRBool
*aDefaultChecked
);
965 nsresult SetDefaultChecked
(PRBool aDefaultChecked
);
966 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
967 nsresult GetAccept
(nsAString
*aAccept
);
968 nsresult SetAccept
(const nsAString
*aAccept
);
969 nsresult GetAccessKey
(nsAString
*aAccessKey
);
970 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
971 nsresult GetAlign
(nsAString
*aAlign
);
972 nsresult SetAlign
(const nsAString
*aAlign
);
973 nsresult GetAlt
(nsAString
*aAlt
);
974 nsresult SetAlt
(const nsAString
*aAlt
);
975 nsresult GetChecked
(PRBool
*aChecked
);
976 nsresult SetChecked
(PRBool aChecked
);
977 nsresult GetDisabled
(PRBool
*aDisabled
);
978 nsresult SetDisabled
(PRBool aDisabled
);
979 nsresult GetMaxLength
(PRInt32
*aMaxLength
);
980 nsresult SetMaxLength
(PRInt32 aMaxLength
);
981 nsresult GetName
(nsAString
*aName
);
982 nsresult SetName
(const nsAString
*aName
);
983 nsresult GetReadOnly
(PRBool
*aReadOnly
);
984 nsresult SetReadOnly
(PRBool aReadOnly
);
985 nsresult GetSize
(PRUint32
*aSize
);
986 nsresult SetSize
(PRUint32 aSize
);
987 nsresult GetSrc
(nsAString
*aSrc
);
988 nsresult SetSrc
(const nsAString
*aSrc
);
989 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
990 nsresult SetTabIndex
(PRInt32 aTabIndex
);
991 nsresult GetType
(nsAString
*aType
);
992 nsresult SetType
(const nsAString
*aType
);
993 nsresult GetUseMap
(nsAString
*aUseMap
);
994 nsresult SetUseMap
(const nsAString
*aUseMap
);
995 nsresult GetValue
(nsAString
*aValue
);
996 nsresult SetValue
(const nsAString
*aValue
);
1005 uuid(a6cf9090
-15b3
-11d2
-932e-00805f8add32
)
1008 interface nsIDOMHTMLSelectElement
: nsIDOMHTMLElement
1010 nsresult GetType
(nsAString
*aType
);
1011 nsresult GetSelectedIndex
(PRInt32
*aSelectedIndex
);
1012 nsresult SetSelectedIndex
(PRInt32 aSelectedIndex
);
1013 nsresult GetValue
(nsAString
*aValue
);
1014 nsresult SetValue
(const nsAString
*aValue
);
1015 nsresult GetLength
(PRUint32
*aLength
);
1016 nsresult SetLength
(PRUint32 aLength
);
1017 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1018 nsresult GetOptions
(nsIDOMHTMLOptionsCollection
**aOptions
);
1019 nsresult GetDisabled
(PRBool
*aDisabled
);
1020 nsresult SetDisabled
(PRBool aDisabled
);
1021 nsresult GetMultiple
(PRBool
*aMultiple
);
1022 nsresult SetMultiple
(PRBool aMultiple
);
1023 nsresult GetName
(nsAString
*aName
);
1024 nsresult SetName
(const nsAString
*aName
);
1025 nsresult GetSize
(PRInt32
*aSize
);
1026 nsresult SetSize
(PRInt32 aSize
);
1027 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1028 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1029 nsresult Add
(nsIDOMHTMLElement
*element
, nsIDOMHTMLElement
*before
);
1030 nsresult Remove
(PRInt32 index
);
1037 uuid(a6cf9094
-15b3
-11d2
-932e-00805f8add32
)
1040 interface nsIDOMHTMLTextAreaElement
: nsIDOMHTMLElement
1042 nsresult GetDefaultValue
(nsAString
*aDefaultValue
);
1043 nsresult SetDefaultValue
(const nsAString
*aDefaultValue
);
1044 nsresult GetForm
(nsIDOMHTMLFormElement
**aForm
);
1045 nsresult GetAccessKey
(nsAString
*aAccessKey
);
1046 nsresult SetAccessKey
(const nsAString
*aAccessKey
);
1047 nsresult GetCols
(PRInt32
*aCols
);
1048 nsresult SetCols
(PRInt32 aCols
);
1049 nsresult GetDisabled
(PRBool
*aDisabled
);
1050 nsresult SetDisabled
(PRBool aDisabled
);
1051 nsresult GetName
(nsAString
*aName
);
1052 nsresult SetName
(const nsAString
*aName
);
1053 nsresult GetReadOnly
(PRBool
*aReadOnly
);
1054 nsresult SetReadOnly
(PRBool aReadOnly
);
1055 nsresult GetRows
(PRInt32
*aRows
);
1056 nsresult SetRows
(PRInt32 aRows
);
1057 nsresult GetTabIndex
(PRInt32
*aTabIndex
);
1058 nsresult SetTabIndex
(PRInt32 aTabIndex
);
1059 nsresult GetType
(nsAString
*aType
);
1060 nsresult GetValue
(nsAString
*aValue
);
1061 nsresult SetValue
(const nsAString
*aValue
);
1069 uuid(94928ab3
-8b63
-11d3
-989d
-001083010e9b
)
1072 interface nsIURIContentListener
: nsISupports
1074 nsresult OnStartURIOpen
(nsIURI
*aURI
, PRBool
*_retval
);
1075 nsresult DoContent
(const char *aContentType
, PRBool aIsContentPreferred
, nsIRequest
*aRequest
,
1076 nsIStreamListener
**aContentHandler
, PRBool
*_retval
);
1077 nsresult IsPreferred
(const char *aContentType
, char **aDesiredContentType
, PRBool
*_retval
);
1078 nsresult CanHandleContent
(const char *aContentType
, PRBool aIsContentPreferred
,
1079 char **aDesiredContentType
, PRBool
*_retval
);
1080 nsresult GetLoadCookie
(nsISupports
**aLoadCookie
);
1081 nsresult SetLoadCookie
(nsISupports
*aLoadCookie
);
1082 nsresult GetParentContentListener
(nsIURIContentListener
**aParentContentListener
);
1083 nsresult SetParentContentListener
(nsIURIContentListener
*aParentContentListener
);
1088 uuid(44b78386
-1dd2
-11b2
-9ad2
-e4eee2ca1916
)
1091 interface nsITooltipListener
: nsISupports
1093 nsresult OnShowTooltip
(PRInt32 aXCoords
, PRInt32 aYCoords
, const PRUnichar
*aTipText
);
1094 nsresult OnHideTooltip
();
1099 uuid(69e5df00
-7b8b
-11d3
-af61
-00a024ffc08c
)
1102 interface nsIWebBrowser
: nsISupports
1104 nsresult AddWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
1105 nsresult RemoveWebBrowserListener
(nsIWeakReference
*aListener
, const nsIID
*aIID
);
1106 nsresult GetContainerWindow
(nsIWebBrowserChrome
**aContainerWindow
);
1107 nsresult SetContainerWindow
(nsIWebBrowserChrome
*aContainerWindow
);
1108 nsresult GetParentURIContentListener
(nsIURIContentListener
**aParentURIContentListener
);
1109 nsresult SetParentURIContentListener
(nsIURIContentListener
*aParentURIContentListener
);
1110 nsresult GetContentDOMWindow
(nsIDOMWindow
**aContentDOMWindow
);
1113 cpp_quote
("#define SETUP_IS_CHROME_WRAPPER 7");
1117 uuid(f15398a0
-8018-11d3
-af70
-00a024ffc08c
)
1120 interface nsIWebBrowserSetup
: nsISupports
1122 nsresult SetProperty
(PRUint32 aId
, PRUint32 aValue
);
1125 typedef void* nativeWindow
;
1129 uuid(046bc8a0
-8015-11d3
-af70
-00a024ffc08c
)
1132 interface nsIBaseWindow
: nsISupports
1134 nsresult InitWindow
(nativeWindow parentNativeWindow
, nsIWidget
*parentWidget
, PRInt32 x
,
1135 PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
1138 nsresult SetPosition
(PRInt32 x
, PRInt32 y
);
1139 nsresult GetPosition
(PRInt32
*x
, PRInt32
*y
);
1140 nsresult SetSize
(PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
1141 nsresult GetSize
(PRInt32
*cx
, PRInt32
*cy
);
1142 nsresult SetPositionAndSize
(PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
, PRBool fRepaint
);
1143 nsresult GetPositionAndSize
(PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
1144 nsresult Repaint
(PRBool force
);
1145 nsresult GetParentWidget
(nsIWidget
**aParentWidget
);
1146 nsresult SetParentWidget
(nsIWidget
*aParentWidget
);
1147 nsresult GetParentNativeWindow
(nativeWindow
*aParentNativeWindow
);
1148 nsresult SetParentNativeWindow
(nativeWindow aParentNativeWindow
);
1149 nsresult GetVisibility
(PRBool
*aVisibility
);
1150 nsresult SetVisibility
(PRBool aVisibility
);
1151 nsresult GetEnabled
(PRBool
*aEnabled
);
1152 nsresult SetEnabled
(PRBool aEnabled
);
1153 nsresult GetBlurSuppression
(PRBool
*aBlurSuppression
);
1154 nsresult SetBlurSuppression
(PRBool aBlurSuppression
);
1155 nsresult GetMainWidget
(nsIWidget
**aMainWidget
);
1156 nsresult SetFocus
();
1157 nsresult GetTitle
(PRUnichar
**aTitle
);
1158 nsresult SetTitle
(const PRUnichar
*aTitle
);
1161 cpp_quote
("#define LOAD_FLAGS_NONE 0");
1165 uuid(f5d9e7b0
-d930
-11d3
-b057
-00a024ffc08c
)
1168 interface nsIWebNavigation
: nsISupports
1170 nsresult GetCanGoBack
(PRBool
*aCanGoBack
);
1171 nsresult GetCanGoForward
(PRBool
*aCanGoForward
);
1173 nsresult GoForward
();
1174 nsresult GotoIndex
(PRInt32 index
);
1175 nsresult LoadURI
(const PRUnichar
*aURI
, PRUint32 aLoadFlags
, nsIURI
*aReferrer
,
1176 nsIInputStream
*aPostData
, nsIInputStream
*aHeaders
);
1177 nsresult Reload
(PRUint32 aReloadFlags
);
1178 nsresult Stop
(PRUint32 aStopFlags
);
1179 nsresult GetDocument
(nsIDOMDocument
**aDocument
);
1180 nsresult GetCurrentURI
(nsIURI
**aCurrentURI
);
1181 nsresult GetReferringURI
(nsIURI
**aReferringURI
);
1182 nsresult GetSessionHistory
(nsISHistory
**aSessionHistory
);
1183 nsresult SetSessionHistory
(nsISHistory
*aSessionHistory
);
1188 uuid(f1094df6
-ce0e
-42c9
-9847-2f663172c38d
)
1191 interface nsIPrintSettings
: nsISupports
1193 typedef struct {} nsMargin
;
1195 nsresult SetPrintOptions
(PRInt32 aType
, PRBool aTurnOnOff
);
1196 nsresult GetPrintOptions
(PRInt32 aType
, PRBool
*_retval
);
1197 nsresult GetPrintOptionsBits
(PRInt32
*_retval
);
1198 nsresult GetPageSizeInTwips
(PRInt32
*aWidth
, PRInt32
*aHeight
);
1199 nsresult Clone
(nsIPrintSettings
**_retval
);
1200 nsresult Assign
(nsIPrintSettings
*aPS
);
1201 nsresult GetPrintSession
(nsIPrintSession
**aPrintSession
);
1202 nsresult SetPrintSession
(nsIPrintSession
*aPrintSession
);
1203 nsresult GetStartPageRange
(PRInt32
*aStartPageRange
);
1204 nsresult SetStartPageRange
(PRInt32 aStartPageRange
);
1205 nsresult GetEndPageRange
(PRInt32
*aEndPageRange
);
1206 nsresult SetEndPageRange
(PRInt32 aEndPageRange
);
1207 nsresult GetMarginTop
(double *aMarginTop
);
1208 nsresult SetMarginTop
(double aMarginTop
);
1209 nsresult GetMarginLeft
(double *aMarginLeft
);
1210 nsresult SetMarginLeft
(double aMarginLeft
);
1211 nsresult GetMarginBottom
(double *aMarginBottom
);
1212 nsresult SetMarginBottom
(double aMarginBottom
);
1213 nsresult GetMarginRight
(double *aMarginRight
);
1214 nsresult SetMarginRight
(double aMarginRight
);
1215 nsresult GetScaling
(double *aScaling
);
1216 nsresult SetScaling
(double aScaling
);
1217 nsresult GetPrintBGColors
(PRBool
*aPrintBGColors
);
1218 nsresult SetPrintBGColors
(PRBool aPrintBGColors
);
1219 nsresult GetPrintBGImages
(PRBool
*aPrintBGImages
);
1220 nsresult SetPrintBGImages
(PRBool aPrintBGImages
);
1221 nsresult GetPrintRange
(PRInt16
*aPrintRange
);
1222 nsresult SetPrintRange
(PRInt16 aPrintRange
);
1223 nsresult GetTitle
(PRUnichar
**aTitle
);
1224 nsresult SetTitle
(const PRUnichar
*aTitle
);
1225 nsresult GetDocURL
(PRUnichar
**aDocURL
);
1226 nsresult SetDocURL
(const PRUnichar
*aDocURL
);
1227 nsresult GetHeaderStrLeft
(PRUnichar
**aHeaderStrLeft
);
1228 nsresult SetHeaderStrLeft
(const PRUnichar
*aHeaderStrLeft
);
1229 nsresult GetHeaderStrCenter
(PRUnichar
**aHeaderStrCenter
);
1230 nsresult SetHeaderStrCenter
(const PRUnichar
*aHeaderStrCenter
);
1231 nsresult GetHeaderStrRight
(PRUnichar
**aHeaderStrRight
);
1232 nsresult SetHeaderStrRight
(const PRUnichar
*aHeaderStrRight
);
1233 nsresult GetFooterStrLeft
(PRUnichar
**aFooterStrLeft
);
1234 nsresult SetFooterStrLeft
(const PRUnichar
*aFooterStrLeft
);
1235 nsresult GetFooterStrCenter
(PRUnichar
**aFooterStrCenter
);
1236 nsresult SetFooterStrCenter
(const PRUnichar
*aFooterStrCenter
);
1237 nsresult GetFooterStrRight
(PRUnichar
**aFooterStrRight
);
1238 nsresult SetFooterStrRight
(const PRUnichar
*aFooterStrRight
);
1239 nsresult GetHowToEnableFrameUI
(PRInt16
*aHowToEnableFrameUI
);
1240 nsresult SetHowToEnableFrameUI
(PRInt16 aHowToEnableFrameUI
);
1241 nsresult GetIsCancelled
(PRBool
*aIsCancelled
);
1242 nsresult SetIsCancelled
(PRBool aIsCancelled
);
1243 nsresult GetPrintFrameTypeUsage
(PRInt16
*aPrintFrameTypeUsage
);
1244 nsresult SetPrintFrameTypeUsage
(PRInt16 aPrintFrameTypeUsage
);
1245 nsresult GetPrintFrameType
(PRInt16
*aPrintFrameType
);
1246 nsresult SetPrintFrameType
(PRInt16 aPrintFrameType
);
1247 nsresult GetPrintSilent
(PRBool
*aPrintSilent
);
1248 nsresult SetPrintSilent
(PRBool aPrintSilent
);
1249 nsresult GetShrinkToFit
(PRBool
*aShrinkToFit
);
1250 nsresult SetShrinkToFit
(PRBool aShrinkToFit
);
1251 nsresult GetShowPrintProgress
(PRBool
*aShowPrintProgress
);
1252 nsresult SetShowPrintProgress
(PRBool aShowPrintProgress
);
1253 nsresult GetPaperName
(PRUnichar
**aPaperName
);
1254 nsresult SetPaperName
(const PRUnichar
*aPaperName
);
1255 nsresult GetPaperSizeType
(PRInt16
*aPaperSizeType
);
1256 nsresult SetPaperSizeType
(PRInt16 aPaperSizeType
);
1257 nsresult GetPaperData
(PRInt16
*aPaperData
);
1258 nsresult SetPaperData
(PRInt16 aPaperData
);
1259 nsresult GetPaperWidth
(double *aPaperWidth
);
1260 nsresult SetPaperWidth
(double aPaperWidth
);
1261 nsresult GetPaperHeight
(double *aPaperHeight
);
1262 nsresult SetPaperHeight
(double aPaperHeight
);
1263 nsresult GetPaperSizeUnit
(PRInt16
*aPaperSizeUnit
);
1264 nsresult SetPaperSizeUnit
(PRInt16 aPaperSizeUnit
);
1265 nsresult GetPlexName
(PRUnichar
**aPlexName
);
1266 nsresult SetPlexName
(const PRUnichar
*aPlexName
);
1267 nsresult GetColorspace
(PRUnichar
**aColorspace
);
1268 nsresult SetColorspace
(const PRUnichar
*aColorspace
);
1269 nsresult GetResolutionName
(PRUnichar
**aResolutionName
);
1270 nsresult SetResolutionName
(const PRUnichar aResolutionName
);
1271 nsresult GetDownloadFonts
(PRBool
*aDownloadFonts
);
1272 nsresult SetDownloadFonts
(PRBool aDownloadFonts
);
1273 nsresult GetPrintReversed
(PRBool
*aPrintReversed
);
1274 nsresult SetPrintReversed
(PRBool aPrintReversed
);
1275 nsresult GetPrintInColor
(PRBool
*aPrintInColor
);
1276 nsresult SetPrintInColor
(PRBool aPrintInColor
);
1277 nsresult GetPaperSize
(PRInt32
*aPaperSize
);
1278 nsresult SetPaperSize
(PRInt32 aPaperSize
);
1279 nsresult GetOrientation
(PRInt32
*aOrientation
);
1280 nsresult SetOrientation
(PRInt32 aOrientation
);
1281 nsresult GetPrintCommand
(PRUnichar
**aPrintCommand
);
1282 nsresult SetPrintCommand
(const PRUnichar
*aPrintCommand
);
1283 nsresult GetNumCopies
(PRInt32
*aNumCopies
);
1284 nsresult SetNumCopies
(PRInt32 aNumCopies
);
1285 nsresult GetPrinterName
(PRUnichar
**aPrinterName
);
1286 nsresult SetPrinterName
(const PRUnichar
*aPrinterName
);
1287 nsresult GetPrintToFile
(PRBool
*aPrintToFile
);
1288 nsresult SetPrintToFile
(PRBool aPrintToFile
);
1289 nsresult GetToFileName
(PRUnichar
**aToFileName
);
1290 nsresult SetToFileName
(const PRUnichar
*aToFileName
);
1291 nsresult GetPrintPageDelay
(PRInt32
*aPrintPageDelay
);
1292 nsresult SetPrintPageDelay
(PRInt32 aPrintPageDelay
);
1293 nsresult GetIsInitializedFromPrinter
(PRBool
*aIsInitializedFromPrinter
);
1294 nsresult SetIsInitializedFromPrinter
(PRBool aIsInitializedFromPrinter
);
1295 nsresult GetIsInitializedFromPrefs
(PRBool
*aIsInitializedFromPrefs
);
1296 nsresult SetIsInitializedFromPrefs
(PRBool aIsInitializedFromPrefs
);
1297 nsresult SetMarginInTwips
(nsMargin
*aMargin
);
1298 nsresult GetMarginInTwips
(nsMargin
*aMargin
);
1303 uuid(9a7ca4b0
-fbba
-11d4
-a869
-00105a183419
)
1306 interface nsIWebBrowserPrint
: nsISupports
1308 nsresult GetGlobalPrintSettings
(nsIPrintSettings
**aGlobalPrintSettings
);
1309 nsresult GetCurrentPrintSettings
(nsIPrintSettings
**aCurrentPrintSettings
);
1310 nsresult GetCurrentChildDOMWindow
(nsIDOMWindow
**aCurrentChildDOMWindow
);
1311 nsresult GetDoingPrint
(PRBool
*aDoingPrint
);
1312 nsresult GetDoingPrintPreview
(PRBool
*aDoingPrintPreview
);
1313 nsresult GetIsFramesetDocument
(PRBool
*aIsFramesetDocument
);
1314 nsresult GetIsFramesetFrameSelected
(PRBool
*aIsFramesetFrameSelected
);
1315 nsresult GetIsIFrameSelected
(PRBool
*aIsIFrameSelected
);
1316 nsresult GetIsRangeSelection
(PRBool
*aIsRangeSelection
);
1317 nsresult GetPrintPreviewNumPages
(PRInt32
*aPrintPreviewNumPages
);
1318 nsresult Print
(nsIPrintSettings
*aThePrintSettings
, nsIWebProgressListener
*aWPListener
);
1319 nsresult PrintPreview
(nsIPrintSettings
*aThePrintSettings
, nsIDOMWindow
*aChildDOMWin
,
1320 nsIWebProgressListener
*aWPListener
);
1321 nsresult PrintPreviewNavigate
(PRInt16 aNavType
, PRInt32 aPageNum
);
1323 nsresult EnumerateDocumentNames
(PRUint32
*aCount
, PRUnichar
***aResult
);
1324 nsresult ExitPrintPreview
();
1329 uuid(919e792a
-6490-40b8
-bba5
-f9e9ad5640c8
)
1332 interface nsIScrollable
: nsISupports
1335 ScrollOrientation_X
= 1,
1336 ScrollOrientation_Y
= 2
1341 Scrollbar_Never
= 2,
1342 Scrollbar_Always
= 3
1345 nsresult GetCurScrollPos
(PRInt32 scrollOrientation
, PRInt32
*curPos
);
1346 nsresult SetCurScrollPos
(PRInt32 scrollOrientation
, PRInt32 curPos
);
1347 nsresult SetCurScrollPosEx
(PRInt32 curHorizontalPos
, PRInt32 curVerticalPos
);
1348 nsresult GetScrollRange
(PRInt32 scrollOrientation
, PRInt32
*minPos
, PRInt32
*maxPos
);
1349 nsresult SetScrollRange
(PRInt32 scrollOrientation
, PRInt32 minPos
, PRInt32 maxPos
);
1350 nsresult SetScrollRangeEx
(PRInt32 minHorizontalPos
, PRInt32 maxHorizontalPos
,
1351 PRInt32 minVerticalPos
, PRInt32 maxVerticalPos
);
1352 nsresult GetDefaultScrollbarPreferences
(PRInt32 scrollOrientation
, PRInt32
*scrollbarPref
);
1353 nsresult SetDefaultScrollbarPreferences
(PRInt32 scrollOrientation
, PRInt32 scrollbarPref
);
1354 nsresult GetScrollbarVisibility
(PRBool
*verticalVisible
, PRBool
*horizontalVisible
);
1359 uuid(c8c0a080
-0868-11d3
-915f
-d9d889d48e3c
)
1362 interface nsIFile
: nsISupports
1364 nsresult Append
(const nsAString
*node
);
1365 nsresult AppendNative
(const nsAString
*node
);
1366 nsresult Normalize
();
1367 nsresult Create
(PRUint32 type
, PRUint32 permission
);
1368 nsresult GetLeafName
(nsAString
*aLeafName
);
1369 nsresult SetLeafName
(const nsAString
*aLeafName
);
1370 nsresult GetNativeLeafName
(nsAString
*aLeafName
);
1371 nsresult SetNativeLeafName
(const nsAString
*aLeafName
);
1372 nsresult CopyTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1373 nsresult CopyToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1374 nsresult CopyToFollowingLinks
(nsIFile
*newParentDir
, const nsAString
*newName
);
1375 nsresult CopyToFollowingLinksNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1376 nsresult MoveTo
(nsIFile
*newParentDir
, const nsAString
*newName
);
1377 nsresult MoveToNative
(nsIFile
*newParentDir
, const nsAString
*newName
);
1378 nsresult Remove
(PRBool recursive
);
1379 nsresult GetPermissions
(PRUint32
*aPermissions
);
1380 nsresult SetPermissions
(PRUint32 pPermissions
);
1381 nsresult GetPermissionsOfLink
(PRUint32
*aPermissions
);
1382 nsresult SetPermissionsOfLink
(PRUint32 pPermissions
);
1383 nsresult GetLastModifiedTime
(PRInt64
*aLastModifiedTime
);
1384 nsresult SetLastModifiedTime
(PRInt64 aLastModifiedTime
);
1385 nsresult GetFileSize
(PRInt64
*aFileSize
);
1386 nsresult SetFileSize
(PRInt64 aFileSize
);
1387 nsresult GetFileSizeOfLink
(PRInt64
*aFileSizeOfLink
);
1388 nsresult GetTarget
(nsAString
*aTarget
);
1389 nsresult GetNativeTarget
(nsACString
*aNativeTarget
);
1390 nsresult GetPath
(nsAString
*aPath
);
1391 nsresult GetNativePath
(nsACString
*aNativePath
);
1392 nsresult Exists
(PRBool
*_retval
);
1393 nsresult IsWritable
(PRBool
*_retval
);
1394 nsresult IsReadable
(PRBool
*_retval
);
1395 nsresult IsExecutable
(PRBool
*_retval
);
1396 nsresult IsHidden
(PRBool
*_retval
);
1397 nsresult IsDirectory
(PRBool
*_retval
);
1398 nsresult IsFile
(PRBool
*_retval
);
1399 nsresult IsSymlink
(PRBool
*_retval
);
1400 nsresult IsSpecial
(PRBool
*_retval
);
1401 nsresult CreateUnique
(PRUint32 type
, PRUint32 permission
);
1402 nsresult Clone
(nsIFile
**_retval
);
1403 nsresult Equals
(nsIFile
*inFile
, PRBool
*_retval
);
1404 nsresult Contains
(nsIFile
*inFile
, PRBool recir
, PRBool
*_retval
);
1405 nsresult GetParent
(nsIFile
**aParent
);
1406 nsresult GetDirectoryEntries
(nsISimpleEnumerator
**aDirectoryEntries
);
1411 uuid(15fd6940
-8ea7
-11d3
-93ad
-00104ba0fd40
)
1414 interface nsIProtocolHandler
: nsISupports
1416 nsresult GetScheme
(nsACString
*aScheme
);
1417 nsresult GetDefaultPort
(PRInt32
*aDefaultPort
);
1418 nsresult GetProtocolFlags
(PRUint32
*aProtocolFlags
);
1419 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
,
1420 nsIURI
*aBaseURI
, nsIURI
**_retval
);
1421 nsresult NewChannel
(nsIURI
*aURI
, nsIChannel
**_retval
);
1422 nsresult AllowPort
(PRInt32 port
, const char *scheme
, PRBool
*_retval
);
1427 uuid(0e61f3b2
-34d7
-4c79
-bfdc
-4860bc7341b7
)
1430 interface nsIExternalProtocolHandler
: nsIProtocolHandler
1432 nsresult ExternalAppExistsForScheme
(const nsACString
*scheme
, PRBool
*_retval
);
1437 uuid(bddeda3f
-9020-4d12
-8c70
-984ee9f7935e
)
1440 interface nsIIOService
: nsISupports
1442 nsresult GetProtocolHandler
(const char *aScheme
, nsIProtocolHandler
**_retval
);
1443 nsresult GetProtocolFlags
(const char *aScheme
, PRUint32
*_retval
);
1444 nsresult NewURI
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
1446 nsresult NewFileURI
(nsIFile
*aFile
, nsIURI
**_retval
);
1447 nsresult NewChannelFromURI
(nsIURI
*aURI
, nsIChannel
**_retval
);
1448 nsresult NewChannel
(const nsACString
*aSpec
, const char *aOriginCharset
, nsIURI
*aBaseURI
,
1449 nsIChannel
**_retval
);
1450 nsresult GetOffline
(PRBool
*aOffline
);
1451 nsresult SetOffline
(PRBool aOffline
);
1452 nsresult AllowPort
(PRInt32 aPort
, const char *aScheme
, PRBool
*_retval
);
1453 nsresult ExtractScheme
(const nsACString
*urlString
, nsACString
* _retval
);
1458 uuid(9c5d3c58
-1dd1
-11b2
-a1c9
-f3699284657a
)
1461 interface nsIWebBrowserFocus
: nsISupports
1463 nsresult Activate
();
1464 nsresult Deactivate
();
1465 nsresult SetFocusAtFirstElement
();
1466 nsresult SetFocusAtLastElement
();
1467 nsresult GetFocusedWindow
(nsIDOMWindow
**aFocusedWindow
);
1468 nsresult SetFocusedWindow
(nsIDOMWindow
*aFocusedWindow
);
1469 nsresult GetFocusedElement
(nsIDOMElement
**aFocusedElement
);
1470 nsresult SetFocusedElement
(nsIDOMElement
*aFocusedElement
);
1475 uuid(ba434c60
-9d52
-11d3
-afb0
-00a024ffc08c
)
1478 interface nsIWebBrowserChrome
: nsISupports
1480 nsresult SetStatus
(PRUint32 statusType
, const PRUnichar
*status
);
1481 nsresult GetWebBrowser
(nsIWebBrowser
**aWebBrowser
);
1482 nsresult SetWebBrowser
(nsIWebBrowser
*aWebBrowser
);
1483 nsresult GetChromeFlags
(PRUint32
*aChromeFlags
);
1484 nsresult SetChromeFlags
(PRUint32 aChromeFlags
);
1485 nsresult DestroyBrowserWindow
();
1486 nsresult SizeBrowserTo
(PRInt32 aCX
, PRInt32 aCY
);
1487 nsresult ShowAsModal
();
1488 nsresult IsWindowModal
(PRBool
*_retval
);
1489 nsresult ExitModalEventLoop
(nsresult aStatus
);
1494 uuid(df31c120
-ded6
-11d1
-bd85
-00805f8ae3f4
)
1497 interface nsIDOMEventListener
: nsISupports
1499 nsresult HandleEvent
(nsIDOMEvent
*event
);
1504 uuid(1c773b30
-d1cf
-11d2
-bd95
-00805f8ae3f4
)
1507 interface nsIDOMEventTarget
: nsISupports
1509 nsresult AddEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
1510 nsresult RemoveEventListener
(const nsAString
*type
, nsIDOMEventListener
*listener
, PRBool useCapture
);
1511 nsresult DispatchEvent
(nsIDOMEvent
*evt
, PRBool
*_retval
);
1516 uuid(a66b7b80
-ff46
-bd97
-0080-5f8ae38add32
)
1519 interface nsIDOMEvent
: nsISupports
1521 nsresult GetType
(nsAString
*aType
);
1522 nsresult GetTarget
(nsIDOMEventTarget
**aTarget
);
1523 nsresult GetCurrentTarget
(nsIDOMEventTarget
**aCurrentTarget
);
1524 nsresult GetEventPhase
(PRUint16
*aEventPhase
);
1525 nsresult GetBubbles
(PRBool
*aBubbles
);
1526 nsresult GetCancelable
(PRBool
*aCancelable
);
1527 nsresult GetTimeStamp
(DOMTimeStamp
*aTimeStamp
);
1528 nsresult StopPropagation
();
1529 nsresult PreventDefault
();
1530 nsresult InitEvent
(const nsAString
*eventTypeArg
, PRBool canBubbleArg
, PRBool cancelableArg
);
1533 cpp_quote
("#define CONTEXT_NONE 0x00");
1534 cpp_quote
("#define CONTEXT_LINK 0x01");
1535 cpp_quote
("#define CONTEXT_IMAGE 0x02");
1536 cpp_quote
("#define CONTEXT_DOCUMENT 0x04");
1537 cpp_quote
("#define CONTEXT_TEXT 0x08");
1538 cpp_quote
("#define CONTEXT_INPUT 0x10");
1539 cpp_quote
("#define CONTEXT_BACKGROUND_IMAGE 0x20");
1543 uuid(3478b6b0
-3875-11d4
-94ef
-0020183bf181
)
1546 interface nsIContextMenuListener
: nsISupports
1548 nsresult OnShowContextMenu
(PRUint32 aContextFlags
, nsIDOMEvent
*aEvent
, nsIDOMNode
*aNode
);
1553 uuid(a6cf90c3
-15b3
-11d2
-932e-00805f8add32
)
1556 interface nsIDOMUIEvent
: nsIDOMEvent
1558 nsresult GetView
(nsIDOMAbstractView
**aView
);
1559 nsresult GetDetail
(PRInt32
*aDetail
);
1560 nsresult InitUIEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
1561 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
);
1566 uuid(ff751edc
-8b02
-aae7
-0010-8301838a3123
)
1569 interface nsIDOMMouseEvent
: nsIDOMUIEvent
1571 nsresult GetScreenX
(PRInt32
*aScreenX
);
1572 nsresult GetScreenY
(PRInt32
*aScreenY
);
1573 nsresult GetClientX
(PRInt32
*aClientX
);
1574 nsresult GetClientY
(PRInt32
*aClientY
);
1575 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
1576 nsresult GetShiftKey
(PRBool
*aShiftKey
);
1577 nsresult GetAltKey
(PRBool
*aAltKey
);
1578 nsresult GetMetaKey
(PRBool
*aMetaKey
);
1579 nsresult GetButton
(PRUint16
*aButton
);
1580 nsresult GetRelatedTarget
(nsIDOMEventTarget
* *aRelatedTarget
);
1581 nsresult InitMouseEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
, PRBool cancelableArg
,
1582 nsIDOMAbstractView
*viewArg
, PRInt32 detailArg
, PRInt32 screenXArg
, PRInt32 screenYArg
,
1583 PRInt32 clientXArg
, PRInt32 clientYArg
, PRBool ctrlKeyArg
, PRBool altKeyArg
,
1584 PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint16 buttonArg
,
1585 nsIDOMEventTarget
*relatedTargetArg
);
1590 uuid(028e0e6e
-8b01
-11d3
-aae7
-0010838a3123
)
1593 interface nsIDOMKeyEvent
: nsIDOMUIEvent
1595 nsresult GetCharCode
(PRUint32
*aCharCode
);
1596 nsresult GetKeyCode
(PRUint32
*aKeyCode
);
1597 nsresult GetAltKey
(PRBool
*aAltKey
);
1598 nsresult GetCtrlKey
(PRBool
*aCtrlKey
);
1599 nsresult GetShiftKey
(PRBool
*aShiftKey
);
1600 nsresult GetMetaKey
(PRBool
*aMetaKey
);
1601 nsresult InitKeyEvent
(const nsAString
*typeArg
, PRBool canBubbleArg
,
1602 PRBool cancelableArg
, nsIDOMAbstractView
*viewArg
, PRBool ctrlKeyArg
,
1603 PRBool altKeyArg
, PRBool shiftKeyArg
, PRBool metaKeyArg
, PRUint32 keyCodeArg
,
1604 PRUint32 charCodeArg
);
1609 uuid(3e5432cd
-9568-4bd1
-8cbe
-d50aba110743
)
1612 interface nsIEmbeddingSiteWindow
: nsISupports
1614 nsresult SetDimensions
(PRUint32 flags
, PRInt32 x
, PRInt32 y
, PRInt32 cx
, PRInt32 cy
);
1615 nsresult GetDimensions
(PRUint32 flags
, PRInt32
*x
, PRInt32
*y
, PRInt32
*cx
, PRInt32
*cy
);
1616 nsresult SetFocus
();
1617 nsresult GetVisibility
(PRBool
*aVisibility
);
1618 nsresult SetVisibility
(PRBool aVisibility
);
1619 nsresult GetTitle
(PRUnichar
**aTitle
);
1620 nsresult SetTitle
(const PRUnichar
*aTitle
);
1621 nsresult GetSiteWindow
(void **aSiteWindow
);
1626 uuid(2417cbfe
-65ad
-48a6
-b4b6
-eb84db174392
)
1629 interface nsIComponentRegistrar
: nsISupports
1631 nsresult AutoRegister
(nsIFile
*aSpec
);
1632 nsresult AutoUnregister
(nsIFile
*aSpec
);
1633 nsresult RegisterFactory
(const nsCID
*aClass
, const char *aClassName
,
1634 const char *aContractID
, nsIFactory
*aFactory
);
1635 nsresult UnregisterFactory
(const nsCID
*aClass
, nsIFactory
*aFactory
);
1636 nsresult RegisterFactoryLocation
(const nsCID
*aClass
, const char *aClassName
,
1637 const char *aContractID
, nsIFile
*aFile
, const char *aLoaderStr
,
1639 nsresult UnregisterFactoryLocation
(const nsCID
*aClass
, nsIFile
*aFile
);
1640 nsresult IsCIDRegistered
(const nsCID
*aClass
, PRBool
*_retval
);
1641 nsresult IsContractIDRegistered
(const char *aContractID
, PRBool
*_retval
);
1642 nsresult EnumerateCIDs
(nsISimpleEnumerator
**_retval
);
1643 nsresult EnumerateContractIDs
(nsISimpleEnumerator
**_retval
);
1644 nsresult CIDToContractID
(const nsCID
*aClass
, char **_retval
);
1645 nsresult ContractIDToCID
(const char *aContractID
, nsCID
**_retval
);
1650 uuid(1630c61a
-325e-49ca
-8759-a31b16c47aa5
)
1653 interface nsIPromptService
: nsISupports
1655 nsresult Alert
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1656 const PRUnichar
*aText
);
1657 nsresult AlertCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1658 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
);
1659 nsresult Confirm
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1660 const PRUnichar
*aText
, PRBool
*_retval
);
1661 nsresult ConfirmCheck
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1662 const PRUnichar
*aText
, const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
,
1664 nsresult ConfirmEx
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1665 const PRUnichar
*aText
, PRUint32 aButtonFlags
, const PRUnichar
*aButton0Title
,
1666 const PRUnichar
*aButton1Title
, const PRUnichar
*aButton2Title
,
1667 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRInt32
*_retval
);
1668 nsresult Prompt
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1669 const PRUnichar
*aText
, PRUnichar
**aValue
, const PRUnichar
*aCheckMsg
,
1670 PRBool
*aCheckState
, PRBool
*_retval
);
1671 nsresult PromptUsernameAndPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1672 const PRUnichar
*aText
, PRUnichar
**aUsername
, PRUnichar
**aPassword
,
1673 const PRUnichar
*aCheckMsg
, PRBool
*aCheckState
, PRBool
*_retval
);
1674 nsresult PromptPassword
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1675 const PRUnichar
*aText
, PRUnichar
**aPassword
, const PRUnichar
*aCheckMsg
,
1676 PRBool
*aCheckState
, PRBool
*_retval
);
1677 nsresult Select
(nsIDOMWindow
*aParent
, const PRUnichar
*aDialogTitle
,
1678 const PRUnichar
*aText
, PRUint32 aCount
, const PRUnichar
**aSelectList
,
1679 PRInt32
*aOutSelection
, PRBool
*_retval
);
1684 uuid(b128a1e6
-44f3
-4331-8fbe
-5af360ff21ee
)
1687 interface nsITooltipTextProvider
: nsISupports
1689 nsresult GetNodeText
(nsIDOMNode
*aNode
, PRUnichar
**aText
, PRBool
*_retval
);
1694 uuid(02b0625a
-e7f3
-11d2
-9f5a
-006008a6efe9
)
1697 interface nsIProfile
: nsISupports
1699 nsresult GetProfileCount
(PRInt32
*aProfileCount
);
1700 nsresult GetProfileList
(PRUint32
*length
, PRUnichar
***profileNames
);
1701 nsresult ProfileExists
(const PRUnichar
*profileName
, PRBool
*_retval
);
1702 nsresult GetCurrentProfile
(PRUnichar
* *aCurrentProfile
);
1703 nsresult SetCurrentProfile
(const PRUnichar
* aCurrentProfile
);
1704 nsresult ShutDownCurrentProfile
(PRUint32 shutDownType
);
1705 nsresult CreateNewProfile
(const PRUnichar
*profileName
,
1706 const PRUnichar
*nativeProfileDir
, const PRUnichar
*langcode
,
1707 PRBool useExistingDir
);
1708 nsresult RenameProfile
(const PRUnichar
*oldName
, const PRUnichar
*newName
);
1709 nsresult DeleteProfile
(const PRUnichar
*name
, PRBool canDeleteFiles
);
1710 nsresult CloneProfile
(const PRUnichar
*profileName
);
1715 uuid(30465632-a777
-44cc
-90f9
-8145475ef999
)
1718 interface nsIWindowCreator
: nsISupports
1720 nsresult CreateChromeWindow
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
1721 nsIWebBrowserChrome
**_retval
);
1726 uuid(f673ec81
-a4b0
-11d6
-964b
-eb5a2bf216fc
)
1729 interface nsIWindowCreator2
: nsIWindowCreator
1731 nsresult CreateChromeWindow2
(nsIWebBrowserChrome
*parent
, PRUint32 chromeFlags
,
1732 PRUint32 contextFlags
, nsIURI
*uri
, PRBool
*cancel
,
1733 nsIWebBrowserChrome
**_retval
);
1738 uuid(002286a8
-494b
-43b3
-8ddd
-49e3fc50622b
)
1741 interface nsIWindowWatcher
: nsISupports
1743 nsresult OpenWindow
(nsIDOMWindow
*aParent
, const char *aUrl
, const char *aName
,
1744 const char *aFeatures
, nsISupports
*aArguments
, nsIDOMWindow
**_retval
);
1745 nsresult RegisterNotification
(nsIObserver
*aObserver
);
1746 nsresult UnregisterNotification
(nsIObserver
*aObserver
);
1747 nsresult GetWindowEnumerator
(nsISimpleEnumerator
**_retval
);
1748 nsresult GetNewPrompter
(nsIDOMWindow
*aParent
, nsIPrompt
**_retval
);
1749 nsresult GetNewAuthPrompter
(nsIDOMWindow
*aParent
, nsIAuthPrompt
**_retval
);
1750 nsresult SetWindowCreator
(nsIWindowCreator
*creator
);
1751 nsresult GetChromeForWindow
(nsIDOMWindow
*aWindow
, nsIWebBrowserChrome
**_retval
);
1752 nsresult GetWindowByName
(const PRUnichar
*aTargetName
, nsIDOMWindow
*aCurrentWindow
,
1753 nsIDOMWindow
**_retval
);
1754 nsresult GetActiveWindow
(nsIDOMWindow
**aActiveWindow
);
1755 nsresult SetActiveWindow
(nsIDOMWindow
*aActiveWindow
);
1760 uuid(d39fd2b4
-3978-45d2
-a4be
-ba448171b61b
)
1763 interface nsIEditingSession
: nsISupports
1765 nsresult GetEditorStatus
(PRUint32
*aEditorStatus
);
1766 nsresult MakeWindowEditable
(nsIDOMWindow
*window
, const char *aEditorType
,
1767 PRBool doAfterUriLoad
);
1768 nsresult WindowIsEditable
(nsIDOMWindow
*window
, PRBool
*_retval
);
1769 nsresult GetEditorForWindow
(nsIDOMWindow
*window
, nsIEditor
**_retval
);
1770 nsresult SetupEditorOnWindow
(nsIDOMWindow
*window
);
1771 nsresult TearDownEditorOnWindow
(nsIDOMWindow
*window
);
1772 nsresult SetEditorOnControllers
(nsIDOMWindow
*aWindow
, nsIEditor
*aEditor
);
1777 uuid(83f892cf
-7ed3
-490e-967a
-62640f3158e1
)
1780 interface nsICommandParams
: nsISupports
1782 nsresult GetValueType
(const char *name
, PRInt16
*_retval
);
1783 nsresult GetBooleanValue
(const char *name
, PRBool
*_retval
);
1784 nsresult GetLongValue
(const char *name
, PRInt32
*_retval
);
1785 nsresult GetDoubleValue
(const char *name
, double *_retval
);
1786 nsresult GetStringValue
(const char *name
, nsAString
*_retval
);
1787 nsresult GetCStringValue
(const char *name
, char **_retval
);
1788 nsresult GetISupportsValue
(const char *name
, nsISupports
**_retval
);
1789 nsresult SetBooleanValue
(const char *name
, PRBool value
);
1790 nsresult SetLongValue
(const char *name
, PRInt32 value
);
1791 nsresult SetDoubleValue
(const char *name
, double value
);
1792 nsresult SetStringValue
(const char *name
, const nsAString
*value
);
1793 nsresult SetCStringValue
(const char *name
, const char *value
);
1794 nsresult SetISupportsValue
(const char *name
, nsISupports
*value
);
1795 nsresult RemoveValue
(const char *name
);
1796 nsresult HasMoreElements
(PRBool
*_retval
);
1798 nsresult GetNext
(char **_retval
);
1803 uuid(080d2001
-f91e
-11d4
-a73c
-f9242928207c
)
1806 interface nsICommandManager
: nsISupports
1808 nsresult AddCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandToObserve
);
1809 nsresult RemoveCommandObserver
(nsIObserver
*aCommandObserver
, const char *aCommandObserved
);
1810 nsresult IsCommandSupported
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
1811 nsresult IsCommandEnabled
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
, PRBool
*_retval
);
1812 nsresult GetCommandState
(const char *aCommandName
, nsIDOMWindow
*aTargetWindow
,
1813 nsICommandParams
*aCommandParams
);
1814 nsresult DoCommand
(const char *aCommandName
, nsICommandParams
*aCommandParams
,
1815 nsIDOMWindow
*aTargetWindow
);
1820 uuid(47b82b60
-a36f
-4167-8072-6f421151ed50
)
1823 interface nsIControllerContext
: nsISupports
1825 nsresult Init
(nsIControllerCommandTable
*aCommandTable
);
1826 nsresult SetCommandContext
(nsISupports
*aCommandContext
);
1831 uuid(d5b61b82
-1da4
-11d3
-bf87
-00105a1b0627
)
1834 interface nsIController
: nsISupports
1836 nsresult IsCommandEnabled
(const char *command
, PRBool
*_retval
);
1837 nsresult SupportsCommand
(const char *command
, PRBool
*_retval
);
1838 nsresult DoCommand
(const char *command
);
1839 nsresult OnEvent
(const char *eventName
);
1844 uuid(d650439a
-ca29
-410d
-a906
-b0557fb62fcd
)
1847 interface nsIContentSerializer
: nsISupports
1849 nsresult Init
(PRUint32 flags
, PRUint32 aWrapColumn
, const char* aCharSet
, PRBool aIsCopying
);
1850 nsresult AppendText
(nsIDOMText
*aText
, PRInt32 aStartOffset
, PRInt32 aEndOffset
, nsAString
*aStr
);
1851 nsresult AppendCDATASection
(nsIDOMCDATASection
*aCDATASection
, PRInt32 aStartOffset
,
1852 PRInt32 aEndOffset
, nsAString
*aStr
);
1853 nsresult AppendProcessingInstruction
(nsIDOMProcessingInstruction
* aPI
, PRInt32 aStartOffset
,
1854 PRInt32 aEndOffset
, nsAString
*aStr
);
1855 nsresult AppendComment
(nsIDOMComment
*aComment
, PRInt32 aStartOffset
, PRInt32 aEndOffset
,
1857 nsresult AppendDoctype
(nsIDOMDocumentType
*aDoctype
, nsAString
*aStr
);
1858 nsresult AppendElementStart
(nsIDOMElement
*aElement
, PRBool aHasChildren
, nsAString
*aStr
);
1859 nsresult AppendElementEnd
(nsIDOMElement
*aElement
, nsAString
*aStr
);
1860 nsresult Flush
(nsAString
*aStr
);
1861 nsresult AppendDocumentStart
(nsIDOMDocument
*aDocument
, nsAString
*aStr
);
1866 uuid(68b97c56
-2289-48ac
-a9e1
-72c30fd3dba2
)
1868 interface nsIScriptContainer
: nsISupports
1870 typedef void *JSObject
;
1872 nsresult GetContext
(void **aContext
);
1873 nsresult GetGlobalObject
(void **aGlobalObject
);
1874 nsresult CompileScript
(const PRUnichar
*aText
, PRInt32 aTextLength
, void *aScopeObject
,
1875 nsIPrincipal
*aPrincipal
, const char *aURL
, PRUint32 aLineNo
, PRUint32 aVersion
, void **_retval
);
1876 nsresult ExecuteScript
(void *aScriptObject
, void *aScopeObject
, nsAString
*aRetVal
, PRBool
*aIsUndefined
);
1877 nsresult CompileFunction
(void *aTarget
, const nsACString
*aName
, PRUint32 aArgCount
,
1878 const char **aArgArray
, const nsAString
*aBody
, const char *aURL
, PRInt32 aLineNo
,
1879 PRBool aShared
, void* *_retval
);
1880 nsresult CallFunction
(nsISupports
*aTarget
, void *aScope
, void *aHandler
, nsIArray
*argv
,
1881 nsIVariant
**_retval
);
1882 nsresult BindEventHandler
(nsISupports
*aTarget
, void *aScope
, nsIAtom
*aName
, void *aHandler
);
1883 nsresult HoldScriptObject
(void *aObject
);
1884 nsresult DropScriptObject
(void *aObject
);
1889 * This is a private Wine interface that is implemented by our implementation
1890 * of nsIURI to store its owner.
1894 uuid(5088272e-900b
-11da
-c687
-000fea57f21a
)
1897 interface nsIWineURI
: nsIURI
1899 typedef struct NSContainer NSContainer
;
1901 nsresult GetNSContainer
(NSContainer
**aNSContainer
);
1902 nsresult SetNSContainer
(NSContainer
*aNSContainer
);
1903 nsresult GetIsDocumentURI
(PRBool
*aIsDocumentURI
);
1904 nsresult SetIsDocumentURI
(PRBool aIsDocumentURI
);
1905 nsresult GetWineURL
(LPCWSTR
*aURL
);
1906 nsresult SetWineURL
(LPCWSTR aURL
);