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

Unified Diff: ui/gfx/rect_conversions.cc

Issue 16336027: Enable high dpi in win/views. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove some extraneous code. Created 7 years, 6 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.cc
diff --git a/ui/gfx/rect_conversions.cc b/ui/gfx/rect_conversions.cc
index ac7767b3204de84881b752a43c5c4a09d3e18744..bd980df782dc8cb714e3b2ae40cd6c7a3e29d16c 100644
--- a/ui/gfx/rect_conversions.cc
+++ b/ui/gfx/rect_conversions.cc
@@ -7,10 +7,16 @@
#include <cmath>
#include "base/logging.h"
+#include "ui/gfx/point_conversions.h"
#include "ui/gfx/safe_integer_conversions.h"
+#include "ui/gfx/size_conversions.h"
namespace gfx {
+Rect ToSizedRect(const RectF& rect) {
kevers 2013/06/06 13:32:33 See comment for header file change.
girard 2013/06/10 14:27:56 Done (reverted).
+ return Rect(ToFlooredPoint(rect.origin()),ToCeiledSize(rect.size()));
+}
+
Rect ToEnclosingRect(const RectF& rect) {
int min_x = ToFlooredInt(rect.x());
int min_y = ToFlooredInt(rect.y());

Powered by Google App Engine
This is Rietveld 408576698