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

Unified Diff: ash/wm/app_list_controller.cc

Issue 237533015: ChromeOS: Keep app list centered when the display rotates by 90 degrees. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Formatting. Created 6 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 | ui/app_list/views/app_list_view.h » ('j') | ui/app_list/views/app_list_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/app_list_controller.cc
diff --git a/ash/wm/app_list_controller.cc b/ash/wm/app_list_controller.cc
index d26ff37bcd75d0df703dcb32088c3def8b172185..bf631e79a21b97b53544dd23f26532b49237fb69 100644
--- a/ash/wm/app_list_controller.cc
+++ b/ash/wm/app_list_controller.cc
@@ -167,10 +167,10 @@ void AppListController::SetVisible(bool visible, aura::Window* window) {
GetContainer(kShellWindowId_AppListContainer);
if (app_list::switches::IsExperimentalAppListPositionEnabled()) {
// The experimental app list is centered over the primary display.
- view->InitAsBubbleAtFixedLocation(
+ view->InitAsBubbleCenteredOnPrimaryDisplay(
NULL,
pagination_model_.get(),
- Shell::GetScreen()->GetPrimaryDisplay().bounds().CenterPoint(),
+ Shell::GetScreen(),
views::BubbleBorder::FLOAT,
true /* border_accepts_events */);
} else {
« no previous file with comments | « no previous file | ui/app_list/views/app_list_view.h » ('j') | ui/app_list/views/app_list_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698