| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 5 #ifndef CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
| 6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
| 7 | 7 |
| 8 #include "base/containers/linked_list.h" | 8 #include "base/containers/linked_list.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void CreatePendingValueObserver(); | 93 void CreatePendingValueObserver(); |
| 94 void DestroyPendingValueObserver(); | 94 void DestroyPendingValueObserver(); |
| 95 | 95 |
| 96 // AnimationDelegate implementation | 96 // AnimationDelegate implementation |
| 97 void NotifyAnimationStarted(base::TimeTicks monotonic_time, | 97 void NotifyAnimationStarted(base::TimeTicks monotonic_time, |
| 98 Animation::TargetProperty target_property, | 98 Animation::TargetProperty target_property, |
| 99 int group) override; | 99 int group) override; |
| 100 void NotifyAnimationFinished(base::TimeTicks monotonic_time, | 100 void NotifyAnimationFinished(base::TimeTicks monotonic_time, |
| 101 Animation::TargetProperty target_property, | 101 Animation::TargetProperty target_property, |
| 102 int group) override; | 102 int group) override; |
| 103 void NotifyAnimationAborted(base::TimeTicks monotonic_time, |
| 104 Animation::TargetProperty target_property, |
| 105 int group) override; |
| 103 | 106 |
| 104 // LayerAnimationValueProvider implementation. | 107 // LayerAnimationValueProvider implementation. |
| 105 gfx::ScrollOffset ScrollOffsetForAnimation() const override; | 108 gfx::ScrollOffset ScrollOffsetForAnimation() const override; |
| 106 | 109 |
| 107 scoped_ptr<PlayersList> players_list_; | 110 scoped_ptr<PlayersList> players_list_; |
| 108 | 111 |
| 109 class ValueObserver; | 112 class ValueObserver; |
| 110 scoped_ptr<ValueObserver> active_value_observer_; | 113 scoped_ptr<ValueObserver> active_value_observer_; |
| 111 scoped_ptr<ValueObserver> pending_value_observer_; | 114 scoped_ptr<ValueObserver> pending_value_observer_; |
| 112 | 115 |
| 113 // LAC is owned by ElementAnimations (1:1 relationship). | 116 // LAC is owned by ElementAnimations (1:1 relationship). |
| 114 scoped_refptr<LayerAnimationController> layer_animation_controller_; | 117 scoped_refptr<LayerAnimationController> layer_animation_controller_; |
| 115 AnimationHost* animation_host_; | 118 AnimationHost* animation_host_; |
| 116 | 119 |
| 117 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); | 120 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 } // namespace cc | 123 } // namespace cc |
| 121 | 124 |
| 122 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 125 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
| OLD | NEW |