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

Unified Diff: ash/system/web_notification/popup_bubble.cc

Issue 11028134: Re-factor Ash Message Center code part 2/4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 2 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 | « ash/system/web_notification/popup_bubble.h ('k') | ash/system/web_notification/web_notification_bubble.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/web_notification/popup_bubble.cc
diff --git a/ash/system/web_notification/popup_bubble.cc b/ash/system/web_notification/popup_bubble.cc
index c27104b17f6d157d9dd10ba36a00f03fa7ce2354..bbb2d8abb6580e2ef6fdbabb751df0f6aa71b95b 100644
--- a/ash/system/web_notification/popup_bubble.cc
+++ b/ash/system/web_notification/popup_bubble.cc
@@ -15,8 +15,6 @@
namespace ash {
-using internal::TrayBubbleView;
-
namespace message_center {
const int kAutocloseDelaySeconds = 5;
@@ -76,7 +74,8 @@ PopupBubble::PopupBubble(WebNotificationTray* tray) :
init_params.arrow_color = kBackgroundColor;
init_params.close_on_deactivate = false;
views::View* anchor = tray_->tray_container();
- bubble_view_ = TrayBubbleView::Create(anchor, this, init_params);
+ bubble_view_ = TrayBubbleView::Create(
+ tray_->GetBubbleWindowContainer(), anchor, this, &init_params);
contents_view_ = new PopupBubbleContentsView(tray);
Initialize(contents_view_);
@@ -107,7 +106,7 @@ void PopupBubble::UpdateBubbleView() {
WebNotificationList::Notifications popup_notifications;
tray_->notification_list()->GetPopupNotifications(&popup_notifications);
if (popup_notifications.size() == 0) {
- tray_->HideBubble(this); // deletes |this|!
+ tray_->HideBubbleWithView(bubble_view()); // deletes |this|
return;
}
// Only update the popup tray if the number of visible popup notifications
« no previous file with comments | « ash/system/web_notification/popup_bubble.h ('k') | ash/system/web_notification/web_notification_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698