Use centered app list position whenever virtual keyboard is allowed.
commit50b6e8e64dd500666c92e9c6d6f556786ebeec9f
authormgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 10 May 2014 07:51:27 +0000 (10 07:51 +0000)
committermgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 10 May 2014 07:51:27 +0000 (10 07:51 +0000)
treeb40170ce01debf75ae42e90669ae89a513aa3b56
parent7f03f103e7539c1168fa3722629d6f00597be27c
Use centered app list position whenever virtual keyboard is allowed.

Previously, the app list would be centered only when the virtual
keyboard is enabled. Now it is centered whenever the virtual keyboard
might be enabled, with the following new cases:
- If --ash-enable-touch-view-testing is on.
- If any accelerometer data is detected (as this can trigger virtual
keyboard).

BUG=369382
TEST=Run ChromeOS with --ash-enable-touch-view-testing. App launcher
should be centered and landscape.

Review URL: https://codereview.chromium.org/264523002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269556 0039d316-1c4b-4281-b951-d872f2087c98
ash/wm/maximize_mode/maximize_mode_controller.cc
ash/wm/maximize_mode/maximize_mode_controller.h
chrome/browser/ui/app_list/app_list_view_delegate.cc