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

Unified Diff: ash/app_list/app_list_presenter_delegate.cc

Issue 2840993002: Revert of Implementation of a full screen app list and re-alphabetized switches (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | ash/app_list/app_list_presenter_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3a1f918c6985516d21f3133561efd7c1829855e3..dbc28e6e2237c28b47cc9a2fb335711877875c13 100644
--- a/ash/app_list/app_list_presenter_delegate.cc
+++ b/ash/app_list/app_list_presenter_delegate.cc
@@ -99,13 +99,11 @@
aura::Window* root_window = wm_root_window->aura_window();
aura::Window* container = GetRootWindowController(root_window)
->GetContainer(kShellWindowId_AppListContainer);
-
- view->Initialize(container, current_apps_page);
-
- if (!app_list::switches::IsFullscreenAppListEnabled()) {
- view->MaybeSetAnchorPoint(GetCenterOfDisplayForWindow(
- wm_root_window, GetMinimumBoundsHeightForAppList(view)));
- }
+ view->InitAsBubble(container, current_apps_page);
+ // The app list is centered over the display.
+ view->SetAnchorPoint(GetCenterOfDisplayForWindow(
+ wm_root_window, GetMinimumBoundsHeightForAppList(view)));
+
keyboard::KeyboardController* keyboard_controller =
keyboard::KeyboardController::GetInstance();
if (keyboard_controller)
@@ -150,7 +148,7 @@
return;
view_->UpdateBounds();
- view_->MaybeSetAnchorPoint(GetCenterOfDisplayForWindow(
+ view_->SetAnchorPoint(GetCenterOfDisplayForWindow(
WmWindow::Get(view_->GetWidget()->GetNativeWindow()),
GetMinimumBoundsHeightForAppList(view_)));
}
« no previous file with comments | « no previous file | ash/app_list/app_list_presenter_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698