widget/windows/WinTaskbar.h

branch
TOR_BUG_9701
changeset 10
ac0c01689b40
equal deleted inserted replaced
-1:000000000000 0:da63d521f36c
1 /* vim: se cin sw=2 ts=2 et : */
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7
8 #ifndef __WinTaskbar_h__
9 #define __WinTaskbar_h__
10
11 #include <windows.h>
12 #include <shobjidl.h>
13 #undef LogSeverity // SetupAPI.h #defines this as DWORD
14 #include "nsIWinTaskbar.h"
15 #include "mozilla/Attributes.h"
16
17 namespace mozilla {
18 namespace widget {
19
20 class WinTaskbar MOZ_FINAL : public nsIWinTaskbar
21 {
22 public:
23 WinTaskbar();
24 ~WinTaskbar();
25
26 NS_DECL_THREADSAFE_ISUPPORTS
27 NS_DECL_NSIWINTASKBAR
28
29 // Registers the global app user model id for the instance.
30 // See comments in WinTaskbar.cpp for more information.
31 static bool RegisterAppUserModelID();
32 static bool GetAppUserModelID(nsAString & aDefaultGroupId);
33
34 private:
35 bool Initialize();
36
37 typedef HRESULT (WINAPI * SetCurrentProcessExplicitAppUserModelIDPtr)(PCWSTR AppID);
38 ITaskbarList4 *mTaskbar;
39 };
40
41 } // namespace widget
42 } // namespace mozilla
43
44 #endif /* __WinTaskbar_h__ */
45

mercurial