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