Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: ui/gfx/mac/coordinate_conversion.h

Issue 1280673003: [Mac] Enable MacViews site settings bubble behind --enable-mac-views-dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enabledialogs
Patch Set: Sync Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698