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

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

Issue 9596002: ash uber tray: Make it work in ash_shell, and a couple more fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 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/status_area/status_area_view.cc ('k') | ash/wm/activation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index 763efc02b5418c12a8a64fec30cd184efd8b9b23..1d4d7424de4f9c1883a73534e395fca6ffdaab0e 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -6,6 +6,7 @@
#include "ash/shell.h"
#include "ash/shell/panel_window.h"
+#include "ash/shell_window_ids.h"
#include "ash/system/tray/system_tray_delegate.h"
#include "ash/system/tray/system_tray_item.h"
#include "ash/system/user/login_status.h"
@@ -34,6 +35,8 @@ class SystemTrayBubble : public views::BubbleDelegateView {
items_(items),
detailed_(detailed) {
set_margin(0);
+ set_parent_window(ash::Shell::GetInstance()->GetContainer(
+ ash::internal::kShellWindowId_SettingBubbleContainer));
}
virtual ~SystemTrayBubble() {
@@ -150,6 +153,7 @@ void SystemTray::ShowItems(std::vector<SystemTrayItem*>& items, bool detailed) {
CHECK(!popup_);
SystemTrayBubble* bubble = new SystemTrayBubble(this, items, detailed);
popup_ = views::BubbleDelegateView::CreateBubble(bubble);
+ bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE);
popup_->AddObserver(this);
bubble->Show();
}
« no previous file with comments | « ash/status_area/status_area_view.cc ('k') | ash/wm/activation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698