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

Unified Diff: ash/shelf/shelf_widget.cc

Issue 2072023003: mash: Break ash system tray dependencies on ash::ShelfWidget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/shelf/shelf_widget.h ('k') | ash/system/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_widget.cc
diff --git a/ash/shelf/shelf_widget.cc b/ash/shelf/shelf_widget.cc
index dde6fa2dfa691097f113807a091a47f593ab15ea..46653433254155b782092cad083210915953eeab 100644
--- a/ash/shelf/shelf_widget.cc
+++ b/ash/shelf/shelf_widget.cc
@@ -565,6 +565,7 @@ void ShelfWidget::DelegateView::UpdateBackground(int alpha) {
ShelfWidget::ShelfWidget(WmWindow* wm_shelf_container,
WmWindow* wm_status_container,
+ WmShelfAura* wm_shelf_aura,
WorkspaceController* workspace_controller)
: delegate_view_(new DelegateView(this)),
background_animator_(
@@ -592,8 +593,11 @@ ShelfWidget::ShelfWidget(WmWindow* wm_shelf_container,
shelf_container->SetLayoutManager(shelf_layout_manager_);
shelf_layout_manager_->set_workspace_controller(workspace_controller);
workspace_controller->SetShelf(shelf_layout_manager_);
+ wm_shelf_aura->SetShelfLayoutManager(shelf_layout_manager_);
- status_area_widget_ = new StatusAreaWidget(wm_status_container, this);
+ // TODO(jamescook): Move ownership to RootWindowController.
+ status_area_widget_ =
+ new StatusAreaWidget(wm_status_container, wm_shelf_aura);
status_area_widget_->CreateTrayViews();
if (Shell::GetInstance()->session_state_delegate()->
IsActiveUserSessionStarted()) {
« no previous file with comments | « ash/shelf/shelf_widget.h ('k') | ash/system/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698