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/system/rotation/tray_rotation_lock.h" | 5 #include "ash/system/rotation/tray_rotation_lock.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "ash/common/wm_shell.h" | |
10 #include "ash/display/screen_orientation_controller_chromeos.h" | 9 #include "ash/display/screen_orientation_controller_chromeos.h" |
11 #include "ash/root_window_controller.h" | 10 #include "ash/root_window_controller.h" |
12 #include "ash/shell.h" | 11 #include "ash/shell.h" |
13 #include "ash/system/status_area_widget.h" | 12 #include "ash/system/status_area_widget.h" |
14 #include "ash/system/tray/system_tray.h" | 13 #include "ash/system/tray/system_tray.h" |
15 #include "ash/system/tray/system_tray_delegate.h" | 14 #include "ash/system/tray/system_tray_delegate.h" |
16 #include "ash/test/ash_test_base.h" | 15 #include "ash/test/ash_test_base.h" |
17 #include "ash/test/status_area_widget_test_helper.h" | 16 #include "ash/test/status_area_widget_test_helper.h" |
18 #include "ash/wm/maximize_mode/maximize_mode_controller.h" | 17 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| 18 #include "ash/wm_shell.h" |
19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "ui/display/display_switches.h" | 21 #include "ui/display/display_switches.h" |
22 #include "ui/display/manager/display_manager.h" | 22 #include "ui/display/manager/display_manager.h" |
23 #include "ui/display/types/display_constants.h" | 23 #include "ui/display/types/display_constants.h" |
24 #include "ui/events/event.h" | 24 #include "ui/events/event.h" |
25 #include "ui/events/event_constants.h" | 25 #include "ui/events/event_constants.h" |
26 #include "ui/views/view.h" | 26 #include "ui/views/view.h" |
27 | 27 |
28 namespace ash { | 28 namespace ash { |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( | 258 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
259 true); | 259 true); |
260 DestroyTrayView(); | 260 DestroyTrayView(); |
261 Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked( | 261 Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked( |
262 true); | 262 true); |
263 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( | 263 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( |
264 false); | 264 false); |
265 } | 265 } |
266 | 266 |
267 } // namespace ash | 267 } // namespace ash |
OLD | NEW |