ash/utility/README.md
Here is an example arc curve corner:
An arc curve corner is a corner shape consisting of arcs and lines. It can be specified with the following parameters:
NOTE: A valid arc curve corner must satisfy
GetArcCurveRectPath() accepts three parameters:
Typically, we clip a view with the path returned by GetArcCurveRectPath()
in the overridden OnBoundsChanged() function. For example:
class ViewWithArcCurveCorner : public views::View {
// ...
// views::View:
void OnBoundsChanged(const gfx::Rect& previous_bounds) override {
SetClipPath(GetArcCurveRectPath(
GetContentsBounds().size(),
ArcCurveCorner(/*parameters...*/),
kCornerRadius));
}
};