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 #include "ash/rotator/window_rotation.h" | 5 #include "ash/rotator/window_rotation.h" |
6 | 6 |
7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
8 #include "ui/compositor/layer.h" | 8 #include "ui/compositor/layer.h" |
9 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
10 #include "ui/gfx/interpolated_transform.h" | 10 #include "ui/gfx/interpolated_transform.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 delegate->SetTransformFromAnimation(interpolated_transform_->Interpolate(t)); | 108 delegate->SetTransformFromAnimation(interpolated_transform_->Interpolate(t)); |
109 return true; | 109 return true; |
110 } | 110 } |
111 | 111 |
112 void WindowRotation::OnGetTarget(TargetValue* target) const { | 112 void WindowRotation::OnGetTarget(TargetValue* target) const { |
113 target->transform = interpolated_transform_->Interpolate(1.0); | 113 target->transform = interpolated_transform_->Interpolate(1.0); |
114 } | 114 } |
115 | 115 |
116 void WindowRotation::OnAbort(ui::LayerAnimationDelegate* delegate) {} | 116 void WindowRotation::OnAbort(ui::LayerAnimationDelegate* delegate) {} |
117 | 117 |
| 118 bool WindowRotation::AreStartAndTargetSame() { |
| 119 return false; |
| 120 } |
| 121 |
118 } // namespace ash | 122 } // namespace ash |
OLD | NEW |