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 WebCompositorAnimationCurve_h | 5 #ifndef WebCompositorAnimationCurve_h |
6 #define WebCompositorAnimationCurve_h | 6 #define WebCompositorAnimationCurve_h |
7 | 7 |
8 #include "WebAnimationCurve.h" | 8 #include "WebCommon.h" |
9 | |
10 #define WEB_SCROLL_OFFSET_ANIMATION_CURVE_IS_DEFINED 1 | |
11 | |
12 namespace blink { | |
13 | |
14 class WebCompositorAnimationCurve { | |
15 public: | |
16 virtual ~WebCompositorAnimationCurve() { } | |
17 | |
18 enum TimingFunctionType { | |
jochen (gone - plz use gerrit)
2014/08/04 09:07:33
why is that enum on this class?
samli
2014/08/11 04:10:59
Looks like all the subclasses use this enum and ma
| |
19 TimingFunctionTypeEase, | |
20 TimingFunctionTypeEaseIn, | |
21 TimingFunctionTypeEaseOut, | |
22 TimingFunctionTypeEaseInOut, | |
23 TimingFunctionTypeLinear | |
24 }; | |
25 | |
26 enum AnimationCurveType { | |
27 AnimationCurveTypeFilter, | |
28 AnimationCurveTypeFloat, | |
29 AnimationCurveTypeScrollOffset, | |
30 AnimationCurveTypeTransform, | |
31 }; | |
32 | |
33 virtual AnimationCurveType type() const = 0; | |
34 }; | |
35 | |
36 } // namespace blink | |
9 | 37 |
10 #endif // WebCompositorAnimationCurve_h | 38 #endif // WebCompositorAnimationCurve_h |
OLD | NEW |