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

Side by Side Diff: cc/CCAnimationEvents.h

Issue 11038056: cc: Remove wtf/Vector dependency from CCAnimationEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « no previous file | cc/CCLayerAnimationController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CCAnimationEvents_h 5 #ifndef CCAnimationEvents_h
6 #define CCAnimationEvents_h 6 #define CCAnimationEvents_h
7 7
8 #include <vector>
9
8 #include "CCActiveAnimation.h" 10 #include "CCActiveAnimation.h"
9 11
10 #include <wtf/PassOwnPtr.h>
11 #include <wtf/Vector.h>
12
13 namespace cc { 12 namespace cc {
14 13
15 struct CCAnimationEvent { 14 struct CCAnimationEvent {
16 enum Type { Started, Finished }; 15 enum Type { Started, Finished };
17 16
18 CCAnimationEvent(Type type, int layerId, int groupId, CCActiveAnimation::Tar getProperty targetProperty, double monotonicTime) 17 CCAnimationEvent(Type type, int layerId, int groupId, CCActiveAnimation::Tar getProperty targetProperty, double monotonicTime)
19 : type(type) 18 : type(type)
20 , layerId(layerId) 19 , layerId(layerId)
21 , groupId(groupId) 20 , groupId(groupId)
22 , targetProperty(targetProperty) 21 , targetProperty(targetProperty)
23 , monotonicTime(monotonicTime) 22 , monotonicTime(monotonicTime)
24 { 23 {
25 } 24 }
26 25
27 Type type; 26 Type type;
28 int layerId; 27 int layerId;
29 int groupId; 28 int groupId;
30 CCActiveAnimation::TargetProperty targetProperty; 29 CCActiveAnimation::TargetProperty targetProperty;
31 double monotonicTime; 30 double monotonicTime;
32 }; 31 };
33 32
34 typedef Vector<CCAnimationEvent> CCAnimationEventsVector; 33 typedef std::vector<CCAnimationEvent> CCAnimationEventsVector;
35 34
36 } // namespace cc 35 } // namespace cc
37 36
38 #endif // CCAnimationEvents_h 37 #endif // CCAnimationEvents_h
OLDNEW
« no previous file with comments | « no previous file | cc/CCLayerAnimationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698