Index: ash/system/web_notification/web_notification_tray.cc |
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc |
index 6800c8775863171c70d99c89fd0aa0ec002c8a8c..8e0bf90df150a3e942eba3d99d871f615f809be1 100644 |
--- a/ash/system/web_notification/web_notification_tray.cc |
+++ b/ash/system/web_notification/web_notification_tray.cc |
@@ -400,11 +400,6 @@ bool WebNotificationTray::IsMessageCenterBubbleVisible() const { |
message_center_bubble()->bubble()->IsVisible()); |
} |
-void WebNotificationTray::ShowMessageCenterBubble() { |
- if (!IsMessageCenterBubbleVisible()) |
- message_center_tray_->ShowMessageCenterBubble(); |
-} |
- |
void WebNotificationTray::UpdateAfterLoginStatusChange( |
LoginStatus login_status) { |
message_center()->SetLockedState(login_status == LoginStatus::LOCKED); |
@@ -439,14 +434,6 @@ void WebNotificationTray::HideBubbleWithView( |
} |
} |
-bool WebNotificationTray::PerformAction(const ui::Event& event) { |
- if (message_center_bubble()) |
- message_center_tray_->HideMessageCenterBubble(); |
- else |
- message_center_tray_->ShowMessageCenterBubble(); |
- return true; |
-} |
- |
void WebNotificationTray::BubbleViewDestroyed() { |
if (message_center_bubble()) |
message_center_bubble()->bubble()->BubbleViewDestroyed(); |
@@ -603,6 +590,28 @@ void WebNotificationTray::ClickedOutsideBubble() { |
message_center_tray_->HideMessageCenterBubble(); |
} |
+bool WebNotificationTray::PerformAction(const ui::Event& event) { |
+ if (message_center_bubble()) |
+ message_center_tray_->HideMessageCenterBubble(); |
+ else |
+ message_center_tray_->ShowMessageCenterBubble(); |
+ return true; |
+} |
+ |
+void WebNotificationTray::CloseBubble() { |
+ message_center_tray_->HideMessageCenterBubble(); |
+} |
+ |
+void WebNotificationTray::ShowBubble() { |
+ if (!IsMessageCenterBubbleVisible()) |
+ message_center_tray_->ShowMessageCenterBubble(); |
+} |
+ |
+views::TrayBubbleView* WebNotificationTray::GetBubbleView() { |
+ return message_center_bubble_ ? message_center_bubble_->bubble_view() |
+ : nullptr; |
+} |
+ |
message_center::MessageCenter* WebNotificationTray::message_center() const { |
return message_center_tray_->message_center(); |
} |