OLD | NEW |
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 ColorStyleInterpolation_h | 5 #ifndef ColorStyleInterpolation_h |
6 #define ColorStyleInterpolation_h | 6 #define ColorStyleInterpolation_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/StyleInterpolation.h" | 9 #include "core/animation/StyleInterpolation.h" |
10 #include "core/css/CSSPrimitiveValue.h" | 10 #include "core/css/CSSPrimitiveValue.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 DECLARE_VIRTUAL_TRACE(); | 30 DECLARE_VIRTUAL_TRACE(); |
31 | 31 |
32 private: | 32 private: |
33 ColorStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, Pas
sOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id) | 33 ColorStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, Pas
sOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id) |
34 : StyleInterpolation(start, end, id) | 34 : StyleInterpolation(start, end, id) |
35 { | 35 { |
36 } | 36 } |
37 | 37 |
38 static PassOwnPtrWillBeRawPtr<InterpolableValue> colorToInterpolableValue(co
nst CSSValue&); | 38 static PassOwnPtrWillBeRawPtr<InterpolableValue> colorToInterpolableValue(co
nst CSSValue&); |
39 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> interpolableValueToColor(co
nst InterpolableValue&); | 39 static PassRefPtr<CSSPrimitiveValue> interpolableValueToColor(const Interpol
ableValue&); |
40 | 40 |
41 friend class AnimationColorStyleInterpolationTest; | 41 friend class AnimationColorStyleInterpolationTest; |
42 friend class ShadowStyleInterpolation; | 42 friend class ShadowStyleInterpolation; |
43 }; | 43 }; |
44 } | 44 } |
45 | 45 |
46 #endif | 46 #endif |
OLD | NEW |