| 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 AnimationEffectTiming_h | 5 #ifndef AnimationEffectTiming_h |
| 6 #define AnimationEffectTiming_h | 6 #define AnimationEffectTiming_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/animation/AnimationEffect.h" | 10 #include "core/animation/AnimationEffect.h" |
| 11 #include "wtf/RefCounted.h" | |
| 12 #include "wtf/text/WTFString.h" | 11 #include "wtf/text/WTFString.h" |
| 13 | 12 |
| 14 namespace blink { | 13 namespace blink { |
| 15 | 14 |
| 16 class UnrestrictedDoubleOrString; | 15 class UnrestrictedDoubleOrString; |
| 17 | 16 |
| 18 class CORE_EXPORT AnimationEffectTiming : public RefCountedWillBeGarbageCollecte
dFinalized<AnimationEffectTiming>, public ScriptWrappable { | 17 class CORE_EXPORT AnimationEffectTiming : public GarbageCollected<AnimationEffec
tTiming>, public ScriptWrappable { |
| 19 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
| 20 public: | 19 public: |
| 21 static PassRefPtrWillBeRawPtr<AnimationEffectTiming> create(AnimationEffect*
parent); | 20 static AnimationEffectTiming* create(AnimationEffect* parent); |
| 22 double delay(); | 21 double delay(); |
| 23 double endDelay(); | 22 double endDelay(); |
| 24 String fill(); | 23 String fill(); |
| 25 double iterationStart(); | 24 double iterationStart(); |
| 26 double iterations(); | 25 double iterations(); |
| 27 void duration(UnrestrictedDoubleOrString&); | 26 void duration(UnrestrictedDoubleOrString&); |
| 28 double playbackRate(); | 27 double playbackRate(); |
| 29 String direction(); | 28 String direction(); |
| 30 String easing(); | 29 String easing(); |
| 31 | 30 |
| 32 void setDelay(double); | 31 void setDelay(double); |
| 33 void setEndDelay(double); | 32 void setEndDelay(double); |
| 34 void setFill(String); | 33 void setFill(String); |
| 35 void setIterationStart(double); | 34 void setIterationStart(double); |
| 36 void setIterations(double); | 35 void setIterations(double); |
| 37 void setDuration(const UnrestrictedDoubleOrString&); | 36 void setDuration(const UnrestrictedDoubleOrString&); |
| 38 void setPlaybackRate(double); | 37 void setPlaybackRate(double); |
| 39 void setDirection(String); | 38 void setDirection(String); |
| 40 void setEasing(String); | 39 void setEasing(String); |
| 41 | 40 |
| 42 DECLARE_TRACE(); | 41 DECLARE_TRACE(); |
| 43 | 42 |
| 44 private: | 43 private: |
| 45 RefPtrWillBeMember<AnimationEffect> m_parent; | 44 Member<AnimationEffect> m_parent; |
| 46 explicit AnimationEffectTiming(AnimationEffect*); | 45 explicit AnimationEffectTiming(AnimationEffect*); |
| 47 }; | 46 }; |
| 48 | 47 |
| 49 } // namespace blink | 48 } // namespace blink |
| 50 | 49 |
| 51 #endif | 50 #endif |
| OLD | NEW |