#ifndef ASH_SYSTEM_IME_TRAY_IME_H_
#define ASH_SYSTEM_IME_TRAY_IME_H_
#include "ash/system/ime/ime_observer.h"
#include "ash/system/tray/system_tray_item.h"
namespace views {
class Label;
}
namespace ash {
struct IMEInfo;
namespace tray {
class IMEDefaultView;
class IMEDetailedView;
class IMENotificationView;
}
class TrayItemView;
class TrayIME : public SystemTrayItem,
public IMEObserver {
public:
explicit TrayIME(SystemTray* system_tray);
virtual ~TrayIME();
private:
void UpdateTrayLabel(const IMEInfo& info, size_t count);
virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
virtual void DestroyTrayView() OVERRIDE;
virtual void DestroyDefaultView() OVERRIDE;
virtual void DestroyDetailedView() OVERRIDE;
virtual void UpdateAfterLoginStatusChange(user::LoginStatus status) OVERRIDE;
virtual void UpdateAfterShelfAlignmentChange(
ShelfAlignment alignment) OVERRIDE;
virtual void OnIMERefresh() OVERRIDE;
TrayItemView* tray_label_;
tray::IMEDefaultView* default_;
tray::IMEDetailedView* detailed_;
DISALLOW_COPY_AND_ASSIGN(TrayIME);
};
}
#endif