#include "chrome/browser/ui/views/media_router/cast_toolbar_button.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "chrome/browser/media/router/discovery/access_code/access_code_cast_feature.h"
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "chrome/browser/ui/layout_constants.h"
#include "chrome/browser/ui/media_router/media_router_ui_service.h"
#include "chrome/grit/generated_resources.h"
#include "components/media_router/browser/media_router.h"
#include "components/media_router/browser/media_router_dialog_controller.h"
#include "components/media_router/browser/media_router_factory.h"
#include "components/media_router/browser/media_router_metrics.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/models/image_model.h"
#include "ui/base/models/menu_model.h"
#include "ui/base/pointer/touch_ui_controller.h"
#include "ui/base/theme_provider.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/color_palette.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/gfx/vector_icon_types.h"
#include "ui/views/animation/ink_drop.h"
#include "ui/views/controls/button/button_controller.h"
namespace media_router {
namespace {
constexpr char kLoggerComponent[] = …;
}
Severity;
std::unique_ptr<CastToolbarButton> CastToolbarButton::Create(Browser* browser) { … }
CastToolbarButton::CastToolbarButton(
Browser* browser,
MediaRouter* media_router,
std::unique_ptr<CastContextualMenu> context_menu)
: … { … }
CastToolbarButton::~CastToolbarButton() { … }
void CastToolbarButton::ShowIcon() { … }
void CastToolbarButton::HideIcon() { … }
void CastToolbarButton::ActivateIcon() { … }
void CastToolbarButton::DeactivateIcon() { … }
void CastToolbarButton::OnIssue(const media_router::Issue& issue) { … }
void CastToolbarButton::OnIssuesCleared() { … }
void CastToolbarButton::OnRoutesUpdated(
const std::vector<media_router::MediaRoute>& routes) { … }
void CastToolbarButton::OnFreezeInfoChanged() { … }
bool CastToolbarButton::OnMousePressed(const ui::MouseEvent& event) { … }
void CastToolbarButton::OnMouseReleased(const ui::MouseEvent& event) { … }
void CastToolbarButton::OnGestureEvent(ui::GestureEvent* event) { … }
void CastToolbarButton::OnThemeChanged() { … }
void CastToolbarButton::UpdateIcon() { … }
CastToolbarButtonController* CastToolbarButton::GetActionController() const { … }
void CastToolbarButton::UpdateLayoutInsetDelta() { … }
void CastToolbarButton::ButtonPressed() { … }
void CastToolbarButton::LogIconChange(const gfx::VectorIcon* icon) { … }
void CastToolbarButton::StopObservingMirroringMediaControllerHosts() { … }
BEGIN_METADATA(…)
}