#include "chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_action_button.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/sharing_hub/sharing_hub_model.h"
#include "chrome/browser/ui/views/sharing_hub/sharing_hub_bubble_view_impl.h"
#include "chrome/grit/generated_resources.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/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/flex_layout.h"
namespace sharing_hub {
namespace {
static constexpr gfx::Insets kInteriorMargin = …;
static constexpr gfx::Insets kDefaultMargin = …;
static constexpr gfx::Size kPrimaryIconSize{ … };
static_assert …;
ui::ImageModel ImageForAction(const SharingHubAction& action_info) { … }
}
SharingHubBubbleActionButton::SharingHubBubbleActionButton(
SharingHubBubbleViewImpl* bubble,
const SharingHubAction& action_info)
: … { … }
SharingHubBubbleActionButton::~SharingHubBubbleActionButton() = default;
void SharingHubBubbleActionButton::OnThemeChanged() { … }
void SharingHubBubbleActionButton::OnFocus() { … }
void SharingHubBubbleActionButton::OnBlur() { … }
void SharingHubBubbleActionButton::StateChanged(
views::Button::ButtonState old_state) { … }
void SharingHubBubbleActionButton::UpdateColors() { … }
BEGIN_METADATA(…)
}