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

Unified Diff: ui/base/l10n/l10n_util_win.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
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/l10n/l10n_util_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util_win.cc
diff --git a/ui/base/l10n/l10n_util_win.cc b/ui/base/l10n/l10n_util_win.cc
index d86e02fee510b72b93fd0f0f75777d883404af2d..1e1da3bf6931a39f7b26acd7105973ef44121c07 100644
--- a/ui/base/l10n/l10n_util_win.cc
+++ b/ui/base/l10n/l10n_util_win.cc
@@ -17,8 +17,8 @@
#include "base/win/i18n.h"
#include "base/win/windows_version.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/display/win/dpi.h"
#include "ui/gfx/display.h"
-#include "ui/gfx/win/dpi.h"
#include "ui/strings/grit/app_locale_settings.h"
namespace {
@@ -155,7 +155,7 @@ bool NeedOverrideDefaultUIFont(base::string16* override_font_family,
}
void AdjustUIFont(LOGFONT* logfont) {
- float dpi_scale = gfx::GetDPIScale();
+ float dpi_scale = display::win::GetDPIScale();
if (gfx::Display::HasForceDeviceScaleFactor()) {
// If the scale is forced, we don't need to adjust it here.
dpi_scale = 1.0f;
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/l10n/l10n_util_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698