| 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 AnimationNodeTiming_h | 5 #ifndef AnimationNodeTiming_h |
| 6 #define AnimationNodeTiming_h | 6 #define AnimationNodeTiming_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/animation/AnimationNode.h" | 9 #include "core/animation/AnimationNode.h" |
| 10 #include "wtf/RefCounted.h" | 10 #include "wtf/RefCounted.h" |
| 11 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class DoubleOrString; | 15 class DoubleOrString; |
| 16 | 16 |
| 17 class AnimationNodeTiming : public RefCountedWillBeGarbageCollectedFinalized<Ani
mationNodeTiming>, public ScriptWrappable { | 17 class AnimationNodeTiming : public RefCountedWillBeGarbageCollectedFinalized<Ani
mationNodeTiming>, public ScriptWrappable { |
| 18 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
| 19 public: | 19 public: |
| 20 static PassRefPtrWillBeRawPtr<AnimationNodeTiming> create(AnimationNode* par
ent); | 20 static PassRefPtrWillBeRawPtr<AnimationNodeTiming> create(AnimationNode* par
ent); |
| 21 double delay(); | 21 double delay(); |
| 22 double endDelay(); | 22 double endDelay(); |
| 23 String fill(); | 23 String fill(); |
| 24 double iterationStart(); | 24 double iterationStart(); |
| 25 double iterations(); | 25 double iterations(); |
| 26 void getDuration(String propertyName, DoubleOrString&); | 26 void duration(DoubleOrString&); |
| 27 double playbackRate(); | 27 double playbackRate(); |
| 28 String direction(); | 28 String direction(); |
| 29 String easing(); | 29 String easing(); |
| 30 | 30 |
| 31 void setDelay(double); | 31 void setDelay(double); |
| 32 void setEndDelay(double); | 32 void setEndDelay(double); |
| 33 void setFill(String); | 33 void setFill(String); |
| 34 void setIterationStart(double); | 34 void setIterationStart(double); |
| 35 void setIterations(double); | 35 void setIterations(double); |
| 36 bool setDuration(String name, double duration); | 36 void setDuration(const DoubleOrString&); |
| 37 void setPlaybackRate(double); | 37 void setPlaybackRate(double); |
| 38 void setDirection(String); | 38 void setDirection(String); |
| 39 void setEasing(String); | 39 void setEasing(String); |
| 40 | 40 |
| 41 void trace(Visitor*); | 41 void trace(Visitor*); |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 RefPtrWillBeMember<AnimationNode> m_parent; | 44 RefPtrWillBeMember<AnimationNode> m_parent; |
| 45 explicit AnimationNodeTiming(AnimationNode*); | 45 explicit AnimationNodeTiming(AnimationNode*); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace blink | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif | 50 #endif |
| OLD | NEW |