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

Unified Diff: ui/message_center/message_center.cc

Issue 11639041: Added support for image notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
Index: ui/message_center/message_center.cc
diff --git a/ui/message_center/message_center.cc b/ui/message_center/message_center.cc
index a5460ee89f424a57417277f9c91e2db8d5a32f4b..2110c154ebdb4c0820759807427d8033e5ca8313 100644
--- a/ui/message_center/message_center.cc
+++ b/ui/message_center/message_center.cc
@@ -89,6 +89,12 @@ void MessageCenter::SetNotificationSecondaryIcon(const std::string& id,
host_->MessageCenterChanged(true);
}
+void MessageCenter::SetNotificationImage(const std::string& id,
+ const gfx::ImageSkia& image) {
+ if (notification_list_->SetNotificationImage(id, image) && host_)
+ host_->MessageCenterChanged(true);
+}
+
//------------------------------------------------------------------------------
// Overridden from NotificationList::Delegate.

Powered by Google App Engine
This is Rietveld 408576698