| Index: ash/wm/shelf_layout_manager.cc
|
| diff --git a/ash/wm/shelf_layout_manager.cc b/ash/wm/shelf_layout_manager.cc
|
| index 6b37e3fa7c7992143c768270dfa2429c07dba856..eca4c40c5b2f3289ac560ed79147def6f49cfeaa 100644
|
| --- a/ash/wm/shelf_layout_manager.cc
|
| +++ b/ash/wm/shelf_layout_manager.cc
|
| @@ -5,10 +5,10 @@
|
| #include "ash/wm/shelf_layout_manager.h"
|
|
|
| #include "ash/launcher/launcher.h"
|
| +#include "ash/screen_ash.h"
|
| #include "ash/shell.h"
|
| #include "base/auto_reset.h"
|
| #include "ui/aura/root_window.h"
|
| -#include "ui/aura/screen_aura.h"
|
| #include "ui/gfx/compositor/layer.h"
|
| #include "ui/gfx/compositor/layer_animation_observer.h"
|
| #include "ui/gfx/compositor/layer_animator.h"
|
| @@ -43,7 +43,7 @@ ShelfLayoutManager::ShelfLayoutManager(views::Widget* launcher,
|
|
|
| ShelfLayoutManager::~ShelfLayoutManager() {
|
| // Without a shelf we don't need special insets anymore.
|
| - Shell::GetRootWindow()->SetScreenWorkAreaInsets(gfx::Insets());
|
| + Shell::GetInstance()->SetScreenWorkAreaInsets(gfx::Insets());
|
| }
|
|
|
| void ShelfLayoutManager::LayoutShelf() {
|
| @@ -58,7 +58,7 @@ void ShelfLayoutManager::LayoutShelf() {
|
| status_->SetBounds(target_bounds.status_bounds);
|
| Shell::GetInstance()->launcher()->SetStatusWidth(
|
| target_bounds.status_bounds.width());
|
| - Shell::GetRootWindow()->SetScreenWorkAreaInsets(
|
| + Shell::GetInstance()->SetScreenWorkAreaInsets(
|
| target_bounds.work_area_insets);
|
| }
|
|
|
| @@ -150,7 +150,7 @@ void ShelfLayoutManager::CalculateTargetBounds(bool visible,
|
| void ShelfLayoutManager::OnImplicitAnimationsCompleted() {
|
| TargetBounds target_bounds;
|
| CalculateTargetBounds(visible_, &target_bounds);
|
| - Shell::GetRootWindow()->SetScreenWorkAreaInsets(
|
| + Shell::GetInstance()->SetScreenWorkAreaInsets(
|
| target_bounds.work_area_insets);
|
| }
|
|
|
|
|