#ifndef ASH_SYSTEM_UNIFIED_CUSTOM_SHAPE_BUTTON_H_
#define ASH_SYSTEM_UNIFIED_CUSTOM_SHAPE_BUTTON_H_
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/views/controls/button/image_button.h"
namespace ash {
class CustomShapeButton : public views::ImageButton {
public:
METADATA_HEADER(CustomShapeButton);
explicit CustomShapeButton(PressedCallback callback);
CustomShapeButton(const CustomShapeButton&) = delete;
CustomShapeButton& operator=(const CustomShapeButton&) = delete;
~CustomShapeButton() override;
virtual SkPath CreateCustomShapePath(const gfx::Rect& bounds) const = 0;
void PaintButtonContents(gfx::Canvas* canvas) override;
protected:
void PaintCustomShapePath(gfx::Canvas* canvas);
};
}
#endif