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

Unified Diff: ui/message_center/message_view_factory.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/message_center/message_view_factory.cc
diff --git a/ui/message_center/message_view_factory.cc b/ui/message_center/message_view_factory.cc
index 3305a7da8506856ddf36b650953e0c20cd6f6ae1..00c35d40b264a998a9c36ff0a868b498d2d5d1c8 100644
--- a/ui/message_center/message_view_factory.cc
+++ b/ui/message_center/message_view_factory.cc
@@ -7,6 +7,7 @@
#include "ui/message_center/base_format_view.h"
#include "ui/message_center/message_simple_view.h"
#include "ui/message_center/message_view.h"
+#include "ui/message_center/message_view_multiple.h"
#include "ui/message_center/notification_list.h"
#include "ui/notifications/notification_types.h"
@@ -19,6 +20,8 @@ MessageView* MessageViewFactory::ViewForNotification(
switch (notification.type) {
case ui::notifications::NOTIFICATION_TYPE_BASE_FORMAT:
return new BaseFormatView(list_delegate, notification);
+ case ui::notifications::NOTIFICATION_TYPE_MULTIPLE:
+ return new MessageViewMultiple(list_delegate, notification);
case ui::notifications::NOTIFICATION_TYPE_SIMPLE:
return new MessageSimpleView(list_delegate, notification);

Powered by Google App Engine
This is Rietveld 408576698