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 CC_ANIMATION_ANIMATION_EVENTS_H_ | 5 #ifndef CC_ANIMATION_ANIMATION_EVENTS_H_ |
6 #define CC_ANIMATION_ANIMATION_EVENTS_H_ | 6 #define CC_ANIMATION_ANIMATION_EVENTS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "cc/animation/animation.h" | 10 #include "cc/animation/animation.h" |
11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
12 #include "cc/output/filter_operations.h" | 12 #include "cc/output/filter_operations.h" |
13 #include "ui/gfx/transform.h" | 13 #include "ui/gfx/transform.h" |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
17 struct CC_EXPORT AnimationEvent { | 17 struct CC_EXPORT AnimationEvent { |
18 enum Type { STARTED, FINISHED, ABORTED, PROPERTY_UPDATE }; | 18 enum Type { STARTED, FINISHED, ABORTED, PROPERTY_UPDATE }; |
19 | 19 |
20 AnimationEvent(Type type, | 20 AnimationEvent(Type type, |
21 int layer_id, | 21 int layer_id, |
22 int group_id, | 22 int group_id, |
23 Animation::TargetProperty target_property, | 23 TargetProperty::Type target_property, |
24 base::TimeTicks monotonic_time); | 24 base::TimeTicks monotonic_time); |
25 | 25 |
26 Type type; | 26 Type type; |
27 int layer_id; | 27 int layer_id; |
28 int group_id; | 28 int group_id; |
29 Animation::TargetProperty target_property; | 29 TargetProperty::Type target_property; |
30 base::TimeTicks monotonic_time; | 30 base::TimeTicks monotonic_time; |
31 bool is_impl_only; | 31 bool is_impl_only; |
32 float opacity; | 32 float opacity; |
33 gfx::Transform transform; | 33 gfx::Transform transform; |
34 FilterOperations filters; | 34 FilterOperations filters; |
35 }; | 35 }; |
36 | 36 |
37 class CC_EXPORT AnimationEvents { | 37 class CC_EXPORT AnimationEvents { |
38 public: | 38 public: |
39 AnimationEvents(); | 39 AnimationEvents(); |
40 ~AnimationEvents(); | 40 ~AnimationEvents(); |
41 | 41 |
42 std::vector<AnimationEvent> events_; | 42 std::vector<AnimationEvent> events_; |
43 }; | 43 }; |
44 | 44 |
45 } // namespace cc | 45 } // namespace cc |
46 | 46 |
47 #endif // CC_ANIMATION_ANIMATION_EVENTS_H_ | 47 #endif // CC_ANIMATION_ANIMATION_EVENTS_H_ |
OLD | NEW |