Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Side by Side Diff: cc/animation_events.h

Issue 12822004: Part 3 of cc/ directory shuffles: animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/animation_curve.cc ('k') | cc/animation_id_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CC_ANIMATION_EVENTS_H_
6 #define CC_ANIMATION_EVENTS_H_
7
8 #include <vector>
9
10 #include "cc/animation.h"
11 #include "ui/gfx/transform.h"
12
13 namespace cc {
14
15 struct AnimationEvent {
16 enum Type { Started, Finished, PropertyUpdate };
17
18 AnimationEvent(Type type,
19 int layer_id,
20 int group_id,
21 Animation::TargetProperty target_property,
22 double monotonic_time)
23 : type(type),
24 layer_id(layer_id),
25 group_id(group_id),
26 target_property(target_property),
27 monotonic_time(monotonic_time),
28 opacity(0.f) {}
29
30 Type type;
31 int layer_id;
32 int group_id;
33 Animation::TargetProperty target_property;
34 double monotonic_time;
35 float opacity;
36 gfx::Transform transform;
37 };
38
39 typedef std::vector<AnimationEvent> AnimationEventsVector;
40
41 } // namespace cc
42
43 #endif // CC_ANIMATION_EVENTS_H_
OLDNEW
« no previous file with comments | « cc/animation_curve.cc ('k') | cc/animation_id_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698