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( |