From 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:33 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- widget/windows/WindowsSMTCProvider.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'widget/windows/WindowsSMTCProvider.h') diff --git a/widget/windows/WindowsSMTCProvider.h b/widget/windows/WindowsSMTCProvider.h index 3926618d1f..2f0d1f8344 100644 --- a/widget/windows/WindowsSMTCProvider.h +++ b/widget/windows/WindowsSMTCProvider.h @@ -46,6 +46,9 @@ class WindowsSMTCProvider final : public mozilla::dom::MediaControlKeySource { void SetSupportedMediaKeys(const MediaKeysArray& aSupportedKeys) override; + void SetPositionState( + const mozilla::Maybe& aState) override; + private: ~WindowsSMTCProvider(); void UnregisterEvents(); @@ -54,12 +57,14 @@ class WindowsSMTCProvider final : public mozilla::dom::MediaControlKeySource { void OnButtonPressed(mozilla::dom::MediaControlKey aKey) const; // Enable the SMTC interface bool EnableControl(bool aEnabled) const; - // Sets the play, pause, next, previous buttons on the SMTC interface by - // mSupportedKeys - bool UpdateButtons() const; + // Sets the play, pause, next, previous, seekto buttons on the SMTC interface + // by mSupportedKeys + bool UpdateButtons(); bool IsKeySupported(mozilla::dom::MediaControlKey aKey) const; bool EnableKey(mozilla::dom::MediaControlKey aKey, bool aEnable) const; + void OnPositionChangeRequested(double aPosition) const; + bool InitDisplayAndControls(); // Sets the Metadata for the currently playing media and sets the playback @@ -122,6 +127,7 @@ class WindowsSMTCProvider final : public mozilla::dom::MediaControlKeySource { // EventRegistrationTokens are used to have a handle on a callback (to remove // it again) EventRegistrationToken mButtonPressedToken; + EventRegistrationToken mSeekRegistrationToken; }; #endif // __MINGW32__ -- cgit v1.2.3