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

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

Issue 939623002: Add TypeChecking=Unrestricted to Web Animation APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop AnimationAnimationPlayerTest.SetCurrentTimeUnrestrictedDouble Created 5 years, 10 months 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 | Annotate | Revision Log
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/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/animation/AnimationNode.h" 9 #include "core/animation/AnimationNode.h"
10 #include "wtf/RefCounted.h" 10 #include "wtf/RefCounted.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 DoubleOrString; 15 class UnrestrictedDoubleOrString;
16 16
17 class AnimationNodeTiming : public RefCountedWillBeGarbageCollectedFinalized<Ani mationNodeTiming>, public ScriptWrappable { 17 class AnimationNodeTiming : public RefCountedWillBeGarbageCollectedFinalized<Ani mationNodeTiming>, public ScriptWrappable {
18 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
19 public: 19 public:
20 static PassRefPtrWillBeRawPtr<AnimationNodeTiming> create(AnimationNode* par ent); 20 static PassRefPtrWillBeRawPtr<AnimationNodeTiming> create(AnimationNode* par ent);
21 double delay(); 21 double delay();
22 double endDelay(); 22 double endDelay();
23 String fill(); 23 String fill();
24 double iterationStart(); 24 double iterationStart();
25 double iterations(); 25 double iterations();
26 void duration(DoubleOrString&); 26 void duration(UnrestrictedDoubleOrString&);
27 double playbackRate(); 27 double playbackRate();
28 String direction(); 28 String direction();
29 String easing(); 29 String easing();
30 30
31 void setDelay(double); 31 void setDelay(double);
32 void setEndDelay(double); 32 void setEndDelay(double);
33 void setFill(String); 33 void setFill(String);
34 void setIterationStart(double); 34 void setIterationStart(double);
35 void setIterations(double); 35 void setIterations(double);
36 void setDuration(const DoubleOrString&); 36 void setDuration(const UnrestrictedDoubleOrString&);
37 void setPlaybackRate(double); 37 void setPlaybackRate(double);
38 void setDirection(String); 38 void setDirection(String);
39 void setEasing(String); 39 void setEasing(String);
40 40
41 void trace(Visitor*); 41 void trace(Visitor*);
42 42
43 private: 43 private:
44 RefPtrWillBeMember<AnimationNode> m_parent; 44 RefPtrWillBeMember<AnimationNode> m_parent;
45 explicit AnimationNodeTiming(AnimationNode*); 45 explicit AnimationNodeTiming(AnimationNode*);
46 }; 46 };
47 47
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif 50 #endif
OLDNEW
« no previous file with comments | « LayoutTests/web-animations-api/timed-item-expected.txt ('k') | Source/core/animation/AnimationNodeTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698