| 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/root_window_controller.h" | 5 #include "ash/root_window_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "ash/public/cpp/config.h" | 9 #include "ash/public/cpp/config.h" |
| 10 #include "ash/public/cpp/shell_window_ids.h" | 10 #include "ash/public/cpp/shell_window_ids.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 // d2 must have been deleted. | 213 // d2 must have been deleted. |
| 214 EXPECT_FALSE(tracker.Contains(d2)); | 214 EXPECT_FALSE(tracker.Contains(d2)); |
| 215 } | 215 } |
| 216 | 216 |
| 217 EXPECT_EQ(root_windows[0], normal->GetNativeView()->GetRootWindow()); | 217 EXPECT_EQ(root_windows[0], normal->GetNativeView()->GetRootWindow()); |
| 218 EXPECT_EQ("100,20 100x100", normal->GetWindowBoundsInScreen().ToString()); | 218 EXPECT_EQ("100,20 100x100", normal->GetWindowBoundsInScreen().ToString()); |
| 219 EXPECT_EQ("100,20 100x100", | 219 EXPECT_EQ("100,20 100x100", |
| 220 normal->GetNativeView()->GetBoundsInRootWindow().ToString()); | 220 normal->GetNativeView()->GetBoundsInRootWindow().ToString()); |
| 221 | 221 |
| 222 // Maximized area on primary display has 47px for non-md and 48px for md | 222 // Maximized area on primary display has 48px for inset at the bottom |
| 223 // (defined in SHELF_SIZE) inset at the bottom. | 223 // (kShelfSize). |
| 224 | 224 |
| 225 // First clear fullscreen status, since both fullscreen and maximized windows | 225 // First clear fullscreen status, since both fullscreen and maximized windows |
| 226 // share the same desktop workspace, which cancels the shelf status. | 226 // share the same desktop workspace, which cancels the shelf status. |
| 227 fullscreen->SetFullscreen(false); | 227 fullscreen->SetFullscreen(false); |
| 228 EXPECT_EQ(root_windows[0], maximized->GetNativeView()->GetRootWindow()); | 228 EXPECT_EQ(root_windows[0], maximized->GetNativeView()->GetRootWindow()); |
| 229 EXPECT_EQ(gfx::Rect(0, 0, 600, 552).ToString(), | 229 EXPECT_EQ(gfx::Rect(0, 0, 600, 552).ToString(), |
| 230 maximized->GetWindowBoundsInScreen().ToString()); | 230 maximized->GetWindowBoundsInScreen().ToString()); |
| 231 EXPECT_EQ(gfx::Rect(0, 0, 600, 552).ToString(), | 231 EXPECT_EQ(gfx::Rect(0, 0, 600, 552).ToString(), |
| 232 maximized->GetNativeView()->GetBoundsInRootWindow().ToString()); | 232 maximized->GetNativeView()->GetBoundsInRootWindow().ToString()); |
| 233 | 233 |
| (...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 keyboard_controller->ui()->GetKeyboardWindow()->SetBounds( | 1237 keyboard_controller->ui()->GetKeyboardWindow()->SetBounds( |
| 1238 gfx::Rect(0, 400, 800, 200)); | 1238 gfx::Rect(0, 400, 800, 200)); |
| 1239 EXPECT_EQ("0,400 800x200", keyboard_container->bounds().ToString()); | 1239 EXPECT_EQ("0,400 800x200", keyboard_container->bounds().ToString()); |
| 1240 | 1240 |
| 1241 UpdateDisplay("600x800"); | 1241 UpdateDisplay("600x800"); |
| 1242 EXPECT_EQ("0,600 600x200", keyboard_container->bounds().ToString()); | 1242 EXPECT_EQ("0,600 600x200", keyboard_container->bounds().ToString()); |
| 1243 } | 1243 } |
| 1244 | 1244 |
| 1245 } // namespace test | 1245 } // namespace test |
| 1246 } // namespace ash | 1246 } // namespace ash |
| OLD | NEW |