#ifndef ASH_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_
#define ASH_SYSTEM_TRAY_TRAY_BAR_BUTTON_WITH_TITLE_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "ui/views/controls/button/custom_button.h"
namespace views {
class Label;
}
namespace ash {
class TrayBarButtonWithTitle : public views::CustomButton {
public:
TrayBarButtonWithTitle(views::ButtonListener* listener,
int title_id,
int width);
virtual ~TrayBarButtonWithTitle();
void UpdateButton(bool control_on);
private:
class TrayBarButton;
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual void Layout() OVERRIDE;
TrayBarButton* image_;
views::Label* title_;
int width_;
int image_height_;
DISALLOW_COPY_AND_ASSIGN(TrayBarButtonWithTitle);
};
}
#endif