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

Unified Diff: chrome/browser/ui/views/tabs/window_finder_win.cc

Issue 1426933002: Refactor Windows DPI Point, Rect, and Size for Multiple Monitor DPI Awareness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/tabs/window_finder_win.cc
diff --git a/chrome/browser/ui/views/tabs/window_finder_win.cc b/chrome/browser/ui/views/tabs/window_finder_win.cc
index 2596c1888f35fef411b22f461b05a9ef1c421ef9..07116823afd3a23438bd8f8846c7b158f7d67930 100644
--- a/chrome/browser/ui/views/tabs/window_finder_win.cc
+++ b/chrome/browser/ui/views/tabs/window_finder_win.cc
@@ -8,7 +8,7 @@
#include "base/win/windows_version.h"
#include "ui/aura/window.h"
#include "ui/gfx/screen.h"
-#include "ui/gfx/win/dpi.h"
+#include "ui/gfx/screen_win.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
#include "ui/views/win/hwnd_util.h"
@@ -129,7 +129,7 @@ class TopMostFinder : public BaseWindowFinder {
target_(window),
is_top_most_(false),
tmp_region_(CreateRectRgn(0, 0, 0, 0)) {
- screen_loc_ = gfx::win::DIPToScreenPoint(screen_loc);
+ screen_loc_ = gfx::ScreenWin::DIPToScreenPoint(screen_loc);
EnumWindows(WindowCallbackProc, as_lparam());
}
@@ -229,7 +229,7 @@ class LocalProcessWindowFinder : public BaseWindowFinder {
CHECK(SUCCEEDED(virtual_desktop_manager_.CreateInstance(
__uuidof(VirtualDesktopManager))));
}
- screen_loc_ = gfx::win::DIPToScreenPoint(screen_loc);
+ screen_loc_ = gfx::ScreenWin::DIPToScreenPoint(screen_loc);
EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, as_lparam());
}

Powered by Google App Engine
This is Rietveld 408576698