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 "cc/base/cc_export.h"
12 #include "ui/gfx/transform.h"
16 struct CC_EXPORT AnimationEvent
{
17 enum Type
{ Started
, Finished
, PropertyUpdate
};
19 AnimationEvent(Type type
,
22 Animation::TargetProperty target_property
,
23 double monotonic_time
);
28 Animation::TargetProperty target_property
;
29 double monotonic_time
;
32 gfx::Transform transform
;
35 typedef std::vector
<AnimationEvent
> AnimationEventsVector
;
39 #endif // CC_ANIMATION_ANIMATION_EVENTS_H_