Index: ui/gfx/rect_f.h |
diff --git a/ui/gfx/rect_f.h b/ui/gfx/rect_f.h |
index 09de529a6278eb46adeaf6b9bd5ba556b9b8a74c..42b9cfba0ad3992c3c35c7ff389facb6ff567366 100644 |
--- a/ui/gfx/rect_f.h |
+++ b/ui/gfx/rect_f.h |
@@ -12,6 +12,12 @@ |
#include "ui/gfx/size_f.h" |
#include "ui/gfx/vector2d_f.h" |
+#if defined(OS_IOS) |
+#include <CoreGraphics/CoreGraphics.h> |
+#elif defined(OS_MACOSX) |
+#include <ApplicationServices/ApplicationServices.h> |
+#endif |
+ |
namespace gfx { |
class InsetsF; |
@@ -42,6 +48,11 @@ class GFX_EXPORT RectF |
~RectF() {} |
+#if defined(OS_MACOSX) |
+ // Construct an equivalent CoreGraphics object. |
+ CGRect ToCGRect() const; |
msw
2013/10/01 02:42:48
I don't see this used anywhere in your patch; remo
jianli
2013/10/01 18:56:50
Indeed it is needed in autofill_popup_view_cocoa.m
|
+#endif |
+ |
// Scales the rectangle by |scale|. |
void Scale(float scale) { |
Scale(scale, scale); |