| 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 CompositorTransformAnimationCurve_h | 5 #ifndef CompositorTransformAnimationCurve_h |
| 6 #define CompositorTransformAnimationCurve_h | 6 #define CompositorTransformAnimationCurve_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/animation/CompositorAnimationCurve.h" | 9 #include "platform/animation/CompositorAnimationCurve.h" |
| 10 #include "platform/animation/CompositorTransformKeyframe.h" | 10 #include "platform/animation/CompositorTransformKeyframe.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 namespace blink { | 24 namespace blink { |
| 25 | 25 |
| 26 // A keyframed transform animation curve. | 26 // A keyframed transform animation curve. |
| 27 class PLATFORM_EXPORT CompositorTransformAnimationCurve | 27 class PLATFORM_EXPORT CompositorTransformAnimationCurve |
| 28 : public CompositorAnimationCurve { | 28 : public CompositorAnimationCurve { |
| 29 WTF_MAKE_NONCOPYABLE(CompositorTransformAnimationCurve); | 29 WTF_MAKE_NONCOPYABLE(CompositorTransformAnimationCurve); |
| 30 | 30 |
| 31 public: | 31 public: |
| 32 static std::unique_ptr<CompositorTransformAnimationCurve> create() { | 32 static std::unique_ptr<CompositorTransformAnimationCurve> create() { |
| 33 return wrapUnique(new CompositorTransformAnimationCurve()); | 33 return WTF::wrapUnique(new CompositorTransformAnimationCurve()); |
| 34 } | 34 } |
| 35 | 35 |
| 36 ~CompositorTransformAnimationCurve() override; | 36 ~CompositorTransformAnimationCurve() override; |
| 37 | 37 |
| 38 void addKeyframe(const CompositorTransformKeyframe&); | 38 void addKeyframe(const CompositorTransformKeyframe&); |
| 39 void setTimingFunction(const TimingFunction&); | 39 void setTimingFunction(const TimingFunction&); |
| 40 void setScaledDuration(double); | 40 void setScaledDuration(double); |
| 41 | 41 |
| 42 // CompositorAnimationCurve implementation. | 42 // CompositorAnimationCurve implementation. |
| 43 std::unique_ptr<cc::AnimationCurve> cloneToAnimationCurve() const override; | 43 std::unique_ptr<cc::AnimationCurve> cloneToAnimationCurve() const override; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 CompositorTransformAnimationCurve(); | 46 CompositorTransformAnimationCurve(); |
| 47 | 47 |
| 48 std::unique_ptr<cc::KeyframedTransformAnimationCurve> m_curve; | 48 std::unique_ptr<cc::KeyframedTransformAnimationCurve> m_curve; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace blink | 51 } // namespace blink |
| 52 | 52 |
| 53 #endif // CompositorTransformAnimationCurve_h | 53 #endif // CompositorTransformAnimationCurve_h |
| OLD | NEW |