Mac App Launcher is positioned on center of dock in certain cases.
commitabcefa3eed579940f110161115029ee67df7a9fc
authormgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Dec 2013 02:11:04 +0000 (4 02:11 +0000)
committermgiuca@chromium.org <mgiuca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Dec 2013 02:11:04 +0000 (4 02:11 +0000)
treea1707d1f9fe73e89b554aa1daca06b2143e51033
parent1a546a504716f0cbe233d8b35b0e7be163a545e9
Mac App Launcher is positioned on center of dock in certain cases.

The app launcher will be positioned on the center of the dock if the
cursor is not visible (previously would be in the lower-left corner) or
too far away from the dock (previously would be aligned with the cursor).

BUG=312851

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238528 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/app_list/app_list_positioner.cc
chrome/browser/ui/app_list/app_list_positioner.h
chrome/browser/ui/app_list/app_list_positioner_unittest.cc
chrome/browser/ui/app_list/app_list_service_mac.mm
chrome/browser/ui/app_list/app_list_service_mac_unittest.mm