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

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

Issue 863863004: Implemented additive animations for length (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More comprehensive non-negative length layout tests Created 5 years, 10 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/InterpolationFactory.h
diff --git a/Source/core/animation/InterpolationFactory.h b/Source/core/animation/InterpolationFactory.h
new file mode 100644
index 0000000000000000000000000000000000000000..f0d4c975d3f056910230c7e1ebc36f1a71d4676c
--- /dev/null
+++ b/Source/core/animation/InterpolationFactory.h
@@ -0,0 +1,38 @@
+// 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 InterpolationFactory_h
+#define InterpolationFactory_h
+
+#include "core/animation/AnimationEffect.h"
+#include "core/animation/Interpolation.h"
+#include "core/dom/Element.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class InterpolationFactory {
+public:
+
+ // FIXME: Remove use of animatableValueCache and element
+ static PassRefPtrWillBeRawPtr<Interpolation> maybeCreateInterpolation(
+ CSSPropertyID,
+ CSSValue* fromCSSValue,
+ CSSValue* toCSSValue,
+ AnimationEffect::CompositeOperation fromComposite,
+ AnimationEffect::CompositeOperation toComposite,
+ RefPtrWillBeRawPtr<AnimatableValue>* fromAnimatableValueCache = nullptr,
+ RefPtrWillBeRawPtr<AnimatableValue>* toAnimatableValueCache = nullptr,
+ Element* = nullptr);
+
+ static PassRefPtrWillBeRawPtr<Interpolation> createConstantInterpolation(
+ CSSPropertyID,
+ CSSValue*,
+ AnimationEffect::CompositeOperation fromComposite,
+ AnimationEffect::CompositeOperation toComposite);
+};
+
+} // namespace blink
+
+#endif // InterpolationFactory_h

Powered by Google App Engine
This is Rietveld 408576698