| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 friend class LayerAnimatorTestController; | 133 friend class LayerAnimatorTestController; |
| 134 | 134 |
| 135 typedef std::vector<linked_ptr<LayerAnimationElement> > Elements; | 135 typedef std::vector<linked_ptr<LayerAnimationElement> > Elements; |
| 136 | 136 |
| 137 FRIEND_TEST_ALL_PREFIXES(LayerAnimatorTest, | 137 FRIEND_TEST_ALL_PREFIXES(LayerAnimatorTest, |
| 138 ObserverReleasedBeforeAnimationSequenceEnds); | 138 ObserverReleasedBeforeAnimationSequenceEnds); |
| 139 | 139 |
| 140 // Notifies the observers that this sequence has been scheduled. | 140 // Notifies the observers that this sequence has been scheduled. |
| 141 void NotifyScheduled(); | 141 void NotifyScheduled(); |
| 142 | 142 |
| 143 // Notifies the observers that this sequence has been started. |
| 144 void NotifyStarted(); |
| 145 |
| 143 // Notifies the observers that this sequence has ended. | 146 // Notifies the observers that this sequence has ended. |
| 144 void NotifyEnded(); | 147 void NotifyEnded(); |
| 145 | 148 |
| 146 // Notifies the observers that this sequence has been aborted. | 149 // Notifies the observers that this sequence has been aborted. |
| 147 void NotifyAborted(); | 150 void NotifyAborted(); |
| 148 | 151 |
| 149 // The currently animating element. | 152 // The currently animating element. |
| 150 LayerAnimationElement* CurrentElement() const; | 153 LayerAnimationElement* CurrentElement() const; |
| 151 | 154 |
| 152 // The union of all the properties modified by all elements in the sequence. | 155 // The union of all the properties modified by all elements in the sequence. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 183 double last_progressed_fraction_; | 186 double last_progressed_fraction_; |
| 184 | 187 |
| 185 base::WeakPtrFactory<LayerAnimationSequence> weak_ptr_factory_; | 188 base::WeakPtrFactory<LayerAnimationSequence> weak_ptr_factory_; |
| 186 | 189 |
| 187 DISALLOW_COPY_AND_ASSIGN(LayerAnimationSequence); | 190 DISALLOW_COPY_AND_ASSIGN(LayerAnimationSequence); |
| 188 }; | 191 }; |
| 189 | 192 |
| 190 } // namespace ui | 193 } // namespace ui |
| 191 | 194 |
| 192 #endif // UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ | 195 #endif // UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ |
| OLD | NEW |