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

Unified Diff: content/browser/renderer_host/dip_util.cc

Issue 10546132: Removes special handling in dip_util because mac didn't support gfx::Screen::GetMonitorNearestWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/dip_util.cc
diff --git a/content/browser/renderer_host/dip_util.cc b/content/browser/renderer_host/dip_util.cc
index 8a42e74fdb994680d45d691ebdd5756b2bf2226d..4d6fd24406fbd81934842af2e96033987a817440 100644
--- a/content/browser/renderer_host/dip_util.cc
+++ b/content/browser/renderer_host/dip_util.cc
@@ -14,16 +14,11 @@
namespace content {
float GetDIPScaleFactor(const RenderWidgetHostView* view) {
-// MacOS does not have an implementation of
-// Screen::GetMonitorNearestWindow
-// TODO(pkotwicz): Fix this. (crbug.com/129409).
-#if !defined(OS_MACOSX)
if (gfx::Screen::IsDIPEnabled()) {
gfx::Display display = gfx::Screen::GetMonitorNearestWindow(
view ? view->GetNativeView() : NULL);
return display.device_scale_factor();
}
-#endif
return 1.0f;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698