Chromium Code Reviews| Index: ui/gfx/mac/coordinate_conversion.mm |
| diff --git a/ui/gfx/mac/coordinate_conversion.mm b/ui/gfx/mac/coordinate_conversion.mm |
| index b2c41a455d6c96c4aa18e2928937c1c93f3cdb45..c2fdb94e950926dd58f32230fca3cf711f26377c 100644 |
| --- a/ui/gfx/mac/coordinate_conversion.mm |
| +++ b/ui/gfx/mac/coordinate_conversion.mm |
| @@ -34,4 +34,12 @@ gfx::Rect ScreenRectFromNSRect(const NSRect& rect) { |
| rect.size.height); |
| } |
| +NSPoint ScreenPointToNSPoint(const gfx::Point& point) { |
|
tapted
2015/08/11 04:01:01
nit: remove gfx::
jackhou1
2015/08/11 06:40:56
Done.
|
| + return NSMakePoint(point.x(), PrimaryDisplayHeight() - point.y()); |
| +} |
| + |
| +gfx::Point ScreenPointFromNSPoint(const NSPoint& point) { |
|
tapted
2015/08/11 04:01:01
nit: remove gfx::
jackhou1
2015/08/11 06:40:56
Done.
|
| + return gfx::Point(point.x, PrimaryDisplayHeight() - point.y); |
|
tapted
2015/08/11 04:01:01
nit: remove gfx::
jackhou1
2015/08/11 06:40:56
Done.
|
| +} |
| + |
| } // namespace gfx |