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

Unified Diff: ui/gfx/rect_f.h

Issue 24883002: Uses and returns the fractional width in text eliding (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win bots Created 7 years, 3 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/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);

Powered by Google App Engine
This is Rietveld 408576698