Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / compositor / test / test_layer_animation_observer.cc
blobabc74ae9d3a3b1ad936891b90568d8dfde5248a7
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/compositor/test/test_layer_animation_observer.h"
7 #include <cstddef>
9 namespace ui {
11 TestLayerAnimationObserver::TestLayerAnimationObserver()
12 : last_ended_sequence_(NULL),
13 last_scheduled_sequence_(NULL),
14 last_aborted_sequence_(NULL),
15 requires_notification_when_animator_destroyed_(false) {
18 TestLayerAnimationObserver::~TestLayerAnimationObserver() {
21 void TestLayerAnimationObserver::OnLayerAnimationEnded(
22 LayerAnimationSequence* sequence) {
23 last_ended_sequence_ = sequence;
26 void TestLayerAnimationObserver::OnLayerAnimationAborted(
27 LayerAnimationSequence* sequence) {
28 last_aborted_sequence_ = sequence;
31 void TestLayerAnimationObserver::OnLayerAnimationScheduled(
32 LayerAnimationSequence* sequence) {
33 last_scheduled_sequence_ = sequence;
36 bool
37 TestLayerAnimationObserver::RequiresNotificationWhenAnimatorDestroyed() const {
38 return requires_notification_when_animator_destroyed_;
41 } // namespace ui