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

Side by Side Diff: ui/compositor/transform_animation_curve_adapter.h

Issue 12517003: cc: Chromify the Animation and LayerAnimationController classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/compositor/layer_animator.cc ('k') | ui/compositor/transform_animation_curve_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ 5 #ifndef UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_
6 #define UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ 6 #define UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "cc/animation_curve.h" 9 #include "cc/animation_curve.h"
10 #include "ui/base/animation/tween.h" 10 #include "ui/base/animation/tween.h"
11 #include "ui/gfx/transform.h" 11 #include "ui/gfx/transform.h"
12 #include "ui/gfx/transform_util.h" 12 #include "ui/gfx/transform_util.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 class TransformAnimationCurveAdapter :public cc::TransformAnimationCurve { 16 class TransformAnimationCurveAdapter :public cc::TransformAnimationCurve {
17 public: 17 public:
18 TransformAnimationCurveAdapter(Tween::Type tween_type, 18 TransformAnimationCurveAdapter(Tween::Type tween_type,
19 gfx::Transform intial_value, 19 gfx::Transform intial_value,
20 gfx::Transform target_value, 20 gfx::Transform target_value,
21 base::TimeDelta duration); 21 base::TimeDelta duration);
22 22
23 virtual ~TransformAnimationCurveAdapter(); 23 virtual ~TransformAnimationCurveAdapter();
24 24
25 // TransformAnimationCurve implementation. 25 // TransformAnimationCurve implementation.
26 virtual double duration() const OVERRIDE; 26 virtual double Duration() const OVERRIDE;
27 virtual scoped_ptr<AnimationCurve> clone() const OVERRIDE; 27 virtual scoped_ptr<AnimationCurve> Clone() const OVERRIDE;
28 virtual gfx::Transform getValue(double t) const OVERRIDE; 28 virtual gfx::Transform GetValue(double t) const OVERRIDE;
29 29
30 private: 30 private:
31 Tween::Type tween_type_; 31 Tween::Type tween_type_;
32 gfx::Transform initial_value_; 32 gfx::Transform initial_value_;
33 gfx::Transform target_value_; 33 gfx::Transform target_value_;
34 gfx::DecomposedTransform decomposed_initial_value_; 34 gfx::DecomposedTransform decomposed_initial_value_;
35 gfx::DecomposedTransform decomposed_target_value_; 35 gfx::DecomposedTransform decomposed_target_value_;
36 base::TimeDelta duration_; 36 base::TimeDelta duration_;
37 }; 37 };
38 38
39 } // namespace ui 39 } // namespace ui
40 40
41 #endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ 41 #endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_
42 42
OLDNEW
« no previous file with comments | « ui/compositor/layer_animator.cc ('k') | ui/compositor/transform_animation_curve_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698