2005-08-01 12:59:45 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2005 Jacek Caban
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NOTE:
|
|
|
|
* This file is not an usual idl file. Interfaces in this file are XPCOM interfaces
|
|
|
|
* (NOT MSCOM!), but we generate the header file with WIDL compatibile with XPCOM,
|
|
|
|
* useable in C code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
import "wtypes.idl";
|
|
|
|
|
|
|
|
typedef HRESULT nsresult;
|
|
|
|
typedef ULONG nsrefcnt;
|
|
|
|
|
|
|
|
typedef IID nsIID;
|
|
|
|
typedef nsIID nsCID;
|
|
|
|
typedef REFIID nsIIDRef;
|
|
|
|
typedef nsIIDRef nsCIDRef;
|
|
|
|
|
|
|
|
typedef void** nsQIResult;
|
|
|
|
typedef LPSTR nsstring;
|
|
|
|
typedef WCHAR PRUnichar;
|
|
|
|
typedef LPWSTR nswstring;
|
|
|
|
typedef ULONG PRUint32;
|
|
|
|
typedef LONG PRInt32;
|
2005-08-25 21:24:58 +02:00
|
|
|
typedef WORD PRUint16;
|
2005-08-11 20:36:48 +02:00
|
|
|
typedef BYTE PRUint8;
|
2005-08-01 12:59:45 +02:00
|
|
|
typedef BOOL PRBool;
|
|
|
|
typedef LARGE_INTEGER PRInt64;
|
2005-08-25 21:24:58 +02:00
|
|
|
typedef ULARGE_INTEGER PRUint64;
|
|
|
|
typedef PRUint64 DOMTimeStamp;
|
2006-02-09 12:19:13 +01:00
|
|
|
typedef PRUint32 nsLoadFlags;
|
2005-08-01 12:59:45 +02:00
|
|
|
|
2006-02-09 12:17:38 +01:00
|
|
|
typedef struct nsCStringContainer nsCStringContainer;
|
2005-12-15 10:41:56 +01:00
|
|
|
typedef struct nsStringContainer nsStringContainer;
|
2006-02-09 12:17:38 +01:00
|
|
|
typedef nsCStringContainer nsACString;
|
2005-12-15 10:41:56 +01:00
|
|
|
typedef nsStringContainer nsAString;
|
|
|
|
|
2005-08-01 12:59:45 +02:00
|
|
|
interface nsIWebBrowserChrome;
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(00000000-0000-0000-c000-000000000046)
|
|
|
|
]
|
|
|
|
interface nsISupports
|
|
|
|
{
|
|
|
|
nsresult QueryInterface(nsIIDRef riid, nsQIResult result);
|
|
|
|
nsrefcnt AddRef();
|
|
|
|
nsrefcnt Release();
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Currently we don't need a full declaration of these interfaces */
|
|
|
|
typedef nsISupports nsIWeakReference;
|
|
|
|
typedef nsISupports nsIDOMWindow;
|
|
|
|
typedef nsISupports nsIDOMDocument;
|
|
|
|
typedef nsISupports nsISHistory;
|
|
|
|
typedef nsISupports nsISimpleEnumerator;
|
|
|
|
typedef nsISupports nsIWidget;
|
2005-08-11 20:36:48 +02:00
|
|
|
typedef nsISupports nsIProtocolHandler;
|
2005-08-25 21:24:58 +02:00
|
|
|
typedef nsISupports nsIDOMElement;
|
|
|
|
typedef nsISupports nsIDOMNode;
|
|
|
|
typedef nsISupports nsIDOMEventTarget;
|
|
|
|
typedef nsISupports nsIDOMAbstractView;
|
2005-09-02 14:19:42 +02:00
|
|
|
typedef nsISupports nsIStreamListener;
|
2006-02-09 12:19:13 +01:00
|
|
|
typedef nsISupports nsILoadGroup;
|
|
|
|
typedef nsISupports nsIInterfaceRequestor;
|
|
|
|
typedef nsISupports nsIHttpHeaderVisitor;
|
2005-08-01 12:59:45 +02:00
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(8bb35ed9-e332-462d-9155-4a002ab5c958)
|
|
|
|
]
|
|
|
|
interface nsIServiceManager : nsISupports
|
|
|
|
{
|
|
|
|
nsresult GetService(nsCIDRef aClass, nsIIDRef aIID, void **result);
|
|
|
|
nsresult GetServiceByContactID(nsstring aContactID, nsIIDRef aIID, void **result);
|
|
|
|
nsresult IsServiceInstantiated(nsCIDRef aClass, nsIIDRef aIID, BOOL *_retval);
|
|
|
|
nsresult IsServiceInstantiatedByContractID(nsstring aContractID, nsIIDRef aIID, BOOL *_retval);
|
|
|
|
}
|
|
|
|
|
2005-12-09 11:51:02 +01:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(00000001-0000-0000-c000-000000000046)
|
|
|
|
]
|
|
|
|
interface nsIFactory : nsISupports
|
|
|
|
{
|
|
|
|
nsresult CreateInstance(nsISupports *aOuter, const nsIID *iid, void **result);
|
|
|
|
nsresult LockFactory(PRBool lock);
|
|
|
|
}
|
|
|
|
|
2005-08-01 12:59:45 +02:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(db242e01-e4d9-11d2-9dde-000064657374)
|
|
|
|
]
|
|
|
|
interface nsIObserver : nsISupports
|
|
|
|
{
|
|
|
|
nsresult Observe(nsISupports *aSubject, nsstring aTopic, nswstring aData);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(a88e5a60-205a-4bb1-94e1-2628daf51eae)
|
|
|
|
]
|
|
|
|
interface nsIComponentManager : nsISupports
|
|
|
|
{
|
|
|
|
nsresult GetClassObject(nsCIDRef aClass, nsIIDRef aIID, nsQIResult result);
|
|
|
|
nsresult GetClassObjectByContractID(nsstring aContractID, nsIIDRef aIID, nsQIResult result);
|
|
|
|
nsresult CreateInstance(nsCIDRef aClass, nsISupports *aDelegate, nsIIDRef aIID,
|
|
|
|
nsQIResult result);
|
|
|
|
nsresult CreateInstanceByContractID(nsstring aContractID, nsISupports *aDelegate,
|
|
|
|
nsIIDRef aIID, nsQIResult result);
|
|
|
|
}
|
|
|
|
|
2006-02-10 14:49:41 +01:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a)
|
|
|
|
]
|
|
|
|
interface nsIInputStream : nsISupports
|
|
|
|
{
|
|
|
|
nsresult Close();
|
|
|
|
nsresult Available(PRUint32 *_retval);
|
|
|
|
nsresult Read(char *aBuf, PRUint32 aCount, PRUint32 *_retval);
|
|
|
|
nsresult ReadSegments(nsresult (*aWriter)(nsIInputStream *aInStream,
|
|
|
|
void *aClosure, const char *aFromSegment, PRUint32 aToOffset,
|
|
|
|
PRUint32 aCount, PRUint32 *aWriteCount),
|
|
|
|
void *aClosure, PRUint32 aCount, PRUint32 *_retval);
|
|
|
|
nsresult IsNonBlocking(PRBool *_retval);
|
|
|
|
}
|
|
|
|
|
2005-08-11 20:36:48 +02:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40)
|
|
|
|
]
|
|
|
|
interface nsIURI : nsISupports
|
|
|
|
{
|
|
|
|
nsresult GetSpec(nsACString *aSpec);
|
|
|
|
nsresult SetSpec(const nsACString *aSpec);
|
|
|
|
nsresult GetPrePath(nsACString *aPrePath);
|
|
|
|
nsresult GetScheme(nsACString *aScheme);
|
|
|
|
nsresult SetScheme(const nsACString *aScheme);
|
|
|
|
nsresult GetUserPass(nsACString *aUserPass);
|
|
|
|
nsresult SetUserPass(const nsACString *aUserPass);
|
|
|
|
nsresult GetUsername(nsACString *aUsername);
|
|
|
|
nsresult SetUsername(const nsACString *aUsername);
|
|
|
|
nsresult GetPassword(nsACString *aPassword);
|
|
|
|
nsresult SetPassword(const nsACString *aPassword);
|
|
|
|
nsresult GetHostPort(nsACString *aHostPort);
|
|
|
|
nsresult SetHostPort(const nsACString *aHostPort);
|
|
|
|
nsresult GetHost(nsACString *aHost);
|
|
|
|
nsresult SetHost(const nsACString *aHost);
|
|
|
|
nsresult GetPort(PRInt32 *aPort);
|
|
|
|
nsresult SetPort(PRInt32 aPort);
|
|
|
|
nsresult GetPath(nsACString *aPath);
|
|
|
|
nsresult SetPath(const nsACString *aPath);
|
|
|
|
nsresult Equals(nsIURI *other, PRBool *_retval);
|
|
|
|
nsresult SchemeIs(const char *scheme, PRBool *_retval);
|
|
|
|
nsresult Clone(nsIURI **_retval);
|
|
|
|
nsresult Resolve(const nsACString *relativePath, nsACString *_retval);
|
|
|
|
nsresult GetAsciiSpec(nsACString *aAsciiSpec);
|
|
|
|
nsresult GetAsciiHost(nsACString *aAsciiHost);
|
|
|
|
nsresult GetOriginCharset(nsACString *aOriginCharset);
|
|
|
|
}
|
|
|
|
|
2006-02-09 12:19:13 +01:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe)
|
|
|
|
]
|
|
|
|
interface nsIRequest : nsISupports
|
|
|
|
{
|
|
|
|
nsresult GetName(nsACString *aName);
|
|
|
|
nsresult IsPending(PRBool *_retval);
|
|
|
|
nsresult GetStatus(nsresult *aStatus);
|
|
|
|
nsresult Cancel(nsresult aStatus);
|
|
|
|
nsresult Suspend();
|
|
|
|
nsresult Resume();
|
|
|
|
nsresult GetLoadGroup(nsILoadGroup **aLoadGroup);
|
|
|
|
nsresult SetLoadGroup(nsILoadGroup *aLoadGroup);
|
|
|
|
nsresult GetLoadFlags(nsLoadFlags *aLoadFlags);
|
|
|
|
nsresult SetLoadFlags(nsLoadFlags aLoadFlags);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(c63a055a-a676-4e71-bf3c-6cfa11082018)
|
|
|
|
]
|
|
|
|
interface nsIChannel : nsIRequest
|
|
|
|
{
|
|
|
|
nsresult GetOriginalURI(nsIURI **aOriginalURI);
|
|
|
|
nsresult SetOriginalURI(nsIURI *aOriginalURI);
|
|
|
|
nsresult GetURI(nsIURI **aURI);
|
|
|
|
nsresult GetOwner(nsISupports **aOwner);
|
|
|
|
nsresult SetOwner(nsISupports *aOwner);
|
|
|
|
nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks);
|
|
|
|
nsresult SetNotificationCallbacks(nsIInterfaceRequestor *aNotificationCallbacks);
|
|
|
|
nsresult GetSecurityInfo(nsISupports **aSecurityInfo);
|
|
|
|
nsresult GetContentType(nsACString *aContentType);
|
|
|
|
nsresult SetContentType(const nsACString *aContentType);
|
|
|
|
nsresult GetContentCharset(nsACString *aContentCharset);
|
|
|
|
nsresult SetContentCharset(const nsACString *aContentCharset);
|
|
|
|
nsresult GetContentLength(PRInt32 *aContentLength);
|
|
|
|
nsresult SetContentLength(PRInt32 aContentLength);
|
|
|
|
nsresult Open(nsIInputStream **_retval);
|
|
|
|
nsresult AsyncOpen(nsIStreamListener *aListener, nsISupports *aContext);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(9277fe09-f0cc-4cd9-bbce-581dd94b0260)
|
|
|
|
]
|
|
|
|
interface nsIHttpChannel : nsIChannel
|
|
|
|
{
|
|
|
|
nsresult GetRequestMethod(nsACString *aRequestMethod);
|
|
|
|
nsresult SetRequestMethod(const nsACString *aRequestMethod);
|
|
|
|
nsresult GetReferrer(nsIURI **aReferrer);
|
|
|
|
nsresult SetReferrer(nsIURI *aReferrer);
|
|
|
|
nsresult GetRequestHeader(const nsACString *aHeader, nsACString *_retval);
|
|
|
|
nsresult SetRequestHeader(const nsACString *aHeader, const nsACString *aValue, PRBool aMerge);
|
|
|
|
nsresult VisitRequestHeaders(nsIHttpHeaderVisitor *aVisitor);
|
|
|
|
nsresult GetAllowPipelining(PRBool *aAllowPipelining);
|
|
|
|
nsresult SetAllowPipelining(PRBool aAllowPipelining);
|
|
|
|
nsresult GetRedirectionLimit(PRUint32 *aRedirectionLimit);
|
|
|
|
nsresult SetRedirectionLimit(PRUint32 aRedirectionLimit);
|
|
|
|
nsresult GetResponseStatus(PRUint32 *aResponseStatus);
|
|
|
|
nsresult GetResponseStatusText(nsACString *aResponseStatusText);
|
|
|
|
nsresult GetRequestSucceeded(PRBool *aRequestSucceeded);
|
|
|
|
nsresult GetResponseHeader(const nsACString *header, nsACString *_retval);
|
|
|
|
nsresult SetResponseHeader(const nsACString *header, const nsACString *value, PRBool merge);
|
|
|
|
nsresult VisitResponseHeaders(nsIHttpHeaderVisitor *aVisitor);
|
|
|
|
nsresult IsNoStoreResponse(PRBool *_retval);
|
|
|
|
nsresult IsNoCacheResponse(PRBool *_retval);
|
|
|
|
}
|
|
|
|
|
2006-02-10 14:49:41 +01:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(ddf633d8-e9a4-439d-ad88-de636fd9bb75)
|
|
|
|
]
|
|
|
|
interface nsIUploadChannel : nsISupports
|
|
|
|
{
|
|
|
|
nsresult SetUploadStream(nsIInputStream *aStream, const nsACString *aContentType,
|
|
|
|
PRInt32 aContentLength);
|
|
|
|
nsresult GetUploadStream(nsIInputStream **aUploadStream);
|
|
|
|
}
|
|
|
|
|
2005-09-02 14:19:42 +02:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(94928ab3-8b63-11d3-989d-001083010e9b)
|
|
|
|
]
|
|
|
|
interface nsIURIContentListener : nsISupports
|
|
|
|
{
|
|
|
|
nsresult OnStartURIOpen(nsIURI *aURI, PRBool *_retval);
|
|
|
|
nsresult DoContent(const char *aContentType, PRBool aIsContentPreferred, nsIRequest *aRequest,
|
|
|
|
nsIStreamListener **aContentHandler, PRBool *_retval);
|
|
|
|
nsresult IsPreferred(const char *aContentType, char **aDesiredContentType, PRBool *_retval);
|
|
|
|
nsresult CanHandleContent(const char *aContentType, PRBool aIsContentPreferred,
|
|
|
|
char **aDesiredContentType, PRBool *_retval);
|
|
|
|
nsresult GetLoadCookie(nsISupports **aLoadCookie);
|
|
|
|
nsresult SetLoadCookie(nsISupports *aLoadCookie);
|
|
|
|
nsresult GetParentContentListener(nsIURIContentListener **aParentContentListener);
|
|
|
|
nsresult SetParentContentListener(nsIURIContentListener *aParentContentListener);
|
|
|
|
}
|
|
|
|
|
2005-08-01 12:59:45 +02:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(69e5df00-7b8b-11d3-af61-00a024ffc08c)
|
|
|
|
]
|
|
|
|
interface nsIWebBrowser : nsISupports
|
|
|
|
{
|
|
|
|
nsresult AddWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
|
|
|
|
nsresult RemoveWebBrowserListener(nsIWeakReference *aListener, const nsIID *aIID);
|
|
|
|
nsresult GetContainerWindow(nsIWebBrowserChrome **aContainerWindow);
|
|
|
|
nsresult SetContainerWindow(nsIWebBrowserChrome *aContainerWindow);
|
|
|
|
nsresult GetParentURIContentListener(nsIURIContentListener **aParentURIContentListener);
|
|
|
|
nsresult SetParentURIContentListener(nsIURIContentListener *aParentURIContentListener);
|
|
|
|
nsresult GetContentDOMWindow(nsIDOMWindow **aContentDOMWindow);
|
|
|
|
}
|
|
|
|
|
|
|
|
cpp_quote("#define SETUP_IS_CHROME_WRAPPER 7");
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(f15398a0-8018-11d3-af70-00a024ffc08c)
|
|
|
|
]
|
|
|
|
interface nsIWebBrowserSetup : nsISupports
|
|
|
|
{
|
|
|
|
nsresult SetProperty(PRUint32 aId, PRUint32 aValue);
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef void* nativeWindow;
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(046bc8a0-8015-11d3-af70-00a024ffc08c)
|
|
|
|
]
|
|
|
|
interface nsIBaseWindow : nsISupports
|
|
|
|
{
|
|
|
|
nsresult InitWindow(nativeWindow parentNativeWindow, nsIWidget *parentWidget, PRInt32 x,
|
|
|
|
PRInt32 y, PRInt32 cx, PRInt32 cy);
|
|
|
|
nsresult Create();
|
|
|
|
nsresult Destroy();
|
|
|
|
nsresult SetPosition(PRInt32 x, PRInt32 y);
|
|
|
|
nsresult GetPosition(PRInt32 *x, PRInt32 *y);
|
|
|
|
nsresult SetSize(PRInt32 cx, PRInt32 cy, PRBool fRepaint);
|
|
|
|
nsresult GetSize(PRInt32 *cx, PRInt32 *cy);
|
|
|
|
nsresult SetPositionAndSize(PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy, PRBool fRepaint);
|
|
|
|
nsresult GetPositionAndSize(PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
|
|
|
|
nsresult Repaint(PRBool force);
|
|
|
|
nsresult GetParentWidget(nsIWidget **aParentWidget);
|
|
|
|
nsresult SetParentWidget(nsIWidget *aParentWidget);
|
|
|
|
nsresult GetParentNativeWindow(nativeWindow *aParentNativeWindow);
|
|
|
|
nsresult SetParentNativeWindow(nativeWindow aParentNativeWindow);
|
|
|
|
nsresult GetVisibility(PRBool *aVisibility);
|
|
|
|
nsresult SetVisibility(PRBool aVisibility);
|
|
|
|
nsresult GetEnabled(PRBool *aEnabled);
|
|
|
|
nsresult SetEnabled(PRBool aEnabled);
|
|
|
|
nsresult GetBlurSuppression(PRBool *aBlurSuppression);
|
|
|
|
nsresult SetBlurSuppression(PRBool aBlurSuppression);
|
|
|
|
nsresult GetMainWidget(nsIWidget **aMainWidget);
|
|
|
|
nsresult SetFocus();
|
|
|
|
nsresult GetTitle(PRUnichar **aTitle);
|
|
|
|
nsresult SetTitle(const PRUnichar *aTitle);
|
|
|
|
}
|
|
|
|
|
|
|
|
cpp_quote("#define LOAD_FLAGS_NONE 0");
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(f5d9e7b0-d930-11d3-b057-00a024ffc08c)
|
|
|
|
]
|
|
|
|
interface nsIWebNavigation : nsISupports
|
|
|
|
{
|
|
|
|
nsresult GetCanGoBack(PRBool *aCanGoBack);
|
|
|
|
nsresult GetCanGoForward(PRBool *aCanGoForward);
|
|
|
|
nsresult GoBack();
|
|
|
|
nsresult GoForward();
|
|
|
|
nsresult GotoIndex(PRInt32 index);
|
|
|
|
nsresult LoadURI(const PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI *aReferrer,
|
|
|
|
nsIInputStream *aPostData, nsIInputStream *aHeaders);
|
|
|
|
nsresult Reload(PRUint32 aReloadFlags);
|
|
|
|
nsresult Stop(PRUint32 aStopFlags);
|
|
|
|
nsresult GetDocument(nsIDOMDocument **aDocument);
|
|
|
|
nsresult GetCurrentURI(nsIURI **aCurrentURI);
|
|
|
|
nsresult GetReferringURI(nsIURI **aReferringURI);
|
|
|
|
nsresult GetSessionHistory(nsISHistory **aSessionHistory);
|
|
|
|
nsresult SetSessionHistory(nsISHistory *aSessionHistory);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)
|
|
|
|
]
|
|
|
|
interface nsIFile : nsISupports
|
|
|
|
{
|
|
|
|
nsresult Append(const nsAString *node);
|
|
|
|
nsresult AppendNative(const nsAString *node);
|
|
|
|
nsresult Normalize();
|
|
|
|
nsresult Create(PRUint32 type, PRUint32 permission);
|
|
|
|
nsresult GetLeafName(nsAString *aLeafName);
|
|
|
|
nsresult SetLeafName(const nsAString *aLeafName);
|
|
|
|
nsresult GetNativeLeafName(nsAString *aLeafName);
|
|
|
|
nsresult SetNativeLeafName(const nsAString *aLeafName);
|
|
|
|
nsresult CopyTo(nsIFile *newParentDir, const nsAString *newName);
|
|
|
|
nsresult CopyToNative(nsIFile *newParentDir, const nsAString *newName);
|
|
|
|
nsresult CopyToFollowingLinks(nsIFile *newParentDir, const nsAString *newName);
|
|
|
|
nsresult CopyToFollowingLinksNative(nsIFile *newParentDir, const nsAString *newName);
|
|
|
|
nsresult MoveTo(nsIFile *newParentDir, const nsAString *newName);
|
|
|
|
nsresult MoveToNative(nsIFile *newParentDir, const nsAString *newName);
|
|
|
|
nsresult Remove(PRBool recursive);
|
|
|
|
nsresult GetPermissions(PRUint32 *aPermissions);
|
|
|
|
nsresult SetPermissions(PRUint32 pPermissions);
|
|
|
|
nsresult GetPermissionsOfLink(PRUint32 *aPermissions);
|
|
|
|
nsresult SetPermissionsOfLink(PRUint32 pPermissions);
|
|
|
|
nsresult GetLastModifiedTime(PRInt64 *aLastModifiedTime);
|
|
|
|
nsresult SetLastModifiedTime(PRInt64 aLastModifiedTime);
|
|
|
|
nsresult GetFileSize(PRInt64 *aFileSize);
|
|
|
|
nsresult SetFileSize(PRInt64 aFileSize);
|
|
|
|
nsresult GetFileSizeOfLink(PRInt64 *aFileSizeOfLink);
|
|
|
|
nsresult GetTarget(nsAString *aTarget);
|
|
|
|
nsresult GetNativeTarget(nsACString *aNativeTarget);
|
|
|
|
nsresult GetPath(nsAString *aPath);
|
|
|
|
nsresult GetNativePath(nsACString *aNativePath);
|
|
|
|
nsresult Exists(PRBool *_retval);
|
|
|
|
nsresult IsWritable(PRBool *_retval);
|
|
|
|
nsresult IsReadable(PRBool *_retval);
|
|
|
|
nsresult IsExecutable(PRBool *_retval);
|
|
|
|
nsresult IsHidden(PRBool *_retval);
|
|
|
|
nsresult IsDirectory(PRBool *_retval);
|
|
|
|
nsresult IsFile(PRBool *_retval);
|
|
|
|
nsresult IsSymlink(PRBool *_retval);
|
|
|
|
nsresult IsSpecial(PRBool *_retval);
|
|
|
|
nsresult CreateUnique(PRUint32 type, PRUint32 permission);
|
|
|
|
nsresult Clone(nsIFile **_retval);
|
|
|
|
nsresult Equals(nsIFile *inFile, PRBool *_retval);
|
|
|
|
nsresult Contains(nsIFile *inFile, PRBool recir, PRBool *_retval);
|
|
|
|
nsresult GetParent(nsIFile **aParent);
|
|
|
|
nsresult GetDirectoryEntries(nsISimpleEnumerator **aDirectoryEntries);
|
|
|
|
}
|
2005-08-11 20:36:48 +02:00
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(86d02f0e-219b-4cfc-9c88-bd98d2cce0b8)
|
|
|
|
]
|
|
|
|
interface nsIWebBrowserStream : nsISupports
|
|
|
|
{
|
|
|
|
nsresult OpenStream(nsIURI *aBaseURI, nsACString *aContentType);
|
|
|
|
nsresult AppendToStream(PRUint8 *aData, PRUint32 aLen);
|
|
|
|
nsresult CloseStream();
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(bddeda3f-9020-4d12-8c70-984ee9f7935e)
|
|
|
|
]
|
|
|
|
interface nsIIOService : nsISupports
|
|
|
|
{
|
|
|
|
nsresult GetProtocolHandler(const char *aScheme, nsIProtocolHandler **_retval);
|
|
|
|
nsresult GetProtocolFlags(const char *aScheme, PRUint32 *_retval);
|
2006-02-09 12:17:08 +01:00
|
|
|
nsresult NewURI(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
|
|
|
|
nsIURI **_retval);
|
2005-08-11 20:36:48 +02:00
|
|
|
nsresult NewFileURI(nsIFile *aFile, nsIURI **_retval);
|
|
|
|
nsresult NewChannelFromURI(nsIURI *aURI, nsIChannel **_retval);
|
2006-02-09 12:17:08 +01:00
|
|
|
nsresult NewChannel(const nsACString *aSpec, const char *aOriginCharset, nsIURI *aBaseURI,
|
|
|
|
nsIChannel **_retval);
|
2005-08-11 20:36:48 +02:00
|
|
|
nsresult GetOffline(PRBool *aOffline);
|
|
|
|
nsresult SetOffline(PRBool aOffline);
|
|
|
|
nsresult AllowPort(PRInt32 aPort, const char *aScheme, PRBool *_retval);
|
2006-02-09 12:17:08 +01:00
|
|
|
nsresult ExtractScheme(const nsACString *urlString, nsACString * _retval);
|
2005-08-11 20:36:48 +02:00
|
|
|
}
|
2005-08-25 21:24:58 +02:00
|
|
|
|
2005-08-26 12:05:52 +02:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(9c5d3c58-1dd1-11b2-a1c9-f3699284657a)
|
|
|
|
]
|
|
|
|
interface nsIWebBrowserFocus : nsISupports
|
|
|
|
{
|
|
|
|
nsresult Activate();
|
|
|
|
nsresult Deactivate();
|
|
|
|
nsresult SetFocusAtFirstElement();
|
|
|
|
nsresult SetFocusAtLastElement();
|
|
|
|
nsresult GetFocusedWindow(nsIDOMWindow **aFocusedWindow);
|
|
|
|
nsresult SetFocusedWindow(nsIDOMWindow *aFocusedWindow);
|
|
|
|
nsresult GetFocusedElement(nsIDOMElement **aFocusedElement);
|
|
|
|
nsresult SetFocusedElement(nsIDOMElement *aFocusedElement);
|
|
|
|
}
|
|
|
|
|
2005-08-25 21:24:58 +02:00
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(ba434c60-9d52-11d3-afb0-00a024ffc08c)
|
|
|
|
]
|
|
|
|
interface nsIWebBrowserChrome : nsISupports
|
|
|
|
{
|
|
|
|
nsresult SetStatus(PRUint32 statusType, const PRUnichar *status);
|
|
|
|
nsresult GetWebBrowser(nsIWebBrowser **aWebBrowser);
|
|
|
|
nsresult SetWebBrowser(nsIWebBrowser *aWebBrowser);
|
|
|
|
nsresult GetChromeFlags(PRUint32 *aChromeFlags);
|
|
|
|
nsresult SetChromeFlags(PRUint32 aChromeFlags);
|
|
|
|
nsresult DestroyBrowserWindow();
|
|
|
|
nsresult SizeBrowserTo(PRInt32 aCX, PRInt32 aCY);
|
|
|
|
nsresult ShowAsModal();
|
|
|
|
nsresult IsWindowModal(PRBool *_retval);
|
|
|
|
nsresult ExitModalEventLoop(nsresult aStatus);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(a66b7b80-ff46-bd97-0080-5f8ae38add32)
|
|
|
|
]
|
|
|
|
interface nsIDOMEvent : nsISupports
|
|
|
|
{
|
|
|
|
nsresult GetType(nsAString *aType);
|
|
|
|
nsresult GetTarget(nsIDOMEventTarget **aTarget);
|
|
|
|
nsresult GetCurrentTarget(nsIDOMEventTarget **aCurrentTarget);
|
|
|
|
nsresult GetEventPhase(PRUint16 *aEventPhase);
|
|
|
|
nsresult GetBubbles(PRBool *aBubbles);
|
|
|
|
nsresult GetCancelable(PRBool *aCancelable);
|
|
|
|
nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
|
|
|
|
nsresult StopPropagation();
|
|
|
|
nsresult PreventDefault();
|
|
|
|
nsresult InitEvent(const nsAString *eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
|
|
|
|
}
|
|
|
|
|
|
|
|
cpp_quote("#define CONTEXT_NONE 0x00");
|
|
|
|
cpp_quote("#define CONTEXT_LINK 0x01");
|
|
|
|
cpp_quote("#define CONTEXT_IMAGE 0x02");
|
|
|
|
cpp_quote("#define CONTEXT_DOCUMENT 0x04");
|
|
|
|
cpp_quote("#define CONTEXT_TEXT 0x08");
|
|
|
|
cpp_quote("#define CONTEXT_INPUT 0x10");
|
|
|
|
cpp_quote("#define CONTEXT_BACKGROUND_IMAGE 0x20");
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(3478b6b0-3875-11d4-94ef-0020183bf181)
|
|
|
|
]
|
|
|
|
interface nsIContextMenuListener : nsISupports
|
|
|
|
{
|
|
|
|
nsresult OnShowContextMenu(PRUint32 aContextFlags, nsIDOMEvent *aEvent, nsIDOMNode *aNode);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(a6cf90c3-15b3-11d2-932e-00805f8add32)
|
|
|
|
]
|
|
|
|
interface nsIDOMUIEvent : nsIDOMEvent
|
|
|
|
{
|
|
|
|
nsresult GetView(nsIDOMAbstractView **aView);
|
|
|
|
nsresult GetDetail(PRInt32 *aDetail);
|
|
|
|
nsresult InitUIEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
|
|
|
|
nsIDOMAbstractView *viewArg, PRInt32 detailArg);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(ff751edc-8b02-aae7-0010-8301838a3123)
|
|
|
|
]
|
|
|
|
interface nsIDOMMouseEvent : nsIDOMUIEvent
|
|
|
|
{
|
|
|
|
nsresult GetScreenX(PRInt32 *aScreenX);
|
|
|
|
nsresult GetScreenY(PRInt32 *aScreenY);
|
|
|
|
nsresult GetClientX(PRInt32 *aClientX);
|
|
|
|
nsresult GetClientY(PRInt32 *aClientY);
|
|
|
|
nsresult GetCtrlKey(PRBool *aCtrlKey);
|
|
|
|
nsresult GetShiftKey(PRBool *aShiftKey);
|
|
|
|
nsresult GetAltKey(PRBool *aAltKey);
|
|
|
|
nsresult GetMetaKey(PRBool *aMetaKey);
|
|
|
|
nsresult GetButton(PRUint16 *aButton);
|
|
|
|
nsresult GetRelatedTarget(nsIDOMEventTarget * *aRelatedTarget);
|
|
|
|
nsresult InitMouseEvent(const nsAString *typeArg, PRBool canBubbleArg, PRBool cancelableArg,
|
|
|
|
nsIDOMAbstractView *viewArg, PRInt32 detailArg, PRInt32 screenXArg, PRInt32 screenYArg,
|
|
|
|
PRInt32 clientXArg, PRInt32 clientYArg, PRBool ctrlKeyArg, PRBool altKeyArg,
|
|
|
|
PRBool shiftKeyArg, PRBool metaKeyArg, PRUint16 buttonArg,
|
|
|
|
nsIDOMEventTarget *relatedTargetArg);
|
|
|
|
}
|
2005-12-09 11:23:58 +01:00
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(3e5432cd-9568-4bd1-8cbe-d50aba110743)
|
|
|
|
]
|
|
|
|
interface nsIEmbeddingSiteWindow : nsISupports
|
|
|
|
{
|
|
|
|
nsresult SetDimensions(PRUint32 flags, PRInt32 x, PRInt32 y, PRInt32 cx, PRInt32 cy);
|
|
|
|
nsresult GetDimensions(PRUint32 flags, PRInt32 *x, PRInt32 *y, PRInt32 *cx, PRInt32 *cy);
|
|
|
|
nsresult SetFocus();
|
|
|
|
nsresult GetVisibility(PRBool *aVisibility);
|
|
|
|
nsresult SetVisibility(PRBool aVisibility);
|
|
|
|
nsresult GetTitle(PRUnichar **aTitle);
|
|
|
|
nsresult SetTitle(const PRUnichar *aTitle);
|
|
|
|
nsresult GetSiteWindow(void **aSiteWindow);
|
|
|
|
}
|
2005-12-09 11:51:02 +01:00
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(2417cbfe-65ad-48a6-b4b6-eb84db174392)
|
|
|
|
]
|
|
|
|
interface nsIComponentRegistrar : nsISupports
|
|
|
|
{
|
|
|
|
nsresult AutoRegister(nsIFile *aSpec);
|
|
|
|
nsresult AutoUnregister(nsIFile *aSpec);
|
|
|
|
nsresult RegisterFactory(const nsCID *aClass, const char *aClassName,
|
|
|
|
const char *aContractID, nsIFactory *aFactory);
|
|
|
|
nsresult UnregisterFactory(const nsCID *aClass, nsIFactory *aFactory);
|
|
|
|
nsresult RegisterFactoryLocation(const nsCID *aClass, const char *aClassName,
|
|
|
|
const char *aContractID, nsIFile *aFile, const char *aLoaderStr,
|
|
|
|
const char *aType);
|
|
|
|
nsresult UnregisterFactoryLocation(const nsCID *aClass, nsIFile *aFile);
|
|
|
|
nsresult IsCIDRegistered(const nsCID *aClass, PRBool *_retval);
|
|
|
|
nsresult IsContractIDRegistered(const char *aContractID, PRBool *_retval);
|
|
|
|
nsresult EnumerateCIDs(nsISimpleEnumerator **_retval);
|
|
|
|
nsresult EnumerateContractIDs(nsISimpleEnumerator **_retval);
|
|
|
|
nsresult CIDToContractID(const nsCID *aClass, char **_retval);
|
|
|
|
nsresult ContractIDToCID(const char *aContractID, nsCID **_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(1630c61a-325e-49ca-8759-a31b16c47aa5)
|
|
|
|
]
|
|
|
|
interface nsIPromptService : nsISupports
|
|
|
|
{
|
|
|
|
nsresult Alert(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
|
|
|
|
const PRUnichar *aText);
|
|
|
|
nsresult AlertCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
|
|
|
|
const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState);
|
|
|
|
nsresult Confirm(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
|
|
|
|
const PRUnichar *aText, PRBool *_retval);
|
|
|
|
nsresult ConfirmCheck(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
|
|
|
|
const PRUnichar *aText, const PRUnichar *aCheckMsg, PRBool *aCheckState,
|
|
|
|
PRBool *_retval);
|
|
|
|
nsresult ConfirmEx(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
|
|
|
|
const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title,
|
|
|
|
const PRUnichar *aButton1Title, const PRUnichar *aButton2Title,
|
|
|
|
const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval);
|
|
|
|
nsresult Prompt(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
|
|
|
|
const PRUnichar *aText, PRUnichar **aValue, const PRUnichar *aCheckMsg,
|
|
|
|
PRBool *aCheckState, PRBool *_retval);
|
|
|
|
nsresult PromptUsernameAndPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
|
|
|
|
const PRUnichar *aText, PRUnichar **aUsername, PRUnichar **aPassword,
|
|
|
|
const PRUnichar *aCheckMsg, PRBool *aCheckState, PRBool *_retval);
|
|
|
|
nsresult PromptPassword(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
|
|
|
|
const PRUnichar *aText, PRUnichar **aPassword, const PRUnichar *aCheckMsg,
|
|
|
|
PRBool *aCheckState, PRBool *_retval);
|
|
|
|
nsresult Select(nsIDOMWindow *aParent, const PRUnichar *aDialogTitle,
|
|
|
|
const PRUnichar *aText, PRUint32 aCount, const PRUnichar **aSelectList,
|
|
|
|
PRInt32 *aOutSelection, PRBool *_retval);
|
|
|
|
}
|
2005-12-15 10:26:11 +01:00
|
|
|
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(02b0625a-e7f3-11d2-9f5a-006008a6efe9)
|
|
|
|
]
|
|
|
|
interface nsIProfile : nsISupports
|
|
|
|
{
|
|
|
|
nsresult GetProfileCount(PRInt32 *aProfileCount);
|
|
|
|
nsresult GetProfileList(PRUint32 *length, PRUnichar ***profileNames);
|
|
|
|
nsresult ProfileExists(const PRUnichar *profileName, PRBool *_retval);
|
|
|
|
nsresult GetCurrentProfile(PRUnichar * *aCurrentProfile);
|
|
|
|
nsresult SetCurrentProfile(const PRUnichar * aCurrentProfile);
|
|
|
|
nsresult ShutDownCurrentProfile(PRUint32 shutDownType);
|
|
|
|
nsresult CreateNewProfile(const PRUnichar *profileName,
|
|
|
|
const PRUnichar *nativeProfileDir, const PRUnichar *langcode,
|
|
|
|
PRBool useExistingDir);
|
|
|
|
nsresult RenameProfile(const PRUnichar *oldName, const PRUnichar *newName);
|
|
|
|
nsresult DeleteProfile(const PRUnichar *name, PRBool canDeleteFiles);
|
|
|
|
nsresult CloneProfile(const PRUnichar *profileName);
|
|
|
|
}
|
2006-02-09 12:18:18 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* NOTE:
|
|
|
|
* This is a private Wine interface that is implemented by our implementation
|
|
|
|
* of nsIURI to store its owner.
|
|
|
|
*/
|
|
|
|
[
|
|
|
|
object,
|
|
|
|
uuid(5088272e-900b-11da-c687-000fea57f21a)
|
|
|
|
]
|
|
|
|
interface nsIWineURI : nsIURI
|
|
|
|
{
|
|
|
|
typedef struct NSContainer NSContainer;
|
|
|
|
|
|
|
|
nsresult GetNSContainer(NSContainer **aNSContainer);
|
|
|
|
nsresult SetNSContainer(NSContainer *aNSContainer);
|
|
|
|
}
|