#include "ui/views/test/widget_animation_waiter.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_animation_delegate.h"
#include "ui/compositor/layer_animator.h"
#include "ui/views/widget/widget.h"
namespace views {
WidgetAnimationWaiter::WidgetAnimationWaiter(Widget* widget)
: … { … }
WidgetAnimationWaiter::WidgetAnimationWaiter(Widget* widget,
const gfx::Rect& target_bounds)
: … { … }
WidgetAnimationWaiter::~WidgetAnimationWaiter() = default;
void WidgetAnimationWaiter::OnLayerAnimationEnded(
ui::LayerAnimationSequence* sequence) { … }
void WidgetAnimationWaiter::OnLayerAnimationAborted(
ui::LayerAnimationSequence* sequence) { … }
void WidgetAnimationWaiter::OnLayerAnimationScheduled(
ui::LayerAnimationSequence* sequence) { … }
void WidgetAnimationWaiter::WaitForAnimation() { … }
bool WidgetAnimationWaiter::WasValidAnimation() { … }
void WidgetAnimationWaiter::OnWidgetDestroying(Widget* widget) { … }
}