chromium/ash/picker/picker_rich_media.cc

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

#include "ash/picker/picker_rich_media.h"

#include <memory>
#include <string>
#include <utility>

#include "base/strings/utf_string_conversions.h"
#include "url/gurl.h"

namespace ash {

PickerTextMedia::PickerTextMedia(std::u16string text) : text(std::move(text)) {}

PickerTextMedia::PickerTextMedia(std::string_view text)
    : PickerTextMedia(base::UTF8ToUTF16(text)) {}

PickerLinkMedia::PickerLinkMedia(GURL url, std::string title)
    : url(std::move(url)), title(std::move(title)) {}

PickerLocalFileMedia::PickerLocalFileMedia(base::FilePath path)
    : path(std::move(path)) {}

}  // namespace ash