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/wm/system_modal_container_layout_manager.h" | 5 #include "ash/wm/system_modal_container_layout_manager.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
10 #include "ash/test/ash_test_base.h" | 10 #include "ash/test/ash_test_base.h" |
11 #include "ash/test/capture_tracking_view.h" | 11 #include "ash/test/capture_tracking_view.h" |
12 #include "ash/wm/window_util.h" | 12 #include "ash/wm/window_util.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "ui/aura/root_window.h" | 14 #include "ui/aura/root_window.h" |
15 #include "ui/aura/test/event_generator.h" | 15 #include "ui/aura/test/event_generator.h" |
16 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
17 #include "ui/gfx/compositor/layer.h" | 17 #include "ui/compositor/layer.h" |
18 #include "ui/views/events/event.h" | 18 #include "ui/views/events/event.h" |
19 #include "ui/views/widget/widget.h" | 19 #include "ui/views/widget/widget.h" |
20 #include "ui/views/widget/widget_delegate.h" | 20 #include "ui/views/widget/widget_delegate.h" |
21 | 21 |
22 namespace ash { | 22 namespace ash { |
23 namespace test { | 23 namespace test { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 aura::Window* GetModalContainer() { | 27 aura::Window* GetModalContainer() { |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 // We set now the bounds of the root window to something new which will | 300 // We set now the bounds of the root window to something new which will |
301 // Then trigger the repos operation. | 301 // Then trigger the repos operation. |
302 GetModalContainer()->SetBounds(gfx::Rect(0, 0, 800, 600)); | 302 GetModalContainer()->SetBounds(gfx::Rect(0, 0, 800, 600)); |
303 | 303 |
304 gfx::Rect bounds = main->bounds(); | 304 gfx::Rect bounds = main->bounds(); |
305 EXPECT_EQ(bounds, gfx::Rect(700, 500, 100, 100)); | 305 EXPECT_EQ(bounds, gfx::Rect(700, 500, 100, 100)); |
306 } | 306 } |
307 | 307 |
308 } // namespace test | 308 } // namespace test |
309 } // namespace ash | 309 } // namespace ash |
OLD | NEW |