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

Unified Diff: ui/message_center/message_popup_collection.h

Issue 12326091: Made notification center notifications collapsed and expandable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased, which led to many changes. Created 7 years, 10 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
Index: ui/message_center/message_popup_collection.h
diff --git a/ui/message_center/message_popup_collection.h b/ui/message_center/message_popup_collection.h
index 214f428d0fef885ab2dd28b464367b0aa709f629..2029776e0b63bf81ec4085d2f2f96af9eda00f09 100644
--- a/ui/message_center/message_popup_collection.h
+++ b/ui/message_center/message_popup_collection.h
@@ -11,7 +11,6 @@
#include "base/timer.h"
#include "ui/message_center/message_bubble_base.h"
#include "ui/message_center/message_center_export.h"
-#include "ui/message_center/notification_list.h"
#include "ui/views/widget/widget_observer.h"
namespace views {
@@ -20,6 +19,7 @@ class Widget;
namespace message_center {
+class MessageCenter;
class ToastContentsView;
// Container for popup toasts. Because each toast is a frameless window rather
@@ -33,7 +33,7 @@ class MESSAGE_CENTER_EXPORT MessagePopupCollection
// |context| specifies the context to create toast windows. It can be NULL
// for non-aura environment. See comments in ui/views/widget/widget.h.
MessagePopupCollection(gfx::NativeView context,
- NotificationList::Delegate* list_delegate);
+ MessageCenter* message_center);
virtual ~MessagePopupCollection();
void UpdatePopups();
@@ -46,11 +46,11 @@ class MESSAGE_CENTER_EXPORT MessagePopupCollection
void CloseAllWidgets();
- // views::WidgetObserver overrides:
+ // Overridden from views::WidgetObserver:
virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
gfx::NativeView context_;
- NotificationList::Delegate* list_delegate_;
+ MessageCenter* message_center_;
ToastContainer toasts_;
DISALLOW_COPY_AND_ASSIGN(MessagePopupCollection);

Powered by Google App Engine
This is Rietveld 408576698