OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_animator.h" | 5 #include "ash/rotator/screen_rotation_animator.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ash/common/display/display_info.h" | |
12 #include "ash/display/display_manager.h" | 11 #include "ash/display/display_manager.h" |
13 #include "ash/display/window_tree_host_manager.h" | 12 #include "ash/display/window_tree_host_manager.h" |
14 #include "ash/rotator/screen_rotation_animation.h" | 13 #include "ash/rotator/screen_rotation_animation.h" |
15 #include "ash/shell.h" | 14 #include "ash/shell.h" |
16 #include "base/command_line.h" | 15 #include "base/command_line.h" |
17 #include "base/time/time.h" | 16 #include "base/time/time.h" |
18 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
19 #include "ui/compositor/layer.h" | 18 #include "ui/compositor/layer.h" |
20 #include "ui/compositor/layer_animation_observer.h" | 19 #include "ui/compositor/layer_animation_observer.h" |
21 #include "ui/compositor/layer_animation_sequence.h" | 20 #include "ui/compositor/layer_animation_sequence.h" |
22 #include "ui/compositor/layer_animator.h" | 21 #include "ui/compositor/layer_animator.h" |
23 #include "ui/compositor/layer_owner.h" | 22 #include "ui/compositor/layer_owner.h" |
24 #include "ui/compositor/layer_tree_owner.h" | 23 #include "ui/compositor/layer_tree_owner.h" |
25 #include "ui/display/display.h" | 24 #include "ui/display/display.h" |
| 25 #include "ui/display/manager/managed_display_info.h" |
26 #include "ui/gfx/animation/tween.h" | 26 #include "ui/gfx/animation/tween.h" |
27 #include "ui/gfx/geometry/point.h" | 27 #include "ui/gfx/geometry/point.h" |
28 #include "ui/gfx/geometry/rect.h" | 28 #include "ui/gfx/geometry/rect.h" |
29 #include "ui/gfx/geometry/rect_f.h" | 29 #include "ui/gfx/geometry/rect_f.h" |
30 #include "ui/gfx/transform.h" | 30 #include "ui/gfx/transform.h" |
31 #include "ui/gfx/transform_util.h" | 31 #include "ui/gfx/transform_util.h" |
32 #include "ui/wm/core/window_util.h" | 32 #include "ui/wm/core/window_util.h" |
33 | 33 |
34 namespace ash { | 34 namespace ash { |
35 | 35 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 const display::Display::Rotation current_rotation = | 260 const display::Display::Rotation current_rotation = |
261 GetCurrentRotation(display_id_); | 261 GetCurrentRotation(display_id_); |
262 | 262 |
263 if (current_rotation == new_rotation) | 263 if (current_rotation == new_rotation) |
264 return; | 264 return; |
265 | 265 |
266 RotateScreen(display_id_, new_rotation, source); | 266 RotateScreen(display_id_, new_rotation, source); |
267 } | 267 } |
268 | 268 |
269 } // namespace ash | 269 } // namespace ash |
OLD | NEW |