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

Unified Diff: chrome/browser/ui/views/frame/minimize_button_metrics_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 | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
diff --git a/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc b/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
index 7d161f31974bd7f88e5cd8e32c42894f578f6cf4..986f5e2d855a68e6145e1371767869d93b1a99c3 100644
--- a/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
+++ b/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
@@ -7,7 +7,7 @@
#include "base/logging.h"
#include "base/i18n/rtl.h"
#include "ui/base/win/shell.h"
-#include "ui/gfx/win/dpi.h"
+#include "ui/display/win/dpi.h"
namespace {
@@ -32,7 +32,7 @@ int GetMinimizeButtonOffsetForWindow(HWND hwnd) {
// returning it.
POINT minimize_button_corner = { titlebar_info.rgrect[2].left, 0 };
MapWindowPoints(HWND_DESKTOP, hwnd, &minimize_button_corner, 1);
- return minimize_button_corner.x / gfx::GetDPIScale();
+ return minimize_button_corner.x / display::win::GetDPIScale();
}
} // namespace
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698