1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/widget/windows/WinTaskbar.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 1.4 +/* vim: se cin sw=2 ts=2 et : */ 1.5 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.6 + * 1.7 + * This Source Code Form is subject to the terms of the Mozilla Public 1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.10 + 1.11 +#ifndef __WinTaskbar_h__ 1.12 +#define __WinTaskbar_h__ 1.13 + 1.14 +#include <windows.h> 1.15 +#include <shobjidl.h> 1.16 +#undef LogSeverity // SetupAPI.h #defines this as DWORD 1.17 +#include "nsIWinTaskbar.h" 1.18 +#include "mozilla/Attributes.h" 1.19 + 1.20 +namespace mozilla { 1.21 +namespace widget { 1.22 + 1.23 +class WinTaskbar MOZ_FINAL : public nsIWinTaskbar 1.24 +{ 1.25 +public: 1.26 + WinTaskbar(); 1.27 + ~WinTaskbar(); 1.28 + 1.29 + NS_DECL_THREADSAFE_ISUPPORTS 1.30 + NS_DECL_NSIWINTASKBAR 1.31 + 1.32 + // Registers the global app user model id for the instance. 1.33 + // See comments in WinTaskbar.cpp for more information. 1.34 + static bool RegisterAppUserModelID(); 1.35 + static bool GetAppUserModelID(nsAString & aDefaultGroupId); 1.36 + 1.37 +private: 1.38 + bool Initialize(); 1.39 + 1.40 + typedef HRESULT (WINAPI * SetCurrentProcessExplicitAppUserModelIDPtr)(PCWSTR AppID); 1.41 + ITaskbarList4 *mTaskbar; 1.42 +}; 1.43 + 1.44 +} // namespace widget 1.45 +} // namespace mozilla 1.46 + 1.47 +#endif /* __WinTaskbar_h__ */ 1.48 +