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

Unified Diff: ui/message_center/views/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: Rebase, rebase, and rebase again! Created 7 years, 9 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/views/message_popup_collection.h
diff --git a/ui/message_center/views/message_popup_collection.h b/ui/message_center/views/message_popup_collection.h
index 0f71a2fb38974013a25d18d8ab7cebb2f5efdc5e..b85bcf0fb69a0b62f7b17ee44380f4f4830d5a5e 100644
--- a/ui/message_center/views/message_popup_collection.h
+++ b/ui/message_center/views/message_popup_collection.h
@@ -8,11 +8,10 @@
#include <list>
#include <map>
+#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
-#include "base/timer.h"
+#include "ui/gfx/native_widget_types.h"
#include "ui/message_center/message_center_export.h"
-#include "ui/message_center/notification_list.h"
-#include "ui/message_center/views/message_bubble_base.h"
#include "ui/views/widget/widget_observer.h"
namespace views {
@@ -25,6 +24,7 @@ FORWARD_DECLARE_TEST(WebNotificationTrayTest, ManyPopupNotifications);
namespace message_center {
+class MessageCenter;
class ToastContentsView;
// Container for popup toasts. Because each toast is a frameless window rather
@@ -38,7 +38,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();
@@ -53,11 +53,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);
« no previous file with comments | « ui/message_center/views/message_popup_bubble.cc ('k') | ui/message_center/views/message_popup_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698