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