OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CompositorAnimationTimeline_h |
| 6 #define CompositorAnimationTimeline_h |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "platform/PlatformExport.h" |
| 11 #include "wtf/Noncopyable.h" |
| 12 |
| 13 namespace cc { |
| 14 class AnimationTimeline; |
| 15 } |
| 16 |
| 17 namespace blink { |
| 18 |
| 19 class CompositorAnimationPlayerClient; |
| 20 |
| 21 // A compositor representation for timeline. |
| 22 class PLATFORM_EXPORT CompositorAnimationTimeline { |
| 23 WTF_MAKE_NONCOPYABLE(CompositorAnimationTimeline); |
| 24 public: |
| 25 CompositorAnimationTimeline(); |
| 26 virtual ~CompositorAnimationTimeline(); |
| 27 |
| 28 cc::AnimationTimeline* animationTimeline() const; |
| 29 |
| 30 virtual void playerAttached(const CompositorAnimationPlayerClient&); |
| 31 virtual void playerDestroyed(const CompositorAnimationPlayerClient&); |
| 32 |
| 33 private: |
| 34 scoped_refptr<cc::AnimationTimeline> m_animationTimeline; |
| 35 }; |
| 36 |
| 37 } // namespace blink |
| 38 |
| 39 #endif // CompositorAnimationTimeline_h |
OLD | NEW |