#include "extensions/browser/app_window/size_constraints.h"
#include <algorithm>
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/rounded_corners_f.h"
#include "ui/gfx/geometry/size.h"
namespace extensions {
SizeConstraints::SizeConstraints()
: … { … }
SizeConstraints::SizeConstraints(const gfx::Size& min_size,
const gfx::Size& max_size)
: … { … }
SizeConstraints::~SizeConstraints() = default;
gfx::Size SizeConstraints::GetMinimumSizeSupportingRoundedCorners(
const gfx::RoundedCornersF& radii) { … }
gfx::Size SizeConstraints::AddWindowToConstraints(
const gfx::Size& size_constraints,
const gfx::Insets& frame_insets,
const gfx::RoundedCornersF& window_radii) { … }
gfx::Size SizeConstraints::ClampSize(gfx::Size size) const { … }
bool SizeConstraints::HasMinimumSize() const { … }
bool SizeConstraints::HasMaximumSize() const { … }
bool SizeConstraints::HasFixedSize() const { … }
gfx::Size SizeConstraints::GetMinimumSize() const { … }
gfx::Size SizeConstraints::GetMaximumSize() const { … }
void SizeConstraints::set_minimum_size(const gfx::Size& min_size) { … }
void SizeConstraints::set_maximum_size(const gfx::Size& max_size) { … }
}