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

Side by Side Diff: cc/test/animation_test_common.h

Issue 947033002: CC Animations: Establish AnimationHost, AnimationTimeline and AnimationPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix MSVC warning. Created 5 years, 5 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
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/test/animation_test_common.cc » ('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 CC_TEST_ANIMATION_TEST_COMMON_H_ 5 #ifndef CC_TEST_ANIMATION_TEST_COMMON_H_
6 #define CC_TEST_ANIMATION_TEST_COMMON_H_ 6 #define CC_TEST_ANIMATION_TEST_COMMON_H_
7 7
8 #include "cc/animation/animation.h" 8 #include "cc/animation/animation.h"
9 #include "cc/animation/animation_curve.h" 9 #include "cc/animation/animation_curve.h"
10 #include "cc/animation/layer_animation_controller.h" 10 #include "cc/animation/layer_animation_controller.h"
11 #include "cc/animation/layer_animation_value_observer.h" 11 #include "cc/animation/layer_animation_value_observer.h"
12 #include "cc/animation/layer_animation_value_provider.h" 12 #include "cc/animation/layer_animation_value_provider.h"
13 #include "cc/output/filter_operations.h" 13 #include "cc/output/filter_operations.h"
14 #include "cc/test/geometry_test_utils.h" 14 #include "cc/test/geometry_test_utils.h"
15 15
16 namespace cc { 16 namespace cc {
17 class AnimationPlayer;
17 class LayerImpl; 18 class LayerImpl;
18 class Layer; 19 class Layer;
19 } 20 }
20 21
21 namespace cc { 22 namespace cc {
22 23
23 class FakeFloatAnimationCurve : public FloatAnimationCurve { 24 class FakeFloatAnimationCurve : public FloatAnimationCurve {
24 public: 25 public:
25 FakeFloatAnimationCurve(); 26 FakeFloatAnimationCurve();
26 explicit FakeFloatAnimationCurve(double duration); 27 explicit FakeFloatAnimationCurve(double duration);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 int AddAnimatedFilterToLayer(Layer* layer, 173 int AddAnimatedFilterToLayer(Layer* layer,
173 double duration, 174 double duration,
174 float start_brightness, 175 float start_brightness,
175 float end_brightness); 176 float end_brightness);
176 177
177 int AddAnimatedFilterToLayer(LayerImpl* layer, 178 int AddAnimatedFilterToLayer(LayerImpl* layer,
178 double duration, 179 double duration,
179 float start_brightness, 180 float start_brightness,
180 float end_brightness); 181 float end_brightness);
181 182
183 int AddAnimatedTransformToPlayer(AnimationPlayer* player,
184 double duration,
185 int delta_x,
186 int delta_y);
187
188 int AddOpacityTransitionToPlayer(AnimationPlayer* player,
189 double duration,
190 float start_opacity,
191 float end_opacity,
192 bool use_timing_function);
193
194 int AddAnimatedFilterToPlayer(AnimationPlayer* player,
195 double duration,
196 float start_brightness,
197 float end_brightness);
198
182 } // namespace cc 199 } // namespace cc
183 200
184 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ 201 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698