| Index: cc/animation/animation_host.h
|
| diff --git a/cc/animation/animation_host.h b/cc/animation/animation_host.h
|
| index 47536c29eacaff78c6f65ff5005c0966af24f2c7..ec6ceff5b03ff477d34e885635749bd3005b40d6 100644
|
| --- a/cc/animation/animation_host.h
|
| +++ b/cc/animation/animation_host.h
|
| @@ -10,6 +10,8 @@
|
| #include "base/containers/hash_tables.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| +#include "base/time/time.h"
|
| +#include "cc/animation/animation_events.h"
|
| #include "cc/base/cc_export.h"
|
|
|
| namespace cc {
|
| @@ -56,6 +58,44 @@ class CC_EXPORT AnimationHost {
|
| return animation_registrar_.get();
|
| }
|
|
|
| + void SetSupportsScrollAnimations(bool supports_scroll_animations);
|
| + bool GetSupportsScrollAnimations() const;
|
| + bool NeedsAnimateLayers() const;
|
| +
|
| + bool ActivateAnimations();
|
| + bool AnimateLayers(base::TimeTicks monotonic_time);
|
| + bool UpdateAnimationState(bool start_ready_animations,
|
| + AnimationEventsVector* events);
|
| +
|
| + scoped_ptr<AnimationEventsVector> CreateEvents();
|
| + void SetAnimationEvents(scoped_ptr<AnimationEventsVector> events);
|
| +
|
| + bool IsAnimatingFilterProperty(int layer_id) const;
|
| + bool IsAnimatingOpacityProperty(int layer_id) const;
|
| + bool IsAnimatingTransformProperty(int layer_id) const;
|
| +
|
| + bool FilterIsAnimatingOnImplOnly(int layer_id) const;
|
| + bool OpacityIsAnimatingOnImplOnly(int layer_id) const;
|
| + bool TransformIsAnimatingOnImplOnly(int layer_id) const;
|
| +
|
| + bool HasFilterAnimationThatInflatesBounds(int layer_id) const;
|
| + bool HasTransformAnimationThatInflatesBounds(int layer_id) const;
|
| + bool HasAnimationThatInflatesBounds(int layer_id) const;
|
| +
|
| + bool FilterAnimationBoundsForBox(int layer_id,
|
| + const gfx::BoxF& box,
|
| + gfx::BoxF* bounds) const;
|
| + bool TransformAnimationBoundsForBox(int layer_id,
|
| + const gfx::BoxF& box,
|
| + gfx::BoxF* bounds) const;
|
| +
|
| + bool HasOnlyTranslationTransforms(int layer_id) const;
|
| + bool AnimationsPreserveAxisAlignment(int layer_id) const;
|
| + bool MaximumTargetScale(int layer_id, float* max_scale) const;
|
| +
|
| + bool HasAnyAnimation(int layer_id) const;
|
| + bool HasActiveAnimation(int layer_id) const;
|
| +
|
| private:
|
| // TODO(loyso): Temporary 1:1 mapping. AnimationPlayers share
|
| // LayerAnimationController for a given layer at the moment.
|
|
|