OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CompositorAnimationPlayer_h | 5 #ifndef CompositorAnimationPlayer_h |
6 #define CompositorAnimationPlayer_h | 6 #define CompositorAnimationPlayer_h |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "cc/animation/animation.h" | 10 #include "cc/animation/animation.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 void detachLayer(); | 38 void detachLayer(); |
39 bool isLayerAttached() const; | 39 bool isLayerAttached() const; |
40 | 40 |
41 void addAnimation(CompositorAnimation*); | 41 void addAnimation(CompositorAnimation*); |
42 void removeAnimation(int animationId); | 42 void removeAnimation(int animationId); |
43 void pauseAnimation(int animationId, double timeOffset); | 43 void pauseAnimation(int animationId, double timeOffset); |
44 void abortAnimation(int animationId); | 44 void abortAnimation(int animationId); |
45 | 45 |
46 private: | 46 private: |
47 // cc::AnimationDelegate implementation. | 47 // cc::AnimationDelegate implementation. |
48 void NotifyAnimationStarted(base::TimeTicks monotonicTime, cc::Animation::Ta
rgetProperty, int group) override; | 48 void NotifyAnimationStarted(base::TimeTicks monotonicTime, cc::TargetPropert
y::Type, int group) override; |
49 void NotifyAnimationFinished(base::TimeTicks monotonicTime, cc::Animation::T
argetProperty, int group) override; | 49 void NotifyAnimationFinished(base::TimeTicks monotonicTime, cc::TargetProper
ty::Type, int group) override; |
50 void NotifyAnimationAborted(base::TimeTicks monotonicTime, cc::Animation::Ta
rgetProperty, int group) override; | 50 void NotifyAnimationAborted(base::TimeTicks monotonicTime, cc::TargetPropert
y::Type, int group) override; |
51 | 51 |
52 scoped_refptr<cc::AnimationPlayer> m_animationPlayer; | 52 scoped_refptr<cc::AnimationPlayer> m_animationPlayer; |
53 WebCompositorAnimationDelegate* m_delegate; | 53 WebCompositorAnimationDelegate* m_delegate; |
54 }; | 54 }; |
55 | 55 |
56 } // namespace blink | 56 } // namespace blink |
57 | 57 |
58 #endif // CompositorAnimationPlayer_h | 58 #endif // CompositorAnimationPlayer_h |
OLD | NEW |