WebKit Roll 139512:139548
[chromium-blink-merge.git] / cc / animation_events.h
blob69b44bca2652cc43d3b16cd35d94c5e793f3d13e
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_EVENTS_H_
6 #define CC_ANIMATION_EVENTS_H_
8 #include <vector>
10 #include "cc/animation.h"
12 namespace cc {
14 struct AnimationEvent {
15 enum Type { Started, Finished };
17 AnimationEvent(Type type, int layerId, int groupId, Animation::TargetProperty targetProperty, double monotonicTime)
18 : type(type)
19 , layerId(layerId)
20 , groupId(groupId)
21 , targetProperty(targetProperty)
22 , monotonicTime(monotonicTime)
26 Type type;
27 int layerId;
28 int groupId;
29 Animation::TargetProperty targetProperty;
30 double monotonicTime;
33 typedef std::vector<AnimationEvent> AnimationEventsVector;
35 } // namespace cc
37 #endif // CC_ANIMATION_EVENTS_H_