| OLD | NEW |
| 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_MESSAGE_CENTER_IMPL_H_ | 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_IMPL_H_ |
| 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_IMPL_H_ | 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // MessageCenter overrides: | 147 // MessageCenter overrides: |
| 148 virtual void AddObserver(MessageCenterObserver* observer) OVERRIDE; | 148 virtual void AddObserver(MessageCenterObserver* observer) OVERRIDE; |
| 149 virtual void RemoveObserver(MessageCenterObserver* observer) OVERRIDE; | 149 virtual void RemoveObserver(MessageCenterObserver* observer) OVERRIDE; |
| 150 virtual void AddNotificationBlocker(NotificationBlocker* blocker) OVERRIDE; | 150 virtual void AddNotificationBlocker(NotificationBlocker* blocker) OVERRIDE; |
| 151 virtual void RemoveNotificationBlocker(NotificationBlocker* blocker) OVERRIDE; | 151 virtual void RemoveNotificationBlocker(NotificationBlocker* blocker) OVERRIDE; |
| 152 virtual void SetVisibility(Visibility visible) OVERRIDE; | 152 virtual void SetVisibility(Visibility visible) OVERRIDE; |
| 153 virtual bool IsMessageCenterVisible() const OVERRIDE; | 153 virtual bool IsMessageCenterVisible() const OVERRIDE; |
| 154 virtual size_t NotificationCount() const OVERRIDE; | 154 virtual size_t NotificationCount() const OVERRIDE; |
| 155 virtual size_t UnreadNotificationCount() const OVERRIDE; | 155 virtual size_t UnreadNotificationCount() const OVERRIDE; |
| 156 virtual bool HasPopupNotifications() const OVERRIDE; | 156 virtual bool HasPopupNotifications() const OVERRIDE; |
| 157 virtual bool HasNotification(const std::string& id) OVERRIDE; | |
| 158 virtual bool IsQuietMode() const OVERRIDE; | 157 virtual bool IsQuietMode() const OVERRIDE; |
| 159 virtual bool HasClickedListener(const std::string& id) OVERRIDE; | 158 virtual bool HasClickedListener(const std::string& id) OVERRIDE; |
| 159 virtual message_center::Notification* FindVisibleNotificationById( |
| 160 const std::string& id) OVERRIDE; |
| 160 virtual const NotificationList::Notifications& GetVisibleNotifications() | 161 virtual const NotificationList::Notifications& GetVisibleNotifications() |
| 161 OVERRIDE; | 162 OVERRIDE; |
| 162 virtual NotificationList::PopupNotifications GetPopupNotifications() OVERRIDE; | 163 virtual NotificationList::PopupNotifications GetPopupNotifications() OVERRIDE; |
| 163 virtual void AddNotification(scoped_ptr<Notification> notification) OVERRIDE; | 164 virtual void AddNotification(scoped_ptr<Notification> notification) OVERRIDE; |
| 164 virtual void UpdateNotification(const std::string& old_id, | 165 virtual void UpdateNotification(const std::string& old_id, |
| 165 scoped_ptr<Notification> new_notification) | 166 scoped_ptr<Notification> new_notification) |
| 166 OVERRIDE; | 167 OVERRIDE; |
| 167 virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE; | 168 virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE; |
| 168 virtual void RemoveAllNotifications(bool by_user) OVERRIDE; | 169 virtual void RemoveAllNotifications(bool by_user) OVERRIDE; |
| 169 virtual void RemoveAllVisibleNotifications(bool by_user) OVERRIDE; | 170 virtual void RemoveAllVisibleNotifications(bool by_user) OVERRIDE; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 // Queue for the notifications to delay the addition/updates when the message | 232 // Queue for the notifications to delay the addition/updates when the message |
| 232 // center is visible. | 233 // center is visible. |
| 233 scoped_ptr<internal::ChangeQueue> notification_queue_; | 234 scoped_ptr<internal::ChangeQueue> notification_queue_; |
| 234 | 235 |
| 235 DISALLOW_COPY_AND_ASSIGN(MessageCenterImpl); | 236 DISALLOW_COPY_AND_ASSIGN(MessageCenterImpl); |
| 236 }; | 237 }; |
| 237 | 238 |
| 238 } // namespace message_center | 239 } // namespace message_center |
| 239 | 240 |
| 240 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ | 241 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ |
| OLD | NEW |