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

Unified Diff: ui/message_center/views/message_bubble_base.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
« no previous file with comments | « ui/message_center/notification_list_unittest.cc ('k') | ui/message_center/views/message_bubble_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_bubble_base.h
diff --git a/ui/message_center/views/message_bubble_base.h b/ui/message_center/views/message_bubble_base.h
index f43c9b71461eac822a2f6dcde37f0db7ff71c7bd..c7255f844766875d3a6172382b17d988818ce829 100644
--- a/ui/message_center/views/message_bubble_base.h
+++ b/ui/message_center/views/message_bubble_base.h
@@ -6,15 +6,15 @@
#define UI_MESSAGE_CENTER_VIEWS_MESSAGE_BUBBLE_BASE_H_
#include "base/memory/scoped_ptr.h"
+#include "ui/message_center/message_center.h"
#include "ui/message_center/message_center_export.h"
-#include "ui/message_center/notification_list.h"
#include "ui/views/bubble/tray_bubble_view.h"
namespace message_center {
class MESSAGE_CENTER_EXPORT MessageBubbleBase {
public:
- explicit MessageBubbleBase(NotificationList::Delegate* list_delegate);
+ explicit MessageBubbleBase(MessageCenter* message_center);
virtual ~MessageBubbleBase();
@@ -61,13 +61,13 @@ class MESSAGE_CENTER_EXPORT MessageBubbleBase {
protected:
views::TrayBubbleView::InitParams GetDefaultInitParams(
views::TrayBubbleView::AnchorAlignment anchor_alignment);
- NotificationList::Delegate* list_delegate() { return list_delegate_; }
+ MessageCenter* message_center() { return message_center_; }
void set_bubble_view(views::TrayBubbleView* bubble_view) {
bubble_view_ = bubble_view;
}
private:
- NotificationList::Delegate* list_delegate_;
+ MessageCenter* message_center_;
views::TrayBubbleView* bubble_view_;
base::WeakPtrFactory<MessageBubbleBase> weak_ptr_factory_;
int max_height_;
« no previous file with comments | « ui/message_center/notification_list_unittest.cc ('k') | ui/message_center/views/message_bubble_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698