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

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

Issue 2971503002: Transform animations should not collapse by default when interpolating (Closed)
Patch Set: . Created 3 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/animation/transform_operations_unittest.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/animation_timeline.h" 10 #include "cc/animation/animation_timeline.h"
(...skipping 25 matching lines...) Expand all
36 private: 36 private:
37 base::TimeDelta duration_; 37 base::TimeDelta duration_;
38 }; 38 };
39 39
40 class FakeTransformTransition : public TransformAnimationCurve { 40 class FakeTransformTransition : public TransformAnimationCurve {
41 public: 41 public:
42 explicit FakeTransformTransition(double duration); 42 explicit FakeTransformTransition(double duration);
43 ~FakeTransformTransition() override; 43 ~FakeTransformTransition() override;
44 44
45 base::TimeDelta Duration() const override; 45 base::TimeDelta Duration() const override;
46 gfx::Transform GetValue(base::TimeDelta time) const override; 46 TransformOperations GetValue(base::TimeDelta time) const override;
47 bool AnimatedBoundsForBox(const gfx::BoxF& box, 47 bool AnimatedBoundsForBox(const gfx::BoxF& box,
48 gfx::BoxF* bounds) const override; 48 gfx::BoxF* bounds) const override;
49 bool IsTranslation() const override; 49 bool IsTranslation() const override;
50 bool PreservesAxisAlignment() const override; 50 bool PreservesAxisAlignment() const override;
51 bool AnimationStartScale(bool forward_direction, 51 bool AnimationStartScale(bool forward_direction,
52 float* start_scale) const override; 52 float* start_scale) const override;
53 bool MaximumTargetScale(bool forward_direction, 53 bool MaximumTargetScale(bool forward_direction,
54 float* max_scale) const override; 54 float* max_scale) const override;
55 55
56 std::unique_ptr<AnimationCurve> Clone() const override; 56 std::unique_ptr<AnimationCurve> Clone() const override;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 ElementId element_id, 150 ElementId element_id,
151 scoped_refptr<AnimationTimeline> timeline, 151 scoped_refptr<AnimationTimeline> timeline,
152 double duration, 152 double duration,
153 float start_opacity, 153 float start_opacity,
154 float end_opacity, 154 float end_opacity,
155 bool use_timing_function); 155 bool use_timing_function);
156 156
157 } // namespace cc 157 } // namespace cc
158 158
159 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ 159 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/animation/transform_operations_unittest.cc ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698