OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |