#include "chrome/browser/ui/views/media_router/cast_dialog_sink_view.h"
#include <utility>
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/media/router/discovery/access_code/access_code_cast_feature.h"
#include "chrome/browser/media/router/media_router_feature.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/views/chrome_layout_provider.h"
#include "chrome/browser/ui/views/media_router/cast_dialog_helper.h"
#include "chrome/browser/ui/views/media_router/cast_dialog_sink_button.h"
#include "chrome/grit/generated_resources.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/base/ui_base_types.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/background.h"
#include "ui/views/border.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/flex_layout.h"
#include "ui/views/style/typography.h"
#include "ui/views/vector_icons.h"
#include "ui/views/view_class_properties.h"
namespace {
std::unique_ptr<views::ImageView> CreateConnectedIconView(
media_router::UIMediaSink sink) { … }
std::unique_ptr<views::StyledLabel> CreateTitle(
const media_router::UIMediaSink& sink) { … }
std::unique_ptr<views::View> CreateSubtitle(
const media_router::UIMediaSink& sink,
views::Button::PressedCallback issue_pressed_callback) { … }
}
namespace media_router {
CastDialogSinkView::CastDialogSinkView(
Profile* profile,
const UIMediaSink& sink,
views::Button::PressedCallback sink_pressed_callback,
views::Button::PressedCallback issue_pressed_callback,
views::Button::PressedCallback stop_pressed_callback,
views::Button::PressedCallback freeze_pressed_callback)
: … { … }
std::unique_ptr<views::View> CastDialogSinkView::CreateLabelView(
const UIMediaSink& sink,
views::Button::PressedCallback issue_pressed_callback) { … }
std::unique_ptr<views::View> CastDialogSinkView::CreateButtonsView(
views::Button::PressedCallback stop_pressed_callback,
views::Button::PressedCallback freeze_pressed_callback) { … }
void CastDialogSinkView::RequestFocus() { … }
void CastDialogSinkView::SetEnabledState(bool enabled) { … }
std::u16string CastDialogSinkView::GetFreezeButtonAccessibleName() const { … }
std::u16string CastDialogSinkView::GetStopButtonAccessibleName() const { … }
CastDialogSinkView::~CastDialogSinkView() = default;
BEGIN_METADATA(…)
}