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 "cc/output/filter_operations.h"
13 #include "ui/gfx/transform.h"
17 struct CC_EXPORT AnimationEvent
{
18 enum Type
{ STARTED
, FINISHED
, ABORTED
, PROPERTY_UPDATE
};
20 AnimationEvent(Type type
,
23 Animation::TargetProperty target_property
,
24 base::TimeTicks monotonic_time
);
29 Animation::TargetProperty target_property
;
30 base::TimeTicks monotonic_time
;
33 gfx::Transform transform
;
34 FilterOperations filters
;
37 typedef std::vector
<AnimationEvent
> AnimationEventsVector
;
41 #endif // CC_ANIMATION_ANIMATION_EVENTS_H_