#ifndef SERVICES_MEDIA_SESSION_PUBLIC_MOJOM_MEDIA_SESSION_MOJOM_SHARED_H_
#define SERVICES_MEDIA_SESSION_PUBLIC_MOJOM_MEDIA_SESSION_MOJOM_SHARED_H_
#include <stdint.h>
#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "services/media_session/public/mojom/media_session.mojom-shared-internal.h"
#include "mojo/public/mojom/base/string16.mojom-shared.h"
#include "mojo/public/mojom/base/time.mojom-shared.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-shared.h"
#include "url/mojom/url.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
namespace media_session::mojom {
class MediaImageDataView;
class ChapterInformationDataView;
class MediaMetadataDataView;
class MediaImageBitmapDataView;
class MediaPositionDataView;
class RemotePlaybackMetadataDataView;
class MediaSessionInfoDataView;
class MediaSessionDebugInfoDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::media_session::mojom::MediaImageDataView> { … };
template <>
struct MojomTypeTraits<::media_session::mojom::ChapterInformationDataView> { … };
template <>
struct MojomTypeTraits<::media_session::mojom::MediaMetadataDataView> { … };
template <>
struct MojomTypeTraits<::media_session::mojom::MediaImageBitmapDataView> { … };
template <>
struct MojomTypeTraits<::media_session::mojom::MediaPositionDataView> { … };
template <>
struct MojomTypeTraits<::media_session::mojom::RemotePlaybackMetadataDataView> { … };
template <>
struct MojomTypeTraits<::media_session::mojom::MediaSessionInfoDataView> { … };
template <>
struct MojomTypeTraits<::media_session::mojom::MediaSessionDebugInfoDataView> { … };
}
}
namespace media_session::mojom {
enum class MediaPlaybackState : int32_t { … };
std::ostream& operator<<(std::ostream& os, MediaPlaybackState value);
inline bool IsKnownEnumValue(MediaPlaybackState value) { … }
enum class MediaSessionAction : int32_t { … };
std::ostream& operator<<(std::ostream& os, MediaSessionAction value);
inline bool IsKnownEnumValue(MediaSessionAction value) { … }
enum class MediaSessionImageType : int32_t { … };
std::ostream& operator<<(std::ostream& os, MediaSessionImageType value);
inline bool IsKnownEnumValue(MediaSessionImageType value) { … }
enum class MediaPictureInPictureState : int32_t { … };
std::ostream& operator<<(std::ostream& os, MediaPictureInPictureState value);
inline bool IsKnownEnumValue(MediaPictureInPictureState value) { … }
enum class MediaAudioVideoState : int32_t { … };
std::ostream& operator<<(std::ostream& os, MediaAudioVideoState value);
inline bool IsKnownEnumValue(MediaAudioVideoState value) { … }
enum class MediaImageBitmapColorType : int32_t { … };
std::ostream& operator<<(std::ostream& os, MediaImageBitmapColorType value);
inline bool IsKnownEnumValue(MediaImageBitmapColorType value) { … }
enum class MicrophoneState : int32_t { … };
std::ostream& operator<<(std::ostream& os, MicrophoneState value);
inline bool IsKnownEnumValue(MicrophoneState value) { … }
enum class CameraState : int32_t { … };
std::ostream& operator<<(std::ostream& os, CameraState value);
inline bool IsKnownEnumValue(CameraState value) { … }
enum class MediaSessionInfo_SessionState : int32_t { … };
std::ostream& operator<<(std::ostream& os, MediaSessionInfo_SessionState value);
inline bool IsKnownEnumValue(MediaSessionInfo_SessionState value) { … }
enum class MediaSession_SuspendType : int32_t { … };
std::ostream& operator<<(std::ostream& os, MediaSession_SuspendType value);
inline bool IsKnownEnumValue(MediaSession_SuspendType value) { … }
class MediaSessionObserverInterfaceBase { … };
MediaSessionObserverPtrDataView;
MediaSessionObserverRequestDataView;
MediaSessionObserverAssociatedPtrInfoDataView;
MediaSessionObserverAssociatedRequestDataView;
class MediaSessionInterfaceBase { … };
MediaSessionPtrDataView;
MediaSessionRequestDataView;
MediaSessionAssociatedPtrInfoDataView;
MediaSessionAssociatedRequestDataView;
class MediaImageDataView { … };
class ChapterInformationDataView { … };
class MediaMetadataDataView { … };
class MediaImageBitmapDataView { … };
class MediaPositionDataView { … };
class RemotePlaybackMetadataDataView { … };
class MediaSessionInfoDataView { … };
class MediaSessionDebugInfoDataView { … };
}
namespace std {
template <>
struct hash<::media_session::mojom::MediaPlaybackState>
: public mojo::internal::EnumHashImpl<::media_session::mojom::MediaPlaybackState> { … };
template <>
struct hash<::media_session::mojom::MediaSessionAction>
: public mojo::internal::EnumHashImpl<::media_session::mojom::MediaSessionAction> { … };
template <>
struct hash<::media_session::mojom::MediaSessionImageType>
: public mojo::internal::EnumHashImpl<::media_session::mojom::MediaSessionImageType> { … };
template <>
struct hash<::media_session::mojom::MediaPictureInPictureState>
: public mojo::internal::EnumHashImpl<::media_session::mojom::MediaPictureInPictureState> { … };
template <>
struct hash<::media_session::mojom::MediaAudioVideoState>
: public mojo::internal::EnumHashImpl<::media_session::mojom::MediaAudioVideoState> { … };
template <>
struct hash<::media_session::mojom::MediaImageBitmapColorType>
: public mojo::internal::EnumHashImpl<::media_session::mojom::MediaImageBitmapColorType> { … };
template <>
struct hash<::media_session::mojom::MicrophoneState>
: public mojo::internal::EnumHashImpl<::media_session::mojom::MicrophoneState> { … };
template <>
struct hash<::media_session::mojom::CameraState>
: public mojo::internal::EnumHashImpl<::media_session::mojom::CameraState> { … };
template <>
struct hash<::media_session::mojom::MediaSessionInfo_SessionState>
: public mojo::internal::EnumHashImpl<::media_session::mojom::MediaSessionInfo_SessionState> { … };
template <>
struct hash<::media_session::mojom::MediaSession_SuspendType>
: public mojo::internal::EnumHashImpl<::media_session::mojom::MediaSession_SuspendType> { … };
}
namespace mojo {
namespace internal {
Serializer< ::media_session::mojom::MediaPlaybackState, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaSessionAction, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaSessionImageType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaPictureInPictureState, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaAudioVideoState, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaImageBitmapColorType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MicrophoneState, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::CameraState, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaSessionInfo_SessionState, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaSession_SuspendType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaImageDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::ChapterInformationDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaMetadataDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaImageBitmapDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaPositionDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::RemotePlaybackMetadataDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaSessionInfoDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::media_session::mojom::MediaSessionDebugInfoDataView, MaybeConstUserType>;
}
}
namespace media_session::mojom {
inline void MediaImageDataView::GetSrcDataView(
::url::mojom::UrlDataView* output) { … }
inline void MediaImageDataView::GetTypeDataView(
::mojo_base::mojom::String16DataView* output) { … }
inline void MediaImageDataView::GetSizesDataView(
mojo::ArrayDataView<::gfx::mojom::SizeDataView>* output) { … }
inline void ChapterInformationDataView::GetTitleDataView(
::mojo_base::mojom::String16DataView* output) { … }
inline void ChapterInformationDataView::GetStartTimeDataView(
::mojo_base::mojom::TimeDeltaDataView* output) { … }
inline void ChapterInformationDataView::GetArtworkDataView(
mojo::ArrayDataView<MediaImageDataView>* output) { … }
inline void MediaMetadataDataView::GetTitleDataView(
::mojo_base::mojom::String16DataView* output) { … }
inline void MediaMetadataDataView::GetArtistDataView(
::mojo_base::mojom::String16DataView* output) { … }
inline void MediaMetadataDataView::GetAlbumDataView(
::mojo_base::mojom::String16DataView* output) { … }
inline void MediaMetadataDataView::GetSourceTitleDataView(
::mojo_base::mojom::String16DataView* output) { … }
inline void MediaMetadataDataView::GetChaptersDataView(
mojo::ArrayDataView<ChapterInformationDataView>* output) { … }
inline void MediaImageBitmapDataView::GetPixelDataDataView(
mojo::ArrayDataView<uint8_t>* output) { … }
inline void MediaPositionDataView::GetDurationDataView(
::mojo_base::mojom::TimeDeltaDataView* output) { … }
inline void MediaPositionDataView::GetPositionDataView(
::mojo_base::mojom::TimeDeltaDataView* output) { … }
inline void MediaPositionDataView::GetLastUpdatedTimeDataView(
::mojo_base::mojom::TimeTicksDataView* output) { … }
inline void RemotePlaybackMetadataDataView::GetVideoCodecDataView(
mojo::StringDataView* output) { … }
inline void RemotePlaybackMetadataDataView::GetAudioCodecDataView(
mojo::StringDataView* output) { … }
inline void RemotePlaybackMetadataDataView::GetUnusedFieldDataView(
mojo::StringDataView* output) { … }
inline void MediaSessionInfoDataView::GetAudioSinkIdDataView(
mojo::StringDataView* output) { … }
inline void MediaSessionInfoDataView::GetAudioVideoStatesDataView(
mojo::ArrayDataView<MediaAudioVideoState>* output) { … }
inline void MediaSessionInfoDataView::GetRemotePlaybackMetadataDataView(
RemotePlaybackMetadataDataView* output) { … }
inline void MediaSessionDebugInfoDataView::GetNameDataView(
mojo::StringDataView* output) { … }
inline void MediaSessionDebugInfoDataView::GetOwnerDataView(
mojo::StringDataView* output) { … }
inline void MediaSessionDebugInfoDataView::GetStateDataView(
mojo::StringDataView* output) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media_session::mojom::MediaPlaybackState> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media_session::mojom::MediaSessionAction> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media_session::mojom::MediaSessionImageType> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media_session::mojom::MediaPictureInPictureState> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media_session::mojom::MediaAudioVideoState> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media_session::mojom::MediaImageBitmapColorType> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media_session::mojom::MicrophoneState> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media_session::mojom::CameraState> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media_session::mojom::MediaSessionInfo_SessionState> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::media_session::mojom::MediaSession_SuspendType> { … };
}
#endif