diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /widget/windows/WindowsSMTCProvider.h | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'widget/windows/WindowsSMTCProvider.h')
-rw-r--r-- | widget/windows/WindowsSMTCProvider.h | 12 |
1 files changed, 9 insertions, 3 deletions
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<mozilla::dom::PositionState>& 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__ |