| 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/window_sizer/window_sizer_common_unittest.h" | 5 #include "chrome/browser/ui/window_sizer/window_sizer_common_unittest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "ash/wm/window_resizer.h" | 10 #include "ash/wm/common/window_resizer.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
| 16 #include "chrome/test/base/testing_profile.h" | 16 #include "chrome/test/base/testing_profile.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "ui/gfx/display.h" | 18 #include "ui/gfx/display.h" |
| 19 #include "ui/gfx/screen.h" | 19 #include "ui/gfx/screen.h" |
| 20 | 20 |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 { // Check that a window which hangs out of the screen get moved back in. | 456 { // Check that a window which hangs out of the screen get moved back in. |
| 457 gfx::Rect window_bounds; | 457 gfx::Rect window_bounds; |
| 458 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), | 458 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), |
| 459 gfx::Rect(), DEFAULT, NULL, | 459 gfx::Rect(), DEFAULT, NULL, |
| 460 gfx::Rect(1020, 700, 100, 100), &window_bounds); | 460 gfx::Rect(1020, 700, 100, 100), &window_bounds); |
| 461 EXPECT_EQ("924,668 100x100", window_bounds.ToString()); | 461 EXPECT_EQ("924,668 100x100", window_bounds.ToString()); |
| 462 } | 462 } |
| 463 } | 463 } |
| 464 | 464 |
| 465 #endif // defined(OS_MACOSX) | 465 #endif // defined(OS_MACOSX) |
| OLD | NEW |