summaryrefslogtreecommitdiffstats
path: root/dom/power/WakeLockJS.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /dom/power/WakeLockJS.h
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/power/WakeLockJS.h')
-rw-r--r--dom/power/WakeLockJS.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/dom/power/WakeLockJS.h b/dom/power/WakeLockJS.h
index c6858fdd22..43b11a6dc9 100644
--- a/dom/power/WakeLockJS.h
+++ b/dom/power/WakeLockJS.h
@@ -39,20 +39,15 @@ namespace mozilla::dom {
*
* https://www.w3.org/TR/screen-wake-lock/#the-wakelock-interface
*/
-class WakeLockJS final : public nsIDOMEventListener,
+class WakeLockJS final : public nsIObserver,
public nsWrapperCache,
public hal::BatteryObserver,
- public nsIDocumentActivity,
- public nsIObserver,
public nsSupportsWeakReference {
public:
- NS_DECL_NSIDOMEVENTLISTENER
- NS_DECL_NSIDOCUMENTACTIVITY
NS_DECL_NSIOBSERVER
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
- NS_DECL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS_AMBIGUOUS(WakeLockJS,
- nsIDOMEventListener)
+ NS_DECL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS_AMBIGUOUS(WakeLockJS, nsIObserver)
public:
explicit WakeLockJS(nsPIDOMWindowInner* aWindow);
@@ -89,7 +84,7 @@ class WakeLockJS final : public nsIDOMEventListener,
void DetachListeners();
Result<already_AddRefed<WakeLockSentinel>, RequestError> Obtain(
- WakeLockType aType);
+ WakeLockType aType, Document* aDoc);
RefPtr<nsPIDOMWindowInner> mWindow;
};