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

Unified Diff: ash/wm/lock_layout_manager_unittest.cc

Issue 2445583002: Relocate display_manager from ash to ui (Closed)
Patch Set: fix windows build 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/lock_layout_manager_unittest.cc
diff --git a/ash/wm/lock_layout_manager_unittest.cc b/ash/wm/lock_layout_manager_unittest.cc
index 6c0a35787546136fc6f69f4279a8204e2c6a58d1..8933a3f6b530020688e0999cff40c6f18ac779f2 100644
--- a/ash/wm/lock_layout_manager_unittest.cc
+++ b/ash/wm/lock_layout_manager_unittest.cc
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "ash/common/wm/window_state.h"
-#include "ash/display/display_manager.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
#include "ash/screen_util.h"
@@ -13,6 +12,7 @@
#include "base/command_line.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/window.h"
+#include "ui/display/manager/display_manager.h"
#include "ui/display/screen.h"
#include "ui/keyboard/keyboard_controller.h"
#include "ui/keyboard/keyboard_switches.h"
@@ -212,17 +212,15 @@ TEST_F(LockLayoutManagerTest, KeyboardBounds) {
keyboard::KEYBOARD_OVERSCROLL_OVERRIDE_DISABLED);
ShowKeyboard(true);
ShowKeyboard(false);
- ash::DisplayManager* display_manager =
- Shell::GetInstance()->display_manager();
- display_manager->SetDisplayRotation(primary_display.id(),
- display::Display::ROTATE_90,
- display::Display::ROTATION_SOURCE_ACTIVE);
+ display_manager()->SetDisplayRotation(
+ primary_display.id(), display::Display::ROTATE_90,
+ display::Display::ROTATION_SOURCE_ACTIVE);
primary_display = display::Screen::GetScreen()->GetPrimaryDisplay();
screen_bounds = primary_display.bounds();
EXPECT_EQ(screen_bounds.ToString(), window->GetBoundsInScreen().ToString());
- display_manager->SetDisplayRotation(primary_display.id(),
- display::Display::ROTATE_0,
- display::Display::ROTATION_SOURCE_ACTIVE);
+ display_manager()->SetDisplayRotation(
+ primary_display.id(), display::Display::ROTATE_0,
+ display::Display::ROTATION_SOURCE_ACTIVE);
// When virtual keyboard overscroll is disabled keyboard bounds do
// affect window bounds.
« no previous file with comments | « ash/wm/immersive_fullscreen_controller_unittest.cc ('k') | ash/wm/maximize_mode/maximize_mode_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698