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

Unified Diff: apps/size_constraints.h

Issue 186343002: Create windows for new app window bounds API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self nit: comment Created 6 years, 10 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: apps/size_constraints.h
diff --git a/apps/size_constraints.h b/apps/size_constraints.h
index 1af269208dea9ef8116652f6df757c2068fe8a9e..18c99bb0a5236f50a61f11c6ee12be8e82bd7bbb 100644
--- a/apps/size_constraints.h
+++ b/apps/size_constraints.h
@@ -6,6 +6,7 @@
#define APPS_SIZE_CONSTRAINTS_H_
#include "ui/gfx/geometry/size.h"
+#include "ui/gfx/insets.h"
tapted 2014/03/05 03:14:03 nit: since it's not a member, this can be forward-
namespace apps {
@@ -19,6 +20,10 @@ class SizeConstraints {
SizeConstraints(const gfx::Size& min_size, const gfx::Size& max_size);
~SizeConstraints();
+ // Applies frame insets to a size constraint.
+ static gfx::Size InsetConstraints(const gfx::Size& size_constraints,
+ const gfx::Insets& frame_insets);
+
// Returns the bounds with its size clamped to the min/max size.
gfx::Size ClampSize(gfx::Size size) const;

Powered by Google App Engine
This is Rietveld 408576698