Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / cc / animation / animation_events.h
blobb279b4beec70ed05fff8fad7824dbd9f00c9100c
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_
8 #include <vector>
10 #include "cc/animation/animation.h"
11 #include "ui/gfx/transform.h"
13 namespace cc {
15 struct AnimationEvent {
16 enum Type { Started, Finished, PropertyUpdate };
18 AnimationEvent(Type type,
19 int layer_id,
20 int group_id,
21 Animation::TargetProperty target_property,
22 double monotonic_time)
23 : type(type),
24 layer_id(layer_id),
25 group_id(group_id),
26 target_property(target_property),
27 monotonic_time(monotonic_time),
28 opacity(0.f) {}
30 Type type;
31 int layer_id;
32 int group_id;
33 Animation::TargetProperty target_property;
34 double monotonic_time;
35 float opacity;
36 gfx::Transform transform;
39 typedef std::vector<AnimationEvent> AnimationEventsVector;
41 } // namespace cc
43 #endif // CC_ANIMATION_ANIMATION_EVENTS_H_