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/screen_rotation.h" | 5 #include "ash/rotator/screen_rotation.h" |
6 | 6 |
7 #include "base/time.h" | 7 #include "base/time/time.h" |
8 #include "ui/compositor/layer.h" | 8 #include "ui/compositor/layer.h" |
9 #include "ui/gfx/interpolated_transform.h" | 9 #include "ui/gfx/interpolated_transform.h" |
10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
11 #include "ui/gfx/transform.h" | 11 #include "ui/gfx/transform.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const int k90DegreeTransitionDurationMs = 350; | 17 const int k90DegreeTransitionDurationMs = 350; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // static | 123 // static |
124 const ui::LayerAnimationElement::AnimatableProperties& | 124 const ui::LayerAnimationElement::AnimatableProperties& |
125 ScreenRotation::GetProperties() { | 125 ScreenRotation::GetProperties() { |
126 static ui::LayerAnimationElement::AnimatableProperties properties; | 126 static ui::LayerAnimationElement::AnimatableProperties properties; |
127 if (properties.empty()) | 127 if (properties.empty()) |
128 properties.insert(ui::LayerAnimationElement::TRANSFORM); | 128 properties.insert(ui::LayerAnimationElement::TRANSFORM); |
129 return properties; | 129 return properties; |
130 } | 130 } |
131 | 131 |
132 } // namespace ash | 132 } // namespace ash |
OLD | NEW |