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

Side by Side Diff: Source/core/animation/StyleInterpolation.h

Issue 630993005: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added cpp to list Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef StyleInterpolation_h 5 #ifndef StyleInterpolation_h
6 #define StyleInterpolation_h 6 #define StyleInterpolation_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/animation/Interpolation.h" 9 #include "core/animation/Interpolation.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class StyleResolverState; 13 class StyleResolverState;
14 14
15 class StyleInterpolation : public Interpolation { 15 class StyleInterpolation : public Interpolation {
16 public: 16 public:
17 // 1) convert m_cachedValue into an X 17 // 1) convert m_cachedValue into an X
18 // 2) shove X into StyleResolverState 18 // 2) shove X into StyleResolverState
19 // X can be: 19 // X can be:
20 // (1) a CSSValue (and applied via StyleBuilder::applyProperty) 20 // (1) a CSSValue (and applied via StyleBuilder::applyProperty)
21 // (2) an AnimatableValue (and applied via // AnimatedStyleBuilder::applyPro perty) 21 // (2) an AnimatableValue (and applied via // AnimatedStyleBuilder::applyPro perty)
22 // (3) a custom value that is inserted directly into the StyleResolverState. 22 // (3) a custom value that is inserted directly into the StyleResolverState.
23 virtual void apply(StyleResolverState&) const = 0; 23 virtual void apply(StyleResolverState&) const = 0;
24 24
25 virtual bool isStyleInterpolation() const OVERRIDE FINAL { return true; } 25 virtual bool isStyleInterpolation() const override final { return true; }
26 26
27 CSSPropertyID id() const { return m_id; } 27 CSSPropertyID id() const { return m_id; }
28 28
29 virtual void trace(Visitor* visitor) OVERRIDE 29 virtual void trace(Visitor* visitor) override
30 { 30 {
31 Interpolation::trace(visitor); 31 Interpolation::trace(visitor);
32 } 32 }
33 33
34 protected: 34 protected:
35 CSSPropertyID m_id; 35 CSSPropertyID m_id;
36 36
37 StyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnP trWillBeRawPtr<InterpolableValue> end, CSSPropertyID id) 37 StyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, PassOwnP trWillBeRawPtr<InterpolableValue> end, CSSPropertyID id)
38 : Interpolation(start, end) 38 : Interpolation(start, end)
39 , m_id(id) 39 , m_id(id)
40 { 40 {
41 } 41 }
42 }; 42 };
43 43
44 DEFINE_TYPE_CASTS(StyleInterpolation, Interpolation, value, value->isStyleInterp olation(), value.isStyleInterpolation()); 44 DEFINE_TYPE_CASTS(StyleInterpolation, Interpolation, value, value->isStyleInterp olation(), value.isStyleInterpolation());
45 45
46 } 46 }
47 47
48 #endif 48 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/StringKeyframe.h ('k') | Source/core/animation/animatable/AnimatableClipPathOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698