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

Unified Diff: sky/engine/core/animation/css/CSSTransitionData.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
Index: sky/engine/core/animation/css/CSSTransitionData.h
diff --git a/sky/engine/core/animation/css/CSSTransitionData.h b/sky/engine/core/animation/css/CSSTransitionData.h
deleted file mode 100644
index 6e4521533b644367693ee97d85bf2d74ebb6ab4f..0000000000000000000000000000000000000000
--- a/sky/engine/core/animation/css/CSSTransitionData.h
+++ /dev/null
@@ -1,81 +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_CSS_CSSTRANSITIONDATA_H_
-#define SKY_ENGINE_CORE_ANIMATION_CSS_CSSTRANSITIONDATA_H_
-
-#include "gen/sky/core/CSSPropertyNames.h"
-#include "sky/engine/core/animation/css/CSSTimingData.h"
-#include "sky/engine/wtf/Vector.h"
-
-namespace blink {
-
-class CSSTransitionData final : public CSSTimingData {
-public:
- enum TransitionPropertyType {
- TransitionNone,
- TransitionSingleProperty,
- TransitionUnknown,
- TransitionAll
- };
-
- // FIXME: We shouldn't allow 'none' to be used alongside other properties.
- struct TransitionProperty {
- TransitionProperty(CSSPropertyID id)
- : propertyType(TransitionSingleProperty)
- , propertyId(id)
- {
- ASSERT(id != CSSPropertyInvalid);
- }
-
- TransitionProperty(const String& string)
- : propertyType(TransitionUnknown)
- , propertyId(CSSPropertyInvalid)
- , propertyString(string)
- {
- }
-
- TransitionProperty(TransitionPropertyType type)
- : propertyType(type)
- , propertyId(CSSPropertyInvalid)
- {
- ASSERT(type == TransitionNone || type == TransitionAll);
- }
-
- bool operator==(const TransitionProperty& other) const { return propertyType == other.propertyType && propertyId == other.propertyId && propertyString == other.propertyString; }
-
- TransitionPropertyType propertyType;
- CSSPropertyID propertyId;
- String propertyString;
- };
-
- static PassOwnPtr<CSSTransitionData> create()
- {
- return adoptPtr(new CSSTransitionData);
- }
-
- static PassOwnPtr<CSSTransitionData> create(const CSSTransitionData& transitionData)
- {
- return adoptPtr(new CSSTransitionData(transitionData));
- }
-
- bool transitionsMatchForStyleRecalc(const CSSTransitionData& other) const;
-
- Timing convertToTiming(size_t index) const;
-
- const Vector<TransitionProperty>& propertyList() const { return m_propertyList; }
- Vector<TransitionProperty>& propertyList() { return m_propertyList; }
-
- static TransitionProperty initialProperty() { return TransitionProperty(TransitionAll); }
-
-private:
- CSSTransitionData();
- explicit CSSTransitionData(const CSSTransitionData&);
-
- Vector<TransitionProperty> m_propertyList;
-};
-
-} // namespace blink
-
-#endif // SKY_ENGINE_CORE_ANIMATION_CSS_CSSTRANSITIONDATA_H_
« no previous file with comments | « sky/engine/core/animation/css/CSSTimingData.cpp ('k') | sky/engine/core/animation/css/CSSTransitionData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698