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/common/wm/window_positioner.h" | 5 #include "ash/wm/window_positioner.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/wm/window_resizer.h" | |
10 #include "ash/common/wm_shell.h" | |
11 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
| 10 #include "ash/wm/window_resizer.h" |
| 11 #include "ash/wm_shell.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/test/base/test_browser_window_aura.h" | 15 #include "chrome/test/base/test_browser_window_aura.h" |
16 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
17 #include "content/public/test/render_view_test.h" | 17 #include "content/public/test/render_view_test.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "ui/aura/env.h" | 19 #include "ui/aura/env.h" |
20 #include "ui/aura/test/test_windows.h" | 20 #include "ui/aura/test/test_windows.h" |
21 #include "ui/aura/window_event_dispatcher.h" | 21 #include "ui/aura/window_event_dispatcher.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 // Check that the popup is placed full screen. | 222 // Check that the popup is placed full screen. |
223 gfx::Rect full = window_positioner()->GetPopupPosition(pop_position); | 223 gfx::Rect full = window_positioner()->GetPopupPosition(pop_position); |
224 EXPECT_EQ(gfx::Rect(work_area.x(), work_area.y(), | 224 EXPECT_EQ(gfx::Rect(work_area.x(), work_area.y(), |
225 pop_position.width(), pop_position.height()), | 225 pop_position.width(), pop_position.height()), |
226 full); | 226 full); |
227 } | 227 } |
228 | 228 |
229 } // namespace test | 229 } // namespace test |
230 } // namespace ash | 230 } // namespace ash |
OLD | NEW |