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

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 default fill back to "forwards". Move timing input processing into method. 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 11ac65ab8d5952f1ddaf8075b0c64d827a43988a..cd63f9cb08f83946b8fe1eb41437470608e8a725 100644
--- a/Source/core/animation/ElementAnimation.h
+++ b/Source/core/animation/ElementAnimation.h
@@ -31,7 +31,7 @@
#ifndef ElementAnimation_h
#define ElementAnimation_h
-#include "CSSPropertyNames.h" // For CSSPropertyID.
+#include "core/css/parser/BisonCSSParser.h"
namespace WebCore {
@@ -41,10 +41,11 @@ class Element;
class ElementAnimation {
public:
static CSSPropertyID camelCaseCSSPropertyNameToID(const String& propertyName);
- static void animate(Element*, Vector<Dictionary> keyframesDictionaryVector, double duration = 0);
+ static void animate(Element*, Vector<Dictionary> keyframesDictionaryVector);
+ static void animate(Element*, Vector<Dictionary> keyframesDictionaryVector, ScriptValue timingInput);
private:
- static void startAnimation(Element*, Vector<Dictionary> keyframesDictionaryVector, double duration = 0);
+ static void startAnimation(Element*, Vector<Dictionary> keyframesDictionaryVector, v8::Handle<v8::Value> timingInput = v8::Handle<v8::Value>());
friend class AnimationElementAnimationTest;
};

Powered by Google App Engine
This is Rietveld 408576698