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

Unified Diff: sky/engine/core/animation/StringKeyframe.h

Issue 1229273004: Remove Animations and Transitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/animation/SampledEffect.cpp ('k') | sky/engine/core/animation/StringKeyframe.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/animation/StringKeyframe.h
diff --git a/sky/engine/core/animation/StringKeyframe.h b/sky/engine/core/animation/StringKeyframe.h
deleted file mode 100644
index 24d8549561d228b3724ef40d78e73068a85a2a1d..0000000000000000000000000000000000000000
--- a/sky/engine/core/animation/StringKeyframe.h
+++ /dev/null
@@ -1,75 +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 SKY_ENGINE_CORE_ANIMATION_STRINGKEYFRAME_H_
-#define SKY_ENGINE_CORE_ANIMATION_STRINGKEYFRAME_H_
-
-#include "sky/engine/core/animation/Keyframe.h"
-#include "sky/engine/core/css/StylePropertySet.h"
-
-namespace blink {
-
-class StyleSheetContents;
-
-class StringKeyframe : public Keyframe {
-public:
- static PassRefPtr<StringKeyframe> create()
- {
- return adoptRef(new StringKeyframe);
- }
- void setPropertyValue(CSSPropertyID, const String& value, StyleSheetContents*);
- void clearPropertyValue(CSSPropertyID property) { m_propertySet->removeProperty(property); }
- CSSValue* propertyValue(CSSPropertyID property) const
- {
- int index = m_propertySet->findPropertyIndex(property);
- RELEASE_ASSERT(index >= 0);
- return m_propertySet->propertyAt(static_cast<unsigned>(index)).value();
- }
- virtual PropertySet properties() const override;
-
- class PropertySpecificKeyframe : public Keyframe::PropertySpecificKeyframe {
- public:
- PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, CSSValue*, AnimationEffect::CompositeOperation);
-
- CSSValue* value() const { return m_value.get(); }
- virtual const PassRefPtr<AnimatableValue> getAnimatableValue() const override final {
- return m_animatableValueCache.get();
- }
-
- virtual PassOwnPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe(double offset, PassRefPtr<TimingFunction> easing) const override final;
- virtual PassRefPtr<Interpolation> createInterpolation(CSSPropertyID, blink::Keyframe::PropertySpecificKeyframe* end, Element*) const override final;
-
- private:
- PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easing, CSSValue*);
-
- virtual PassOwnPtr<Keyframe::PropertySpecificKeyframe> cloneWithOffset(double offset) const;
- virtual bool isStringPropertySpecificKeyframe() const override { return true; }
-
- RefPtr<CSSValue> m_value;
- mutable RefPtr<AnimatableValue> m_animatableValueCache;
- };
-
-private:
- StringKeyframe()
- : m_propertySet(MutableStylePropertySet::create())
- { }
-
- StringKeyframe(const StringKeyframe& copyFrom);
-
- virtual PassRefPtr<Keyframe> clone() const override;
- virtual PassOwnPtr<Keyframe::PropertySpecificKeyframe> createPropertySpecificKeyframe(CSSPropertyID) const override;
-
- virtual bool isStringKeyframe() const override { return true; }
-
- RefPtr<MutableStylePropertySet> m_propertySet;
-};
-
-typedef StringKeyframe::PropertySpecificKeyframe StringPropertySpecificKeyframe;
-
-DEFINE_TYPE_CASTS(StringKeyframe, Keyframe, value, value->isStringKeyframe(), value.isStringKeyframe());
-DEFINE_TYPE_CASTS(StringPropertySpecificKeyframe, Keyframe::PropertySpecificKeyframe, value, value->isStringPropertySpecificKeyframe(), value.isStringPropertySpecificKeyframe());
-
-}
-
-#endif // SKY_ENGINE_CORE_ANIMATION_STRINGKEYFRAME_H_
« no previous file with comments | « sky/engine/core/animation/SampledEffect.cpp ('k') | sky/engine/core/animation/StringKeyframe.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698