Bug 1038200 - Fix the rest of the public refcounted destructors in widget/windows; r=bjacob

This commit is contained in:
Ehsan Akhgari 2014-07-15 16:37:58 -04:00
parent bf8a74902a
commit 9f8a55b140
8 changed files with 12 additions and 8 deletions

View File

@ -24,10 +24,10 @@ struct IDataObject;
class nsClipboard : public nsBaseClipboard,
public nsIObserver
{
virtual ~nsClipboard();
public:
nsClipboard();
virtual ~nsClipboard();
NS_DECL_ISUPPORTS_INHERITED

View File

@ -36,9 +36,10 @@ private:
class nsColorPicker :
public nsIColorPicker
{
virtual ~nsColorPicker();
public:
nsColorPicker();
virtual ~nsColorPicker();
NS_DECL_ISUPPORTS

View File

@ -72,9 +72,10 @@ protected:
//-------------------------------------------------------------------------
class nsPrinterEnumeratorWin MOZ_FINAL : public nsIPrinterEnumerator
{
~nsPrinterEnumeratorWin();
public:
nsPrinterEnumeratorWin();
~nsPrinterEnumeratorWin();
NS_DECL_ISUPPORTS
NS_DECL_NSIPRINTERENUMERATOR
};

View File

@ -20,6 +20,8 @@ struct nsIntSize;
class nsNativeThemeWin : private nsNativeTheme,
public nsITheme {
virtual ~nsNativeThemeWin();
public:
typedef mozilla::TimeStamp TimeStamp;
typedef mozilla::TimeDuration TimeDuration;
@ -75,7 +77,6 @@ public:
virtual bool ShouldHideScrollbars() MOZ_OVERRIDE;
nsNativeThemeWin();
virtual ~nsNativeThemeWin();
protected:
HANDLE GetTheme(uint8_t aWidgetType);

View File

@ -18,13 +18,14 @@
class nsPrintSettingsWin : public nsPrintSettings,
public nsIPrintSettingsWin
{
virtual ~nsPrintSettingsWin();
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIPRINTSETTINGSWIN
nsPrintSettingsWin();
nsPrintSettingsWin(const nsPrintSettingsWin& aPS);
virtual ~nsPrintSettingsWin();
/**
* Makes a new copy

View File

@ -31,12 +31,12 @@ class nsScreenManagerWin MOZ_FINAL : public nsIScreenManager
{
public:
nsScreenManagerWin ( );
~nsScreenManagerWin();
NS_DECL_ISUPPORTS
NS_DECL_NSISCREENMANAGER
private:
~nsScreenManagerWin();
nsIScreen* CreateNewScreenObject ( HMONITOR inScreen ) ;

View File

@ -19,7 +19,6 @@ class nsSound : public nsISound,
{
public:
nsSound();
virtual ~nsSound();
void ShutdownOldPlayerThread();
NS_DECL_ISUPPORTS
@ -27,6 +26,7 @@ public:
NS_DECL_NSISTREAMLOADEROBSERVER
private:
virtual ~nsSound();
void PurgeLastSound();
private:

View File

@ -77,7 +77,6 @@ class nsWindow : public nsWindowBase
typedef mozilla::widget::MSGResult MSGResult;
public:
nsWindow();
virtual ~nsWindow();
NS_DECL_ISUPPORTS_INHERITED
@ -290,6 +289,7 @@ public:
virtual bool ShouldUseOffMainThreadCompositing();
protected:
virtual ~nsWindow();
virtual void WindowUsesOMTC() MOZ_OVERRIDE;