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

Unified Diff: ui/notifications/notification_types.cc

Issue 11410008: Created initial multi-item notification view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/notifications/notification_types.cc
diff --git a/ui/notifications/notification_types.cc b/ui/notifications/notification_types.cc
index 9ec43c88832262365550188346484949dffd6c8b..f7099a1b60fd12d0f1897b2b16a297893ced26cb 100644
--- a/ui/notifications/notification_types.cc
+++ b/ui/notifications/notification_types.cc
@@ -22,12 +22,15 @@ const char kImageUrlKey[] = "image_url";
const char kSimpleType[] = "simple";
const char kBaseFormatType[] = "base";
+const char kMultipleType[] = "multiple";
NotificationType StringToNotificationType(std::string& string_type) {
if (string_type == kSimpleType)
return NOTIFICATION_TYPE_SIMPLE;
if (string_type == kBaseFormatType)
return NOTIFICATION_TYPE_BASE_FORMAT;
+ if (string_type == kMultipleType)
+ return NOTIFICATION_TYPE_MULTIPLE;
// In case of unrecognized string, fall back to most common type.
return NOTIFICATION_TYPE_SIMPLE;
« ui/message_center/notification_list.h ('K') | « ui/notifications/notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698