| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CC_ANIMATION_EVENTS_H_ | |
| 6 #define CC_ANIMATION_EVENTS_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "cc/animation.h" | |
| 11 #include "ui/gfx/transform.h" | |
| 12 | |
| 13 namespace cc { | |
| 14 | |
| 15 struct AnimationEvent { | |
| 16 enum Type { Started, Finished, PropertyUpdate }; | |
| 17 | |
| 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) {} | |
| 29 | |
| 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; | |
| 37 }; | |
| 38 | |
| 39 typedef std::vector<AnimationEvent> AnimationEventsVector; | |
| 40 | |
| 41 } // namespace cc | |
| 42 | |
| 43 #endif // CC_ANIMATION_EVENTS_H_ | |
| OLD | NEW |