chromium/chrome/browser/ui/views/bookmarks/saved_tab_groups/saved_tab_group_drag_data.cc

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

#include "chrome/browser/ui/views/bookmarks/saved_tab_groups/saved_tab_group_drag_data.h"

#include <memory>
#include <string>

#include "base/pickle.h"
#include "chrome/browser/ui/views/bookmarks/saved_tab_groups/saved_tab_group_button.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/dragdrop/os_exchange_data.h"
#include "ui/base/theme_provider.h"
#include "ui/compositor/canvas_painter.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/views/drag_utils.h"

namespace tab_groups {
namespace {

// The MIME type for the clipboard format for SavedTabGroupDragData.
const char kClipboardFormatString[] =;

// Paint `button` to an image, then give that to `data` for its drag image.
void AddButtonImageToOSExchangeData(SavedTabGroupButton* button,
                                    const gfx::Point& press_pt,
                                    const ui::ThemeProvider* theme_provider,
                                    ui::OSExchangeData* data) {}

}  // anonymous namespace

SavedTabGroupDragData::SavedTabGroupDragData(const base::Uuid guid)
    :{}

// static
const ui::ClipboardFormatType& SavedTabGroupDragData::GetFormatType() {}

// static
std::optional<SavedTabGroupDragData>
SavedTabGroupDragData::ReadFromOSExchangeData(const ui::OSExchangeData* data) {}

// static
void SavedTabGroupDragData::WriteToOSExchangeData(
    SavedTabGroupButton* button,
    const gfx::Point& press_pt,
    const ui::ThemeProvider* theme_provider,
    ui::OSExchangeData* data) {}

}  // namespace tab_groups