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

Unified Diff: ui/message_center/notification_list.h

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/message_view_factory.cc ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_list.h
diff --git a/ui/message_center/notification_list.h b/ui/message_center/notification_list.h
index 575f9ce6aef33f02d40686879734602f1c4c9751..87cf509dc5a7231b94c837496fee0430e5f60e72 100644
--- a/ui/message_center/notification_list.h
+++ b/ui/message_center/notification_list.h
@@ -57,6 +57,7 @@ class MESSAGE_CENTER_EXPORT NotificationList {
// Images fetched asynchronously
gfx::ImageSkia primary_icon;
gfx::ImageSkia secondary_icon;
+ gfx::ImageSkia image;
bool is_read; // True if this has been seen in the message center
bool shown_as_popup; // True if this has been shown as a popup notification
@@ -132,6 +133,9 @@ class MESSAGE_CENTER_EXPORT NotificationList {
bool SetNotificationSecondaryIcon(const std::string& id,
const gfx::ImageSkia& image);
+ // Returns true if the notification exists and was updated.
+ bool SetNotificationImage(const std::string& id, const gfx::ImageSkia& image);
+
bool HasNotification(const std::string& id);
// Returns false if the first notification has been shown as a popup (which
« no previous file with comments | « ui/message_center/message_view_factory.cc ('k') | ui/message_center/notification_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698