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_ANIMATION_EVENTS_H_
6 #define CC_ANIMATION_ANIMATION_EVENTS_H_
10 #include "cc/animation/animation.h"
11 #include "ui/gfx/transform.h"
15 struct AnimationEvent
{
16 enum Type
{ Started
, Finished
, PropertyUpdate
};
18 AnimationEvent(Type type
,
21 Animation::TargetProperty target_property
,
22 double monotonic_time
)
26 target_property(target_property
),
27 monotonic_time(monotonic_time
),
33 Animation::TargetProperty target_property
;
34 double monotonic_time
;
36 gfx::Transform transform
;
39 typedef std::vector
<AnimationEvent
> AnimationEventsVector
;
43 #endif // CC_ANIMATION_ANIMATION_EVENTS_H_