summaryrefslogtreecommitdiffstats
path: root/ash/wm/app_list_controller.cc
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 07:11:01 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 07:11:01 +0000
commit88d7112796be37d4e1feb0015cfe95c6f39f303c (patch)
treec623905eddba657b6075acb4644259e07b3ef696 /ash/wm/app_list_controller.cc
parentfe217945ffdce156b66be335271301555704cdf8 (diff)
downloadchromium_src-88d7112796be37d4e1feb0015cfe95c6f39f303c.zip
chromium_src-88d7112796be37d4e1feb0015cfe95c6f39f303c.tar.gz
chromium_src-88d7112796be37d4e1feb0015cfe95c6f39f303c.tar.bz2
Remove Shell::shelf|status_area_widget|launcher and
updated all clients to use one on RootWindowController and/or Launcher::ForPrimaryDisplay/ForWindow. BUG=145978 Review URL: https://chromiumcodereview.appspot.com/11017079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162664 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/app_list_controller.cc')
-rw-r--r--ash/wm/app_list_controller.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ash/wm/app_list_controller.cc b/ash/wm/app_list_controller.cc
index c3d1840..f7f7390 100644
--- a/ash/wm/app_list_controller.cc
+++ b/ash/wm/app_list_controller.cc
@@ -115,7 +115,7 @@ void AppListController::SetVisible(bool visible) {
// App list needs to know the new shelf layout in order to calculate its
// UI layout when AppListView visibility changes.
- Shell::GetInstance()->shelf()->UpdateAutoHideState();
+ Shell::GetPrimaryRootWindowController()->shelf()->UpdateAutoHideState();
if (view_) {
ScheduleAnimation();
@@ -128,7 +128,7 @@ void AppListController::SetVisible(bool visible) {
Shell::GetPrimaryRootWindowController()->GetContainer(
kShellWindowId_AppListContainer),
pagination_model_.get(),
- Shell::GetInstance()->launcher()->GetAppListButtonView(),
+ Launcher::ForWindow(GetWindow())->GetAppListButtonView(),
gfx::Point(),
GetBubbleArrowLocation());
SetView(view);
@@ -154,7 +154,7 @@ void AppListController::SetView(app_list::AppListView* view) {
views::Widget* widget = view_->GetWidget();
widget->AddObserver(this);
Shell::GetInstance()->AddEnvEventFilter(this);
- Shell::GetInstance()->launcher()->AddIconObserver(this);
+ Launcher::ForWindow(GetWindow())->AddIconObserver(this);
widget->GetNativeView()->GetRootWindow()->AddRootWindowObserver(this);
widget->GetNativeView()->GetFocusManager()->AddObserver(this);
widget->SetOpacity(0);
@@ -174,7 +174,7 @@ void AppListController::ResetView() {
widget->RemoveObserver(this);
GetLayer(widget)->GetAnimator()->RemoveObserver(this);
Shell::GetInstance()->RemoveEnvEventFilter(this);
- Shell::GetInstance()->launcher()->RemoveIconObserver(this);
+ Launcher::ForWindow(GetWindow())->RemoveIconObserver(this);
widget->GetNativeView()->GetRootWindow()->RemoveRootWindowObserver(this);
widget->GetNativeView()->GetFocusManager()->RemoveObserver(this);
view_ = NULL;