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/workspace/workspace_layout_manager.h" | 5 #include "ash/wm/workspace/workspace_layout_manager2.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "ash/wm/property_util.h" | 9 #include "ash/wm/property_util.h" |
10 #include "ash/wm/shelf_layout_manager.h" | 10 #include "ash/wm/shelf_layout_manager.h" |
11 #include "ash/wm/window_util.h" | 11 #include "ash/wm/window_util.h" |
12 #include "ui/aura/root_window.h" | 12 #include "ui/aura/root_window.h" |
13 #include "ui/aura/test/test_windows.h" | 13 #include "ui/aura/test/test_windows.h" |
14 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
15 #include "ui/gfx/insets.h" | 15 #include "ui/gfx/insets.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 window_bounds.Offset(root_window_bounds.width(), root_window_bounds.height()); | 130 window_bounds.Offset(root_window_bounds.width(), root_window_bounds.height()); |
131 ASSERT_FALSE(window_bounds.Intersects(root_window_bounds)); | 131 ASSERT_FALSE(window_bounds.Intersects(root_window_bounds)); |
132 scoped_ptr<aura::Window> out_window(CreateTestWindow(window_bounds)); | 132 scoped_ptr<aura::Window> out_window(CreateTestWindow(window_bounds)); |
133 EXPECT_EQ(window_bounds.size(), out_window->bounds().size()); | 133 EXPECT_EQ(window_bounds.size(), out_window->bounds().size()); |
134 EXPECT_TRUE(out_window->bounds().Intersects(root_window_bounds)); | 134 EXPECT_TRUE(out_window->bounds().Intersects(root_window_bounds)); |
135 } | 135 } |
136 | 136 |
137 } // namespace | 137 } // namespace |
138 | 138 |
139 } // namespace ash | 139 } // namespace ash |
OLD | NEW |