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

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: Revert spurious changes, plus some corrections. Created 7 years, 7 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
« no previous file with comments | « ui/gfx/font.cc ('k') | ui/gfx/rect_conversions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect_conversions.h
diff --git a/ui/gfx/rect_conversions.h b/ui/gfx/rect_conversions.h
index 854fb6ea3922d38956b5f7cd2cdb6c5a342dbda7..56011fc861c4331c7c0387321ba5b1134cd47b24 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);
« no previous file with comments | « ui/gfx/font.cc ('k') | ui/gfx/rect_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698