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

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: Fixed Other Unit Tests - Moved Inner Classes Outside Created 4 years, 11 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 c32dba6c0b99de1ad7197edce1dee7db4598ccb0..5c4a821c18a1d709c5ea8ea73258b20a40d571b5 100644
--- a/chrome/browser/ui/views/tabs/window_finder_win.cc
+++ b/chrome/browser/ui/views/tabs/window_finder_win.cc
@@ -11,7 +11,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"
@@ -132,7 +132,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());
}
@@ -209,7 +209,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