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 <memory> | 10 #include <memory> |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // These parties are notified when layer animations end. | 190 // These parties are notified when layer animations end. |
191 base::ObserverList<LayerAnimationObserver> observers_; | 191 base::ObserverList<LayerAnimationObserver> observers_; |
192 | 192 |
193 // Tracks the last_progressed_fraction() of the most recently progressed | 193 // Tracks the last_progressed_fraction() of the most recently progressed |
194 // element. | 194 // element. |
195 double last_progressed_fraction_; | 195 double last_progressed_fraction_; |
196 | 196 |
197 // Used to tag animation elements to obtain metrics of animation performance. | 197 // Used to tag animation elements to obtain metrics of animation performance. |
198 AnimationMetricsReporter* animation_metrics_reporter_; | 198 AnimationMetricsReporter* animation_metrics_reporter_; |
199 | 199 |
200 base::WeakPtrFactory<LayerAnimationSequence> weak_ptr_factory_; | |
201 | |
202 DISALLOW_COPY_AND_ASSIGN(LayerAnimationSequence); | 200 DISALLOW_COPY_AND_ASSIGN(LayerAnimationSequence); |
203 }; | 201 }; |
204 | 202 |
205 } // namespace ui | 203 } // namespace ui |
206 | 204 |
207 #endif // UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ | 205 #endif // UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ |
OLD | NEW |