| 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_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ |
| 6 #define UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ | 6 #define UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "ui/compositor/compositor_export.h" | 18 #include "ui/compositor/compositor_export.h" |
| 19 #include "ui/compositor/layer_animation_element.h" | 19 #include "ui/compositor/layer_animation_element.h" |
| 20 | 20 |
| 21 namespace cc { |
| 22 struct AnimationEvent; |
| 23 } |
| 24 |
| 21 namespace ui { | 25 namespace ui { |
| 22 | 26 |
| 23 class LayerAnimationDelegate; | 27 class LayerAnimationDelegate; |
| 24 class LayerAnimationObserver; | 28 class LayerAnimationObserver; |
| 25 | 29 |
| 26 // Contains a collection of layer animation elements to be played one after | 30 // Contains a collection of layer animation elements to be played one after |
| 27 // another. Although it has a similar interface to LayerAnimationElement, it is | 31 // another. Although it has a similar interface to LayerAnimationElement, it is |
| 28 // not a LayerAnimationElement (i.e., it is not permitted to have a sequence in | 32 // not a LayerAnimationElement (i.e., it is not permitted to have a sequence in |
| 29 // a sequence). Sequences own their elements, and sequences are themselves owned | 33 // a sequence). Sequences own their elements, and sequences are themselves owned |
| 30 // by a LayerAnimator. | 34 // by a LayerAnimator. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 double last_progressed_fraction_; | 193 double last_progressed_fraction_; |
| 190 | 194 |
| 191 base::WeakPtrFactory<LayerAnimationSequence> weak_ptr_factory_; | 195 base::WeakPtrFactory<LayerAnimationSequence> weak_ptr_factory_; |
| 192 | 196 |
| 193 DISALLOW_COPY_AND_ASSIGN(LayerAnimationSequence); | 197 DISALLOW_COPY_AND_ASSIGN(LayerAnimationSequence); |
| 194 }; | 198 }; |
| 195 | 199 |
| 196 } // namespace ui | 200 } // namespace ui |
| 197 | 201 |
| 198 #endif // UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ | 202 #endif // UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ |
| OLD | NEW |