| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 WebCompositorAnimation_h | 5 #ifndef SKY_ENGINE_PUBLIC_PLATFORM_WEBCOMPOSITORANIMATION_H_ |
| 6 #define WebCompositorAnimation_h | 6 #define SKY_ENGINE_PUBLIC_PLATFORM_WEBCOMPOSITORANIMATION_H_ |
| 7 | 7 |
| 8 #define WEB_ANIMATION_SUPPORTS_FRACTIONAL_ITERATIONS 1 | 8 #define WEB_ANIMATION_SUPPORTS_FRACTIONAL_ITERATIONS 1 |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 // A compositor driven animation. | 12 // A compositor driven animation. |
| 13 class WebCompositorAnimation { | 13 class WebCompositorAnimation { |
| 14 public: | 14 public: |
| 15 enum TargetProperty { | 15 enum TargetProperty { |
| 16 TargetPropertyTransform = 0, | 16 TargetPropertyTransform = 0, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 38 virtual double timeOffset() const = 0; | 38 virtual double timeOffset() const = 0; |
| 39 virtual void setTimeOffset(double monotonicTime) = 0; | 39 virtual void setTimeOffset(double monotonicTime) = 0; |
| 40 | 40 |
| 41 // If alternatesDirection is true, on odd numbered iterations we reverse the
curve. | 41 // If alternatesDirection is true, on odd numbered iterations we reverse the
curve. |
| 42 virtual bool alternatesDirection() const = 0; | 42 virtual bool alternatesDirection() const = 0; |
| 43 virtual void setAlternatesDirection(bool) = 0; | 43 virtual void setAlternatesDirection(bool) = 0; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace blink | 46 } // namespace blink |
| 47 | 47 |
| 48 #endif // WebCompositorAnimation_h | 48 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBCOMPOSITORANIMATION_H_ |
| OLD | NEW |