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

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: Addressed nit Created 6 years, 9 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 | « apps/app_window.cc ('k') | apps/size_constraints.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/size_constraints.h
diff --git a/apps/size_constraints.h b/apps/size_constraints.h
index 1af269208dea9ef8116652f6df757c2068fe8a9e..353037bb46fd0e72fbf36c95449905446fecd97d 100644
--- a/apps/size_constraints.h
+++ b/apps/size_constraints.h
@@ -7,6 +7,10 @@
#include "ui/gfx/geometry/size.h"
+namespace gfx {
+class Insets;
+}
+
namespace apps {
class SizeConstraints {
@@ -19,6 +23,10 @@ class SizeConstraints {
SizeConstraints(const gfx::Size& min_size, const gfx::Size& max_size);
~SizeConstraints();
+ // Adds frame insets to a size constraint.
+ static gfx::Size AddFrameToConstraints(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;
« no previous file with comments | « apps/app_window.cc ('k') | apps/size_constraints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698