#ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUBBLE_H_
#define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUBBLE_H_
#include "base/memory/weak_ptr.h"
#include "ui/message_center/message_center_export.h"
#include "ui/message_center/views/message_bubble_base.h"
#include "ui/views/widget/widget_observer.h"
namespace message_center {
class MessageCenterView;
class MESSAGE_CENTER_EXPORT MessageCenterBubble
: public MessageBubbleBase,
public views::WidgetObserver,
public base::SupportsWeakPtr<MessageCenterBubble> {
public:
MessageCenterBubble(MessageCenter* message_center,
MessageCenterTray* tray,
bool first_item_has_no_margin);
virtual ~MessageCenterBubble();
void SetSettingsVisible();
virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
virtual views::TrayBubbleView::InitParams GetInitParams(
views::TrayBubbleView::AnchorAlignment anchor_alignment) OVERRIDE;
virtual void InitializeContents(views::TrayBubbleView* bubble_view) OVERRIDE;
virtual void OnBubbleViewDestroyed() OVERRIDE;
virtual void UpdateBubbleView() OVERRIDE;
virtual void OnMouseEnteredView() OVERRIDE;
virtual void OnMouseExitedView() OVERRIDE;
size_t NumMessageViewsForTest() const;
private:
MessageCenterView* message_center_view_;
int max_height_;
bool initially_settings_visible_;
bool first_item_has_no_margin_;
DISALLOW_COPY_AND_ASSIGN(MessageCenterBubble);
};
}
#endif