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

Unified Diff: Source/core/animation/ElementAnimation.h

Issue 105273010: Web Animations API: Start implementation of timing input objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change treatment of invalid duration input Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/animation/ElementAnimation.h
diff --git a/Source/core/animation/ElementAnimation.h b/Source/core/animation/ElementAnimation.h
index 6818a24de0a358aebe66f24fa5195b12c8c975ca..20ba3d025929a497a3cc7d477a251f0b92e32468 100644
--- a/Source/core/animation/ElementAnimation.h
+++ b/Source/core/animation/ElementAnimation.h
@@ -31,22 +31,27 @@
#ifndef ElementAnimation_h
#define ElementAnimation_h
-#include "CSSPropertyNames.h" // For CSSPropertyID.
+#include "core/css/parser/BisonCSSParser.h"
namespace WebCore {
class Animation;
class Dictionary;
class Element;
+struct Timing;
class ElementAnimation {
public:
static CSSPropertyID camelCaseCSSPropertyNameToID(const String& propertyName);
- static Animation* animate(Element*, Vector<Dictionary> keyframesDictionaryVector, double duration = 0);
+ static Animation* animate(Element*, Vector<Dictionary> keyframesDictionaryVector, Dictionary timingInput);
+ static Animation* animate(Element*, Vector<Dictionary> keyframesDictionaryVector, double timingInput);
+ static Animation* animate(Element*, Vector<Dictionary> keyframesDictionaryVector);
private:
- static Animation* startAnimation(Element*, Vector<Dictionary> keyframesDictionaryVector, double duration = 0);
-
+ static Animation* startAnimation(Element*, Vector<Dictionary> keyframesDictionaryVector, Dictionary timingInput);
+ static Animation* startAnimation(Element*, Vector<Dictionary> keyframesDictionaryVector, double timingInput);
+ static Animation* startAnimation(Element*, Vector<Dictionary> keyframesDictionaryVector);
+ static void populateTiming(Timing&, Dictionary);
friend class AnimationElementAnimationTest;
};

Powered by Google App Engine
This is Rietveld 408576698