OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_GFX_MAC_POINT_UTILS_H_ |
| 6 #define UI_GFX_MAC_POINT_UTILS_H_ |
| 7 |
| 8 #include "ui/gfx/gfx_export.h" |
| 9 |
| 10 typedef struct _NSPoint NSPoint; |
| 11 typedef struct _NSRect NSRect; |
| 12 |
| 13 namespace gfx { |
| 14 |
| 15 class Point; |
| 16 class Rect; |
| 17 |
| 18 GFX_EXPORT NSPoint ScreenPointToNSPoint(const gfx::Point& point); |
| 19 GFX_EXPORT gfx::Point ScreenPointFromNSPoint(const NSPoint& point); |
| 20 GFX_EXPORT NSRect ScreenRectToNSRect(const gfx::Rect& rect); |
| 21 GFX_EXPORT gfx::Rect ScreenRectFromNSRect(const NSRect& point); |
| 22 |
| 23 } // namespace gfx |
| 24 |
| 25 #endif // UI_GFX_MAC_POINT_UTILS_H_ |
OLD | NEW |