1 /* vim: se cin sw=2 ts=2 et : */
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef __mozilla_widget_TaskbarPreviewButton_h__
9 #define __mozilla_widget_TaskbarPreviewButton_h__
13 #undef LogSeverity // SetupAPI.h #defines this as DWORD
15 #include "mozilla/RefPtr.h"
16 #include <nsITaskbarPreviewButton.h>
18 #include "nsWeakReference.h"
23 class TaskbarWindowPreview
;
24 class TaskbarPreviewButton
: public nsITaskbarPreviewButton
,
25 public nsSupportsWeakReference
{
26 virtual ~TaskbarPreviewButton();
29 TaskbarPreviewButton(TaskbarWindowPreview
* preview
, uint32_t index
);
32 NS_DECL_NSITASKBARPREVIEWBUTTON
35 THUMBBUTTON
& Button();
38 RefPtr
<TaskbarWindowPreview
> mPreview
;
41 nsCOMPtr
<imgIContainer
> mImage
;
45 } // namespace mozilla
47 #endif /* __mozilla_widget_TaskbarPreviewButton_h__ */