| 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 CC_BLINK_WEB_COMPOSITOR_ANIMATION_TIMELINE_IMPL_H_ | |
| 6 #define CC_BLINK_WEB_COMPOSITOR_ANIMATION_TIMELINE_IMPL_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "cc/blink/cc_blink_export.h" | |
| 12 #include "third_party/WebKit/public/platform/WebCompositorAnimationTimeline.h" | |
| 13 | |
| 14 namespace blink { | |
| 15 class WebCompositorAnimationPlayerClient; | |
| 16 } | |
| 17 | |
| 18 namespace cc { | |
| 19 class AnimationTimeline; | |
| 20 } | |
| 21 | |
| 22 namespace cc_blink { | |
| 23 | |
| 24 class WebCompositorAnimationTimelineImpl | |
| 25 : public blink::WebCompositorAnimationTimeline { | |
| 26 public: | |
| 27 CC_BLINK_EXPORT explicit WebCompositorAnimationTimelineImpl(); | |
| 28 ~WebCompositorAnimationTimelineImpl() override; | |
| 29 | |
| 30 CC_BLINK_EXPORT cc::AnimationTimeline* animation_timeline() const; | |
| 31 | |
| 32 // blink::WebCompositorAnimationTimeline implementation | |
| 33 void playerAttached( | |
| 34 const blink::WebCompositorAnimationPlayerClient& client) override; | |
| 35 void playerDestroyed( | |
| 36 const blink::WebCompositorAnimationPlayerClient& client) override; | |
| 37 | |
| 38 private: | |
| 39 scoped_refptr<cc::AnimationTimeline> animation_timeline_; | |
| 40 | |
| 41 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationTimelineImpl); | |
| 42 }; | |
| 43 | |
| 44 } // namespace cc_blink | |
| 45 | |
| 46 #endif // CC_BLINK_WEB_COMPOSITOR_ANIMATION_TIMELINE_IMPL_H_ | |
| OLD | NEW |