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

Unified Diff: ui/base/win/dpi.cc

Issue 14348033: NOT FOR SUBMIT - Windows Views HiDPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moving windows code into ifdef's Created 7 years, 7 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: ui/base/win/dpi.cc
diff --git a/ui/base/win/dpi.cc b/ui/base/win/dpi.cc
index 75d63bba3d48935827702617c54e05deb0f06e18..c11da9c8e7f82e4ca0d7fabacc8198eb4323ece8 100644
--- a/ui/base/win/dpi.cc
+++ b/ui/base/win/dpi.cc
@@ -93,6 +93,12 @@ gfx::Point ScreenToDIPPoint(const gfx::Point& pixel_point) {
gfx::ScalePoint(pixel_point, 1.0f / GetDeviceScaleFactor()));
}
+gfx::Point DIPToScreenPoint(const gfx::Point& dip_point) {
+ // TODO(kevers): Switch to non-deprecated method for float to int conversions.
kevers 2013/06/03 17:28:50 Misleading comment. ToFlooredPoint is not depreca
girard 2013/06/03 22:31:55 Done.
+ return gfx::ToFlooredPoint(
+ gfx::ScalePoint(dip_point, GetDeviceScaleFactor()));
+}
+
gfx::Rect ScreenToDIPRect(const gfx::Rect& pixel_bounds) {
// TODO(kevers): Switch to non-deprecated method for float to int conversions.
return gfx::ToFlooredRectDeprecated(

Powered by Google App Engine
This is Rietveld 408576698