Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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/. */
5 #include "mozwrlbase.h"
7 #include "nscore.h"
8 #include "nsString.h"
9 #include "nsIDOMWakeLockListener.h"
11 #include <windows.system.display.h>
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;
23 private:
24 Microsoft::WRL::ComPtr<ABI::Windows::System::Display::IDisplayRequest> mDisplayRequest;
25 };