widget/windows/winrt/WakeLockListener.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:0593e8667f06
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #include "mozwrlbase.h"
6
7 #include "nscore.h"
8 #include "nsString.h"
9 #include "nsIDOMWakeLockListener.h"
10
11 #include <windows.system.display.h>
12
13 /*
14 * A wake lock is used by dom to prevent the device from turning off the
15 * screen when the user is viewing certain types of content, like video.
16 */
17 class WakeLockListener :
18 public nsIDOMMozWakeLockListener {
19 public:
20 NS_DECL_ISUPPORTS;
21 NS_DECL_NSIDOMMOZWAKELOCKLISTENER;
22
23 private:
24 Microsoft::WRL::ComPtr<ABI::Windows::System::Display::IDisplayRequest> mDisplayRequest;
25 };

mercurial