Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/chromeos/rotation/tray_rotation_lock.h" 5 #include "ash/system/chromeos/rotation/tray_rotation_lock.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "ash/common/system/status_area_widget.h" 9 #include "ash/common/system/status_area_widget.h"
10 #include "ash/common/system/tray/system_tray.h" 10 #include "ash/common/system/tray/system_tray.h"
11 #include "ash/common/system/tray/system_tray_delegate.h" 11 #include "ash/common/system/tray/system_tray_delegate.h"
12 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" 12 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
13 #include "ash/common/wm_shell.h" 13 #include "ash/common/wm_shell.h"
14 #include "ash/display/display_manager.h"
15 #include "ash/display/screen_orientation_controller_chromeos.h" 14 #include "ash/display/screen_orientation_controller_chromeos.h"
16 #include "ash/root_window_controller.h" 15 #include "ash/root_window_controller.h"
17 #include "ash/shell.h" 16 #include "ash/shell.h"
18 #include "ash/test/ash_test_base.h" 17 #include "ash/test/ash_test_base.h"
19 #include "ash/test/status_area_widget_test_helper.h" 18 #include "ash/test/status_area_widget_test_helper.h"
20 #include "base/command_line.h" 19 #include "base/command_line.h"
21 #include "base/time/time.h" 20 #include "base/time/time.h"
22 #include "ui/display/display_switches.h" 21 #include "ui/display/display_switches.h"
22 #include "ui/display/manager/display_manager.h"
23 #include "ui/events/event.h" 23 #include "ui/events/event.h"
24 #include "ui/events/event_constants.h" 24 #include "ui/events/event_constants.h"
25 #include "ui/views/view.h" 25 #include "ui/views/view.h"
26 26
27 namespace ash { 27 namespace ash {
28 28
29 class TrayRotationLockTest : public test::AshTestBase { 29 class TrayRotationLockTest : public test::AshTestBase {
30 public: 30 public:
31 TrayRotationLockTest() {} 31 TrayRotationLockTest() {}
32 ~TrayRotationLockTest() override {} 32 ~TrayRotationLockTest() override {}
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( 261 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
262 true); 262 true);
263 DestroyTrayView(); 263 DestroyTrayView();
264 Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked( 264 Shell::GetInstance()->screen_orientation_controller()->SetRotationLocked(
265 true); 265 true);
266 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager( 266 WmShell::Get()->maximize_mode_controller()->EnableMaximizeModeWindowManager(
267 false); 267 false);
268 } 268 }
269 269
270 } // namespace ash 270 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698