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 "chrome/browser/ui/views/ash/window_positioner.h" | 5 #include "chrome/browser/ui/ash/window_positioner.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
9 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
10 #include "ash/test/test_shell_delegate.h" | 10 #include "ash/test/test_shell_delegate.h" |
11 #include "ash/wm/window_resizer.h" | 11 #include "ash/wm/window_resizer.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/test/base/test_browser_window.h" | 15 #include "chrome/test/base/test_browser_window.h" |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 322 |
323 // Check that the popup is placed full screen. | 323 // Check that the popup is placed full screen. |
324 gfx::Rect full = window_positioner()->GetPopupPosition(pop_position); | 324 gfx::Rect full = window_positioner()->GetPopupPosition(pop_position); |
325 EXPECT_EQ(gfx::Rect(work_area.x(), work_area.y(), | 325 EXPECT_EQ(gfx::Rect(work_area.x(), work_area.y(), |
326 pop_position.width(), pop_position.height()), | 326 pop_position.width(), pop_position.height()), |
327 full); | 327 full); |
328 } | 328 } |
329 | 329 |
330 } // namespace test | 330 } // namespace test |
331 } // namespace ash | 331 } // namespace ash |
OLD | NEW |