IndexedDB: fsync after transactions.
[chromium-blink-merge.git] / cc / animation / animation_events.h
blobe0cf73645c9b5f1a44b4958c724a87c741e0d09b
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.
5 #ifndef CC_ANIMATION_ANIMATION_EVENTS_H_
6 #define CC_ANIMATION_ANIMATION_EVENTS_H_
8 #include <vector>
10 #include "cc/animation/animation.h"
11 #include "cc/base/cc_export.h"
12 #include "cc/output/filter_operations.h"
13 #include "ui/gfx/transform.h"
15 namespace cc {
17 struct CC_EXPORT AnimationEvent {
18 enum Type { Started, Finished, Aborted, PropertyUpdate };
20 AnimationEvent(Type type,
21 int layer_id,
22 int group_id,
23 Animation::TargetProperty target_property,
24 double monotonic_time);
26 Type type;
27 int layer_id;
28 int group_id;
29 Animation::TargetProperty target_property;
30 double monotonic_time;
31 bool is_impl_only;
32 float opacity;
33 gfx::Transform transform;
34 FilterOperations filters;
37 typedef std::vector<AnimationEvent> AnimationEventsVector;
39 } // namespace cc
41 #endif // CC_ANIMATION_ANIMATION_EVENTS_H_