Index: ash/app_list/app_list_presenter_delegate.cc |
diff --git a/ash/app_list/app_list_presenter_delegate.cc b/ash/app_list/app_list_presenter_delegate.cc |
index dbc28e6e2237c28b47cc9a2fb335711877875c13..a84edc0880ab0147b2979108b0e0857b4b252822 100644 |
--- a/ash/app_list/app_list_presenter_delegate.cc |
+++ b/ash/app_list/app_list_presenter_delegate.cc |
@@ -99,10 +99,11 @@ void AppListPresenterDelegate::Init(app_list::AppListView* view, |
aura::Window* root_window = wm_root_window->aura_window(); |
aura::Window* container = GetRootWindowController(root_window) |
->GetContainer(kShellWindowId_AppListContainer); |
- view->InitAsBubble(container, current_apps_page); |
- // The app list is centered over the display. |
- view->SetAnchorPoint(GetCenterOfDisplayForWindow( |
- wm_root_window, GetMinimumBoundsHeightForAppList(view))); |
+ view->Initialize( |
+ container, current_apps_page, |
+ GetCenterOfDisplayForWindow(wm_root_window, |
+ GetMinimumBoundsHeightForAppList(view)), |
+ ash::ScreenUtil::GetDisplayWorkAreaBoundsInParent(container)); |
vadimt
2017/04/13 21:48:34
Please fix indentation
newcomer
2017/04/18 21:12:33
Done.
|
keyboard::KeyboardController* keyboard_controller = |
keyboard::KeyboardController::GetInstance(); |