| 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 SKY_ENGINE_CORE_ANIMATION_ANIMATIONNODETIMING_H_ | 5 #ifndef SKY_ENGINE_CORE_ANIMATION_ANIMATIONNODETIMING_H_ |
| 6 #define SKY_ENGINE_CORE_ANIMATION_ANIMATIONNODETIMING_H_ | 6 #define SKY_ENGINE_CORE_ANIMATION_ANIMATIONNODETIMING_H_ |
| 7 | 7 |
| 8 #include "sky/engine/tonic/dart_wrappable.h" | 8 #include "sky/engine/tonic/dart_wrappable.h" |
| 9 #include "sky/engine/bindings/nullable.h" | 9 #include "sky/engine/bindings/nullable.h" |
| 10 #include "sky/engine/core/animation/AnimationNode.h" | 10 #include "sky/engine/core/animation/AnimationNode.h" |
| 11 #include "sky/engine/wtf/RefCounted.h" | 11 #include "sky/engine/wtf/RefCounted.h" |
| 12 #include "sky/engine/wtf/text/WTFString.h" | 12 #include "sky/engine/wtf/text/WTFString.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class AnimationNodeTiming : public RefCounted<AnimationNodeTiming>, public DartW
rappable { | 16 class AnimationNodeTiming : public RefCounted<AnimationNodeTiming>, public DartW
rappable { |
| 17 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
| 18 public: | 18 public: |
| 19 static PassRefPtr<AnimationNodeTiming> create(AnimationNode* parent); | 19 static PassRefPtr<AnimationNodeTiming> create(AnimationNode* parent); |
| 20 double delay(); | 20 double delay(); |
| 21 double endDelay(); | 21 double endDelay(); |
| 22 String fill(); | 22 String fill(); |
| 23 double iterationStart(); | 23 double iterationStart(); |
| 24 double iterations(); | 24 double iterations(); |
| 25 void getDuration(String propertyName, Nullable<double>& element0, String& el
ement1); | 25 String getDuration(String propertyName); |
| 26 double playbackRate(); | 26 double playbackRate(); |
| 27 String direction(); | 27 String direction(); |
| 28 String easing(); | 28 String easing(); |
| 29 | 29 |
| 30 void setDelay(double); | 30 void setDelay(double); |
| 31 void setEndDelay(double); | 31 void setEndDelay(double); |
| 32 void setFill(String); | 32 void setFill(String); |
| 33 void setIterationStart(double); | 33 void setIterationStart(double); |
| 34 void setIterations(double); | 34 void setIterations(double); |
| 35 bool setDuration(String name, double duration); | 35 bool setDuration(String name, double duration); |
| 36 void setPlaybackRate(double); | 36 void setPlaybackRate(double); |
| 37 void setDirection(String); | 37 void setDirection(String); |
| 38 void setEasing(String); | 38 void setEasing(String); |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 RefPtr<AnimationNode> m_parent; | 41 RefPtr<AnimationNode> m_parent; |
| 42 explicit AnimationNodeTiming(AnimationNode*); | 42 explicit AnimationNodeTiming(AnimationNode*); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace blink | 45 } // namespace blink |
| 46 | 46 |
| 47 #endif // SKY_ENGINE_CORE_ANIMATION_ANIMATIONNODETIMING_H_ | 47 #endif // SKY_ENGINE_CORE_ANIMATION_ANIMATIONNODETIMING_H_ |
| OLD | NEW |