#include "extensions/common/api/clipboard.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 extensions {
namespace api {
namespace clipboard {
const char* ToString(ImageType enum_param) { … }
ImageType ParseImageType(std::string_view enum_string) { … }
std::u16string GetImageTypeParseError(std::string_view enum_string) { … }
const char* ToString(DataItemType enum_param) { … }
DataItemType ParseDataItemType(std::string_view enum_string) { … }
std::u16string GetDataItemTypeParseError(std::string_view enum_string) { … }
AdditionalDataItem::AdditionalDataItem()
: … { … }
AdditionalDataItem::~AdditionalDataItem() = default;
AdditionalDataItem::AdditionalDataItem(AdditionalDataItem&& rhs) noexcept = default;
AdditionalDataItem& AdditionalDataItem::operator=(AdditionalDataItem&& rhs) noexcept = default;
AdditionalDataItem AdditionalDataItem::Clone() const { … }
bool AdditionalDataItem::Populate(
const base::Value::Dict& dict, AdditionalDataItem& out) { … }
bool AdditionalDataItem::Populate(
const base::Value& value, AdditionalDataItem& out) { … }
std::optional<AdditionalDataItem> AdditionalDataItem::FromValue(const base::Value::Dict& value) { … }
std::optional<AdditionalDataItem> AdditionalDataItem::FromValue(const base::Value& value) { … }
base::Value::Dict AdditionalDataItem::ToValue() const { … }
namespace SetImageData {
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() { … }
}
namespace OnClipboardDataChanged {
const char kEventName[] = …;
base::Value::List Create() { … }
}
}
}
}