| 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 | 9 |
| 10 #include "ui/message_center/message_center.h" | 10 #include "ui/message_center/message_center.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual void RemoveObserver(MessageCenterObserver* observer) OVERRIDE; | 25 virtual void RemoveObserver(MessageCenterObserver* observer) OVERRIDE; |
| 26 virtual void SetMessageCenterVisible(bool visible) OVERRIDE; | 26 virtual void SetMessageCenterVisible(bool visible) OVERRIDE; |
| 27 virtual size_t NotificationCount() const OVERRIDE; | 27 virtual size_t NotificationCount() const OVERRIDE; |
| 28 virtual size_t UnreadNotificationCount() const OVERRIDE; | 28 virtual size_t UnreadNotificationCount() const OVERRIDE; |
| 29 virtual bool HasPopupNotifications() const OVERRIDE; | 29 virtual bool HasPopupNotifications() const OVERRIDE; |
| 30 virtual bool HasNotification(const std::string& id) OVERRIDE; | 30 virtual bool HasNotification(const std::string& id) OVERRIDE; |
| 31 virtual bool IsQuietMode() const OVERRIDE; | 31 virtual bool IsQuietMode() const OVERRIDE; |
| 32 virtual bool HasClickedListener(const std::string& id) OVERRIDE; | 32 virtual bool HasClickedListener(const std::string& id) OVERRIDE; |
| 33 virtual const NotificationList::Notifications& GetNotifications() OVERRIDE; | 33 virtual const NotificationList::Notifications& GetNotifications() OVERRIDE; |
| 34 virtual NotificationList::PopupNotifications GetPopupNotifications() OVERRIDE; | 34 virtual NotificationList::PopupNotifications GetPopupNotifications() OVERRIDE; |
| 35 virtual void AddNotification(NotificationType type, | 35 virtual void AddNotification(scoped_ptr<Notification> notification) OVERRIDE; |
| 36 const std::string& id, | |
| 37 const string16& title, | |
| 38 const string16& message, | |
| 39 const string16& display_source, | |
| 40 const std::string& extension_id, | |
| 41 const base::DictionaryValue* optional_fields, | |
| 42 NotificationDelegate* delegate) OVERRIDE; | |
| 43 virtual void UpdateNotification(const std::string& old_id, | 36 virtual void UpdateNotification(const std::string& old_id, |
| 44 const std::string& new_id, | 37 scoped_ptr<Notification> new_notification) |
| 45 const string16& title, | 38 OVERRIDE; |
| 46 const string16& message, | |
| 47 const base::DictionaryValue* optional_fields, | |
| 48 NotificationDelegate* delegate) OVERRIDE; | |
| 49 virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE; | 39 virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE; |
| 50 virtual void RemoveAllNotifications(bool by_user) OVERRIDE; | 40 virtual void RemoveAllNotifications(bool by_user) OVERRIDE; |
| 51 virtual void SetNotificationIcon(const std::string& notification_id, | 41 virtual void SetNotificationIcon(const std::string& notification_id, |
| 52 const gfx::Image& image) OVERRIDE; | 42 const gfx::Image& image) OVERRIDE; |
| 53 virtual void SetNotificationImage(const std::string& notification_id, | 43 virtual void SetNotificationImage(const std::string& notification_id, |
| 54 const gfx::Image& image) OVERRIDE; | 44 const gfx::Image& image) OVERRIDE; |
| 55 virtual void SetNotificationButtonIcon(const std::string& notification_id, | 45 virtual void SetNotificationButtonIcon(const std::string& notification_id, |
| 56 int button_index, | 46 int button_index, |
| 57 const gfx::Image& image) OVERRIDE; | 47 const gfx::Image& image) OVERRIDE; |
| 58 virtual void DisableNotificationsByExtension(const std::string& id) OVERRIDE; | 48 virtual void DisableNotificationsByExtension(const std::string& id) OVERRIDE; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 74 scoped_ptr<NotificationList> notification_list_; | 64 scoped_ptr<NotificationList> notification_list_; |
| 75 ObserverList<MessageCenterObserver> observer_list_; | 65 ObserverList<MessageCenterObserver> observer_list_; |
| 76 Delegate* delegate_; | 66 Delegate* delegate_; |
| 77 | 67 |
| 78 DISALLOW_COPY_AND_ASSIGN(MessageCenterImpl); | 68 DISALLOW_COPY_AND_ASSIGN(MessageCenterImpl); |
| 79 }; | 69 }; |
| 80 | 70 |
| 81 } // namespace message_center | 71 } // namespace message_center |
| 82 | 72 |
| 83 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ | 73 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_H_ |
| OLD | NEW |