Chromium Code Reviews| Index: ui/gfx/mac/coordinate_conversion.h |
| diff --git a/ui/gfx/mac/coordinate_conversion.h b/ui/gfx/mac/coordinate_conversion.h |
| index 3deec9a94767d9aee4544bb6386048584eab827b..8fb8a5bb1548951e284a1fcc0a297079e1eebf31 100644 |
| --- a/ui/gfx/mac/coordinate_conversion.h |
| +++ b/ui/gfx/mac/coordinate_conversion.h |
| @@ -11,6 +11,7 @@ |
| namespace gfx { |
| +class Point; |
| class Rect; |
| // Convert a gfx::Rect specified with the origin at the top left of the primary |
| @@ -21,6 +22,14 @@ GFX_EXPORT NSRect ScreenRectToNSRect(const gfx::Rect& rect); |
| // display into a gfx::Rect with origin at the top left of the primary display. |
| GFX_EXPORT gfx::Rect ScreenRectFromNSRect(const NSRect& point); |
| +// Convert a gfx::Point specified with the origin at the top left of the primary |
| +// display into AppKit screen coordinates (origin at the bottom left). |
| +GFX_EXPORT NSPoint ScreenPointToNSPoint(const gfx::Point& point); |
|
tapted
2015/08/11 01:23:19
hm - these are all in namespace gfx:: already - ca
jackhou1
2015/08/11 03:09:24
Done.
|
| + |
| +// Convert an AppKit Point with origin in the bottom left of the primary |
|
tapted
2015/08/11 01:23:19
nit Point -> NSPoint
jackhou1
2015/08/11 03:09:24
Done.
|
| +// display into a gfx::Rect with origin at the top left of the primary display. |
|
tapted
2015/08/11 01:23:19
gfx::Rect -> gfx::Point
jackhou1
2015/08/11 03:09:24
Done.
|
| +GFX_EXPORT gfx::Point ScreenPointFromNSPoint(const NSPoint& point); |
| + |
| } // namespace gfx |
| #endif // UI_GFX_MAC_COORDINATE_CONVERSION_H_ |