Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/browser/ui/window_sizer/window_sizer_common_unittest.cc

Issue 672823002: Remove IsDIPEnabled from Screen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dpi-cleanup-1
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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;
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698