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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 (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/time.h" 8 #include "base/time/time.h"
9 #include "cc/animation/animation_curve.h" 9 #include "cc/animation/animation_curve.h"
10 #include "ui/compositor/compositor_export.h" 10 #include "ui/compositor/compositor_export.h"
(...skipping 14 matching lines...) Expand all
25 ~TransformAnimationCurveAdapter() override; 25 ~TransformAnimationCurveAdapter() override;
26 26
27 // TransformAnimationCurve implementation. 27 // TransformAnimationCurve implementation.
28 base::TimeDelta Duration() const override; 28 base::TimeDelta Duration() const override;
29 scoped_ptr<AnimationCurve> Clone() const override; 29 scoped_ptr<AnimationCurve> Clone() const override;
30 gfx::Transform GetValue(base::TimeDelta t) const override; 30 gfx::Transform GetValue(base::TimeDelta t) const override;
31 bool AnimatedBoundsForBox(const gfx::BoxF& box, 31 bool AnimatedBoundsForBox(const gfx::BoxF& box,
32 gfx::BoxF* bounds) const override; 32 gfx::BoxF* bounds) const override;
33 bool AffectsScale() const override; 33 bool AffectsScale() const override;
34 bool IsTranslation() const override; 34 bool IsTranslation() const override;
35 bool PreservesAxisAlignment() const override;
35 bool MaximumTargetScale(bool forward_direction, 36 bool MaximumTargetScale(bool forward_direction,
36 float* max_scale) const override; 37 float* max_scale) const override;
37 38
38 private: 39 private:
39 gfx::Tween::Type tween_type_; 40 gfx::Tween::Type tween_type_;
40 gfx::Transform initial_value_; 41 gfx::Transform initial_value_;
41 gfx::Transform target_value_; 42 gfx::Transform target_value_;
42 gfx::DecomposedTransform decomposed_initial_value_; 43 gfx::DecomposedTransform decomposed_initial_value_;
43 gfx::DecomposedTransform decomposed_target_value_; 44 gfx::DecomposedTransform decomposed_target_value_;
44 base::TimeDelta duration_; 45 base::TimeDelta duration_;
(...skipping 10 matching lines...) Expand all
55 56
56 ~InverseTransformCurveAdapter() override; 57 ~InverseTransformCurveAdapter() override;
57 58
58 base::TimeDelta Duration() const override; 59 base::TimeDelta Duration() const override;
59 scoped_ptr<AnimationCurve> Clone() const override; 60 scoped_ptr<AnimationCurve> Clone() const override;
60 gfx::Transform GetValue(base::TimeDelta t) const override; 61 gfx::Transform GetValue(base::TimeDelta t) const override;
61 bool AnimatedBoundsForBox(const gfx::BoxF& box, 62 bool AnimatedBoundsForBox(const gfx::BoxF& box,
62 gfx::BoxF* bounds) const override; 63 gfx::BoxF* bounds) const override;
63 bool AffectsScale() const override; 64 bool AffectsScale() const override;
64 bool IsTranslation() const override; 65 bool IsTranslation() const override;
66 bool PreservesAxisAlignment() const override;
65 bool MaximumTargetScale(bool forward_direction, 67 bool MaximumTargetScale(bool forward_direction,
66 float* max_scale) const override; 68 float* max_scale) const override;
67 69
68 private: 70 private:
69 TransformAnimationCurveAdapter base_curve_; 71 TransformAnimationCurveAdapter base_curve_;
70 gfx::Transform initial_value_; 72 gfx::Transform initial_value_;
71 gfx::Transform effective_initial_value_; 73 gfx::Transform effective_initial_value_;
72 base::TimeDelta duration_; 74 base::TimeDelta duration_;
73 75
74 DISALLOW_ASSIGN(InverseTransformCurveAdapter); 76 DISALLOW_ASSIGN(InverseTransformCurveAdapter);
75 }; 77 };
76 78
77 } // namespace ui 79 } // namespace ui
78 80
79 #endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ 81 #endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_
80 82
OLDNEW
« no previous file with comments | « ui/compositor/compositor_switches.cc ('k') | ui/compositor/transform_animation_curve_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698