OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_ | 5 #ifndef UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_ |
6 #define UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_ | 6 #define UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ui/gfx/compositor/layer_animation_observer.h" | 10 #include "ui/compositor/layer_animation_observer.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 class LayerAnimationSequence; | 14 class LayerAnimationSequence; |
15 | 15 |
16 // Listens to animation ended notifications. Remembers the last sequence that | 16 // Listens to animation ended notifications. Remembers the last sequence that |
17 // it was notified about. | 17 // it was notified about. |
18 class TestLayerAnimationObserver : public LayerAnimationObserver { | 18 class TestLayerAnimationObserver : public LayerAnimationObserver { |
19 public: | 19 public: |
20 TestLayerAnimationObserver(); | 20 TestLayerAnimationObserver(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const LayerAnimationSequence* last_scheduled_sequence_; | 52 const LayerAnimationSequence* last_scheduled_sequence_; |
53 const LayerAnimationSequence* last_aborted_sequence_; | 53 const LayerAnimationSequence* last_aborted_sequence_; |
54 bool requires_notification_when_animator_destroyed_; | 54 bool requires_notification_when_animator_destroyed_; |
55 | 55 |
56 // Copy and assign are allowed. | 56 // Copy and assign are allowed. |
57 }; | 57 }; |
58 | 58 |
59 } // namespace ui | 59 } // namespace ui |
60 | 60 |
61 #endif // UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_ | 61 #endif // UI_GFX_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_OBSERVER_ |
OLD | NEW |