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

Side by Side Diff: third_party/WebKit/Source/core/animation/InterpolableValue.h

Issue 2619173002: Remove most content from Interpolation (Closed)
Patch Set: Created 3 years, 11 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
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 InterpolableValue_h 5 #ifndef InterpolableValue_h
6 #define InterpolableValue_h 6 #define InterpolableValue_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/animation/animatable/AnimatableValue.h" 9 #include "core/animation/animatable/AnimatableValue.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 20 matching lines...) Expand all
31 virtual std::unique_ptr<InterpolableValue> clone() const = 0; 31 virtual std::unique_ptr<InterpolableValue> clone() const = 0;
32 virtual std::unique_ptr<InterpolableValue> cloneAndZero() const = 0; 32 virtual std::unique_ptr<InterpolableValue> cloneAndZero() const = 0;
33 virtual void scale(double scale) = 0; 33 virtual void scale(double scale) = 0;
34 virtual void scaleAndAdd(double scale, const InterpolableValue& other) = 0; 34 virtual void scaleAndAdd(double scale, const InterpolableValue& other) = 0;
35 35
36 private: 36 private:
37 virtual void interpolate(const InterpolableValue& to, 37 virtual void interpolate(const InterpolableValue& to,
38 const double progress, 38 const double progress,
39 InterpolableValue& result) const = 0; 39 InterpolableValue& result) const = 0;
40 40
41 friend class Interpolation; 41 friend class LegacyStyleInterpolation;
42 friend class PairwisePrimitiveInterpolation; 42 friend class PairwisePrimitiveInterpolation;
43 43
44 // Keep interpolate private, but allow calls within the hierarchy without 44 // Keep interpolate private, but allow calls within the hierarchy without
45 // knowledge of type. 45 // knowledge of type.
46 friend class InterpolableNumber; 46 friend class InterpolableNumber;
47 friend class InterpolableBool; 47 friend class InterpolableBool;
48 friend class InterpolableList; 48 friend class InterpolableList;
49 49
50 friend class AnimationInterpolableValueTest; 50 friend class AnimationInterpolableValueTest;
51 }; 51 };
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 value.isList()); 178 value.isList());
179 DEFINE_TYPE_CASTS(InterpolableAnimatableValue, 179 DEFINE_TYPE_CASTS(InterpolableAnimatableValue,
180 InterpolableValue, 180 InterpolableValue,
181 value, 181 value,
182 value->isAnimatableValue(), 182 value->isAnimatableValue(),
183 value.isAnimatableValue()); 183 value.isAnimatableValue());
184 184
185 } // namespace blink 185 } // namespace blink
186 186
187 #endif 187 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/BUILD.gn ('k') | third_party/WebKit/Source/core/animation/InterpolableValueTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698