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

Side by Side Diff: Source/core/animation/Interpolation.h

Issue 1153943003: Add foundation for removing AnimatableValues from StyleInterpolation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review changes Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/animation/InterpolableValue.h ('k') | Source/core/animation/Interpolation.cpp » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 Interpolation_h 5 #ifndef Interpolation_h
6 #define Interpolation_h 6 #define Interpolation_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/animation/InterpolableValue.h" 9 #include "core/animation/InterpolableValue.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class PropertyHandle; 14 class PropertyHandle;
15 15
16 class CORE_EXPORT Interpolation : public RefCountedWillBeGarbageCollectedFinaliz ed<Interpolation> { 16 class CORE_EXPORT Interpolation : public RefCountedWillBeGarbageCollectedFinaliz ed<Interpolation> {
17 public: 17 public:
18 virtual ~Interpolation(); 18 virtual ~Interpolation();
19 19
20 void interpolate(int iteration, double fraction) const; 20 virtual void interpolate(int iteration, double fraction);
21 21
22 virtual bool isStyleInterpolation() const { return false; } 22 virtual bool isStyleInterpolation() const { return false; }
23 virtual bool isInvalidatableStyleInterpolation() const { return false; }
23 virtual bool isLegacyStyleInterpolation() const { return false; } 24 virtual bool isLegacyStyleInterpolation() const { return false; }
24 virtual bool isSVGInterpolation() const { return false; } 25 virtual bool isSVGInterpolation() const { return false; }
25 26
26 virtual PropertyHandle property() const = 0; 27 virtual PropertyHandle property() const = 0;
27 28
28 DECLARE_VIRTUAL_TRACE(); 29 DECLARE_VIRTUAL_TRACE();
29 30
30 protected: 31 protected:
31 const OwnPtrWillBeMember<InterpolableValue> m_start; 32 const OwnPtrWillBeMember<InterpolableValue> m_start;
32 const OwnPtrWillBeMember<InterpolableValue> m_end; 33 const OwnPtrWillBeMember<InterpolableValue> m_end;
(...skipping 11 matching lines...) Expand all
44 friend class AnimationInterpolationEffectTest; 45 friend class AnimationInterpolationEffectTest;
45 friend class AnimationDoubleStyleInterpolationTest; 46 friend class AnimationDoubleStyleInterpolationTest;
46 friend class AnimationVisibilityStyleInterpolationTest; 47 friend class AnimationVisibilityStyleInterpolationTest;
47 friend class AnimationColorStyleInterpolationTest; 48 friend class AnimationColorStyleInterpolationTest;
48 friend class AnimationSVGStrokeDasharrayStyleInterpolationTest; 49 friend class AnimationSVGStrokeDasharrayStyleInterpolationTest;
49 }; 50 };
50 51
51 } // namespace blink 52 } // namespace blink
52 53
53 #endif // Interpolation_h 54 #endif // Interpolation_h
OLDNEW
« no previous file with comments | « Source/core/animation/InterpolableValue.h ('k') | Source/core/animation/Interpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698