#include "chrome/browser/ui/views/flying_indicator.h"
#include "base/memory/ptr_util.h"
#include "chrome/app/vector_icons/vector_icons.h"
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/browser/ui/color/chrome_color_id.h"
#include "ui/accessibility/ax_enums.mojom-shared.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/color/color_provider.h"
#include "ui/gfx/geometry/cubic_bezier.h"
#include "ui/gfx/paint_vector_icon.h"
#include "ui/views/bubble/bubble_dialog_delegate_view.h"
#include "ui/views/bubble/bubble_frame_view.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/layout/fill_layout.h"
#include "ui/views/window/dialog_delegate.h"
namespace {
static constexpr base::TimeDelta kFadeInDuration = …;
static constexpr base::TimeDelta kFlyDuration = …;
static constexpr base::TimeDelta kFadeOutDuration = …;
}
std::unique_ptr<FlyingIndicator> FlyingIndicator::StartFlyingIndicator(
const gfx::VectorIcon& icon,
const gfx::Point& start,
views::View* target,
base::OnceClosure done_callback) { … }
FlyingIndicator::FlyingIndicator(const gfx::VectorIcon& icon,
const gfx::Point& start,
views::View* target,
base::OnceClosure done_callback)
: … { … }
FlyingIndicator::~FlyingIndicator() { … }
void FlyingIndicator::OnWidgetDestroyed(views::Widget* widget) { … }
void FlyingIndicator::AnimationProgressed(const gfx::Animation* animation) { … }
void FlyingIndicator::AnimationEnded(const gfx::Animation* animation) { … }