#include "chrome/browser/ui/views/global_media_controls/cast_device_footer_view.h"
#include "chrome/browser/ui/views/global_media_controls/media_item_ui_helper.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/views/background.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/layout/box_layout.h"
namespace {
constexpr int kBackgroundBorderThickness = …;
constexpr int kBackgroundCornerRadius = …;
constexpr int kStopCastingButtonCornerRadius = …;
constexpr int kBackgroundSeparator = …;
constexpr int kStopCastingButtonSeparator = …;
constexpr int kDeviceIconSize = …;
constexpr int kStopCastingButtonIconSize = …;
constexpr gfx::Insets kBackgroundInsets = …;
constexpr gfx::Insets kStopCastingButtonInsets = …;
}
CastDeviceFooterView::CastDeviceFooterView(
std::optional<std::string> device_name,
base::RepeatingClosure stop_casting_callback,
media_message_center::MediaColorTheme media_color_theme)
: … { … }
CastDeviceFooterView::~CastDeviceFooterView() = default;
views::Label* CastDeviceFooterView::GetDeviceNameForTesting() { … }
views::Button* CastDeviceFooterView::GetStopCastingButtonForTesting() { … }
void CastDeviceFooterView::StopCasting() { … }
BEGIN_METADATA(…)