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

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

Issue 2388943002: cc: Delete unused AnimationCurve::AffectsScale and related code (Closed)
Patch Set: Created 4 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
« 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 class FakeTransformTransition : public TransformAnimationCurve { 43 class FakeTransformTransition : public TransformAnimationCurve {
44 public: 44 public:
45 explicit FakeTransformTransition(double duration); 45 explicit FakeTransformTransition(double duration);
46 ~FakeTransformTransition() override; 46 ~FakeTransformTransition() override;
47 47
48 base::TimeDelta Duration() const override; 48 base::TimeDelta Duration() const override;
49 gfx::Transform GetValue(base::TimeDelta time) const override; 49 gfx::Transform GetValue(base::TimeDelta time) const override;
50 bool AnimatedBoundsForBox(const gfx::BoxF& box, 50 bool AnimatedBoundsForBox(const gfx::BoxF& box,
51 gfx::BoxF* bounds) const override; 51 gfx::BoxF* bounds) const override;
52 bool AffectsScale() const override;
53 bool IsTranslation() const override; 52 bool IsTranslation() const override;
54 bool PreservesAxisAlignment() const override; 53 bool PreservesAxisAlignment() const override;
55 bool AnimationStartScale(bool forward_direction, 54 bool AnimationStartScale(bool forward_direction,
56 float* start_scale) const override; 55 float* start_scale) const override;
57 bool MaximumTargetScale(bool forward_direction, 56 bool MaximumTargetScale(bool forward_direction,
58 float* max_scale) const override; 57 float* max_scale) const override;
59 58
60 std::unique_ptr<AnimationCurve> Clone() const override; 59 std::unique_ptr<AnimationCurve> Clone() const override;
61 60
62 private: 61 private:
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 bool use_timing_function); 174 bool use_timing_function);
176 175
177 void AbortAnimationsOnElementWithPlayer( 176 void AbortAnimationsOnElementWithPlayer(
178 ElementId element_id, 177 ElementId element_id,
179 scoped_refptr<AnimationTimeline> timeline, 178 scoped_refptr<AnimationTimeline> timeline,
180 TargetProperty::Type target_property); 179 TargetProperty::Type target_property);
181 180
182 } // namespace cc 181 } // namespace cc
183 182
184 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ 183 #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