chromium/ui/base/clipboard/clipboard_format_type_aura.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// TODO(crbug.com/40716597): Investigate creating a new
// clipboard_format_type_x11 as a wrapper around an X11 ::Atom. This wasn't
// possible in the past, because unit tests spawned a new X11 server for each
// test, meaning Atom numeric values didn't persist across tests.
ClipboardFormatType::ClipboardFormatType() = default;

ClipboardFormatType::~ClipboardFormatType() = default;

ClipboardFormatType::ClipboardFormatType(const std::string& native_format)
    :{}

std::string ClipboardFormatType::Serialize() const {}

// static
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 {}

// static
ClipboardFormatType ClipboardFormatType::CustomPlatformType(
    const std::string& format_string) {}

// static
std::string ClipboardFormatType::WebCustomFormatName(int index) {}

// static
const ClipboardFormatType& ClipboardFormatType::WebCustomFormatMap() {}

// Various predefined ClipboardFormatTypes.

// static
ClipboardFormatType ClipboardFormatType::GetType(
    const std::string& format_string) {}

// static
const ClipboardFormatType& ClipboardFormatType::FilenamesType() {}

// static
const ClipboardFormatType& ClipboardFormatType::UrlType() {}

// static
const ClipboardFormatType& ClipboardFormatType::PlainTextType() {}

// static
const ClipboardFormatType& ClipboardFormatType::HtmlType() {}

// static
const ClipboardFormatType& ClipboardFormatType::SvgType() {}

// static
const ClipboardFormatType& ClipboardFormatType::RtfType() {}

// static
const ClipboardFormatType& ClipboardFormatType::PngType() {}

// static
const ClipboardFormatType& ClipboardFormatType::BitmapType() {}

// static
const ClipboardFormatType& ClipboardFormatType::WebKitSmartPasteType() {}

// static
const ClipboardFormatType& ClipboardFormatType::DataTransferCustomType() {}

#if BUILDFLAG(IS_CHROMEOS)
// static
const ClipboardFormatType& ClipboardFormatType::DataTransferEndpointDataType() {
  static base::NoDestructor<ClipboardFormatType> type(
      kMimeTypeDataTransferEndpoint);
  return *type;
}
#endif  // BUILDFLAG(IS_CHROMEOS)

}  // namespace ui