#ifndef ASH_SYSTEM_TRAY_UPDATE_H_
#define ASH_SYSTEM_TRAY_UPDATE_H_
#include "ash/system/tray/tray_image_item.h"
#include "ash/system/user/update_observer.h"
#include "base/memory/scoped_ptr.h"
namespace views {
class View;
}
namespace ash {
namespace tray {
class UpdateNagger;
}
class TrayUpdate : public TrayImageItem,
public UpdateObserver {
public:
explicit TrayUpdate(SystemTray* system_tray);
virtual ~TrayUpdate();
private:
virtual bool GetInitialVisibility() OVERRIDE;
virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
virtual void DestroyDetailedView() OVERRIDE;
virtual void OnUpdateRecommended(UpdateSeverity severity) OVERRIDE;
scoped_ptr<tray::UpdateNagger> nagger_;
UpdateObserver::UpdateSeverity severity_;
DISALLOW_COPY_AND_ASSIGN(TrayUpdate);
};
}
#endif