#ifndef ASH_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
#define ASH_SYSTEM_TRAY_TRAY_ITEM_MORE_H_
#include "ash/system/tray/actionable_view.h"
#include "ui/views/view.h"
namespace views {
class ImageView;
class Label;
class View;
}
namespace ash {
class SystemTrayItem;
class TrayItemMore : public ActionableView {
public:
TrayItemMore(SystemTrayItem* owner, bool show_more);
virtual ~TrayItemMore();
SystemTrayItem* owner() const { return owner_; }
void SetLabel(const base::string16& label);
void SetImage(const gfx::ImageSkia* image_skia);
void SetAccessibleName(const base::string16& name);
protected:
void ReplaceIcon(views::View* view);
private:
virtual bool PerformAction(const ui::Event& event) OVERRIDE;
virtual void Layout() OVERRIDE;
virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
SystemTrayItem* owner_;
bool show_more_;
views::ImageView* icon_;
views::Label* label_;
views::ImageView* more_;
base::string16 accessible_name_;
DISALLOW_COPY_AND_ASSIGN(TrayItemMore);
};
}
#endif