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

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

Issue 628443002: replace OVERRIDE and FINAL with override and final in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 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/PRESUBMIT.py ('k') | cc/animation/keyframed_animation_curve.h » ('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_ANIMATION_ANIMATION_CURVE_H_ 5 #ifndef CC_ANIMATION_ANIMATION_CURVE_H_
6 #define CC_ANIMATION_ANIMATION_CURVE_H_ 6 #define CC_ANIMATION_ANIMATION_CURVE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/output/filter_operations.h" 10 #include "cc/output/filter_operations.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 ScrollOffsetAnimationCurve* ToScrollOffsetAnimationCurve(); 43 ScrollOffsetAnimationCurve* ToScrollOffsetAnimationCurve();
44 }; 44 };
45 45
46 class CC_EXPORT ColorAnimationCurve : public AnimationCurve { 46 class CC_EXPORT ColorAnimationCurve : public AnimationCurve {
47 public: 47 public:
48 virtual ~ColorAnimationCurve() {} 48 virtual ~ColorAnimationCurve() {}
49 49
50 virtual SkColor GetValue(double t) const = 0; 50 virtual SkColor GetValue(double t) const = 0;
51 51
52 // Partial Animation implementation. 52 // Partial Animation implementation.
53 virtual CurveType Type() const OVERRIDE; 53 virtual CurveType Type() const override;
54 }; 54 };
55 55
56 class CC_EXPORT FloatAnimationCurve : public AnimationCurve { 56 class CC_EXPORT FloatAnimationCurve : public AnimationCurve {
57 public: 57 public:
58 virtual ~FloatAnimationCurve() {} 58 virtual ~FloatAnimationCurve() {}
59 59
60 virtual float GetValue(double t) const = 0; 60 virtual float GetValue(double t) const = 0;
61 61
62 // Partial Animation implementation. 62 // Partial Animation implementation.
63 virtual CurveType Type() const OVERRIDE; 63 virtual CurveType Type() const override;
64 }; 64 };
65 65
66 class CC_EXPORT TransformAnimationCurve : public AnimationCurve { 66 class CC_EXPORT TransformAnimationCurve : public AnimationCurve {
67 public: 67 public:
68 virtual ~TransformAnimationCurve() {} 68 virtual ~TransformAnimationCurve() {}
69 69
70 virtual gfx::Transform GetValue(double t) const = 0; 70 virtual gfx::Transform GetValue(double t) const = 0;
71 71
72 // Sets |bounds| to be the bounding box for the region within which |box| 72 // Sets |bounds| to be the bounding box for the region within which |box|
73 // will move during this animation. If this region cannot be computed, 73 // will move during this animation. If this region cannot be computed,
74 // returns false. 74 // returns false.
75 virtual bool AnimatedBoundsForBox(const gfx::BoxF& box, 75 virtual bool AnimatedBoundsForBox(const gfx::BoxF& box,
76 gfx::BoxF* bounds) const = 0; 76 gfx::BoxF* bounds) const = 0;
77 77
78 // Returns true if this animation affects scale. 78 // Returns true if this animation affects scale.
79 virtual bool AffectsScale() const = 0; 79 virtual bool AffectsScale() const = 0;
80 80
81 // Returns true if this animation is a translation. 81 // Returns true if this animation is a translation.
82 virtual bool IsTranslation() const = 0; 82 virtual bool IsTranslation() const = 0;
83 83
84 // Set |max_scale| to the maximum scale along any dimension during this 84 // Set |max_scale| to the maximum scale along any dimension during this
85 // animation. Returns false if the maximum scale cannot be computed. 85 // animation. Returns false if the maximum scale cannot be computed.
86 virtual bool MaximumScale(float* max_scale) const = 0; 86 virtual bool MaximumScale(float* max_scale) const = 0;
87 87
88 // Partial Animation implementation. 88 // Partial Animation implementation.
89 virtual CurveType Type() const OVERRIDE; 89 virtual CurveType Type() const override;
90 }; 90 };
91 91
92 class CC_EXPORT FilterAnimationCurve : public AnimationCurve { 92 class CC_EXPORT FilterAnimationCurve : public AnimationCurve {
93 public: 93 public:
94 virtual ~FilterAnimationCurve() {} 94 virtual ~FilterAnimationCurve() {}
95 95
96 virtual FilterOperations GetValue(double t) const = 0; 96 virtual FilterOperations GetValue(double t) const = 0;
97 virtual bool HasFilterThatMovesPixels() const = 0; 97 virtual bool HasFilterThatMovesPixels() const = 0;
98 98
99 // Partial Animation implementation. 99 // Partial Animation implementation.
100 virtual CurveType Type() const OVERRIDE; 100 virtual CurveType Type() const override;
101 }; 101 };
102 102
103 } // namespace cc 103 } // namespace cc
104 104
105 #endif // CC_ANIMATION_ANIMATION_CURVE_H_ 105 #endif // CC_ANIMATION_ANIMATION_CURVE_H_
OLDNEW
« no previous file with comments | « cc/PRESUBMIT.py ('k') | cc/animation/keyframed_animation_curve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698