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 __WinTaskbar_h__
|
|
|
|
#define __WinTaskbar_h__
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <shobjidl.h>
|
2013-12-16 04:00:54 +04:00
|
|
|
#undef LogSeverity // SetupAPI.h #defines this as DWORD
|
2010-05-15 04:23:14 +04:00
|
|
|
#include "nsIWinTaskbar.h"
|
2012-06-14 22:28:06 +04:00
|
|
|
#include "mozilla/Attributes.h"
|
2009-10-06 06:26:54 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace widget {
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class WinTaskbar final : public nsIWinTaskbar
|
2009-10-06 06:26:54 +04:00
|
|
|
{
|
2014-07-15 22:57:14 +04:00
|
|
|
~WinTaskbar();
|
|
|
|
|
2009-10-06 06:26:54 +04:00
|
|
|
public:
|
|
|
|
WinTaskbar();
|
|
|
|
|
2013-07-19 06:24:15 +04:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
2009-10-06 06:26:54 +04:00
|
|
|
NS_DECL_NSIWINTASKBAR
|
2009-10-07 01:42:45 +04:00
|
|
|
|
2010-05-15 04:23:14 +04:00
|
|
|
// Registers the global app user model id for the instance.
|
|
|
|
// See comments in WinTaskbar.cpp for more information.
|
2011-09-29 10:19:26 +04:00
|
|
|
static bool RegisterAppUserModelID();
|
|
|
|
static bool GetAppUserModelID(nsAString & aDefaultGroupId);
|
2009-10-07 01:42:45 +04:00
|
|
|
|
2009-10-06 06:26:54 +04:00
|
|
|
private:
|
2011-09-29 10:19:26 +04:00
|
|
|
bool Initialize();
|
2010-05-15 04:23:14 +04:00
|
|
|
|
2009-10-07 01:42:45 +04:00
|
|
|
typedef HRESULT (WINAPI * SetCurrentProcessExplicitAppUserModelIDPtr)(PCWSTR AppID);
|
2009-10-06 06:26:54 +04:00
|
|
|
ITaskbarList4 *mTaskbar;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace widget
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif /* __WinTaskbar_h__ */
|
|
|
|
|