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

Unified Diff: Source/core/animation/interpolation/Interpolation.h

Issue 408443004: Web Animations: Remove confusing interpolation subdirectory. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
Index: Source/core/animation/interpolation/Interpolation.h
diff --git a/Source/core/animation/interpolation/Interpolation.h b/Source/core/animation/interpolation/Interpolation.h
deleted file mode 100644
index 15d29aca6962431bcc503508d6f04c12150add0e..0000000000000000000000000000000000000000
--- a/Source/core/animation/interpolation/Interpolation.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2014 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 Interpolation_h
-#define Interpolation_h
-
-#include "core/animation/InterpolableValue.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class Interpolation : public RefCountedWillBeGarbageCollected<Interpolation> {
- DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(Interpolation);
-public:
- static PassRefPtrWillBeRawPtr<Interpolation> create(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end)
- {
- return adoptRefWillBeNoop(new Interpolation(start, end));
- }
-
- void interpolate(int iteration, double fraction) const;
-
- virtual bool isStyleInterpolation() const { return false; }
- virtual bool isLegacyStyleInterpolation() const { return false; }
-
- virtual void trace(Visitor*);
-
-protected:
- const OwnPtrWillBeMember<InterpolableValue> m_start;
- const OwnPtrWillBeMember<InterpolableValue> m_end;
-
- mutable double m_cachedFraction;
- mutable int m_cachedIteration;
- mutable OwnPtrWillBeMember<InterpolableValue> m_cachedValue;
-
- Interpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnPtrWillBeRawPtr<InterpolableValue> end);
-
-private:
- InterpolableValue* getCachedValueForTesting() const { return m_cachedValue.get(); }
-
- friend class AnimationInterpolableValueTest;
- friend class AnimationInterpolationEffectTest;
-};
-
-}
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698