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 | 4 |
5 #ifndef CCAnimationEvents_h | 5 #ifndef CCAnimationEvents_h |
6 #define CCAnimationEvents_h | 6 #define CCAnimationEvents_h |
7 | 7 |
8 #include "CCActiveAnimation.h" | 8 #include "CCActiveAnimation.h" |
9 | 9 |
10 #include <wtf/PassOwnPtr.h> | 10 #include <wtf/PassOwnPtr.h> |
11 #include <wtf/Vector.h> | 11 #include <wtf/Vector.h> |
12 | 12 |
13 namespace WebCore { | 13 namespace cc { |
14 | 14 |
15 struct CCAnimationEvent { | 15 struct CCAnimationEvent { |
16 enum Type { Started, Finished }; | 16 enum Type { Started, Finished }; |
17 | 17 |
18 CCAnimationEvent(Type type, int layerId, int groupId, CCActiveAnimation::Tar
getProperty targetProperty, double monotonicTime) | 18 CCAnimationEvent(Type type, int layerId, int groupId, CCActiveAnimation::Tar
getProperty targetProperty, double monotonicTime) |
19 : type(type) | 19 : type(type) |
20 , layerId(layerId) | 20 , layerId(layerId) |
21 , groupId(groupId) | 21 , groupId(groupId) |
22 , targetProperty(targetProperty) | 22 , targetProperty(targetProperty) |
23 , monotonicTime(monotonicTime) | 23 , monotonicTime(monotonicTime) |
24 { | 24 { |
25 } | 25 } |
26 | 26 |
27 Type type; | 27 Type type; |
28 int layerId; | 28 int layerId; |
29 int groupId; | 29 int groupId; |
30 CCActiveAnimation::TargetProperty targetProperty; | 30 CCActiveAnimation::TargetProperty targetProperty; |
31 double monotonicTime; | 31 double monotonicTime; |
32 }; | 32 }; |
33 | 33 |
34 typedef Vector<CCAnimationEvent> CCAnimationEventsVector; | 34 typedef Vector<CCAnimationEvent> CCAnimationEventsVector; |
35 | 35 |
36 } // namespace WebCore | 36 } // namespace cc |
37 | 37 |
38 #endif // CCAnimationEvents_h | 38 #endif // CCAnimationEvents_h |
OLD | NEW |