michael@0: /* vim: se cin sw=2 ts=2 et : */ michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef __WinTaskbar_h__ michael@0: #define __WinTaskbar_h__ michael@0: michael@0: #include michael@0: #include michael@0: #undef LogSeverity // SetupAPI.h #defines this as DWORD michael@0: #include "nsIWinTaskbar.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: namespace mozilla { michael@0: namespace widget { michael@0: michael@0: class WinTaskbar MOZ_FINAL : public nsIWinTaskbar michael@0: { michael@0: public: michael@0: WinTaskbar(); michael@0: ~WinTaskbar(); michael@0: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSIWINTASKBAR michael@0: michael@0: // Registers the global app user model id for the instance. michael@0: // See comments in WinTaskbar.cpp for more information. michael@0: static bool RegisterAppUserModelID(); michael@0: static bool GetAppUserModelID(nsAString & aDefaultGroupId); michael@0: michael@0: private: michael@0: bool Initialize(); michael@0: michael@0: typedef HRESULT (WINAPI * SetCurrentProcessExplicitAppUserModelIDPtr)(PCWSTR AppID); michael@0: ITaskbarList4 *mTaskbar; michael@0: }; michael@0: michael@0: } // namespace widget michael@0: } // namespace mozilla michael@0: michael@0: #endif /* __WinTaskbar_h__ */ michael@0: