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

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

Issue 11017079: Remove Shell::shelf()|status_area_widget()|launcher() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « ash/system/tray/tray_background_view.h ('k') | ash/system/tray_update.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3886154525c69fe0a852bedb22762dd0574c6b22..c8223bea633aeca6decdfb4409c03a06a18d23e9 100644
--- a/ash/system/tray/tray_background_view.cc
+++ b/ash/system/tray/tray_background_view.cc
@@ -5,6 +5,7 @@
#include "ash/system/tray/tray_background_view.h"
#include "ash/launcher/background_animator.h"
+#include "ash/root_window_controller.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/system/status_area_widget.h"
@@ -254,6 +255,11 @@ void TrayBackgroundView::SetPaintsBackground(
hide_background_animator_.SetPaintsBackground(value, change_type);
}
+ShelfLayoutManager* TrayBackgroundView::GetShelfLayoutManager() {
+ return
+ RootWindowController::ForLauncher(GetWidget()->GetNativeView())->shelf();
+}
+
void TrayBackgroundView::SetShelfAlignment(ShelfAlignment alignment) {
shelf_alignment_ = alignment;
SetBorder();
« no previous file with comments | « ash/system/tray/tray_background_view.h ('k') | ash/system/tray_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698