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

Side by Side Diff: cc/animation/animation.h

Issue 95763002: cc: Support animating scroll offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/animation/animation.cc » ('j') | cc/animation/layer_animation_controller.h » ('J')
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 CC_ANIMATION_ANIMATION_H_ 5 #ifndef CC_ANIMATION_ANIMATION_H_
6 #define CC_ANIMATION_ANIMATION_H_ 6 #define CC_ANIMATION_ANIMATION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 25 matching lines...) Expand all
36 Aborted, 36 Aborted,
37 // This sentinel must be last. 37 // This sentinel must be last.
38 RunStateEnumSize 38 RunStateEnumSize
39 }; 39 };
40 40
41 enum TargetProperty { 41 enum TargetProperty {
42 Transform = 0, 42 Transform = 0,
43 Opacity, 43 Opacity,
44 Filter, 44 Filter,
45 BackgroundColor, 45 BackgroundColor,
46 ScrollOffset,
46 // This sentinel must be last. 47 // This sentinel must be last.
47 TargetPropertyEnumSize 48 TargetPropertyEnumSize
48 }; 49 };
49 50
50 static scoped_ptr<Animation> Create(scoped_ptr<AnimationCurve> curve, 51 static scoped_ptr<Animation> Create(scoped_ptr<AnimationCurve> curve,
51 int animation_id, 52 int animation_id,
52 int group_id, 53 int group_id,
53 TargetProperty target_property); 54 TargetProperty target_property);
54 55
55 virtual ~Animation(); 56 virtual ~Animation();
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 bool is_controlling_instance_; 183 bool is_controlling_instance_;
183 184
184 bool is_impl_only_; 185 bool is_impl_only_;
185 186
186 DISALLOW_COPY_AND_ASSIGN(Animation); 187 DISALLOW_COPY_AND_ASSIGN(Animation);
187 }; 188 };
188 189
189 } // namespace cc 190 } // namespace cc
190 191
191 #endif // CC_ANIMATION_ANIMATION_H_ 192 #endif // CC_ANIMATION_ANIMATION_H_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/animation.cc » ('j') | cc/animation/layer_animation_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698