summaryrefslogtreecommitdiffstats
path: root/dom/media/mediasession/MediaSessionIPCUtils.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /dom/media/mediasession/MediaSessionIPCUtils.h
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-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 'dom/media/mediasession/MediaSessionIPCUtils.h')
-rw-r--r--dom/media/mediasession/MediaSessionIPCUtils.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/dom/media/mediasession/MediaSessionIPCUtils.h b/dom/media/mediasession/MediaSessionIPCUtils.h
index c44f4b4553..610b123b6c 100644
--- a/dom/media/mediasession/MediaSessionIPCUtils.h
+++ b/dom/media/mediasession/MediaSessionIPCUtils.h
@@ -6,6 +6,7 @@
#define DOM_MEDIA_MEDIASESSION_MEDIASESSIONIPCUTILS_H_
#include "ipc/EnumSerializer.h"
+#include "mozilla/dom/BindingIPCUtils.h"
#include "MediaMetadata.h"
#include "mozilla/dom/MediaSession.h"
#include "mozilla/dom/MediaSessionBinding.h"
@@ -71,12 +72,14 @@ struct ParamTraits<mozilla::dom::PositionState> {
WriteParam(aWriter, aParam.mDuration);
WriteParam(aWriter, aParam.mPlaybackRate);
WriteParam(aWriter, aParam.mLastReportedPlaybackPosition);
+ WriteParam(aWriter, aParam.mPositionUpdatedTime);
}
static bool Read(MessageReader* aReader, paramType* aResult) {
if (!ReadParam(aReader, &(aResult->mDuration)) ||
!ReadParam(aReader, &(aResult->mPlaybackRate)) ||
- !ReadParam(aReader, &(aResult->mLastReportedPlaybackPosition))) {
+ !ReadParam(aReader, &(aResult->mLastReportedPlaybackPosition)) ||
+ !ReadParam(aReader, &(aResult->mPositionUpdatedTime))) {
return false;
}
return true;
@@ -85,17 +88,13 @@ struct ParamTraits<mozilla::dom::PositionState> {
template <>
struct ParamTraits<mozilla::dom::MediaSessionPlaybackState>
- : public ContiguousEnumSerializer<
- mozilla::dom::MediaSessionPlaybackState,
- mozilla::dom::MediaSessionPlaybackState::None,
- mozilla::dom::MediaSessionPlaybackState::EndGuard_> {};
+ : public mozilla::dom::WebIDLEnumSerializer<
+ mozilla::dom::MediaSessionPlaybackState> {};
template <>
struct ParamTraits<mozilla::dom::MediaSessionAction>
- : public ContiguousEnumSerializer<
- mozilla::dom::MediaSessionAction,
- mozilla::dom::MediaSessionAction::Play,
- mozilla::dom::MediaSessionAction::EndGuard_> {};
+ : public mozilla::dom::WebIDLEnumSerializer<
+ mozilla::dom::MediaSessionAction> {};
} // namespace IPC