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