| 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 CCTimingFunction_h | 5 #ifndef CCTimingFunction_h |
| 6 #define CCTimingFunction_h | 6 #define CCTimingFunction_h |
| 7 | 7 |
| 8 #include "CCAnimationCurve.h" | 8 #include "CCAnimationCurve.h" |
| 9 #include "UnitBezier.h" | 9 #include "UnitBezier.h" |
| 10 #include <wtf/PassOwnPtr.h> | 10 #include <wtf/PassOwnPtr.h> |
| 11 | 11 |
| 12 namespace WebCore { | 12 namespace cc { |
| 13 | 13 |
| 14 // See http://www.w3.org/TR/css3-transitions/. | 14 // See http://www.w3.org/TR/css3-transitions/. |
| 15 class CCTimingFunction : public CCFloatAnimationCurve { | 15 class CCTimingFunction : public CCFloatAnimationCurve { |
| 16 public: | 16 public: |
| 17 virtual ~CCTimingFunction(); | 17 virtual ~CCTimingFunction(); |
| 18 | 18 |
| 19 // Partial implementation of CCFloatAnimationCurve. | 19 // Partial implementation of CCFloatAnimationCurve. |
| 20 virtual double duration() const OVERRIDE; | 20 virtual double duration() const OVERRIDE; |
| 21 | 21 |
| 22 protected: | 22 protected: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 51 class CCEaseOutTimingFunction { | 51 class CCEaseOutTimingFunction { |
| 52 public: | 52 public: |
| 53 static PassOwnPtr<CCTimingFunction> create(); | 53 static PassOwnPtr<CCTimingFunction> create(); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 class CCEaseInOutTimingFunction { | 56 class CCEaseInOutTimingFunction { |
| 57 public: | 57 public: |
| 58 static PassOwnPtr<CCTimingFunction> create(); | 58 static PassOwnPtr<CCTimingFunction> create(); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace WebCore | 61 } // namespace cc |
| 62 | 62 |
| 63 #endif // CCTimingFunction_h | 63 #endif // CCTimingFunction_h |
| 64 | |
| OLD | NEW |