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

Unified Diff: ui/gfx/rect_conversions.h

Issue 14348033: NOT FOR SUBMIT - Windows Views HiDPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rollback empty changes. Created 7 years, 8 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_conversions.h
diff --git a/ui/gfx/rect_conversions.h b/ui/gfx/rect_conversions.h
index 7c971b3eaa12002d17b42ced90439315c63509b8..f17bd43825e8d220a8d6f2d73cb986c2deb23fca 100644
--- a/ui/gfx/rect_conversions.h
+++ b/ui/gfx/rect_conversions.h
@@ -10,6 +10,9 @@
namespace gfx {
+// Returns a rect with a truncated origin, while maintaining the size.
+UI_EXPORT Rect ToSizedRect(const RectF& rect);
+
// Returns the smallest Rect that encloses the given RectF.
UI_EXPORT Rect ToEnclosingRect(const RectF& rect);

Powered by Google App Engine
This is Rietveld 408576698