#ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_BUTTON_H_
#define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_BUTTON_H_
#include "ui/gfx/image/image_skia.h"
#include "ui/views/controls/button/custom_button.h"
#include "ui/views/painter.h"
#include "ui/views/view.h"
namespace views {
class ImageView;
class Label;
}
namespace message_center {
class NotificationButton : public views::CustomButton {
public:
NotificationButton(views::ButtonListener* listener);
virtual ~NotificationButton();
void SetIcon(const gfx::ImageSkia& icon);
void SetTitle(const base::string16& title);
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual int GetHeightForWidth(int width) OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual void OnFocus() OVERRIDE;
virtual void OnBlur() OVERRIDE;
virtual void StateChanged() OVERRIDE;
private:
views::ImageView* icon_;
views::Label* title_;
scoped_ptr<views::Painter> focus_painter_;
DISALLOW_COPY_AND_ASSIGN(NotificationButton);
};
}
#endif