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

Unified Diff: cc/animation_events.h

Issue 12453010: Allow impl-only animations, and return opacity values via AnimationEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: cc/animation_events.h
diff --git a/cc/animation_events.h b/cc/animation_events.h
index 69b44bca2652cc43d3b16cd35d94c5e793f3d13e..a7fa8cfa032dd7e188c14baec4991251c921ec8c 100644
--- a/cc/animation_events.h
+++ b/cc/animation_events.h
@@ -12,14 +12,15 @@
namespace cc {
struct AnimationEvent {
- enum Type { Started, Finished };
+ enum Type { Started, Finished, PropertyUpdate };
- AnimationEvent(Type type, int layerId, int groupId, Animation::TargetProperty targetProperty, double monotonicTime)
+ AnimationEvent(Type type, int layerId, int groupId, Animation::TargetProperty targetProperty, double monotonicTime, float val = 0)
: type(type)
, layerId(layerId)
, groupId(groupId)
, targetProperty(targetProperty)
, monotonicTime(monotonicTime)
+ , value(val)
Ian Vollick 2013/03/06 01:00:57 nit: Since I'd like to support plumbing back trans
wjmaclean 2013/03/06 17:03:13 Done.
{
}
@@ -28,6 +29,7 @@ struct AnimationEvent {
int groupId;
Animation::TargetProperty targetProperty;
double monotonicTime;
+ float value;
Ian Vollick 2013/03/06 01:00:57 I know that you're only interested in floats at th
wjmaclean 2013/03/06 17:03:13 Done.
};
typedef std::vector<AnimationEvent> AnimationEventsVector;

Powered by Google App Engine
This is Rietveld 408576698