summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authormgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-25 09:27:48 +0000
committermgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-25 09:27:48 +0000
commiteb37ae3472e5efea4fc6f278b943b2e845dc0682 (patch)
treea9da270f7d32bebdf283c06dfdd969e932dbc4fe /ash
parentfabfe23bc1bf59c4cb0536d397611239d3c908ff (diff)
downloadchromium_src-eb37ae3472e5efea4fc6f278b943b2e845dc0682.zip
chromium_src-eb37ae3472e5efea4fc6f278b943b2e845dc0682.tar.gz
chromium_src-eb37ae3472e5efea4fc6f278b943b2e845dc0682.tar.bz2
ChromeOS: Keep app list centered when the display rotates by 90 degrees.
Only relevant for the --enable-experimental-app-list-position flag. AppListView now has a mode where it automatically keeps the bubble centered on the screen's primary display, rather than a fixed position. BUG=363928 TEST=Run with --enable-experimental-app-list-position. Open the app list, press Ctrl+Shift+F3 to rotate. App list should remain centered. Review URL: https://codereview.chromium.org/237533015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266176 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r--ash/wm/app_list_controller.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ash/wm/app_list_controller.cc b/ash/wm/app_list_controller.cc
index d26ff37..bf631e7 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 {