chromium/ui/base/x/selection_utils.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "ui/base/x/selection_utils.h"

#include <stdint.h>

#include <set>

#include "base/containers/contains.h"
#include "base/containers/span.h"
#include "base/i18n/icu_string_conversions.h"
#include "base/memory/ref_counted_memory.h"
#include "base/memory/scoped_refptr.h"
#include "base/notreached.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/base/clipboard/clipboard_constants.h"
#include "ui/gfx/x/atom_cache.h"

namespace ui {

std::vector<x11::Atom> GetTextAtomsFrom() {}

std::vector<x11::Atom> GetURLAtomsFrom() {}

std::vector<x11::Atom> GetURIListAtomsFrom() {}

void GetAtomIntersection(const std::vector<x11::Atom>& desired,
                         const std::vector<x11::Atom>& offered,
                         std::vector<x11::Atom>* output) {}

void AddString16ToVector(const std::u16string& str,
                         std::vector<unsigned char>* bytes) {}

std::vector<std::string> ParseURIList(const SelectionData& data) {}

std::string RefCountedMemoryToString(
    const scoped_refptr<base::RefCountedMemory>& memory) {}

std::u16string RefCountedMemoryToString16(
    const scoped_refptr<base::RefCountedMemory>& memory) {}

///////////////////////////////////////////////////////////////////////////////

SelectionFormatMap::SelectionFormatMap() = default;

SelectionFormatMap::SelectionFormatMap(const SelectionFormatMap& other) =
    default;

SelectionFormatMap::~SelectionFormatMap() = default;

void SelectionFormatMap::Insert(
    x11::Atom atom,
    const scoped_refptr<base::RefCountedMemory>& item) {}

ui::SelectionData SelectionFormatMap::GetFirstOf(
    const std::vector<x11::Atom>& requested_types) const {}

ui::SelectionData SelectionFormatMap::Get(x11::Atom requested_type) const {}

std::vector<x11::Atom> SelectionFormatMap::GetTypes() const {}

///////////////////////////////////////////////////////////////////////////////

SelectionData::SelectionData() :{}

SelectionData::SelectionData(
    x11::Atom type,
    const scoped_refptr<base::RefCountedMemory>& memory)
    :{}

SelectionData::SelectionData(const SelectionData& rhs) = default;

SelectionData::~SelectionData() = default;

SelectionData& SelectionData::operator=(const SelectionData& rhs) {}

bool SelectionData::IsValid() const {}

x11::Atom SelectionData::GetType() const {}

const unsigned char* SelectionData::GetData() const {}

size_t SelectionData::GetSize() const {}

std::string SelectionData::GetText() const {}

std::u16string SelectionData::GetHtml() const {}

void SelectionData::AssignTo(std::string* result) const {}

void SelectionData::AssignTo(std::u16string* result) const {}

scoped_refptr<base::RefCountedBytes> SelectionData::TakeBytes() {}

}  // namespace ui