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_ANIMATOR_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_ANIMATOR_H_ |
6 #define UI_COMPOSITOR_LAYER_ANIMATOR_H_ | 6 #define UI_COMPOSITOR_LAYER_ANIMATOR_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 // Slows down all animations for visual debugging. | 299 // Slows down all animations for visual debugging. |
300 static bool slow_animation_mode_; | 300 static bool slow_animation_mode_; |
301 | 301 |
302 // Amount to slow animations for debugging. | 302 // Amount to slow animations for debugging. |
303 static int slow_animation_scale_factor_; | 303 static int slow_animation_scale_factor_; |
304 | 304 |
305 // Observers are notified when layer animations end, are scheduled or are | 305 // Observers are notified when layer animations end, are scheduled or are |
306 // aborted. | 306 // aborted. |
307 ObserverList<LayerAnimationObserver> observers_; | 307 ObserverList<LayerAnimationObserver> observers_; |
308 | 308 |
309 // Set to true in the destructor (if non-NULL). Used to detect deletion while | |
310 // calling out. | |
311 bool* destroyed_; | |
312 | |
313 DISALLOW_COPY_AND_ASSIGN(LayerAnimator); | 309 DISALLOW_COPY_AND_ASSIGN(LayerAnimator); |
314 }; | 310 }; |
315 | 311 |
316 } // namespace ui | 312 } // namespace ui |
317 | 313 |
318 #endif // UI_COMPOSITOR_LAYER_ANIMATOR_H_ | 314 #endif // UI_COMPOSITOR_LAYER_ANIMATOR_H_ |
OLD | NEW |