Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Unified Diff: ui/message_center/notification_list.cc

Issue 11639041: Added support for image notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bug detected by try bots. Created 7 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/message_center/notification_list.h ('k') | ui/message_center/notification_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_list.cc
diff --git a/ui/message_center/notification_list.cc b/ui/message_center/notification_list.cc
index 4add984f2e078a643c6cfa06f1538898af561396..d92051a7ee1510a71dcd22d180636800d94637f7 100644
--- a/ui/message_center/notification_list.cc
+++ b/ui/message_center/notification_list.cc
@@ -201,6 +201,15 @@ bool NotificationList::SetNotificationSecondaryIcon(
return true;
}
+bool NotificationList::SetNotificationImage(const std::string& id,
+ const gfx::ImageSkia& image) {
+ Notifications::iterator iter;
+ if (!GetNotification(id, &iter))
+ return false;
+ iter->image = image;
+ return true;
+}
+
bool NotificationList::HasNotification(const std::string& id) {
Notifications::iterator dummy;
return GetNotification(id, &dummy);
« no previous file with comments | « ui/message_center/notification_list.h ('k') | ui/message_center/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698