| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "ui/gfx/animation/animation_delegate.h" | 9 #include "ui/gfx/animation/animation_delegate.h" |
| 10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 private: | 97 private: |
| 98 friend class MessageCenterViewTest; | 98 friend class MessageCenterViewTest; |
| 99 | 99 |
| 100 void AddNotificationAt(const Notification& notification, int index); | 100 void AddNotificationAt(const Notification& notification, int index); |
| 101 void NotificationsChanged(); | 101 void NotificationsChanged(); |
| 102 void SetNotificationViewForTest(MessageView* view); | 102 void SetNotificationViewForTest(MessageView* view); |
| 103 | 103 |
| 104 MessageCenter* message_center_; // Weak reference. | 104 MessageCenter* message_center_; // Weak reference. |
| 105 MessageCenterTray* tray_; // Weak reference. | 105 MessageCenterTray* tray_; // Weak reference. |
| 106 | 106 |
| 107 // Map notification_id->NotificationView*. It contains all NotificationViews | 107 // Map notification_id->NotificationView*. It contains all NotificaitonViews |
| 108 // currently displayed in MessageCenter. | 108 // currently displayed in MessageCenter. |
| 109 typedef std::map<std::string, NotificationView*> NotificationViewsMap; | 109 typedef std::map<std::string, NotificationView*> NotificationViewsMap; |
| 110 NotificationViewsMap notification_views_; // Weak. | 110 NotificationViewsMap notification_views_; // Weak. |
| 111 | 111 |
| 112 // Child views. | 112 // Child views. |
| 113 views::ScrollView* scroller_; | 113 views::ScrollView* scroller_; |
| 114 scoped_ptr<MessageListView> message_list_view_; | 114 scoped_ptr<MessageListView> message_list_view_; |
| 115 scoped_ptr<views::View> empty_list_view_; | 115 scoped_ptr<views::View> empty_list_view_; |
| 116 NotifierSettingsView* settings_view_; | 116 NotifierSettingsView* settings_view_; |
| 117 MessageCenterButtonBar* button_bar_; | 117 MessageCenterButtonBar* button_bar_; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 136 bool is_closing_; | 136 bool is_closing_; |
| 137 | 137 |
| 138 scoped_ptr<MessageViewContextMenuController> context_menu_controller_; | 138 scoped_ptr<MessageViewContextMenuController> context_menu_controller_; |
| 139 | 139 |
| 140 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); | 140 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace message_center | 143 } // namespace message_center |
| 144 | 144 |
| 145 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ | 145 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
| OLD | NEW |