| 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 ASH_WINDOW_ROTATION_H_ | 5 #ifndef ASH_WINDOW_ROTATION_H_ |
| 6 #define ASH_WINDOW_ROTATION_H_ | 6 #define ASH_WINDOW_ROTATION_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "ui/compositor/layer_animation_element.h" | 12 #include "ui/compositor/layer_animation_element.h" |
| 13 #include "ui/gfx/geometry/point.h" | 13 #include "ui/gfx/geometry/point.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 class InterpolatedTransform; | 16 class InterpolatedTransform; |
| 17 class Layer; | 17 class Layer; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace aura { | |
| 21 class RootWindow; | |
| 22 } | |
| 23 | |
| 24 namespace ash { | 20 namespace ash { |
| 25 | 21 |
| 26 // A window rotation represents a single transition from one window orientation | 22 // A window rotation represents a single transition from one window orientation |
| 27 // to another. The intended usage is that a new instance of the class is | 23 // to another. The intended usage is that a new instance of the class is |
| 28 // created for every transition. It is possible to update the target orientation | 24 // created for every transition. It is possible to update the target orientation |
| 29 // in the middle of a transition. | 25 // in the middle of a transition. |
| 30 class ASH_EXPORT WindowRotation : public ui::LayerAnimationElement { | 26 class ASH_EXPORT WindowRotation : public ui::LayerAnimationElement { |
| 31 public: | 27 public: |
| 32 // |degrees| are clockwise. |layer| is the target of the animation. Does not | 28 // |degrees| are clockwise. |layer| is the target of the animation. Does not |
| 33 // take ownership of |layer|. | 29 // take ownership of |layer|. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 52 | 48 |
| 53 // The target origin. | 49 // The target origin. |
| 54 gfx::Point new_origin_; | 50 gfx::Point new_origin_; |
| 55 | 51 |
| 56 DISALLOW_COPY_AND_ASSIGN(WindowRotation); | 52 DISALLOW_COPY_AND_ASSIGN(WindowRotation); |
| 57 }; | 53 }; |
| 58 | 54 |
| 59 } // namespace ash | 55 } // namespace ash |
| 60 | 56 |
| 61 #endif // ASH_WINDOW_ROTATION_H_ | 57 #endif // ASH_WINDOW_ROTATION_H_ |
| OLD | NEW |