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

Side by Side Diff: chrome/browser/extensions/api/system_display/system_display_apitest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/debug/leak_annotations.h" 5 #include "base/debug/leak_annotations.h"
6 #include "base/strings/string_number_conversions.h" 6 #include "base/strings/string_number_conversions.h"
7 #include "chrome/browser/extensions/extension_apitest.h" 7 #include "chrome/browser/extensions/extension_apitest.h"
8 #include "chrome/browser/extensions/extension_function_test_utils.h" 8 #include "chrome/browser/extensions/extension_function_test_utils.h"
9 #include "extensions/browser/api/system_display/display_info_provider.h" 9 #include "extensions/browser/api/system_display/display_info_provider.h"
10 #include "extensions/browser/api/system_display/system_display_api.h" 10 #include "extensions/browser/api/system_display/system_display_api.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 gfx::Rect work_area(0, 0, 960, 720); 66 gfx::Rect work_area(0, 0, 960, 720);
67 gfx::Display display(i, bounds); 67 gfx::Display display(i, bounds);
68 display.set_work_area(work_area); 68 display.set_work_area(work_area);
69 displays_.push_back(display); 69 displays_.push_back(display);
70 } 70 }
71 } 71 }
72 ~MockScreen() override {} 72 ~MockScreen() override {}
73 73
74 protected: 74 protected:
75 // Overridden from gfx::Screen: 75 // Overridden from gfx::Screen:
76 bool IsDIPEnabled() override { return true; }
77 gfx::Point GetCursorScreenPoint() override { return gfx::Point(); } 76 gfx::Point GetCursorScreenPoint() override { return gfx::Point(); }
78 gfx::NativeWindow GetWindowUnderCursor() override { 77 gfx::NativeWindow GetWindowUnderCursor() override {
79 return gfx::NativeWindow(); 78 return gfx::NativeWindow();
80 } 79 }
81 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override { 80 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override {
82 return gfx::NativeWindow(); 81 return gfx::NativeWindow();
83 } 82 }
84 int GetNumDisplays() const override { return displays_.size(); } 83 int GetNumDisplays() const override { return displays_.size(); }
85 std::vector<gfx::Display> GetAllDisplays() const override { 84 std::vector<gfx::Display> GetAllDisplays() const override {
86 return displays_; 85 return displays_;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 EXPECT_EQ(1, utils::GetInteger(overscan, "left")); 289 EXPECT_EQ(1, utils::GetInteger(overscan, "left"));
291 EXPECT_EQ(2, utils::GetInteger(overscan, "top")); 290 EXPECT_EQ(2, utils::GetInteger(overscan, "top"));
292 EXPECT_EQ(3, utils::GetInteger(overscan, "right")); 291 EXPECT_EQ(3, utils::GetInteger(overscan, "right"));
293 EXPECT_EQ(4, utils::GetInteger(overscan, "bottom")); 292 EXPECT_EQ(4, utils::GetInteger(overscan, "bottom"));
294 293
295 EXPECT_EQ("display_id", provider_->GetSetInfoDisplayId()); 294 EXPECT_EQ("display_id", provider_->GetSetInfoDisplayId());
296 } 295 }
297 #endif // defined(OS_CHROMEOS) 296 #endif // defined(OS_CHROMEOS)
298 297
299 } // namespace extensions 298 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/android/shortcut_helper_unittest.cc ('k') | chrome/browser/ui/window_sizer/window_sizer_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698