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

Side by Side Diff: ash/wm/window_positioner_unittest.cc

Issue 2889413002: chromeos: nukes window_state_aura (Closed)
Patch Set: merge, remove include from windows and shuffle functions for declaration Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « ash/wm/window_mirror_view.cc ('k') | ash/wm/window_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/wm/window_positioner.h" 5 #include "ash/wm/window_positioner.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/scoped_root_window_for_new_windows.h" 9 #include "ash/scoped_root_window_for_new_windows.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
11 #include "ash/shell/toplevel_window.h" 11 #include "ash/shell/toplevel_window.h"
12 #include "ash/shell_port.h" 12 #include "ash/shell_port.h"
13 #include "ash/test/ash_test_base.h" 13 #include "ash/test/ash_test_base.h"
14 #include "ash/test/test_shell_delegate.h" 14 #include "ash/test/test_shell_delegate.h"
15 #include "ash/wm/window_positioner.h" 15 #include "ash/wm/window_positioner.h"
16 #include "ash/wm/window_state.h" 16 #include "ash/wm/window_state.h"
17 #include "ash/wm/window_state_aura.h"
18 #include "ash/wm_window.h" 17 #include "ash/wm_window.h"
19 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
20 #include "ui/display/screen.h" 19 #include "ui/display/screen.h"
21 #include "ui/views/widget/widget.h" 20 #include "ui/views/widget/widget.h"
22 #include "ui/views/widget/widget_delegate.h" 21 #include "ui/views/widget/widget_delegate.h"
23 22
24 namespace ash { 23 namespace ash {
25 24
26 using WindowPositionerTest = test::AshTestBase; 25 using WindowPositionerTest = test::AshTestBase;
27 26
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 widget1->SetFullscreen(false); 203 widget1->SetFullscreen(false);
205 ASSERT_EQ("300x300", widget1->GetWindowBoundsInScreen().size().ToString()); 204 ASSERT_EQ("300x300", widget1->GetWindowBoundsInScreen().size().ToString());
206 205
207 // Closing 2nd widget triggers the rearrange logic but the 1st 206 // Closing 2nd widget triggers the rearrange logic but the 1st
208 // widget should stay in the current size. 207 // widget should stay in the current size.
209 widget2->CloseNow(); 208 widget2->CloseNow();
210 ASSERT_EQ("300x300", widget1->GetWindowBoundsInScreen().size().ToString()); 209 ASSERT_EQ("300x300", widget1->GetWindowBoundsInScreen().size().ToString());
211 } 210 }
212 211
213 } // namespace ash 212 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/window_mirror_view.cc ('k') | ash/wm/window_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698