OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CCAnimationEvents_h |
| 6 #define CCAnimationEvents_h |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "CCActiveAnimation.h" |
| 11 |
| 12 namespace cc { |
| 13 |
| 14 struct CCAnimationEvent { |
| 15 enum Type { Started, Finished }; |
| 16 |
| 17 CCAnimationEvent(Type type, int layerId, int groupId, CCActiveAnimation::Tar
getProperty targetProperty, double monotonicTime) |
| 18 : type(type) |
| 19 , layerId(layerId) |
| 20 , groupId(groupId) |
| 21 , targetProperty(targetProperty) |
| 22 , monotonicTime(monotonicTime) |
| 23 { |
| 24 } |
| 25 |
| 26 Type type; |
| 27 int layerId; |
| 28 int groupId; |
| 29 CCActiveAnimation::TargetProperty targetProperty; |
| 30 double monotonicTime; |
| 31 }; |
| 32 |
| 33 typedef std::vector<CCAnimationEvent> CCAnimationEventsVector; |
| 34 |
| 35 } // namespace cc |
| 36 |
| 37 #endif // CCAnimationEvents_h |
OLD | NEW |