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