| Index: ui/base/win/dpi.h
|
| diff --git a/ui/base/win/dpi.h b/ui/base/win/dpi.h
|
| index 930922a0c4ad21d4c0d6c474a2bca49b0fb888aa..99252c71d7f0e4af4c7d5a791e7df4fdce980bc6 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,24 @@ UI_EXPORT bool IsInHighDPIMode();
|
|
|
| UI_EXPORT void EnableHighDPISupport();
|
|
|
| +// TODO(kevers|girard): Move above methods into win namespace.
|
| +
|
| +namespace win {
|
| +
|
| +UI_EXPORT float GetDeviceScaleFactor();
|
| +
|
| +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_
|
|
|