michael@0: /* vim: se cin sw=2 ts=2 et : */ michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef __mozilla_widget_TaskbarPreviewButton_h__ michael@0: #define __mozilla_widget_TaskbarPreviewButton_h__ michael@0: michael@0: #include michael@0: #include michael@0: #undef LogSeverity // SetupAPI.h #defines this as DWORD michael@0: michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: michael@0: namespace mozilla { michael@0: namespace widget { michael@0: michael@0: class TaskbarWindowPreview; michael@0: class TaskbarPreviewButton : public nsITaskbarPreviewButton, public nsSupportsWeakReference michael@0: { michael@0: public: michael@0: TaskbarPreviewButton(TaskbarWindowPreview* preview, uint32_t index); michael@0: virtual ~TaskbarPreviewButton(); michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSITASKBARPREVIEWBUTTON michael@0: michael@0: private: michael@0: THUMBBUTTON& Button(); michael@0: nsresult Update(); michael@0: michael@0: nsRefPtr mPreview; michael@0: uint32_t mIndex; michael@0: nsString mTooltip; michael@0: nsCOMPtr mImage; michael@0: }; michael@0: michael@0: } // namespace widget michael@0: } // namespace mozilla michael@0: michael@0: #endif /* __mozilla_widget_TaskbarPreviewButton_h__ */ michael@0: