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

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

Issue 269893004: Revert 268203 "There are many ways to get it wrong." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | Annotate | Revision Log
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 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
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
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_
OLDNEW
« no previous file with comments | « trunk/src/ui/message_center/message_center.h ('k') | trunk/src/win8/metro_driver/chrome_app_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698