| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 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_ANIMATION_IMPL_H_ | |
| 6 #define CC_BLINK_WEB_ANIMATION_IMPL_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "cc/blink/cc_blink_export.h" | |
| 11 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h" | |
| 12 | |
| 13 namespace cc { | |
| 14 class Animation; | |
| 15 } | |
| 16 | |
| 17 namespace blink { | |
| 18 class WebCompositorAnimationCurve; | |
| 19 } | |
| 20 | |
| 21 namespace cc_blink { | |
| 22 | |
| 23 class WebCompositorAnimationImpl : public blink::WebCompositorAnimation { | |
| 24 public: | |
| 25 CC_BLINK_EXPORT WebCompositorAnimationImpl( | |
| 26 const blink::WebCompositorAnimationCurve& curve, | |
| 27 TargetProperty target, | |
| 28 int animation_id, | |
| 29 int group_id); | |
| 30 ~WebCompositorAnimationImpl() override; | |
| 31 | |
| 32 // blink::WebCompositorAnimation implementation | |
| 33 int id() override; | |
| 34 int group() override; | |
| 35 TargetProperty targetProperty() const override; | |
| 36 double iterations() const override; | |
| 37 void setIterations(double iterations) override; | |
| 38 double iterationStart() const override; | |
| 39 void setIterationStart(double iteration_start) override; | |
| 40 double startTime() const override; | |
| 41 void setStartTime(double monotonic_time) override; | |
| 42 double timeOffset() const override; | |
| 43 void setTimeOffset(double monotonic_time) override; | |
| 44 Direction direction() const override; | |
| 45 void setDirection(Direction) override; | |
| 46 double playbackRate() const override; | |
| 47 void setPlaybackRate(double playback_rate) override; | |
| 48 FillMode fillMode() const override; | |
| 49 void setFillMode(blink::WebCompositorAnimation::FillMode fill_mode) override; | |
| 50 scoped_ptr<cc::Animation> PassAnimation(); | |
| 51 | |
| 52 private: | |
| 53 scoped_ptr<cc::Animation> animation_; | |
| 54 | |
| 55 DISALLOW_COPY_AND_ASSIGN(WebCompositorAnimationImpl); | |
| 56 }; | |
| 57 | |
| 58 } // namespace cc_blink | |
| 59 | |
| 60 #endif // CC_BLINK_WEB_ANIMATION_IMPL_H_ | |
| OLD | NEW |