Chromium Code Reviews| Index: ui/base/win/dpi.h |
| diff --git a/ui/base/win/dpi.h b/ui/base/win/dpi.h |
| index 930922a0c4ad21d4c0d6c474a2bca49b0fb888aa..2e70d78b66d232472a422002f5524eaacda33d05 100644 |
| --- a/ui/base/win/dpi.h |
| +++ b/ui/base/win/dpi.h |
| @@ -5,6 +5,8 @@ |
| #ifndef UI_BASE_WIN_DPI_H_ |
| #define UI_BASE_WIN_DPI_H_ |
| +#include "ui/gfx/point.h" |
| +#include "ui/gfx/rect.h" |
| #include "ui/gfx/size.h" |
| #include "ui/base/ui_export.h" |
| @@ -20,6 +22,23 @@ UI_EXPORT bool IsInHighDPIMode(); |
| UI_EXPORT void EnableHighDPISupport(); |
| +// TODO(kevers,girard): Should above methods be inside a win namespace since |
| +// they are also Windows specific. |
|
pkotwicz
2013/01/23 19:39:23
Nit.
How about: "TODO(kevers|girard): Move above m
kevers
2013/01/23 21:37:00
Done.
|
| + |
| +namespace win { |
| + |
| +UI_EXPORT gfx::Point ScreenToDIPPoint(const gfx::Point& pixel_point); |
| + |
| +UI_EXPORT gfx::Rect ScreenToDIPRect(const gfx::Rect& pixel_bounds); |
| + |
| +UI_EXPORT gfx::Rect DIPToScreenRect(const gfx::Rect& dip_bounds); |
| + |
| +UI_EXPORT gfx::Size ScreenToDIPSize(const gfx::Size& size_in_pixels); |
| + |
| +UI_EXPORT gfx::Size DIPToScreenSize(const gfx::Size& dip_size); |
| + |
| +} // namespace win |
| + |
| } // namespace ui |
| #endif // UI_BASE_WIN_DPI_H_ |