OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/display/screen_orientation_controller_chromeos.h" | 5 #include "ash/display/screen_orientation_controller_chromeos.h" |
6 | 6 |
7 #include "ash/common/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" | |
9 #include "ash/common/wm_shell.h" | |
10 #include "ash/common/wm_window.h" | |
11 #include "ash/display/display_configuration_controller.h" | 8 #include "ash/display/display_configuration_controller.h" |
12 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| 11 #include "ash/wm_shell.h" |
| 12 #include "ash/wm_window.h" |
13 #include "base/auto_reset.h" | 13 #include "base/auto_reset.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "chromeos/accelerometer/accelerometer_reader.h" | 15 #include "chromeos/accelerometer/accelerometer_reader.h" |
16 #include "chromeos/accelerometer/accelerometer_types.h" | 16 #include "chromeos/accelerometer/accelerometer_types.h" |
17 #include "ui/chromeos/accelerometer/accelerometer_util.h" | 17 #include "ui/chromeos/accelerometer/accelerometer_util.h" |
18 #include "ui/display/display.h" | 18 #include "ui/display/display.h" |
19 #include "ui/display/manager/display_manager.h" | 19 #include "ui/display/manager/display_manager.h" |
20 #include "ui/display/manager/managed_display_info.h" | 20 #include "ui/display/manager/managed_display_info.h" |
21 #include "ui/gfx/geometry/size.h" | 21 #include "ui/gfx/geometry/size.h" |
22 | 22 |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 } | 419 } |
420 | 420 |
421 bool ScreenOrientationController::CanRotateInLockedState() { | 421 bool ScreenOrientationController::CanRotateInLockedState() { |
422 return rotation_locked_orientation_ == | 422 return rotation_locked_orientation_ == |
423 blink::WebScreenOrientationLockLandscape || | 423 blink::WebScreenOrientationLockLandscape || |
424 rotation_locked_orientation_ == | 424 rotation_locked_orientation_ == |
425 blink::WebScreenOrientationLockPortrait; | 425 blink::WebScreenOrientationLockPortrait; |
426 } | 426 } |
427 | 427 |
428 } // namespace ash | 428 } // namespace ash |
OLD | NEW |