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

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

Issue 182383011: Web Animations: Add Interpolation class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@interpolableValue
Patch Set: Created 6 years, 9 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/InterpolableValueTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/InterpolableValue.h
diff --git a/Source/core/animation/InterpolableValue.h b/Source/core/animation/InterpolableValue.h
index 2111b55890137029fd1365989b56f0492b9042dd..dae07d579bd5194549f24fab0561b3c4ca1bf70a 100644
--- a/Source/core/animation/InterpolableValue.h
+++ b/Source/core/animation/InterpolableValue.h
@@ -22,10 +22,7 @@ public:
private:
virtual PassOwnPtr<InterpolableValue> interpolate(const InterpolableValue &to, const double progress) const = 0;
- // TODO: Replace this with Interpolation when committing Interpolation
- // patch. Refactor InterpolableValueTest to test via Interpolation
- // interface.
- friend class AnimationInterpolableValueTest;
+ friend class Interpolation;
// Keep interpolate private, but allow calls within the hierarchy without
// knowledge of type.
@@ -99,6 +96,7 @@ public:
ASSERT(position < m_size);
return m_values.get()[position].get();
}
+ size_t length() const { return m_size; }
virtual PassOwnPtr<InterpolableValue> clone() const OVERRIDE FINAL { return create(*this); }
private:
« no previous file with comments | « no previous file | Source/core/animation/InterpolableValueTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698