#include "chrome/browser/ui/views/autofill/payments/offer_notification_icon_view.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/ui/autofill/payments/offer_notification_bubble_controller.h"
#include "chrome/browser/ui/browser_command_controller.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/view_ids.h"
#include "chrome/browser/ui/views/autofill/payments/offer_notification_bubble_views.h"
#include "chrome/grit/generated_resources.h"
#include "components/autofill/core/common/autofill_payments_features.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/gfx/paint_vector_icon.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/interaction/element_tracker_views.h"
#include "ui/views/view_class_properties.h"
namespace autofill {
constexpr double kAnimationValueWhenLabelFullyShown = …;
constexpr base::TimeDelta kLabelPersistDuration = …;
DEFINE_CUSTOM_ELEMENT_EVENT_TYPE(kLabelAnimationFinished);
DEFINE_CUSTOM_ELEMENT_EVENT_TYPE(kLabelExpansionFinished);
OfferNotificationIconView::OfferNotificationIconView(
CommandUpdater* command_updater,
IconLabelBubbleView::Delegate* icon_label_bubble_delegate,
PageActionIconView::Delegate* page_action_icon_delegate)
: … { … }
OfferNotificationIconView::~OfferNotificationIconView() = default;
views::BubbleDialogDelegate* OfferNotificationIconView::GetBubble() const { … }
void OfferNotificationIconView::UpdateImpl() { … }
void OfferNotificationIconView::OnWidgetDestroying(views::Widget* widget) { … }
void OfferNotificationIconView::MaybeShowPageActionLabel() { … }
void OfferNotificationIconView::HidePageActionLabel() { … }
base::RetainingOneShotTimer& OfferNotificationIconView::AnimateOutTimer() { … }
void OfferNotificationIconView::AnimationProgressed(
const gfx::Animation* animation) { … }
void OfferNotificationIconView::AnimationEnded(
const gfx::Animation* animation) { … }
void OfferNotificationIconView::OnExecuting(
PageActionIconView::ExecuteSource execute_source) { … }
void OfferNotificationIconView::DidExecute(ExecuteSource execute_source) { … }
const gfx::VectorIcon& OfferNotificationIconView::GetVectorIcon() const { … }
const std::u16string& OfferNotificationIconView::GetIconLabelForTesting()
const { … }
void OfferNotificationIconView::SetAnimateOutTimerForTesting(
base::RetainingOneShotTimer* timer) { … }
OfferNotificationBubbleController* OfferNotificationIconView::GetController()
const { … }
BEGIN_METADATA(…)
}