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

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

Issue 659883002: Enable hidpi on Linux, refactor a bit on Windows to share Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index a7eb8d667baec6cc472c40178036fbbd5c092b27..a7fc1d4203b2828ee7aff968d4f98481884a3abc 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -69,6 +69,7 @@
#include "ui/events/gestures/gesture_recognizer.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/display.h"
+#include "ui/gfx/dpi.h"
#include "ui/gfx/rect_conversions.h"
#include "ui/gfx/screen.h"
#include "ui/gfx/size_conversions.h"
@@ -86,7 +87,6 @@
#include "content/common/plugin_constants_win.h"
#include "ui/base/win/hidden_window.h"
#include "ui/gfx/gdi_util.h"
-#include "ui/gfx/win/dpi.h"
#endif
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
@@ -1128,7 +1128,7 @@ gfx::Rect RenderWidgetHostViewAura::GetBoundsInRootWindow() {
}
}
- bounds = gfx::win::ScreenToDIPRect(bounds);
+ bounds = gfx::ScreenToDIPRect(bounds);
#endif
return bounds;

Powered by Google App Engine
This is Rietveld 408576698