| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_BUBBLE_H_ |
| #define UI_MESSAGE_CENTER_MESSAGE_CENTER_BUBBLE_H_ |
| |
| #include "ui/message_center/message_bubble_base.h" |
| #include "ui/message_center/message_center_export.h" |
| #include "ui/message_center/notification_list.h" |
| |
| namespace message_center { |
| |
| class MessageCenterContentsView; |
| |
| // Bubble for message center. |
| class MESSAGE_CENTER_EXPORT MessageCenterBubble : public MessageBubbleBase { |
| public: |
| explicit MessageCenterBubble(NotificationList::Delegate* delegate); |
| |
| virtual ~MessageCenterBubble(); |
| |
| // Overridden from MessageBubbleBase. |
| 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: |
| MessageCenterContentsView* contents_view_; |
| |
| DISALLOW_COPY_AND_ASSIGN(MessageCenterBubble); |
| }; |
| |
| } // namespace message_center |
| |
| #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_BUBBLE_H_ |