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