2009-10-06 06:26:54 +04:00
|
|
|
/* vim: se cin sw=2 ts=2 et : */
|
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-10-06 06:26:54 +04:00
|
|
|
|
|
|
|
#ifndef __mozilla_widget_TaskbarPreviewButton_h__
|
|
|
|
#define __mozilla_widget_TaskbarPreviewButton_h__
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <shobjidl.h>
|
2013-12-16 04:00:54 +04:00
|
|
|
#undef LogSeverity // SetupAPI.h #defines this as DWORD
|
2009-10-06 06:26:54 +04:00
|
|
|
|
2016-04-19 23:51:25 +03:00
|
|
|
#include "mozilla/RefPtr.h"
|
2009-10-06 06:26:54 +04:00
|
|
|
#include <nsITaskbarPreviewButton.h>
|
|
|
|
#include <nsString.h>
|
|
|
|
#include <nsWeakReference.h>
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace widget {
|
|
|
|
|
|
|
|
class TaskbarWindowPreview;
|
|
|
|
class TaskbarPreviewButton : public nsITaskbarPreviewButton, public nsSupportsWeakReference
|
|
|
|
{
|
2014-07-15 22:57:14 +04:00
|
|
|
virtual ~TaskbarPreviewButton();
|
|
|
|
|
2016-07-22 11:56:13 +03:00
|
|
|
public:
|
2012-08-22 19:56:38 +04:00
|
|
|
TaskbarPreviewButton(TaskbarWindowPreview* preview, uint32_t index);
|
2009-10-06 06:26:54 +04:00
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSITASKBARPREVIEWBUTTON
|
|
|
|
|
|
|
|
private:
|
|
|
|
THUMBBUTTON& Button();
|
|
|
|
nsresult Update();
|
|
|
|
|
2015-10-18 08:24:48 +03:00
|
|
|
RefPtr<TaskbarWindowPreview> mPreview;
|
2012-08-22 19:56:38 +04:00
|
|
|
uint32_t mIndex;
|
2009-10-06 06:26:54 +04:00
|
|
|
nsString mTooltip;
|
|
|
|
nsCOMPtr<imgIContainer> mImage;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace widget
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif /* __mozilla_widget_TaskbarPreviewButton_h__ */
|
|
|
|
|