| 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..3b75485357b72d3ad6aff7a1e220000bebd30201 100644
|
| --- a/ui/gfx/mac/coordinate_conversion.h
|
| +++ b/ui/gfx/mac/coordinate_conversion.h
|
| @@ -11,15 +11,24 @@
|
|
|
| namespace gfx {
|
|
|
| +class Point;
|
| class Rect;
|
|
|
| // Convert a gfx::Rect specified with the origin at the top left of the primary
|
| // display into AppKit secreen coordinates (origin at the bottom left).
|
| -GFX_EXPORT NSRect ScreenRectToNSRect(const gfx::Rect& rect);
|
| +GFX_EXPORT NSRect ScreenRectToNSRect(const Rect& rect);
|
|
|
| // Convert an AppKit NSRect with origin in the bottom left of the primary
|
| // display into a gfx::Rect with origin at the top left of the primary display.
|
| -GFX_EXPORT gfx::Rect ScreenRectFromNSRect(const NSRect& point);
|
| +GFX_EXPORT 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 Point& point);
|
| +
|
| +// Convert an AppKit NSPoint with origin in the bottom left of the primary
|
| +// display into a gfx::Point with origin at the top left of the primary display.
|
| +GFX_EXPORT Point ScreenPointFromNSPoint(const NSPoint& point);
|
|
|
| } // namespace gfx
|
|
|
|
|