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

Unified Diff: chrome/browser/ui/views/elevation_icon_setter.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: chrome/browser/ui/views/elevation_icon_setter.cc
diff --git a/chrome/browser/ui/views/elevation_icon_setter.cc b/chrome/browser/ui/views/elevation_icon_setter.cc
index 7ad062fa22b25cbc7dcb8b82d693c88f339d27ca..9e6514266235e925575e4d5ff9421f1e23b9f8bf 100644
--- a/chrome/browser/ui/views/elevation_icon_setter.cc
+++ b/chrome/browser/ui/views/elevation_icon_setter.cc
@@ -15,8 +15,8 @@
#include <shellapi.h>
#include "base/win/win_util.h"
#include "base/win/windows_version.h"
+#include "ui/display/win/dpi.h"
#include "ui/gfx/icon_util.h"
-#include "ui/gfx/win/dpi.h"
#endif
@@ -81,7 +81,7 @@ void ElevationIconSetter::SetButtonIcon(const base::Closure& callback,
#if defined(OS_WIN)
// Windows gives us back a correctly-scaled image for the current DPI, so
// mark this image as having been scaled for the current DPI already.
- device_scale_factor = gfx::GetDPIScale();
+ device_scale_factor = display::win::GetDPIScale();
#endif
button_->SetImage(
views::Button::STATE_NORMAL,

Powered by Google App Engine
This is Rietveld 408576698