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

Unified Diff: ash/system/web_notification/message_center_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: . 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
Index: ash/system/web_notification/message_center_bubble.cc
diff --git a/ash/system/web_notification/message_center_bubble.cc b/ash/system/web_notification/message_center_bubble.cc
index d12f92be515510ffbaf975612807f155af7eb74b..f2dd9edeafa8c47f21955c20c9e493d6a537e5c6 100644
--- a/ash/system/web_notification/message_center_bubble.cc
+++ b/ash/system/web_notification/message_center_bubble.cc
@@ -22,7 +22,6 @@
namespace ash {
-using internal::TrayBubbleView;
using internal::TrayPopupTextButton;
namespace message_center {
@@ -197,7 +196,8 @@ MessageCenterBubble::MessageCenterBubble(WebNotificationTray* tray) :
init_params.max_height = message_center::kWebNotificationBubbleMaxHeight;
init_params.can_activate = true;
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 MessageCenterContentsView(tray);
Initialize(contents_view_);
@@ -220,11 +220,6 @@ void MessageCenterBubble::UpdateBubbleView() {
bubble_view_->UpdateBubble();
}
-void MessageCenterBubble::OnClickedOutsideView() {
- // May delete |this|.
- tray_->HideMessageCenterBubble();
-}
-
} // namespace message_center
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698