Bug 1038195 - Give some classes in the Windows taskbar code private destructors; r=bjacob

This commit is contained in:
Ehsan Akhgari 2014-07-15 14:57:14 -04:00
parent b4f1d050eb
commit 8f5cbf7e45
6 changed files with 11 additions and 5 deletions

View File

@ -26,11 +26,12 @@ class TaskbarPreview : public nsITaskbarPreview
{
public:
TaskbarPreview(ITaskbarList4 *aTaskbar, nsITaskbarPreviewController *aController, HWND aHWND, nsIDocShell *aShell);
virtual ~TaskbarPreview();
NS_DECL_NSITASKBARPREVIEW
protected:
virtual ~TaskbarPreview();
// Called to update ITaskbarList4 dependent properties
virtual nsresult UpdateTaskbarProperties();

View File

@ -23,9 +23,10 @@ namespace widget {
class TaskbarWindowPreview;
class TaskbarPreviewButton : public nsITaskbarPreviewButton, public nsSupportsWeakReference
{
virtual ~TaskbarPreviewButton();
public:
TaskbarPreviewButton(TaskbarWindowPreview* preview, uint32_t index);
virtual ~TaskbarPreviewButton();
NS_DECL_ISUPPORTS
NS_DECL_NSITASKBARPREVIEWBUTTON

View File

@ -17,9 +17,10 @@ namespace widget {
class TaskbarTabPreview : public nsITaskbarTabPreview,
public TaskbarPreview
{
virtual ~TaskbarTabPreview();
public:
TaskbarTabPreview(ITaskbarList4 *aTaskbar, nsITaskbarPreviewController *aController, HWND aHWND, nsIDocShell *aShell);
virtual ~TaskbarTabPreview();
NS_DECL_ISUPPORTS
NS_DECL_NSITASKBARTABPREVIEW

View File

@ -24,9 +24,10 @@ class TaskbarWindowPreview : public TaskbarPreview,
public nsITaskbarOverlayIconController,
public nsSupportsWeakReference
{
virtual ~TaskbarWindowPreview();
public:
TaskbarWindowPreview(ITaskbarList4 *aTaskbar, nsITaskbarPreviewController *aController, HWND aHWND, nsIDocShell *aShell);
virtual ~TaskbarWindowPreview();
NS_DECL_ISUPPORTS
NS_DECL_NSITASKBARWINDOWPREVIEW

View File

@ -122,6 +122,7 @@ SetWindowAppUserModelProp(nsIDOMWindow *aParent,
class DefaultController MOZ_FINAL : public nsITaskbarPreviewController
{
~DefaultController() {}
HWND mWnd;
public:
DefaultController(HWND hWnd)

View File

@ -19,9 +19,10 @@ namespace widget {
class WinTaskbar MOZ_FINAL : public nsIWinTaskbar
{
~WinTaskbar();
public:
WinTaskbar();
~WinTaskbar();
NS_DECL_THREADSAFE_ISUPPORTS
NS_DECL_NSIWINTASKBAR