#include "third_party/blink/renderer/modules/mediasession/media_metadata.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/bindings/core/v8/to_v8_traits.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_chapter_information.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_chapter_information_init.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_media_metadata_init.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/modules/mediasession/chapter_information.h"
#include "third_party/blink/renderer/modules/mediasession/media_session.h"
#include "third_party/blink/renderer/modules/mediasession/media_session_utils.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
namespace blink {
MediaMetadata* MediaMetadata::Create(ScriptState* script_state,
const MediaMetadataInit* metadata,
ExceptionState& exception_state) { … }
MediaMetadata::MediaMetadata(ScriptState* script_state,
const MediaMetadataInit* metadata,
ExceptionState& exception_state)
: … { … }
String MediaMetadata::title() const { … }
String MediaMetadata::artist() const { … }
String MediaMetadata::album() const { … }
const HeapVector<Member<MediaImage>>& MediaMetadata::artwork() const { … }
const HeapVector<Member<ChapterInformation>>& MediaMetadata::chapterInfo()
const { … }
v8::LocalVector<v8::Value> MediaMetadata::artwork(
ScriptState* script_state) const { … }
v8::LocalVector<v8::Value> MediaMetadata::chapterInfo(
ScriptState* script_state) const { … }
void MediaMetadata::setTitle(const String& title) { … }
void MediaMetadata::setArtist(const String& artist) { … }
void MediaMetadata::setAlbum(const String& album) { … }
void MediaMetadata::setArtwork(ScriptState* script_state,
const HeapVector<Member<MediaImage>>& artwork,
ExceptionState& exception_state) { … }
void MediaMetadata::SetSession(MediaSession* session) { … }
void MediaMetadata::NotifySessionAsync() { … }
void MediaMetadata::NotifySessionTimerFired(TimerBase*) { … }
void MediaMetadata::SetArtworkInternal(
ScriptState* script_state,
const HeapVector<Member<MediaImage>>& artwork,
ExceptionState& exception_state) { … }
void MediaMetadata::SetChapterInfoFromInit(
ScriptState* script_state,
const HeapVector<Member<ChapterInformationInit>>& chapter_info,
ExceptionState& exception_state) { … }
void MediaMetadata::Trace(Visitor* visitor) const { … }
}