| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "cc/animation/layer_animation_controller.h" | 5 #include "cc/animation/layer_animation_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "cc/animation/animation.h" | 9 #include "cc/animation/animation.h" |
| 10 #include "cc/animation/animation_delegate.h" | 10 #include "cc/animation/animation_delegate.h" |
| (...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 } | 761 } |
| 762 | 762 |
| 763 void LayerAnimationController::NotifyObserversFilterAnimated( | 763 void LayerAnimationController::NotifyObserversFilterAnimated( |
| 764 const FilterOperations& filters) { | 764 const FilterOperations& filters) { |
| 765 FOR_EACH_OBSERVER(LayerAnimationValueObserver, | 765 FOR_EACH_OBSERVER(LayerAnimationValueObserver, |
| 766 value_observers_, | 766 value_observers_, |
| 767 OnFilterAnimated(filters)); | 767 OnFilterAnimated(filters)); |
| 768 } | 768 } |
| 769 | 769 |
| 770 void LayerAnimationController::NotifyObserversScrollOffsetAnimated( | 770 void LayerAnimationController::NotifyObserversScrollOffsetAnimated( |
| 771 gfx::Vector2dF scroll_offset) { | 771 const gfx::Vector2dF& scroll_offset) { |
| 772 FOR_EACH_OBSERVER(LayerAnimationValueObserver, | 772 FOR_EACH_OBSERVER(LayerAnimationValueObserver, |
| 773 value_observers_, | 773 value_observers_, |
| 774 OnScrollOffsetAnimated(scroll_offset)); | 774 OnScrollOffsetAnimated(scroll_offset)); |
| 775 } | 775 } |
| 776 | 776 |
| 777 void LayerAnimationController::NotifyObserversAnimationWaitingForDeletion() { | 777 void LayerAnimationController::NotifyObserversAnimationWaitingForDeletion() { |
| 778 FOR_EACH_OBSERVER(LayerAnimationValueObserver, | 778 FOR_EACH_OBSERVER(LayerAnimationValueObserver, |
| 779 value_observers_, | 779 value_observers_, |
| 780 OnAnimationWaitingForDeletion()); | 780 OnAnimationWaitingForDeletion()); |
| 781 } | 781 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 795 value_observers_); | 795 value_observers_); |
| 796 LayerAnimationValueObserver* obs; | 796 LayerAnimationValueObserver* obs; |
| 797 while ((obs = it.GetNext()) != NULL) | 797 while ((obs = it.GetNext()) != NULL) |
| 798 if (obs->IsActive()) | 798 if (obs->IsActive()) |
| 799 return true; | 799 return true; |
| 800 } | 800 } |
| 801 return false; | 801 return false; |
| 802 } | 802 } |
| 803 | 803 |
| 804 } // namespace cc | 804 } // namespace cc |
| OLD | NEW |