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

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

Issue 1889423002: Move Windows DPI Code from ui/gfx to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a TODO Created 4 years, 8 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_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 64ddccaff3a5946f1bd00dca5bc888c1ede50c47..eb1571b45fe5534579eb7de3cf36a98639acf64f 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -91,8 +91,8 @@
#if defined(OS_WIN)
#include "base/win/win_util.h"
+#include "ui/display/win/dpi.h"
#include "ui/gfx/platform_font_win.h"
-#include "ui/gfx/win/dpi.h"
#endif
using base::TimeDelta;
@@ -154,13 +154,13 @@ void GetWindowsSpecificPrefs(RendererPreferences* prefs) {
metrics.lfMessageFont);
prefs->vertical_scroll_bar_width_in_dips =
- gfx::win::GetSystemMetricsInDIP(SM_CXVSCROLL);
+ display::win::GetSystemMetricsInDIP(SM_CXVSCROLL);
prefs->horizontal_scroll_bar_height_in_dips =
- gfx::win::GetSystemMetricsInDIP(SM_CYHSCROLL);
+ display::win::GetSystemMetricsInDIP(SM_CYHSCROLL);
prefs->arrow_bitmap_height_vertical_scroll_bar_in_dips =
- gfx::win::GetSystemMetricsInDIP(SM_CYVSCROLL);
+ display::win::GetSystemMetricsInDIP(SM_CYVSCROLL);
prefs->arrow_bitmap_width_horizontal_scroll_bar_in_dips =
- gfx::win::GetSystemMetricsInDIP(SM_CXHSCROLL);
+ display::win::GetSystemMetricsInDIP(SM_CXHSCROLL);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698