OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_positioner.h" | 5 #include "ash/wm/window_positioner.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "ash/common/scoped_root_window_for_new_windows.h" | 9 #include "ash/common/scoped_root_window_for_new_windows.h" |
10 #include "ash/common/wm/window_positioner.h" | |
11 #include "ash/common/wm/window_state.h" | |
12 #include "ash/common/wm_shell.h" | 10 #include "ash/common/wm_shell.h" |
13 #include "ash/common/wm_window.h" | 11 #include "ash/common/wm_window.h" |
14 #include "ash/shell.h" | 12 #include "ash/shell.h" |
15 #include "ash/shell/toplevel_window.h" | 13 #include "ash/shell/toplevel_window.h" |
16 #include "ash/test/ash_test_base.h" | 14 #include "ash/test/ash_test_base.h" |
17 #include "ash/test/test_shell_delegate.h" | 15 #include "ash/test/test_shell_delegate.h" |
| 16 #include "ash/wm/window_positioner.h" |
| 17 #include "ash/wm/window_state.h" |
18 #include "ash/wm/window_state_aura.h" | 18 #include "ash/wm/window_state_aura.h" |
19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
20 #include "ui/display/screen.h" | 20 #include "ui/display/screen.h" |
21 #include "ui/views/widget/widget.h" | 21 #include "ui/views/widget/widget.h" |
22 #include "ui/views/widget/widget_delegate.h" | 22 #include "ui/views/widget/widget_delegate.h" |
23 | 23 |
24 namespace ash { | 24 namespace ash { |
25 | 25 |
26 using WindowPositionerTest = test::AshTestBase; | 26 using WindowPositionerTest = test::AshTestBase; |
27 | 27 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 widget1->SetFullscreen(false); | 202 widget1->SetFullscreen(false); |
203 ASSERT_EQ("300x300", widget1->GetWindowBoundsInScreen().size().ToString()); | 203 ASSERT_EQ("300x300", widget1->GetWindowBoundsInScreen().size().ToString()); |
204 | 204 |
205 // Closing 2nd widget triggers the rearrange logic but the 1st | 205 // Closing 2nd widget triggers the rearrange logic but the 1st |
206 // widget should stay in the current size. | 206 // widget should stay in the current size. |
207 widget2->CloseNow(); | 207 widget2->CloseNow(); |
208 ASSERT_EQ("300x300", widget1->GetWindowBoundsInScreen().size().ToString()); | 208 ASSERT_EQ("300x300", widget1->GetWindowBoundsInScreen().size().ToString()); |
209 } | 209 } |
210 | 210 |
211 } // namespace ash | 211 } // namespace ash |
OLD | NEW |