| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // Gets all notifications to be shown to the user in the message center. Note | 58 // Gets all notifications to be shown to the user in the message center. Note |
| 59 // that queued changes due to the message center being open are not reflected | 59 // that queued changes due to the message center being open are not reflected |
| 60 // in this list. | 60 // in this list. |
| 61 virtual const NotificationList::Notifications& GetVisibleNotifications() = 0; | 61 virtual const NotificationList::Notifications& GetVisibleNotifications() = 0; |
| 62 | 62 |
| 63 // Gets all notifications being shown as popups. This should not be affected | 63 // Gets all notifications being shown as popups. This should not be affected |
| 64 // by the change queue since notifications are not held up while the state is | 64 // by the change queue since notifications are not held up while the state is |
| 65 // VISIBILITY_TRANSIENT or VISIBILITY_SETTINGS. | 65 // VISIBILITY_TRANSIENT or VISIBILITY_SETTINGS. |
| 66 virtual NotificationList::PopupNotifications GetPopupNotifications() = 0; | 66 virtual NotificationList::PopupNotifications GetPopupNotifications() = 0; |
| 67 | 67 |
| 68 // Management of NotificaitonBlockers. | 68 // Management of NotificationBlockers. |
| 69 virtual void AddNotificationBlocker(NotificationBlocker* blocker) = 0; | 69 virtual void AddNotificationBlocker(NotificationBlocker* blocker) = 0; |
| 70 virtual void RemoveNotificationBlocker(NotificationBlocker* blocker) = 0; | 70 virtual void RemoveNotificationBlocker(NotificationBlocker* blocker) = 0; |
| 71 | 71 |
| 72 // Basic operations of notification: add/remove/update. | 72 // Basic operations of notification: add/remove/update. |
| 73 | 73 |
| 74 // Adds a new notification. | 74 // Adds a new notification. |
| 75 virtual void AddNotification(scoped_ptr<Notification> notification) = 0; | 75 virtual void AddNotification(scoped_ptr<Notification> notification) = 0; |
| 76 | 76 |
| 77 // Updates an existing notification with id = old_id and set its id to new_id. | 77 // Updates an existing notification with id = old_id and set its id to new_id. |
| 78 virtual void UpdateNotification( | 78 virtual void UpdateNotification( |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 MessageCenter(); | 163 MessageCenter(); |
| 164 virtual ~MessageCenter(); | 164 virtual ~MessageCenter(); |
| 165 | 165 |
| 166 private: | 166 private: |
| 167 DISALLOW_COPY_AND_ASSIGN(MessageCenter); | 167 DISALLOW_COPY_AND_ASSIGN(MessageCenter); |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 } // namespace message_center | 170 } // namespace message_center |
| 171 | 171 |
| 172 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ | 172 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ |
| OLD | NEW |