| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/common/wm/workspace/workspace_layout_manager.h" | 5 #include "ash/common/wm/workspace/workspace_layout_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/common/shell_observer.h" | 10 #include "ash/common/shell_observer.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 /* | 122 /* |
| 123 TEST_F(WorkspaceLayoutManagerTest, KeepMinimumVisibilityInDisplays) { | 123 TEST_F(WorkspaceLayoutManagerTest, KeepMinimumVisibilityInDisplays) { |
| 124 if (!SupportsMultipleDisplays()) | 124 if (!SupportsMultipleDisplays()) |
| 125 return; | 125 return; |
| 126 | 126 |
| 127 UpdateDisplay("300x400,400x500"); | 127 UpdateDisplay("300x400,400x500"); |
| 128 aura::Window::Windows root_windows = Shell::GetAllRootWindows(); | 128 aura::Window::Windows root_windows = Shell::GetAllRootWindows(); |
| 129 | 129 |
| 130 Shell::GetInstance()->display_manager()->SetLayoutForCurrentDisplays( | 130 Shell::GetInstance()->display_manager()->SetLayoutForCurrentDisplays( |
| 131 test::CreateDisplayLayout(display::DisplayPlacement::TOP, 0)); | 131 test::CreateDisplayLayout(display_manager(), |
| 132 display::DisplayPlacement::TOP, 0)); |
| 132 EXPECT_EQ("0,-500 400x500", root_windows[1]->GetBoundsInScreen().ToString()); | 133 EXPECT_EQ("0,-500 400x500", root_windows[1]->GetBoundsInScreen().ToString()); |
| 133 | 134 |
| 134 std::unique_ptr<aura::Window> window1( | 135 std::unique_ptr<aura::Window> window1( |
| 135 CreateTestWindowInShellWithBounds(gfx::Rect(10, -400, 200, 200))); | 136 CreateTestWindowInShellWithBounds(gfx::Rect(10, -400, 200, 200))); |
| 136 EXPECT_EQ("10,-400 200x200", window1->GetBoundsInScreen().ToString()); | 137 EXPECT_EQ("10,-400 200x200", window1->GetBoundsInScreen().ToString()); |
| 137 | 138 |
| 138 // Make sure the caption is visible. | 139 // Make sure the caption is visible. |
| 139 std::unique_ptr<aura::Window> window2( | 140 std::unique_ptr<aura::Window> window2( |
| 140 CreateTestWindowInShellWithBounds(gfx::Rect(10, -600, 200, 200))); | 141 CreateTestWindowInShellWithBounds(gfx::Rect(10, -600, 200, 200))); |
| 141 EXPECT_EQ("10,-500 200x200", window2->GetBoundsInScreen().ToString()); | 142 EXPECT_EQ("10,-500 200x200", window2->GetBoundsInScreen().ToString()); |
| (...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 occluded_window_bounds.width(), | 1090 occluded_window_bounds.width(), |
| 1090 occluded_window_bounds.height()).ToString(), | 1091 occluded_window_bounds.height()).ToString(), |
| 1091 window->bounds().ToString()); | 1092 window->bounds().ToString()); |
| 1092 HideKeyboard(); | 1093 HideKeyboard(); |
| 1093 EXPECT_EQ(occluded_window_bounds.ToString(), window->bounds().ToString()); | 1094 EXPECT_EQ(occluded_window_bounds.ToString(), window->bounds().ToString()); |
| 1094 } | 1095 } |
| 1095 */ | 1096 */ |
| 1096 | 1097 |
| 1097 } // namespace mus | 1098 } // namespace mus |
| 1098 } // namespace ash | 1099 } // namespace ash |
| OLD | NEW |