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

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

Issue 2901273003: chromeos: Remove TrayBubbleView::Delegate::OnBeforeBubbleWidgetInit (Closed)
Patch Set: cleanup Created 3 years, 7 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/tray/tray_background_view.cc
diff --git a/ash/system/tray/tray_background_view.cc b/ash/system/tray/tray_background_view.cc
index fa8e816da13b901257693630a59bdc79b62b35df..d4a7ea7cf3549300f7472da60e89574c6d5c03d9 100644
--- a/ash/system/tray/tray_background_view.cc
+++ b/ash/system/tray/tray_background_view.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include "ash/ash_constants.h"
+#include "ash/public/cpp/shell_window_ids.h"
#include "ash/shelf/shelf_constants.h"
#include "ash/shelf/wm_shelf.h"
#include "ash/shell.h"
@@ -353,6 +354,12 @@ gfx::Insets TrayBackgroundView::GetBubbleAnchorInsets() const {
}
}
+aura::Window* TrayBackgroundView::GetBubbleWindowContainer() const {
+ return Shell::GetContainer(
+ tray_container()->GetWidget()->GetNativeWindow()->GetRootWindow(),
+ kShellWindowId_SettingBubbleContainer);
+}
+
std::unique_ptr<views::InkDropMask> TrayBackgroundView::CreateInkDropMask()
const {
return base::MakeUnique<views::RoundRectInkDropMask>(

Powered by Google App Engine
This is Rietveld 408576698