OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_COMPOSITOR_FLOAT_ANIMATION_CURVE_ADAPTER_H_ | 5 #ifndef UI_COMPOSITOR_FLOAT_ANIMATION_CURVE_ADAPTER_H_ |
6 #define UI_COMPOSITOR_FLOAT_ANIMATION_CURVE_ADAPTER_H_ | 6 #define UI_COMPOSITOR_FLOAT_ANIMATION_CURVE_ADAPTER_H_ |
7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" |
8 #include "base/time/time.h" | 9 #include "base/time/time.h" |
9 #include "cc/animation/animation_curve.h" | 10 #include "cc/animation/animation_curve.h" |
10 #include "ui/gfx/animation/tween.h" | 11 #include "ui/gfx/animation/tween.h" |
11 | 12 |
12 namespace ui { | 13 namespace ui { |
13 | 14 |
14 class FloatAnimationCurveAdapter : public cc::FloatAnimationCurve { | 15 class FloatAnimationCurveAdapter : public cc::FloatAnimationCurve { |
15 public: | 16 public: |
16 FloatAnimationCurveAdapter(gfx::Tween::Type tween_type, | 17 FloatAnimationCurveAdapter(gfx::Tween::Type tween_type, |
17 float initial_value, | 18 float initial_value, |
(...skipping 10 matching lines...) Expand all Loading... |
28 private: | 29 private: |
29 gfx::Tween::Type tween_type_; | 30 gfx::Tween::Type tween_type_; |
30 float initial_value_; | 31 float initial_value_; |
31 float target_value_; | 32 float target_value_; |
32 base::TimeDelta duration_; | 33 base::TimeDelta duration_; |
33 }; | 34 }; |
34 | 35 |
35 } // namespace ui | 36 } // namespace ui |
36 | 37 |
37 #endif // UI_COMPOSITOR_FLOAT_ANIMATION_CURVE_ADAPTER_H_ | 38 #endif // UI_COMPOSITOR_FLOAT_ANIMATION_CURVE_ADAPTER_H_ |
OLD | NEW |