Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: Source/core/animation/AnimationNodeTiming.h

Issue 680193003: IDL: Generate union type containers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
9 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "core/animation/AnimationNode.h" 9 #include "core/animation/AnimationNode.h"
11 #include "wtf/RefCounted.h" 10 #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
15 class DoubleOrString;
16
16 class AnimationNodeTiming : public RefCountedWillBeGarbageCollectedFinalized<Ani mationNodeTiming>, public ScriptWrappable { 17 class AnimationNodeTiming : public RefCountedWillBeGarbageCollectedFinalized<Ani mationNodeTiming>, public ScriptWrappable {
17 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
18 public: 19 public:
19 static PassRefPtrWillBeRawPtr<AnimationNodeTiming> create(AnimationNode* par ent); 20 static PassRefPtrWillBeRawPtr<AnimationNodeTiming> create(AnimationNode* par ent);
20 double delay(); 21 double delay();
21 double endDelay(); 22 double endDelay();
22 String fill(); 23 String fill();
23 double iterationStart(); 24 double iterationStart();
24 double iterations(); 25 double iterations();
25 void getDuration(String propertyName, Nullable<double>& element0, String& el ement1); 26 void getDuration(String propertyName, DoubleOrString&);
26 double playbackRate(); 27 double playbackRate();
27 String direction(); 28 String direction();
28 String easing(); 29 String easing();
29 30
30 void setDelay(double); 31 void setDelay(double);
31 void setEndDelay(double); 32 void setEndDelay(double);
32 void setFill(String); 33 void setFill(String);
33 void setIterationStart(double); 34 void setIterationStart(double);
34 void setIterations(double); 35 void setIterations(double);
35 bool setDuration(String name, double duration); 36 bool setDuration(String name, double duration);
36 void setPlaybackRate(double); 37 void setPlaybackRate(double);
37 void setDirection(String); 38 void setDirection(String);
38 void setEasing(String); 39 void setEasing(String);
39 40
40 void trace(Visitor*); 41 void trace(Visitor*);
41 42
42 private: 43 private:
43 RefPtrWillBeMember<AnimationNode> m_parent; 44 RefPtrWillBeMember<AnimationNode> m_parent;
44 explicit AnimationNodeTiming(AnimationNode*); 45 explicit AnimationNodeTiming(AnimationNode*);
45 }; 46 };
46 47
47 } // namespace blink 48 } // namespace blink
48 49
49 #endif 50 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698