diff options
author | dewittj@chromium.org <dewittj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-05 06:42:44 +0000 |
---|---|---|
committer | dewittj@chromium.org <dewittj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-05 06:42:44 +0000 |
commit | 1c3db7ab55bd113078a54dceb9d1a0e5ab6a0793 (patch) | |
tree | f5c05e182787cccf5e51d0164be02944cd76a23c /ui/message_center/message_center_impl.h | |
parent | c00cd0453269925c7952d8ee4fa8c02b45b7326b (diff) | |
download | chromium_src-1c3db7ab55bd113078a54dceb9d1a0e5ab6a0793.zip chromium_src-1c3db7ab55bd113078a54dceb9d1a0e5ab6a0793.tar.gz chromium_src-1c3db7ab55bd113078a54dceb9d1a0e5ab6a0793.tar.bz2 |
Enable users of NotificationUIManager to specify binary images.
This refactors message_center::Notification to hold a class
containing the optional data associated with the
notification. It also alters chrome/browser/notification so
that you can manually set this.
Ash tests only updated to use new API.
TBR=sky@chromium.org,stevenjb@chromium.org
BUG=227093
Review URL: https://chromiumcodereview.appspot.com/14631005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/message_center/message_center_impl.h')
-rw-r--r-- | ui/message_center/message_center_impl.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/ui/message_center/message_center_impl.h b/ui/message_center/message_center_impl.h index 33e7a14..f39dc74 100644 --- a/ui/message_center/message_center_impl.h +++ b/ui/message_center/message_center_impl.h @@ -32,20 +32,10 @@ class MessageCenterImpl : public MessageCenter { virtual bool HasClickedListener(const std::string& id) OVERRIDE; virtual const NotificationList::Notifications& GetNotifications() OVERRIDE; virtual NotificationList::PopupNotifications GetPopupNotifications() OVERRIDE; - virtual void AddNotification(NotificationType type, - const std::string& id, - const string16& title, - const string16& message, - const string16& display_source, - const std::string& extension_id, - const base::DictionaryValue* optional_fields, - NotificationDelegate* delegate) OVERRIDE; + virtual void AddNotification(scoped_ptr<Notification> notification) OVERRIDE; virtual void UpdateNotification(const std::string& old_id, - const std::string& new_id, - const string16& title, - const string16& message, - const base::DictionaryValue* optional_fields, - NotificationDelegate* delegate) OVERRIDE; + scoped_ptr<Notification> new_notification) + OVERRIDE; virtual void RemoveNotification(const std::string& id, bool by_user) OVERRIDE; virtual void RemoveAllNotifications(bool by_user) OVERRIDE; virtual void SetNotificationIcon(const std::string& notification_id, |