#include "chrome/common/apps/platform_apps/api/media_galleries.h"
#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "tools/json_schema_compiler/util.h"
#include <string_view>
UTF8ToUTF16;
namespace chrome_apps {
namespace api {
namespace media_galleries {
const char* ToString(GalleryChangeType enum_param) { … }
GalleryChangeType ParseGalleryChangeType(std::string_view enum_string) { … }
std::u16string GetGalleryChangeTypeParseError(std::string_view enum_string) { … }
const char* ToString(GetMediaFileSystemsInteractivity enum_param) { … }
GetMediaFileSystemsInteractivity ParseGetMediaFileSystemsInteractivity(std::string_view enum_string) { … }
std::u16string GetGetMediaFileSystemsInteractivityParseError(std::string_view enum_string) { … }
const char* ToString(GetMetadataType enum_param) { … }
GetMetadataType ParseGetMetadataType(std::string_view enum_string) { … }
std::u16string GetGetMetadataTypeParseError(std::string_view enum_string) { … }
GalleryChangeDetails::GalleryChangeDetails()
: … { … }
GalleryChangeDetails::~GalleryChangeDetails() = default;
GalleryChangeDetails::GalleryChangeDetails(GalleryChangeDetails&& rhs) noexcept = default;
GalleryChangeDetails& GalleryChangeDetails::operator=(GalleryChangeDetails&& rhs) noexcept = default;
GalleryChangeDetails GalleryChangeDetails::Clone() const { … }
bool GalleryChangeDetails::Populate(
const base::Value::Dict& dict, GalleryChangeDetails& out) { … }
bool GalleryChangeDetails::Populate(
const base::Value& value, GalleryChangeDetails& out) { … }
std::optional<GalleryChangeDetails> GalleryChangeDetails::FromValue(const base::Value::Dict& value) { … }
std::optional<GalleryChangeDetails> GalleryChangeDetails::FromValue(const base::Value& value) { … }
base::Value::Dict GalleryChangeDetails::ToValue() const { … }
MediaFileSystemsDetails::MediaFileSystemsDetails()
: … { … }
MediaFileSystemsDetails::~MediaFileSystemsDetails() = default;
MediaFileSystemsDetails::MediaFileSystemsDetails(MediaFileSystemsDetails&& rhs) noexcept = default;
MediaFileSystemsDetails& MediaFileSystemsDetails::operator=(MediaFileSystemsDetails&& rhs) noexcept = default;
MediaFileSystemsDetails MediaFileSystemsDetails::Clone() const { … }
bool MediaFileSystemsDetails::Populate(
const base::Value::Dict& dict, MediaFileSystemsDetails& out) { … }
bool MediaFileSystemsDetails::Populate(
const base::Value& value, MediaFileSystemsDetails& out) { … }
std::optional<MediaFileSystemsDetails> MediaFileSystemsDetails::FromValue(const base::Value::Dict& value) { … }
std::optional<MediaFileSystemsDetails> MediaFileSystemsDetails::FromValue(const base::Value& value) { … }
base::Value::Dict MediaFileSystemsDetails::ToValue() const { … }
MediaMetadataOptions::MediaMetadataOptions()
: … { … }
MediaMetadataOptions::~MediaMetadataOptions() = default;
MediaMetadataOptions::MediaMetadataOptions(MediaMetadataOptions&& rhs) noexcept = default;
MediaMetadataOptions& MediaMetadataOptions::operator=(MediaMetadataOptions&& rhs) noexcept = default;
MediaMetadataOptions MediaMetadataOptions::Clone() const { … }
bool MediaMetadataOptions::Populate(
const base::Value::Dict& dict, MediaMetadataOptions& out) { … }
bool MediaMetadataOptions::Populate(
const base::Value& value, MediaMetadataOptions& out) { … }
std::optional<MediaMetadataOptions> MediaMetadataOptions::FromValue(const base::Value::Dict& value) { … }
std::optional<MediaMetadataOptions> MediaMetadataOptions::FromValue(const base::Value& value) { … }
base::Value::Dict MediaMetadataOptions::ToValue() const { … }
MediaFileSystemMetadata::MediaFileSystemMetadata()
: … { … }
MediaFileSystemMetadata::~MediaFileSystemMetadata() = default;
MediaFileSystemMetadata::MediaFileSystemMetadata(MediaFileSystemMetadata&& rhs) noexcept = default;
MediaFileSystemMetadata& MediaFileSystemMetadata::operator=(MediaFileSystemMetadata&& rhs) noexcept = default;
MediaFileSystemMetadata MediaFileSystemMetadata::Clone() const { … }
bool MediaFileSystemMetadata::Populate(
const base::Value::Dict& dict, MediaFileSystemMetadata& out) { … }
bool MediaFileSystemMetadata::Populate(
const base::Value& value, MediaFileSystemMetadata& out) { … }
std::optional<MediaFileSystemMetadata> MediaFileSystemMetadata::FromValue(const base::Value::Dict& value) { … }
std::optional<MediaFileSystemMetadata> MediaFileSystemMetadata::FromValue(const base::Value& value) { … }
base::Value::Dict MediaFileSystemMetadata::ToValue() const { … }
StreamInfo::Tags::Tags()
{ … }
StreamInfo::Tags::~Tags() = default;
StreamInfo::Tags::Tags(Tags&& rhs) noexcept = default;
StreamInfo::Tags& StreamInfo::Tags::operator=(Tags&& rhs) noexcept = default;
StreamInfo::Tags StreamInfo::Tags::Clone() const { … }
bool StreamInfo::Tags::Populate(
const base::Value::Dict& dict, Tags& out) { … }
bool StreamInfo::Tags::Populate(
const base::Value& value, Tags& out) { … }
std::optional<StreamInfo::Tags> StreamInfo::Tags::FromValue(const base::Value::Dict& value) { … }
std::optional<StreamInfo::Tags> StreamInfo::Tags::FromValue(const base::Value& value) { … }
base::Value::Dict StreamInfo::Tags::ToValue() const { … }
StreamInfo::StreamInfo()
{ … }
StreamInfo::~StreamInfo() = default;
StreamInfo::StreamInfo(StreamInfo&& rhs) noexcept = default;
StreamInfo& StreamInfo::operator=(StreamInfo&& rhs) noexcept = default;
StreamInfo StreamInfo::Clone() const { … }
bool StreamInfo::Populate(
const base::Value::Dict& dict, StreamInfo& out) { … }
bool StreamInfo::Populate(
const base::Value& value, StreamInfo& out) { … }
std::optional<StreamInfo> StreamInfo::FromValue(const base::Value::Dict& value) { … }
std::optional<StreamInfo> StreamInfo::FromValue(const base::Value& value) { … }
base::Value::Dict StreamInfo::ToValue() const { … }
MediaMetadata::AttachedImagesType::AttachedImagesType()
{ … }
MediaMetadata::AttachedImagesType::~AttachedImagesType() = default;
MediaMetadata::AttachedImagesType::AttachedImagesType(AttachedImagesType&& rhs) noexcept = default;
MediaMetadata::AttachedImagesType& MediaMetadata::AttachedImagesType::operator=(AttachedImagesType&& rhs) noexcept = default;
MediaMetadata::AttachedImagesType MediaMetadata::AttachedImagesType::Clone() const { … }
bool MediaMetadata::AttachedImagesType::Populate(
const base::Value::Dict& dict, AttachedImagesType& out) { … }
bool MediaMetadata::AttachedImagesType::Populate(
const base::Value& value, AttachedImagesType& out) { … }
std::optional<MediaMetadata::AttachedImagesType> MediaMetadata::AttachedImagesType::FromValue(const base::Value::Dict& value) { … }
std::optional<MediaMetadata::AttachedImagesType> MediaMetadata::AttachedImagesType::FromValue(const base::Value& value) { … }
base::Value::Dict MediaMetadata::AttachedImagesType::ToValue() const { … }
MediaMetadata::MediaMetadata()
{ … }
MediaMetadata::~MediaMetadata() = default;
MediaMetadata::MediaMetadata(MediaMetadata&& rhs) noexcept = default;
MediaMetadata& MediaMetadata::operator=(MediaMetadata&& rhs) noexcept = default;
MediaMetadata MediaMetadata::Clone() const { … }
bool MediaMetadata::Populate(
const base::Value::Dict& dict, MediaMetadata& out) { … }
bool MediaMetadata::Populate(
const base::Value& value, MediaMetadata& out) { … }
std::optional<MediaMetadata> MediaMetadata::FromValue(const base::Value::Dict& value) { … }
std::optional<MediaMetadata> MediaMetadata::FromValue(const base::Value& value) { … }
base::Value::Dict MediaMetadata::ToValue() const { … }
AddGalleryWatchResult::AddGalleryWatchResult()
: … { … }
AddGalleryWatchResult::~AddGalleryWatchResult() = default;
AddGalleryWatchResult::AddGalleryWatchResult(AddGalleryWatchResult&& rhs) noexcept = default;
AddGalleryWatchResult& AddGalleryWatchResult::operator=(AddGalleryWatchResult&& rhs) noexcept = default;
AddGalleryWatchResult AddGalleryWatchResult::Clone() const { … }
bool AddGalleryWatchResult::Populate(
const base::Value::Dict& dict, AddGalleryWatchResult& out) { … }
bool AddGalleryWatchResult::Populate(
const base::Value& value, AddGalleryWatchResult& out) { … }
std::optional<AddGalleryWatchResult> AddGalleryWatchResult::FromValue(const base::Value::Dict& value) { … }
std::optional<AddGalleryWatchResult> AddGalleryWatchResult::FromValue(const base::Value& value) { … }
base::Value::Dict AddGalleryWatchResult::ToValue() const { … }
namespace GetMediaFileSystems {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
Results::MediaFileSystemsType::MediaFileSystemsType()
{ … }
Results::MediaFileSystemsType::~MediaFileSystemsType() = default;
Results::MediaFileSystemsType::MediaFileSystemsType(MediaFileSystemsType&& rhs) noexcept = default;
Results::MediaFileSystemsType& Results::MediaFileSystemsType::operator=(MediaFileSystemsType&& rhs) noexcept = default;
base::Value::Dict Results::MediaFileSystemsType::ToValue() const { … }
base::Value::List Results::Create(const std::vector<MediaFileSystemsType>& media_file_systems) { … }
}
namespace AddUserSelectedFolder {
Results::MediaFileSystemsType::MediaFileSystemsType()
{ … }
Results::MediaFileSystemsType::~MediaFileSystemsType() = default;
Results::MediaFileSystemsType::MediaFileSystemsType(MediaFileSystemsType&& rhs) noexcept = default;
Results::MediaFileSystemsType& Results::MediaFileSystemsType::operator=(MediaFileSystemsType&& rhs) noexcept = default;
base::Value::Dict Results::MediaFileSystemsType::ToValue() const { … }
base::Value::List Results::Create(const std::vector<MediaFileSystemsType>& media_file_systems, const std::string& selected_file_system_name) { … }
}
namespace GetMetadata {
Params::MediaFile::MediaFile()
{ … }
Params::MediaFile::~MediaFile() = default;
Params::MediaFile::MediaFile(MediaFile&& rhs) noexcept = default;
Params::MediaFile& Params::MediaFile::operator=(MediaFile&& rhs) noexcept = default;
Params::MediaFile Params::MediaFile::Clone() const { … }
bool Params::MediaFile::Populate(
const base::Value::Dict& dict, MediaFile& out) { … }
bool Params::MediaFile::Populate(
const base::Value& value, MediaFile& out) { … }
std::optional<Params::MediaFile> Params::MediaFile::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::MediaFile> Params::MediaFile::FromValue(const base::Value& value) { … }
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(const MediaMetadata& metadata) { … }
}
namespace AddGalleryWatch {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
base::Value::List Results::Create(const AddGalleryWatchResult& result) { … }
}
namespace RemoveGalleryWatch {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace OnGalleryChanged {
const char kEventName[] = …;
base::Value::List Create(const GalleryChangeDetails& details) { … }
}
}
}
}