#include "ui/base/clipboard/clipboard_format_type.h"
#include "base/no_destructor.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "ui/base/clipboard/clipboard_constants.h"
namespace ui {
ClipboardFormatType::ClipboardFormatType() = default;
ClipboardFormatType::~ClipboardFormatType() = default;
ClipboardFormatType::ClipboardFormatType(const std::string& native_format)
: … { … }
std::string ClipboardFormatType::Serialize() const { … }
ClipboardFormatType ClipboardFormatType::Deserialize(
const std::string& serialization) { … }
std::string ClipboardFormatType::GetName() const { … }
bool ClipboardFormatType::operator<(const ClipboardFormatType& other) const { … }
bool ClipboardFormatType::operator==(const ClipboardFormatType& other) const { … }
ClipboardFormatType ClipboardFormatType::CustomPlatformType(
const std::string& format_string) { … }
std::string ClipboardFormatType::WebCustomFormatName(int index) { … }
const ClipboardFormatType& ClipboardFormatType::WebCustomFormatMap() { … }
ClipboardFormatType ClipboardFormatType::GetType(
const std::string& format_string) { … }
const ClipboardFormatType& ClipboardFormatType::FilenamesType() { … }
const ClipboardFormatType& ClipboardFormatType::UrlType() { … }
const ClipboardFormatType& ClipboardFormatType::PlainTextType() { … }
const ClipboardFormatType& ClipboardFormatType::HtmlType() { … }
const ClipboardFormatType& ClipboardFormatType::SvgType() { … }
const ClipboardFormatType& ClipboardFormatType::RtfType() { … }
const ClipboardFormatType& ClipboardFormatType::PngType() { … }
const ClipboardFormatType& ClipboardFormatType::BitmapType() { … }
const ClipboardFormatType& ClipboardFormatType::WebKitSmartPasteType() { … }
const ClipboardFormatType& ClipboardFormatType::DataTransferCustomType() { … }
#if BUILDFLAG(IS_CHROMEOS)
const ClipboardFormatType& ClipboardFormatType::DataTransferEndpointDataType() {
static base::NoDestructor<ClipboardFormatType> type(
kMimeTypeDataTransferEndpoint);
return *type;
}
#endif
}