OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_SYSTEM_WEB_NOTIFICATION_MESSAGE_CENTER_BUBBLE_H_ | |
6 #define ASH_SYSTEM_WEB_NOTIFICATION_MESSAGE_CENTER_BUBBLE_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "ash/system/web_notification/web_notification_bubble.h" | |
10 #include "ash/system/web_notification/web_notification_list.h" | |
11 | |
12 namespace message_center { | |
13 | |
14 class MessageCenterContentsView; | |
15 | |
16 // Bubble for message center. | |
17 class ASH_EXPORT MessageCenterBubble : public WebNotificationBubble { | |
18 public: | |
19 explicit MessageCenterBubble(WebNotificationList::Delegate* delegate); | |
20 | |
21 virtual ~MessageCenterBubble(); | |
22 | |
23 // Overridden from WebNotificationBubble. | |
24 virtual TrayBubbleView::InitParams GetInitParams( | |
25 TrayBubbleView::AnchorAlignment anchor_alignment) OVERRIDE; | |
26 virtual void InitializeContents(TrayBubbleView* bubble_view) OVERRIDE; | |
27 virtual void OnBubbleViewDestroyed() OVERRIDE; | |
28 virtual void UpdateBubbleView() OVERRIDE; | |
29 virtual void OnMouseEnteredView() OVERRIDE; | |
30 virtual void OnMouseExitedView() OVERRIDE; | |
31 | |
32 size_t NumMessageViewsForTest() const; | |
33 | |
34 private: | |
35 MessageCenterContentsView* contents_view_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(MessageCenterBubble); | |
38 }; | |
39 | |
40 } // namespace message_center | |
41 | |
42 #endif // ASH_SYSTEM_WEB_NOTIFICATION_MESSAGE_CENTER_BUBBLE_H_ | |
OLD | NEW |