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