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 "ash/wm/window_resizer.h" | 7 #include "ash/wm/window_resizer.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "ui/gfx/display.h" | 13 #include "ui/gfx/display.h" |
14 #include "ui/gfx/screen.h" | 14 #include "ui/gfx/screen.h" |
15 | 15 |
16 #if defined(USE_AURA) | 16 #if defined(USE_AURA) |
17 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
18 #endif | 18 #endif |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 class TestScreen : public gfx::Screen { | 22 class TestScreen : public gfx::Screen { |
23 public: | 23 public: |
24 TestScreen() {} | 24 TestScreen() {} |
25 ~TestScreen() override {} | 25 ~TestScreen() override {} |
26 | 26 |
27 // Overridden from gfx::Screen: | 27 // Overridden from gfx::Screen: |
28 bool IsDIPEnabled() override { | |
29 NOTREACHED(); | |
30 return false; | |
scottmg
2014/10/23 02:51:20
This is the only non-"return true".
| |
31 } | |
32 | |
33 gfx::Point GetCursorScreenPoint() override { | 28 gfx::Point GetCursorScreenPoint() override { |
34 NOTREACHED(); | 29 NOTREACHED(); |
35 return gfx::Point(); | 30 return gfx::Point(); |
36 } | 31 } |
37 | 32 |
38 gfx::NativeWindow GetWindowUnderCursor() override { | 33 gfx::NativeWindow GetWindowUnderCursor() override { |
39 NOTREACHED(); | 34 NOTREACHED(); |
40 return NULL; | 35 return NULL; |
41 } | 36 } |
42 | 37 |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
447 { // Check that a window which hangs out of the screen get moved back in. | 442 { // Check that a window which hangs out of the screen get moved back in. |
448 gfx::Rect window_bounds; | 443 gfx::Rect window_bounds; |
449 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), | 444 GetWindowBounds(p1024x768, p1024x768, gfx::Rect(), gfx::Rect(), |
450 gfx::Rect(), DEFAULT, NULL, | 445 gfx::Rect(), DEFAULT, NULL, |
451 gfx::Rect(1020, 700, 100, 100), &window_bounds); | 446 gfx::Rect(1020, 700, 100, 100), &window_bounds); |
452 EXPECT_EQ("924,668 100x100", window_bounds.ToString()); | 447 EXPECT_EQ("924,668 100x100", window_bounds.ToString()); |
453 } | 448 } |
454 } | 449 } |
455 | 450 |
456 #endif // defined(OS_MACOSX) | 451 #endif // defined(OS_MACOSX) |
OLD | NEW |