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

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

Issue 2047293002: Code cleanup: Replace Element with Document in element.animate() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_killForceConversionsToAnimatableValues
Patch Set: Fix unit test crash. Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/AnimationEffectTiming.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ExceptionState;
16 class ExecutionContext;
16 class UnrestrictedDoubleOrString; 17 class UnrestrictedDoubleOrString;
17 18
18 class CORE_EXPORT AnimationEffectTiming : public GarbageCollected<AnimationEffec tTiming>, public ScriptWrappable { 19 class CORE_EXPORT AnimationEffectTiming : public GarbageCollected<AnimationEffec tTiming>, public ScriptWrappable {
19 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
20 public: 21 public:
21 static AnimationEffectTiming* create(AnimationEffect* parent); 22 static AnimationEffectTiming* create(AnimationEffect* parent);
22 double delay(); 23 double delay();
23 double endDelay(); 24 double endDelay();
24 String fill(); 25 String fill();
25 double iterationStart(); 26 double iterationStart();
26 double iterations(); 27 double iterations();
27 void duration(UnrestrictedDoubleOrString&); 28 void duration(UnrestrictedDoubleOrString&);
28 double playbackRate(); 29 double playbackRate();
29 String direction(); 30 String direction();
30 String easing(); 31 String easing();
31 32
32 void setDelay(double); 33 void setDelay(double);
33 void setEndDelay(double); 34 void setEndDelay(double);
34 void setFill(String); 35 void setFill(String);
35 void setIterationStart(double, ExceptionState&); 36 void setIterationStart(double, ExceptionState&);
36 void setIterations(double, ExceptionState&); 37 void setIterations(double, ExceptionState&);
37 void setDuration(const UnrestrictedDoubleOrString&, ExceptionState&); 38 void setDuration(const UnrestrictedDoubleOrString&, ExceptionState&);
38 void setPlaybackRate(double); 39 void setPlaybackRate(double);
39 void setDirection(String); 40 void setDirection(String);
40 void setEasing(String, ExceptionState&); 41 void setEasing(ExecutionContext*, String, ExceptionState&);
41 42
42 DECLARE_TRACE(); 43 DECLARE_TRACE();
43 44
44 private: 45 private:
45 Member<AnimationEffect> m_parent; 46 Member<AnimationEffect> m_parent;
46 explicit AnimationEffectTiming(AnimationEffect*); 47 explicit AnimationEffectTiming(AnimationEffect*);
47 }; 48 };
48 49
49 } // namespace blink 50 } // namespace blink
50 51
51 #endif 52 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/AnimationEffectTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698