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

Side by Side Diff: third_party/WebKit/Source/core/animation/AnimationEffectTiming.h

Issue 1851003002: Throw TypeError if easing string is invalid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix "liner"->"linear" typo in ui/file_manager js file Created 4 years, 8 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
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 AnimationEffectTiming_h 5 #ifndef AnimationEffectTiming_h
6 #define AnimationEffectTiming_h 6 #define AnimationEffectTiming_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/animation/AnimationEffect.h" 10 #include "core/animation/AnimationEffect.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 UnrestrictedDoubleOrString; 16 class UnrestrictedDoubleOrString;
16 17
17 class CORE_EXPORT AnimationEffectTiming : public GarbageCollected<AnimationEffec tTiming>, public ScriptWrappable { 18 class CORE_EXPORT AnimationEffectTiming : public GarbageCollected<AnimationEffec tTiming>, public ScriptWrappable {
18 DEFINE_WRAPPERTYPEINFO(); 19 DEFINE_WRAPPERTYPEINFO();
19 public: 20 public:
20 static AnimationEffectTiming* create(AnimationEffect* parent); 21 static AnimationEffectTiming* create(AnimationEffect* parent);
21 double delay(); 22 double delay();
22 double endDelay(); 23 double endDelay();
23 String fill(); 24 String fill();
24 double iterationStart(); 25 double iterationStart();
25 double iterations(); 26 double iterations();
26 void duration(UnrestrictedDoubleOrString&); 27 void duration(UnrestrictedDoubleOrString&);
27 double playbackRate(); 28 double playbackRate();
28 String direction(); 29 String direction();
29 String easing(); 30 String easing();
30 31
31 void setDelay(double); 32 void setDelay(double);
32 void setEndDelay(double); 33 void setEndDelay(double);
33 void setFill(String); 34 void setFill(String);
34 void setIterationStart(double); 35 void setIterationStart(double);
35 void setIterations(double); 36 void setIterations(double);
36 void setDuration(const UnrestrictedDoubleOrString&); 37 void setDuration(const UnrestrictedDoubleOrString&);
37 void setPlaybackRate(double); 38 void setPlaybackRate(double);
38 void setDirection(String); 39 void setDirection(String);
39 void setEasing(String); 40 void setEasing(String, ExceptionState&);
40 41
41 DECLARE_TRACE(); 42 DECLARE_TRACE();
42 43
43 private: 44 private:
44 Member<AnimationEffect> m_parent; 45 Member<AnimationEffect> m_parent;
45 explicit AnimationEffectTiming(AnimationEffect*); 46 explicit AnimationEffectTiming(AnimationEffect*);
46 }; 47 };
47 48
48 } // namespace blink 49 } // namespace blink
49 50
50 #endif 51 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698