| 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" |
| 11 #include "cc/animation/animation_curve.h" |
| 11 #include "cc/animation/animation_delegate.h" | 12 #include "cc/animation/animation_delegate.h" |
| 12 #include "cc/animation/animation_player.h" | 13 #include "cc/animation/animation_player.h" |
| 13 #include "platform/PlatformExport.h" | 14 #include "platform/PlatformExport.h" |
| 14 #include "wtf/Noncopyable.h" | 15 #include "wtf/Noncopyable.h" |
| 15 | 16 |
| 16 namespace blink { | 17 namespace blink { |
| 17 | 18 |
| 18 class CompositorAnimation; | 19 class CompositorAnimation; |
| 19 class WebCompositorAnimationDelegate; | 20 class WebCompositorAnimationDelegate; |
| 20 class WebLayer; | 21 class WebLayer; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 41 void addAnimation(CompositorAnimation*); | 42 void addAnimation(CompositorAnimation*); |
| 42 void removeAnimation(int animationId); | 43 void removeAnimation(int animationId); |
| 43 void pauseAnimation(int animationId, double timeOffset); | 44 void pauseAnimation(int animationId, double timeOffset); |
| 44 void abortAnimation(int animationId); | 45 void abortAnimation(int animationId); |
| 45 | 46 |
| 46 private: | 47 private: |
| 47 // cc::AnimationDelegate implementation. | 48 // cc::AnimationDelegate implementation. |
| 48 void NotifyAnimationStarted(base::TimeTicks monotonicTime, cc::TargetPropert
y::Type, int group) override; | 49 void NotifyAnimationStarted(base::TimeTicks monotonicTime, cc::TargetPropert
y::Type, int group) override; |
| 49 void NotifyAnimationFinished(base::TimeTicks monotonicTime, cc::TargetProper
ty::Type, int group) override; | 50 void NotifyAnimationFinished(base::TimeTicks monotonicTime, cc::TargetProper
ty::Type, int group) override; |
| 50 void NotifyAnimationAborted(base::TimeTicks monotonicTime, cc::TargetPropert
y::Type, int group) override; | 51 void NotifyAnimationAborted(base::TimeTicks monotonicTime, cc::TargetPropert
y::Type, int group) override; |
| 52 void NotifyAnimationTakeover(base::TimeTicks monotonicTime, double animation
StartTime, scoped_ptr<cc::AnimationCurve>) override; |
| 51 | 53 |
| 52 scoped_refptr<cc::AnimationPlayer> m_animationPlayer; | 54 scoped_refptr<cc::AnimationPlayer> m_animationPlayer; |
| 53 WebCompositorAnimationDelegate* m_delegate; | 55 WebCompositorAnimationDelegate* m_delegate; |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 } // namespace blink | 58 } // namespace blink |
| 57 | 59 |
| 58 #endif // CompositorAnimationPlayer_h | 60 #endif // CompositorAnimationPlayer_h |
| OLD | NEW |