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

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: Add custom binding for timing input and handle each case separately. 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..e515c5f9ddfed4fdcb820bc08278df96e4fb3282 100644
--- a/Source/core/animation/ElementAnimation.h
+++ b/Source/core/animation/ElementAnimation.h
@@ -31,21 +31,26 @@
#ifndef ElementAnimation_h
#define ElementAnimation_h
-#include "CSSPropertyNames.h" // For CSSPropertyID.
+#include "core/css/parser/BisonCSSParser.h"
namespace WebCore {
class Dictionary;
class Element;
+struct Timing;
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, Dictionary timingInput);
+ static void animate(Element*, Vector<Dictionary> keyframesDictionaryVector, double timingInput);
+ static void animate(Element*, Vector<Dictionary> keyframesDictionaryVector);
private:
- static void startAnimation(Element*, Vector<Dictionary> keyframesDictionaryVector, double duration = 0);
-
+ static void startAnimation(Element*, Vector<Dictionary> keyframesDictionaryVector, Dictionary timingInput);
+ static void startAnimation(Element*, Vector<Dictionary> keyframesDictionaryVector, double timingInput);
+ static void startAnimation(Element*, Vector<Dictionary> keyframesDictionaryVector);
+ static void populateTiming(Timing&, Dictionary);
friend class AnimationElementAnimationTest;
};

Powered by Google App Engine
This is Rietveld 408576698