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

Unified Diff: public/platform/WebAnimation.h

Issue 178263006: Handle direction control in compositor Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: new patch: add a reference to chromium issue Created 6 years, 10 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
« Source/core/animation/CompositorAnimationsImpl.h ('K') | « Source/core/core.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebAnimation.h
diff --git a/public/platform/WebAnimation.h b/public/platform/WebAnimation.h
index e955390903c0151950a0c36551c12207b98c0b46..1606606e48d8695848d24ad57b7a7c059e2be904 100644
--- a/public/platform/WebAnimation.h
+++ b/public/platform/WebAnimation.h
@@ -33,6 +33,8 @@
#include "wtf/Forward.h"
#endif
+#define WEB_ANIMATION_SUPPORTS_FULL_DIRECTION 1
+
namespace WebCore {
class CCActiveAnimation;
}
@@ -50,6 +52,13 @@ public:
TargetPropertyFilter
};
+ enum Direction {
+ Normal = 0,
jamesr 2014/03/11 23:07:27 these should be prefixed with the enum name. see h
+ Reverse,
+ Alternate,
+ AlternateReverse
+ };
+
virtual ~WebAnimation() { }
// An id is effectively the animation's name, and it is not unique.
@@ -70,8 +79,8 @@ public:
virtual void setTimeOffset(double monotonicTime) = 0;
// If alternatesDirection is true, on odd numbered iterations we reverse the curve.
- virtual bool alternatesDirection() const = 0;
- virtual void setAlternatesDirection(bool) = 0;
+ virtual Direction direction() const = 0;
+ virtual void setDirection(Direction) = 0;
};
} // namespace blink
« Source/core/animation/CompositorAnimationsImpl.h ('K') | « Source/core/core.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698