зеркало из https://github.com/mozilla/gecko-dev.git
some cleanup
This commit is contained in:
Родитель
a6268eee92
Коммит
c43d79c0f6
|
@ -34,42 +34,44 @@ class nsFileWidget : public nsWindow, public nsIFileWidget
|
||||||
nsFileWidget();
|
nsFileWidget();
|
||||||
virtual ~nsFileWidget();
|
virtual ~nsFileWidget();
|
||||||
|
|
||||||
NS_DECL_ISUPPORTS
|
// nsISupports
|
||||||
|
NS_IMETHOD_(nsrefcnt) AddRef();
|
||||||
|
NS_IMETHOD_(nsrefcnt) Release();
|
||||||
|
NS_IMETHOD QueryInterface(const nsIID& aIID, void** aInstancePtr);
|
||||||
|
|
||||||
|
|
||||||
NS_IMETHOD Create(nsIWidget *aParent,
|
|
||||||
const nsRect &aRect,
|
|
||||||
EVENT_CALLBACK aHandleEventFunction,
|
|
||||||
nsIDeviceContext *aContext = nsnull,
|
|
||||||
nsIAppShell *aAppShell = nsnull,
|
|
||||||
nsIToolkit *aToolkit = nsnull,
|
|
||||||
nsWidgetInitData *aInitData = nsnull);
|
|
||||||
|
|
||||||
NS_IMETHOD Create(nsNativeWidget aParent,
|
|
||||||
const nsRect &aRect,
|
|
||||||
EVENT_CALLBACK aHandleEventFunction,
|
|
||||||
nsIDeviceContext *aContext = nsnull,
|
|
||||||
nsIAppShell *aAppShell = nsnull,
|
|
||||||
nsIToolkit *aToolkit = nsnull,
|
|
||||||
nsWidgetInitData *aInitData = nsnull);
|
|
||||||
|
|
||||||
// nsIWidget interface
|
// nsIWidget interface
|
||||||
|
NS_IMETHOD Create(nsIWidget *aParent,
|
||||||
NS_IMETHOD Create( nsIWidget *aParent,
|
const nsRect &aRect,
|
||||||
nsString& aTitle,
|
EVENT_CALLBACK aHandleEventFunction,
|
||||||
nsMode aMode,
|
nsIDeviceContext *aContext,
|
||||||
nsIDeviceContext *aContext = nsnull,
|
nsIAppShell *aAppShell = nsnull,
|
||||||
nsIAppShell *aAppShell = nsnull,
|
nsIToolkit *aToolkit = nsnull,
|
||||||
nsIToolkit *aToolkit = nsnull,
|
nsWidgetInitData *aInitData = nsnull);
|
||||||
void *aInitData = nsnull);
|
NS_IMETHOD Create(nsNativeWidget aNativeParent,
|
||||||
|
const nsRect &aRect,
|
||||||
|
EVENT_CALLBACK aHandleEventFunction,
|
||||||
|
nsIDeviceContext *aContext,
|
||||||
|
nsIAppShell *aAppShell = nsnull,
|
||||||
|
nsIToolkit *aToolkit = nsnull,
|
||||||
|
nsWidgetInitData *aInitData = nsnull);
|
||||||
|
|
||||||
|
// nsIFileWidget interface
|
||||||
|
NS_IMETHOD Create(nsIWidget *aParent,
|
||||||
|
nsString& aTitle,
|
||||||
|
nsMode aMode,
|
||||||
|
nsIDeviceContext *aContext = nsnull,
|
||||||
|
nsIAppShell *aAppShell = nsnull,
|
||||||
|
nsIToolkit *aToolkit = nsnull,
|
||||||
|
void *aInitData = nsnull);
|
||||||
|
|
||||||
// nsIFileWidget part
|
|
||||||
virtual PRBool Show();
|
virtual PRBool Show();
|
||||||
NS_IMETHOD GetFile(nsString& aFile);
|
NS_IMETHOD GetFile(nsString& aFile);
|
||||||
NS_IMETHOD SetDefaultString(nsString& aString);
|
NS_IMETHOD SetDefaultString(nsString& aString);
|
||||||
NS_IMETHOD SetFilterList(PRUint32 aNumberOfFilters,
|
NS_IMETHOD SetFilterList(PRUint32 aNumberOfFilters,
|
||||||
const nsString aTitles[],
|
const nsString aTitles[],
|
||||||
const nsString aFilters[]);
|
const nsString aFilters[]);
|
||||||
|
protected:
|
||||||
NS_IMETHOD OnOk();
|
NS_IMETHOD OnOk();
|
||||||
NS_IMETHOD OnCancel();
|
NS_IMETHOD OnCancel();
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче