| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // least one of the sequences in this group has a threaded first element. | 169 // least one of the sequences in this group has a threaded first element. |
| 170 bool waiting_for_group_start_; | 170 bool waiting_for_group_start_; |
| 171 | 171 |
| 172 // Identifies groups of sequences that are supposed to start together. | 172 // Identifies groups of sequences that are supposed to start together. |
| 173 // Also used to identify the owner of a particular threaded animation; any | 173 // Also used to identify the owner of a particular threaded animation; any |
| 174 // in-progress threaded animation owned by this sequence will have this | 174 // in-progress threaded animation owned by this sequence will have this |
| 175 // group id. | 175 // group id. |
| 176 int animation_group_id_; | 176 int animation_group_id_; |
| 177 | 177 |
| 178 // These parties are notified when layer animations end. | 178 // These parties are notified when layer animations end. |
| 179 ObserverList<LayerAnimationObserver> observers_; | 179 base::ObserverList<LayerAnimationObserver> observers_; |
| 180 | 180 |
| 181 // Tracks the last_progressed_fraction() of the most recently progressed | 181 // Tracks the last_progressed_fraction() of the most recently progressed |
| 182 // element. | 182 // element. |
| 183 double last_progressed_fraction_; | 183 double last_progressed_fraction_; |
| 184 | 184 |
| 185 base::WeakPtrFactory<LayerAnimationSequence> weak_ptr_factory_; | 185 base::WeakPtrFactory<LayerAnimationSequence> weak_ptr_factory_; |
| 186 | 186 |
| 187 DISALLOW_COPY_AND_ASSIGN(LayerAnimationSequence); | 187 DISALLOW_COPY_AND_ASSIGN(LayerAnimationSequence); |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace ui | 190 } // namespace ui |
| 191 | 191 |
| 192 #endif // UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ | 192 #endif // UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ |
| OLD | NEW |