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: #include "mozwrlbase.h" michael@0: michael@0: #include "nscore.h" michael@0: #include "nsString.h" michael@0: #include "nsIDOMWakeLockListener.h" michael@0: michael@0: #include michael@0: michael@0: /* michael@0: * A wake lock is used by dom to prevent the device from turning off the michael@0: * screen when the user is viewing certain types of content, like video. michael@0: */ michael@0: class WakeLockListener : michael@0: public nsIDOMMozWakeLockListener { michael@0: public: michael@0: NS_DECL_ISUPPORTS; michael@0: NS_DECL_NSIDOMMOZWAKELOCKLISTENER; michael@0: michael@0: private: michael@0: Microsoft::WRL::ComPtr mDisplayRequest; michael@0: };