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

Side by Side Diff: sky/engine/core/animation/StyleInterpolation.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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/animation/StringKeyframe.cpp ('k') | sky/engine/core/animation/Timing.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SKY_ENGINE_CORE_ANIMATION_STYLEINTERPOLATION_H_
6 #define SKY_ENGINE_CORE_ANIMATION_STYLEINTERPOLATION_H_
7
8 #include "gen/sky/core/CSSPropertyNames.h"
9 #include "sky/engine/core/animation/Interpolation.h"
10
11 namespace blink {
12
13 class StyleResolverState;
14
15 class StyleInterpolation : public Interpolation {
16 public:
17 // 1) convert m_cachedValue into an X
18 // 2) shove X into StyleResolverState
19 // X can be:
20 // (1) a CSSValue (and applied via StyleBuilder::applyProperty)
21 // (2) an AnimatableValue (and applied via // AnimatedStyleBuilder::applyPro perty)
22 // (3) a custom value that is inserted directly into the StyleResolverState.
23 virtual void apply(StyleResolverState&) const = 0;
24
25 virtual bool isStyleInterpolation() const override final { return true; }
26
27 CSSPropertyID id() const { return m_id; }
28
29 protected:
30 CSSPropertyID m_id;
31
32 StyleInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Interpola bleValue> end, CSSPropertyID id)
33 : Interpolation(start, end)
34 , m_id(id)
35 {
36 }
37 };
38
39 DEFINE_TYPE_CASTS(StyleInterpolation, Interpolation, value, value->isStyleInterp olation(), value.isStyleInterpolation());
40
41 }
42
43 #endif // SKY_ENGINE_CORE_ANIMATION_STYLEINTERPOLATION_H_
OLDNEW
« no previous file with comments | « sky/engine/core/animation/StringKeyframe.cpp ('k') | sky/engine/core/animation/Timing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698