1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_ANIMATION_EVENTS_H_
6 #define CC_ANIMATION_EVENTS_H_
10 #include "cc/active_animation.h"
14 struct AnimationEvent
{
15 enum Type
{ Started
, Finished
};
17 AnimationEvent(Type type
, int layerId
, int groupId
, ActiveAnimation::TargetProperty targetProperty
, double monotonicTime
)
21 , targetProperty(targetProperty
)
22 , monotonicTime(monotonicTime
)
29 ActiveAnimation::TargetProperty targetProperty
;
33 typedef std::vector
<AnimationEvent
> AnimationEventsVector
;
37 #endif // CC_ANIMATION_EVENTS_H_