#ifndef ASH_STYLE_ROUNDED_CONTAINER_H_
#define ASH_STYLE_ROUNDED_CONTAINER_H_
#include "ash/ash_export.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/views/view.h"
namespace gfx {
class RoundedCornersF;
}
namespace ash {
class ASH_EXPORT RoundedContainer : public views::View {
public:
METADATA_HEADER(RoundedContainer);
static constexpr gfx::Insets kBorderInsets = gfx::Insets::VH(8, 0);
enum class Behavior { kNotRounded, kTopRounded, kBottomRounded, kAllRounded };
explicit RoundedContainer(Behavior corner_behavior = Behavior::kAllRounded);
RoundedContainer(const RoundedContainer& other) = delete;
RoundedContainer& operator=(const RoundedContainer& other) = delete;
~RoundedContainer() override;
void SetBehavior(Behavior behavior);
void SetBorderInsets(const gfx::Insets& insets);
private:
gfx::RoundedCornersF GetRoundedCorners();
Behavior corner_behavior_;
};
}
#endif