| 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 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 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/ref_counted.h" | 15 #include "base/memory/ref_counted.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 "cc/animation/animation_delegate.h" | 18 #include "cc/animation/animation_delegate.h" |
| 19 #include "cc/animation/target_property.h" | 19 #include "cc/animation/target_property.h" |
| 20 #include "ui/compositor/compositor_export.h" | 20 #include "ui/compositor/compositor_export.h" |
| 21 #include "ui/compositor/layer_animation_element.h" | 21 #include "ui/compositor/layer_animation_element.h" |
| 22 #include "ui/compositor/layer_threaded_animation_delegate.h" | 22 #include "ui/compositor/layer_threaded_animation_delegate.h" |
| 23 #include "ui/gfx/animation/tween.h" | 23 #include "ui/gfx/animation/tween.h" |
| 24 | 24 |
| 25 namespace cc { | 25 namespace cc { |
| 26 class Animation; | 26 class Animation; |
| 27 class AnimationPlayer; | 27 class AnimationPlayer; |
| 28 class AnimationTimeline; | 28 class AnimationTimeline; |
| 29 class ElementAnimations; |
| 29 class Layer; | 30 class Layer; |
| 30 class LayerAnimationController; | |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace gfx { | 33 namespace gfx { |
| 34 class Animation; | 34 class Animation; |
| 35 class Rect; | 35 class Rect; |
| 36 class Transform; | 36 class Transform; |
| 37 } | 37 } |
| 38 | 38 |
| 39 namespace ui { | 39 namespace ui { |
| 40 class Compositor; | 40 class Compositor; |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 bool disable_timer_for_test_; | 401 bool disable_timer_for_test_; |
| 402 | 402 |
| 403 // Prevents timer adjustments in case when we start multiple animations | 403 // Prevents timer adjustments in case when we start multiple animations |
| 404 // with preemption strategies that discard previous animations. | 404 // with preemption strategies that discard previous animations. |
| 405 bool adding_animations_; | 405 bool adding_animations_; |
| 406 | 406 |
| 407 // Observers are notified when layer animations end, are scheduled or are | 407 // Observers are notified when layer animations end, are scheduled or are |
| 408 // aborted. | 408 // aborted. |
| 409 base::ObserverList<LayerAnimationObserver> observers_; | 409 base::ObserverList<LayerAnimationObserver> observers_; |
| 410 | 410 |
| 411 // We store a state of LayerAnimationController here to save it in | 411 // We store a state of ElementAnimations here to save it in |
| 412 // ResetCompositor/SetCompositor scope. | 412 // ResetCompositor/SetCompositor scope. |
| 413 // TODO(loyso): Remove it. crbug.com/592873. | 413 // TODO(loyso): Remove it. crbug.com/592873. |
| 414 scoped_refptr<cc::LayerAnimationController> animation_controller_state_; | 414 scoped_refptr<cc::ElementAnimations> element_animations_state_; |
| 415 | 415 |
| 416 DISALLOW_COPY_AND_ASSIGN(LayerAnimator); | 416 DISALLOW_COPY_AND_ASSIGN(LayerAnimator); |
| 417 }; | 417 }; |
| 418 | 418 |
| 419 } // namespace ui | 419 } // namespace ui |
| 420 | 420 |
| 421 #endif // UI_COMPOSITOR_LAYER_ANIMATOR_H_ | 421 #endif // UI_COMPOSITOR_LAYER_ANIMATOR_H_ |
| OLD | NEW |