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