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

Unified Diff: chrome/browser/ui/views/apps/glass_app_window_frame_view_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
Index: chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
diff --git a/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc b/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
index bde1830eb0d0b4128e1692f6a8cef776b42b007d..b3e3cb5f8d78e24bcdd6c5bee6d3994787fa9d77 100644
--- a/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
+++ b/chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc
@@ -7,7 +7,7 @@
#include "base/win/windows_version.h"
#include "extensions/browser/app_window/native_app_window.h"
#include "ui/base/hit_test.h"
-#include "ui/gfx/win/dpi.h"
+#include "ui/display/win/dpi.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
@@ -30,11 +30,11 @@ GlassAppWindowFrameViewWin::~GlassAppWindowFrameViewWin() {
}
gfx::Insets GlassAppWindowFrameViewWin::GetGlassInsets() const {
- int caption_height = gfx::win::GetSystemMetricsInDIP(SM_CYSIZEFRAME) +
- gfx::win::GetSystemMetricsInDIP(SM_CYCAPTION);
+ int caption_height = display::win::GetSystemMetricsInDIP(SM_CYSIZEFRAME) +
+ display::win::GetSystemMetricsInDIP(SM_CYCAPTION);
int frame_size = base::win::GetVersion() < base::win::VERSION_WIN10
- ? gfx::win::GetSystemMetricsInDIP(SM_CXSIZEFRAME)
+ ? display::win::GetSystemMetricsInDIP(SM_CXSIZEFRAME)
: 0;
return gfx::Insets(caption_height, frame_size, frame_size, frame_size);
@@ -55,7 +55,7 @@ gfx::Insets GlassAppWindowFrameViewWin::GetClientAreaInsets() const {
} else {
// On Windows 10 we use a 1 pixel non client border which is too thin as a
// resize target. This inset extends the resize region.
- int resize_border = gfx::win::GetSystemMetricsInDIP(SM_CXSIZEFRAME);
+ int resize_border = display::win::GetSystemMetricsInDIP(SM_CXSIZEFRAME);
insets.Set(0, resize_border, resize_border, resize_border);
}
return insets;
@@ -103,7 +103,7 @@ int GlassAppWindowFrameViewWin::NonClientHitTest(const gfx::Point& point) {
: false;
// Don't allow overlapping resize handles when the window is maximized or
// fullscreen, as it can't be resized in those states.
- int resize_border = gfx::win::GetSystemMetricsInDIP(SM_CXSIZEFRAME);
+ int resize_border = display::win::GetSystemMetricsInDIP(SM_CXSIZEFRAME);
int frame_component =
GetHTComponentForFrame(point,
resize_border,

Powered by Google App Engine
This is Rietveld 408576698