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

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

Issue 12667018: Switch Windows to use the MessagePopupCollection (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 9 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | ui/message_center/views/message_popup_collection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Overridden from NotificationList::Delegate: 164 // Overridden from NotificationList::Delegate:
165 virtual void SendRemoveNotification(const std::string& id, 165 virtual void SendRemoveNotification(const std::string& id,
166 bool by_user) OVERRIDE; 166 bool by_user) OVERRIDE;
167 virtual void OnQuietModeChanged(bool quiet_mode) OVERRIDE; 167 virtual void OnQuietModeChanged(bool quiet_mode) OVERRIDE;
168 168
169 protected: 169 protected:
170 MessageCenter(); 170 MessageCenter();
171 virtual ~MessageCenter(); 171 virtual ~MessageCenter();
172 172
173 private: 173 private:
174 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayWinTest,
175 ManyMessageCenterNotifications);
176 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayWinTest, ManyPopupNotifications);
174 // Calls OnMessageCenterChanged on each observer. 177 // Calls OnMessageCenterChanged on each observer.
175 void NotifyMessageCenterChanged(bool new_notification); 178 void NotifyMessageCenterChanged(bool new_notification);
176 179
177 scoped_ptr<NotificationList> notification_list_; 180 scoped_ptr<NotificationList> notification_list_;
178 ObserverList<Observer> observer_list_; 181 ObserverList<Observer> observer_list_;
179 Delegate* delegate_; 182 Delegate* delegate_;
180 183
181 DISALLOW_COPY_AND_ASSIGN(MessageCenter); 184 DISALLOW_COPY_AND_ASSIGN(MessageCenter);
182 }; 185 };
183 186
184 } // namespace message_center 187 } // namespace message_center
185 188
186 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ 189 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | ui/message_center/views/message_popup_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698