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

Unified Diff: ash/common/shelf/shelf_widget.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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/common/mojo_interface_factory.cc ('k') | ash/common/shelf/wm_shelf.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_widget.cc
diff --git a/ash/common/shelf/shelf_widget.cc b/ash/common/shelf/shelf_widget.cc
index 4996383c475bb4c9cbe9bae9fa71d403329aa5e3..55e51428c2b72b1f863e03178227fc05d63d87bb 100644
--- a/ash/common/shelf/shelf_widget.cc
+++ b/ash/common/shelf/shelf_widget.cc
@@ -170,7 +170,7 @@ ShelfWidget::ShelfWidget(WmWindow* shelf_container, WmShelf* wm_shelf)
ShelfWidget::~ShelfWidget() {
// Must call Shutdown() before destruction.
DCHECK(!status_area_widget_);
- WmShell::Get()->focus_cycler()->RemoveWidget(this);
+ Shell::Get()->focus_cycler()->RemoveWidget(this);
SetFocusCycler(nullptr);
RemoveObserver(this);
background_animator_.RemoveObserver(delegate_view_);
@@ -185,7 +185,7 @@ void ShelfWidget::CreateStatusAreaWidget(WmWindow* status_container) {
status_area_widget_->CreateTrayViews();
if (WmShell::Get()->session_controller()->IsActiveUserSessionStarted())
status_area_widget_->Show();
- WmShell::Get()->focus_cycler()->AddWidget(status_area_widget_);
+ Shell::Get()->focus_cycler()->AddWidget(status_area_widget_);
background_animator_.AddObserver(status_area_widget_);
status_container->SetLayoutManager(
base::MakeUnique<StatusAreaLayoutManager>(this));
@@ -240,7 +240,7 @@ ShelfView* ShelfWidget::CreateShelfView() {
}
void ShelfWidget::PostCreateShelf() {
- SetFocusCycler(WmShell::Get()->focus_cycler());
+ SetFocusCycler(Shell::Get()->focus_cycler());
// Ensure the newly created |shelf_| gets current values.
background_animator_.NotifyObserver(this);
@@ -294,7 +294,7 @@ void ShelfWidget::Shutdown() {
if (status_area_widget_) {
background_animator_.RemoveObserver(status_area_widget_);
- WmShell::Get()->focus_cycler()->RemoveWidget(status_area_widget_);
+ Shell::Get()->focus_cycler()->RemoveWidget(status_area_widget_);
status_area_widget_->Shutdown();
status_area_widget_ = nullptr;
}
« no previous file with comments | « ash/common/mojo_interface_factory.cc ('k') | ash/common/shelf/wm_shelf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698