| // Copyright 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CC_ANIMATION_ANIMATION_EVENTS_H_ |
| #define CC_ANIMATION_ANIMATION_EVENTS_H_ |
| |
| #include <vector> |
| |
| #include "cc/animation/animation.h" |
| #include "cc/base/cc_export.h" |
| #include "cc/output/filter_operations.h" |
| #include "ui/gfx/transform.h" |
| |
| namespace cc { |
| |
| struct CC_EXPORT AnimationEvent { |
| enum Type { STARTED, FINISHED, ABORTED, PROPERTY_UPDATE }; |
| |
| AnimationEvent(Type type, |
| int layer_id, |
| int group_id, |
| TargetProperty::Type target_property, |
| base::TimeTicks monotonic_time); |
| AnimationEvent(const AnimationEvent& other); |
| |
| Type type; |
| int layer_id; |
| int group_id; |
| TargetProperty::Type target_property; |
| base::TimeTicks monotonic_time; |
| bool is_impl_only; |
| float opacity; |
| gfx::Transform transform; |
| FilterOperations filters; |
| }; |
| |
| class CC_EXPORT AnimationEvents { |
| public: |
| AnimationEvents(); |
| ~AnimationEvents(); |
| |
| std::vector<AnimationEvent> events_; |
| }; |
| |
| } // namespace cc |
| |
| #endif // CC_ANIMATION_ANIMATION_EVENTS_H_ |