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

Unified Diff: Source/core/animation/AnimationType.h

Issue 1210353004: Rename {Animation,Interpolation}Type and {Animation,Interpolation}Value (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/animation/AnimationValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationType.h
diff --git a/Source/core/animation/AnimationType.h b/Source/core/animation/AnimationType.h
deleted file mode 100644
index c48eca3dae3c0adfb888b0670a557ce807a88195..0000000000000000000000000000000000000000
--- a/Source/core/animation/AnimationType.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef AnimationType_h
-#define AnimationType_h
-
-#include "core/animation/InterpolableValue.h"
-#include "core/animation/NonInterpolableValue.h"
-#include "core/animation/PrimitiveInterpolation.h"
-#include "core/animation/StringKeyframe.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class StyleResolverState;
-
-// A singleton that:
-// - Converts from animation keyframe(s) to interpolation compatible representations: maybeConvertPairwise() and maybeConvertSingle()
-// - Applies interpolation compatible representations of values to a StyleResolverState: apply()
-class AnimationType {
-public:
- CSSPropertyID property() const { return m_property; }
-
- // Represents logic for determining whether a conversion decision is no longer valid given the current environment.
- class ConversionChecker : public NoBaseWillBeGarbageCollectedFinalized<ConversionChecker> {
- public:
- virtual ~ConversionChecker() { }
- virtual bool isValid(const StyleResolverState&) const = 0;
- DEFINE_INLINE_VIRTUAL_TRACE() { }
- };
- using ConversionCheckers = WillBeHeapVector<OwnPtrWillBeMember<ConversionChecker>>;
-
- virtual PassOwnPtrWillBeRawPtr<PairwisePrimitiveInterpolation> maybeConvertPairwise(const CSSPropertySpecificKeyframe& startKeyframe, const CSSPropertySpecificKeyframe& endKeyframe, const StyleResolverState*, ConversionCheckers&) const
- {
- return nullptr;
- }
-
- virtual PassOwnPtrWillBeRawPtr<AnimationValue> maybeConvertSingle(const CSSPropertySpecificKeyframe&, const StyleResolverState*, ConversionCheckers&) const = 0;
-
- virtual void apply(const InterpolableValue&, const NonInterpolableValue*, StyleResolverState&) const = 0;
-
-protected:
- AnimationType(CSSPropertyID property)
- : m_property(property)
- { }
-
- const CSSPropertyID m_property;
-};
-
-} // namespace blink
-
-#endif // AnimationType_h
« no previous file with comments | « no previous file | Source/core/animation/AnimationValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698