This source file includes following definitions.
- requires_notification_when_animator_destroyed_
- OnLayerAnimationEnded
- OnLayerAnimationAborted
- OnLayerAnimationScheduled
- RequiresNotificationWhenAnimatorDestroyed
#include "ui/compositor/test/test_layer_animation_observer.h"
#include <cstddef>
namespace ui {
TestLayerAnimationObserver::TestLayerAnimationObserver()
: last_ended_sequence_(NULL),
last_scheduled_sequence_(NULL),
last_aborted_sequence_(NULL),
requires_notification_when_animator_destroyed_(false) {
}
TestLayerAnimationObserver::~TestLayerAnimationObserver() {
}
void TestLayerAnimationObserver::OnLayerAnimationEnded(
LayerAnimationSequence* sequence) {
last_ended_sequence_ = sequence;
}
void TestLayerAnimationObserver::OnLayerAnimationAborted(
LayerAnimationSequence* sequence) {
last_aborted_sequence_ = sequence;
}
void TestLayerAnimationObserver::OnLayerAnimationScheduled(
LayerAnimationSequence* sequence) {
last_scheduled_sequence_ = sequence;
}
bool
TestLayerAnimationObserver::RequiresNotificationWhenAnimatorDestroyed() const {
return requires_notification_when_animator_destroyed_;
}
}