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

Unified Diff: ash/system/tray/system_tray_bubble.cc

Issue 10546125: Add WebNotificationTray to the status area (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 6 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/tray/system_tray_bubble.h ('k') | ash/system/web_notification/web_notification_tray.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_bubble.cc
diff --git a/ash/system/tray/system_tray_bubble.cc b/ash/system/tray/system_tray_bubble.cc
index df7c2d5fdaedbfec9427320bbb942e1db96342c8..6888cc48e80f7708090ac04b7ef3126e00e7adc8 100644
--- a/ash/system/tray/system_tray_bubble.cc
+++ b/ash/system/tray/system_tray_bubble.cc
@@ -336,6 +336,7 @@ void SystemTrayBubble::InitView(const InitParams& init_params) {
void SystemTrayBubble::BubbleViewDestroyed() {
DestroyItemViews();
+ bubble_view_ = NULL;
}
gfx::Rect SystemTrayBubble::GetAnchorRect() const {
@@ -422,6 +423,19 @@ void SystemTrayBubble::Close() {
bubble_widget_->Close();
}
+void SystemTrayBubble::SetVisible(bool is_visible) {
+ if (!bubble_widget_)
+ return;
+ if (is_visible)
+ bubble_widget_->Show();
+ else
+ bubble_widget_->Hide();
+}
+
+bool SystemTrayBubble::IsVisible() {
+ return bubble_widget_ && bubble_widget_->IsVisible();
+}
+
void SystemTrayBubble::CreateItemViews(user::LoginStatus login_status) {
for (std::vector<ash::SystemTrayItem*>::iterator it = items_.begin();
it != items_.end();
« no previous file with comments | « ash/system/tray/system_tray_bubble.h ('k') | ash/system/web_notification/web_notification_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698