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/common/wm/window_state.h" | |
6 #include "ash/public/cpp/shell_window_ids.h" | 5 #include "ash/public/cpp/shell_window_ids.h" |
7 #include "ash/root_window_controller.h" | 6 #include "ash/root_window_controller.h" |
8 #include "ash/screen_util.h" | 7 #include "ash/screen_util.h" |
9 #include "ash/shell.h" | 8 #include "ash/shell.h" |
10 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
| 10 #include "ash/wm/window_state.h" |
11 #include "ash/wm/window_state_aura.h" | 11 #include "ash/wm/window_state_aura.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" | 13 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" |
14 #include "ui/aura/client/aura_constants.h" | 14 #include "ui/aura/client/aura_constants.h" |
15 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
16 #include "ui/display/manager/display_manager.h" | 16 #include "ui/display/manager/display_manager.h" |
17 #include "ui/display/screen.h" | 17 #include "ui/display/screen.h" |
18 #include "ui/keyboard/keyboard_controller.h" | 18 #include "ui/keyboard/keyboard_controller.h" |
19 #include "ui/keyboard/keyboard_switches.h" | 19 #include "ui/keyboard/keyboard_switches.h" |
20 #include "ui/keyboard/keyboard_ui.h" | 20 #include "ui/keyboard/keyboard_ui.h" |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 ScreenUtil::GetDisplayWorkAreaBoundsInParent(window.get()); | 287 ScreenUtil::GetDisplayWorkAreaBoundsInParent(window.get()); |
288 window->SetBounds(work_area); | 288 window->SetBounds(work_area); |
289 // Usually work_area takes Shelf into account but that doesn't affect | 289 // Usually work_area takes Shelf into account but that doesn't affect |
290 // LockScreen container windows. | 290 // LockScreen container windows. |
291 EXPECT_NE(work_area.ToString(), window->GetBoundsInScreen().ToString()); | 291 EXPECT_NE(work_area.ToString(), window->GetBoundsInScreen().ToString()); |
292 EXPECT_EQ(screen_bounds.ToString(), window->GetBoundsInScreen().ToString()); | 292 EXPECT_EQ(screen_bounds.ToString(), window->GetBoundsInScreen().ToString()); |
293 } | 293 } |
294 | 294 |
295 } // namespace test | 295 } // namespace test |
296 } // namespace ash | 296 } // namespace ash |
OLD | NEW |