#ifndef ASH_SYSTEM_STATUS_AREA_WIDGET_H_
#define ASH_SYSTEM_STATUS_AREA_WIDGET_H_
#include "ash/ash_export.h"
#include "ash/shelf/shelf_types.h"
#include "ash/system/user/login_status.h"
#include "ui/views/widget/widget.h"
namespace ash {
class OverviewButtonTray;
class ShellDelegate;
class StatusAreaWidgetDelegate;
class SystemTray;
class WebNotificationTray;
#if defined(OS_CHROMEOS)
class LogoutButtonTray;
class VirtualKeyboardTray;
#endif
class ASH_EXPORT StatusAreaWidget : public views::Widget {
public:
static const char kNativeViewName[];
explicit StatusAreaWidget(aura::Window* status_container);
virtual ~StatusAreaWidget();
void CreateTrayViews();
void Shutdown();
void SetShelfAlignment(ShelfAlignment alignment);
void SetHideSystemNotifications(bool hide);
void UpdateAfterLoginStatusChange(user::LoginStatus login_status);
StatusAreaWidgetDelegate* status_area_widget_delegate() {
return status_area_widget_delegate_;
}
SystemTray* system_tray() { return system_tray_; }
WebNotificationTray* web_notification_tray() {
return web_notification_tray_;
}
OverviewButtonTray* overview_button_tray() {
return overview_button_tray_;
}
user::LoginStatus login_status() const { return login_status_; }
bool ShouldShowShelf() const;
bool IsMessageBubbleShown() const;
virtual void OnNativeWidgetActivationChanged(bool active) OVERRIDE;
private:
void AddSystemTray();
void AddWebNotificationTray();
#if defined(OS_CHROMEOS)
void AddLogoutButtonTray();
void AddVirtualKeyboardTray();
#endif
void AddOverviewButtonTray();
StatusAreaWidgetDelegate* status_area_widget_delegate_;
OverviewButtonTray* overview_button_tray_;
SystemTray* system_tray_;
WebNotificationTray* web_notification_tray_;
#if defined(OS_CHROMEOS)
LogoutButtonTray* logout_button_tray_;
VirtualKeyboardTray* virtual_keyboard_tray_;
#endif
user::LoginStatus login_status_;
DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget);
};
}
#endif