#ifndef UI_VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_
#define UI_VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_
#include "ui/base/metadata/metadata_header_macros.h"
#include "ui/base/models/menu_separator_types.h"
#include "ui/views/view.h"
#include "ui/views/views_export.h"
namespace views {
class VIEWS_EXPORT MenuSeparator : public View {
public:
METADATA_HEADER(MenuSeparator);
explicit MenuSeparator(
ui::MenuSeparatorType type = ui::MenuSeparatorType::NORMAL_SEPARATOR);
MenuSeparator(const MenuSeparator&) = delete;
MenuSeparator& operator=(const MenuSeparator&) = delete;
void OnPaint(gfx::Canvas* canvas) override;
gfx::Size CalculatePreferredSize() const override;
ui::MenuSeparatorType GetType() const;
void SetType(ui::MenuSeparatorType type);
private:
ui::MenuSeparatorType type_;
};
}
#endif