| 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 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 private: | 95 private: |
| 96 friend class MessageCenterViewTest; | 96 friend class MessageCenterViewTest; |
| 97 | 97 |
| 98 void AddNotificationAt(const Notification& notification, int index); | 98 void AddNotificationAt(const Notification& notification, int index); |
| 99 void NotificationsChanged(); | 99 void NotificationsChanged(); |
| 100 void SetNotificationViewForTest(MessageView* view); | 100 void SetNotificationViewForTest(MessageView* view); |
| 101 | 101 |
| 102 MessageCenter* message_center_; // Weak reference. | 102 MessageCenter* message_center_; // Weak reference. |
| 103 MessageCenterTray* tray_; // Weak reference. | 103 MessageCenterTray* tray_; // Weak reference. |
| 104 | 104 |
| 105 // Map notification_id->NotificationView*. It contains all NotificationViews | 105 // Map notification_id->MessageView*. It contains all MessageViews currently |
| 106 // currently displayed in MessageCenter. | 106 // displayed in MessageCenter. |
| 107 typedef std::map<std::string, NotificationView*> NotificationViewsMap; | 107 typedef std::map<std::string, MessageView*> NotificationViewsMap; |
| 108 NotificationViewsMap notification_views_; // Weak. | 108 NotificationViewsMap notification_views_; // Weak. |
| 109 | 109 |
| 110 // Child views. | 110 // Child views. |
| 111 views::ScrollView* scroller_; | 111 views::ScrollView* scroller_; |
| 112 std::unique_ptr<MessageListView> message_list_view_; | 112 std::unique_ptr<MessageListView> message_list_view_; |
| 113 std::unique_ptr<views::View> empty_list_view_; | 113 std::unique_ptr<views::View> empty_list_view_; |
| 114 NotifierSettingsView* settings_view_; | 114 NotifierSettingsView* settings_view_; |
| 115 MessageCenterButtonBar* button_bar_; | 115 MessageCenterButtonBar* button_bar_; |
| 116 bool top_down_; | 116 bool top_down_; |
| 117 | 117 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 134 bool is_closing_; | 134 bool is_closing_; |
| 135 | 135 |
| 136 std::unique_ptr<MessageViewContextMenuController> context_menu_controller_; | 136 std::unique_ptr<MessageViewContextMenuController> context_menu_controller_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); | 138 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace message_center | 141 } // namespace message_center |
| 142 | 142 |
| 143 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ | 143 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ |
| OLD | NEW |