| 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 #include "ui/compositor/layer_animation_observer.h" | 5 #include "ui/compositor/layer_animation_observer.h" |
| 6 | 6 |
| 7 #include "ui/compositor/layer_animation_sequence.h" | 7 #include "ui/compositor/layer_animation_sequence.h" |
| 8 | 8 |
| 9 namespace ui { | 9 namespace ui { |
| 10 | 10 |
| 11 //////////////////////////////////////////////////////////////////////////////// | 11 //////////////////////////////////////////////////////////////////////////////// |
| 12 // LayerAnimationObserver | 12 // LayerAnimationObserver |
| 13 | 13 |
| 14 LayerAnimationObserver::LayerAnimationObserver() { | 14 LayerAnimationObserver::LayerAnimationObserver() { |
| 15 } | 15 } |
| 16 | 16 |
| 17 LayerAnimationObserver::~LayerAnimationObserver() { | 17 LayerAnimationObserver::~LayerAnimationObserver() { |
| 18 StopObserving(); | 18 StopObserving(); |
| 19 } | 19 } |
| 20 | 20 |
| 21 void LayerAnimationObserver::OnLayerAnimationStarted( |
| 22 LayerAnimationSequence* sequence) {} |
| 23 |
| 21 bool LayerAnimationObserver::RequiresNotificationWhenAnimatorDestroyed() const { | 24 bool LayerAnimationObserver::RequiresNotificationWhenAnimatorDestroyed() const { |
| 22 return false; | 25 return false; |
| 23 } | 26 } |
| 24 | 27 |
| 25 void LayerAnimationObserver::OnAttachedToSequence( | 28 void LayerAnimationObserver::OnAttachedToSequence( |
| 26 LayerAnimationSequence* sequence) { | 29 LayerAnimationSequence* sequence) { |
| 27 } | 30 } |
| 28 | 31 |
| 29 void LayerAnimationObserver::OnDetachedFromSequence( | 32 void LayerAnimationObserver::OnDetachedFromSequence( |
| 30 LayerAnimationSequence* sequence) { | 33 LayerAnimationSequence* sequence) { |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 ImplicitAnimationObserver::AnimationStatus | 159 ImplicitAnimationObserver::AnimationStatus |
| 157 ImplicitAnimationObserver::AnimationStatusForProperty( | 160 ImplicitAnimationObserver::AnimationStatusForProperty( |
| 158 LayerAnimationElement::AnimatableProperty property) const { | 161 LayerAnimationElement::AnimatableProperty property) const { |
| 159 PropertyAnimationStatusMap::const_iterator iter = | 162 PropertyAnimationStatusMap::const_iterator iter = |
| 160 property_animation_status_.find(property); | 163 property_animation_status_.find(property); |
| 161 return iter == property_animation_status_.end() ? ANIMATION_STATUS_UNKNOWN : | 164 return iter == property_animation_status_.end() ? ANIMATION_STATUS_UNKNOWN : |
| 162 iter->second; | 165 iter->second; |
| 163 } | 166 } |
| 164 | 167 |
| 165 } // namespace ui | 168 } // namespace ui |
| OLD | NEW |