private:
// ImplicitAnimationObserver implementation
- virtual void OnImplicitAnimationsCompleted() OVERRIDE {
+ void OnImplicitAnimationsCompleted() override {
animations_completed_ = true;
}
- virtual bool RequiresNotificationWhenAnimatorDestroyed() const OVERRIDE {
+ bool RequiresNotificationWhenAnimatorDestroyed() const override {
return notify_when_animator_destructed_;
}
: animator_(animator) {
}
- virtual void OnLayerAnimationEnded(
- LayerAnimationSequence* sequence) OVERRIDE {
+ void OnLayerAnimationEnded(LayerAnimationSequence* sequence) override {
animator_->StopAnimating();
}
- virtual void OnLayerAnimationAborted(
- LayerAnimationSequence* sequence) OVERRIDE {
+ void OnLayerAnimationAborted(LayerAnimationSequence* sequence) override {
animator_->StopAnimating();
}
- virtual void OnLayerAnimationScheduled(
- LayerAnimationSequence* sequence) OVERRIDE {
- }
+ void OnLayerAnimationScheduled(LayerAnimationSequence* sequence) override {}
private:
LayerAnimator* animator_;
}
protected:
- virtual ~TestLayerAnimator() {
+ ~TestLayerAnimator() override {
if (destruction_observer_) {
destruction_observer_->NotifyAnimatorDeleted();
}
}
- virtual void ProgressAnimation(LayerAnimationSequence* sequence,
- base::TimeTicks now) OVERRIDE {
+ void ProgressAnimation(LayerAnimationSequence* sequence,
+ base::TimeTicks now) override {
EXPECT_TRUE(HasAnimation(sequence));
LayerAnimator::ProgressAnimation(sequence, now);
}
(*num_live_instances_)++;
}
- virtual ~TestLayerAnimationSequence() {
- (*num_live_instances_)--;
- }
+ ~TestLayerAnimationSequence() override { (*num_live_instances_)--; }
private:
int* num_live_instances_;
max_width_(max_width) {
}
- virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) OVERRIDE {
+ void SetBoundsFromAnimation(const gfx::Rect& bounds) override {
TestLayerAnimationDelegate::SetBoundsFromAnimation(bounds);
if (bounds.width() > max_width_)
animator_->StopAnimating();
animator()->AddObserver(this);
}
- virtual ~DeletingObserver() {
+ ~DeletingObserver() override {
animator()->RemoveObserver(this);
*was_deleted_ = true;
}
}
// LayerAnimationObserver implementation.
- virtual void OnLayerAnimationEnded(
- LayerAnimationSequence* sequence) OVERRIDE {
+ void OnLayerAnimationEnded(LayerAnimationSequence* sequence) override {
if (delete_on_animation_ended_)
delete this;
}
- virtual void OnLayerAnimationAborted(
- LayerAnimationSequence* sequence) OVERRIDE {
+ void OnLayerAnimationAborted(LayerAnimationSequence* sequence) override {
if (delete_on_animation_aborted_)
delete this;
}
- virtual void OnLayerAnimationScheduled(
- LayerAnimationSequence* sequence) OVERRIDE {
+ void OnLayerAnimationScheduled(LayerAnimationSequence* sequence) override {
if (delete_on_animation_scheduled_)
delete this;
}
class CollectionLayerAnimationDelegate : public TestLayerAnimationDelegate {
public:
CollectionLayerAnimationDelegate() : collection(NULL) {}
- virtual ~CollectionLayerAnimationDelegate() {}
+ ~CollectionLayerAnimationDelegate() override {}
// LayerAnimationDelegate:
- virtual LayerAnimatorCollection* GetLayerAnimatorCollection() OVERRIDE {
+ LayerAnimatorCollection* GetLayerAnimatorCollection() override {
return &collection;
}