| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 WebAnimationImpl_h | 5 #ifndef WebAnimationImpl_h |
| 6 #define WebAnimationImpl_h | 6 #define WebAnimationImpl_h |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimation.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimation.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 class CCActiveAnimation; | 12 class ActiveAnimation; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace WebKit { | 15 namespace WebKit { |
| 16 | 16 |
| 17 class WebAnimationImpl : public WebAnimation { | 17 class WebAnimationImpl : public WebAnimation { |
| 18 public: | 18 public: |
| 19 WebAnimationImpl(const WebAnimationCurve&, TargetProperty, int animationId,
int groupId = 0); | 19 WebAnimationImpl(const WebAnimationCurve&, TargetProperty, int animationId,
int groupId = 0); |
| 20 virtual ~WebAnimationImpl(); | 20 virtual ~WebAnimationImpl(); |
| 21 | 21 |
| 22 // WebAnimation implementation | 22 // WebAnimation implementation |
| 23 virtual int id() OVERRIDE; | 23 virtual int id() OVERRIDE; |
| 24 virtual TargetProperty targetProperty() const OVERRIDE; | 24 virtual TargetProperty targetProperty() const OVERRIDE; |
| 25 virtual int iterations() const OVERRIDE; | 25 virtual int iterations() const OVERRIDE; |
| 26 virtual void setIterations(int) OVERRIDE; | 26 virtual void setIterations(int) OVERRIDE; |
| 27 virtual double startTime() const OVERRIDE; | 27 virtual double startTime() const OVERRIDE; |
| 28 virtual void setStartTime(double monotonicTime) OVERRIDE; | 28 virtual void setStartTime(double monotonicTime) OVERRIDE; |
| 29 virtual double timeOffset() const OVERRIDE; | 29 virtual double timeOffset() const OVERRIDE; |
| 30 virtual void setTimeOffset(double monotonicTime) OVERRIDE; | 30 virtual void setTimeOffset(double monotonicTime) OVERRIDE; |
| 31 virtual bool alternatesDirection() const OVERRIDE; | 31 virtual bool alternatesDirection() const OVERRIDE; |
| 32 virtual void setAlternatesDirection(bool) OVERRIDE; | 32 virtual void setAlternatesDirection(bool) OVERRIDE; |
| 33 | 33 |
| 34 scoped_ptr<cc::CCActiveAnimation> cloneToCCAnimation(); | 34 scoped_ptr<cc::ActiveAnimation> cloneToAnimation(); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 scoped_ptr<cc::CCActiveAnimation> m_animation; | 37 scoped_ptr<cc::ActiveAnimation> m_animation; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } | 40 } |
| 41 | 41 |
| 42 #endif // WebAnimationImpl_h | 42 #endif // WebAnimationImpl_h |
| OLD | NEW |