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

Unified Diff: ui/gfx/point_conversions.h

Issue 22891016: Add support for rect-based event targeting in views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WIP 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/point_conversions.h
diff --git a/ui/gfx/point_conversions.h b/ui/gfx/point_conversions.h
index 9467a9231dcd453eadd1a11c230d2a980f8abe78..6fc042cf918f8a7bfb944c4c19eadf5b32e17cd7 100644
--- a/ui/gfx/point_conversions.h
+++ b/ui/gfx/point_conversions.h
@@ -7,12 +7,17 @@
#include "ui/gfx/point.h"
#include "ui/gfx/point_f.h"
+#include "ui/gfx/rect.h"
+#include "ui/gfx/rect_f.h"
namespace gfx {
// Returns a Point with each component from the input PointF floored.
UI_EXPORT Point ToFlooredPoint(const PointF& point);
+// Returns a Rect with each component from the input RectF floored.
+UI_EXPORT Rect ToFlooredRect(const RectF& rect);
danakj 2013/09/05 19:10:07 not lgtm on this. See rect_conversions for the var
tdanderson 2013/09/09 22:15:39 Done.
+
// Returns a Point with each component from the input PointF ceiled.
UI_EXPORT Point ToCeiledPoint(const PointF& point);

Powered by Google App Engine
This is Rietveld 408576698