Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: ui/message_center/views/message_center_view.h

Issue 1979553003: Consolidate to use MessageView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/views/message_center_view.cc » ('j') | ui/message_center/views/notification_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698