| 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 #ifndef CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 5 #ifndef CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
| 6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "cc/animation/animation_events.h" | 14 #include "cc/animation/animation_events.h" |
| 15 #include "cc/animation/layer_animation_event_observer.h" | 15 #include "cc/animation/layer_animation_event_observer.h" |
| 16 #include "cc/base/cc_export.h" | 16 #include "cc/base/cc_export.h" |
| 17 #include "cc/base/scoped_ptr_vector.h" | 17 #include "cc/base/scoped_ptr_vector.h" |
| 18 #include "ui/gfx/geometry/scroll_offset.h" |
| 18 #include "ui/gfx/transform.h" | 19 #include "ui/gfx/transform.h" |
| 19 | 20 |
| 20 namespace gfx { | 21 namespace gfx { |
| 21 class BoxF; | 22 class BoxF; |
| 22 class Transform; | 23 class Transform; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace cc { | 26 namespace cc { |
| 26 | 27 |
| 27 class Animation; | 28 class Animation; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 176 |
| 176 void NotifyObserversOpacityAnimated(float opacity, | 177 void NotifyObserversOpacityAnimated(float opacity, |
| 177 bool notify_active_observers, | 178 bool notify_active_observers, |
| 178 bool notify_pending_observers); | 179 bool notify_pending_observers); |
| 179 void NotifyObserversTransformAnimated(const gfx::Transform& transform, | 180 void NotifyObserversTransformAnimated(const gfx::Transform& transform, |
| 180 bool notify_active_observers, | 181 bool notify_active_observers, |
| 181 bool notify_pending_observers); | 182 bool notify_pending_observers); |
| 182 void NotifyObserversFilterAnimated(const FilterOperations& filter, | 183 void NotifyObserversFilterAnimated(const FilterOperations& filter, |
| 183 bool notify_active_observers, | 184 bool notify_active_observers, |
| 184 bool notify_pending_observers); | 185 bool notify_pending_observers); |
| 185 void NotifyObserversScrollOffsetAnimated(const gfx::Vector2dF& scroll_offset, | 186 void NotifyObserversScrollOffsetAnimated( |
| 186 bool notify_active_observers, | 187 const gfx::ScrollOffset& scroll_offset, |
| 187 bool notify_pending_observers); | 188 bool notify_active_observers, |
| 189 bool notify_pending_observers); |
| 188 | 190 |
| 189 void NotifyObserversAnimationWaitingForDeletion(); | 191 void NotifyObserversAnimationWaitingForDeletion(); |
| 190 | 192 |
| 191 bool HasValueObserver(); | 193 bool HasValueObserver(); |
| 192 bool HasActiveValueObserver(); | 194 bool HasActiveValueObserver(); |
| 193 | 195 |
| 194 AnimationRegistrar* registrar_; | 196 AnimationRegistrar* registrar_; |
| 195 int id_; | 197 int id_; |
| 196 ScopedPtrVector<Animation> animations_; | 198 ScopedPtrVector<Animation> animations_; |
| 197 | 199 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 210 // Only try to start animations when new animations are added or when the | 212 // Only try to start animations when new animations are added or when the |
| 211 // previous attempt at starting animations failed to start all animations. | 213 // previous attempt at starting animations failed to start all animations. |
| 212 bool needs_to_start_animations_; | 214 bool needs_to_start_animations_; |
| 213 | 215 |
| 214 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); | 216 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); |
| 215 }; | 217 }; |
| 216 | 218 |
| 217 } // namespace cc | 219 } // namespace cc |
| 218 | 220 |
| 219 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 221 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
| OLD | NEW |