Customize drawing of the NSSegmentedControl used for the OSX App List pager.
commit28526a10ae14c9abe740322af25029d2a3d85d40
authortapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 9 May 2013 12:50:07 +0000 (9 12:50 +0000)
committertapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 9 May 2013 12:50:07 +0000 (9 12:50 +0000)
tree39a4ab66e96e5a529557ce4cf9c775858fc0214e
parent7e1833c85cdba61ae16bf0bdcd22ddb5aead16cd
Customize drawing of the NSSegmentedControl used for the OSX App List pager.

This makes it look and behave like the CrOS and Windows app list, with a
row of rounded rectangles representing each page. Adds AppListPagerView
a customized NSSegmentedControl with a customized NSSegmentedCell to
draw each segment. AppListPagerView highlights the hovered segment on a
mouse over.

BUG=138633
TEST=Updated app_list_unittests:
 - AppListViewControllerTest.PagerChangingPage,
 - AppsGridControllerTest.PaginationObserverPagesChanged,
 - AppsGridControllerTest.PaginationObserverSelectedPageChanged.

Review URL: https://chromiumcodereview.appspot.com/14940011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199199 0039d316-1c4b-4281-b951-d872f2087c98
12 files changed:
ui/app_list/app_list.gyp
ui/app_list/app_list_constants.cc
ui/app_list/app_list_constants.h
ui/app_list/cocoa/app_list_pager_view.h [new file with mode: 0644]
ui/app_list/cocoa/app_list_pager_view.mm [new file with mode: 0644]
ui/app_list/cocoa/app_list_view_controller.mm
ui/app_list/cocoa/app_list_view_controller_unittest.mm
ui/app_list/cocoa/apps_grid_controller.h
ui/app_list/cocoa/apps_grid_controller.mm
ui/app_list/cocoa/apps_grid_controller_unittest.mm
ui/app_list/cocoa/apps_pagination_model_observer.h
ui/app_list/views/page_switcher.cc