Make the ChromeOS app list button trigger on mouse press.
commitd2ca3e8488453da2b6f8f6054323dcdaa0b128e5
authorcalamity <calamity@chromium.org>
Mon, 11 May 2015 10:08:48 +0000 (11 03:08 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 May 2015 10:09:59 +0000 (11 10:09 +0000)
treeee0642746c14fc40ce15c68a8e9451518c6d9e76
parent162a8f0947c29005a2e834bdd8733e24e252048e
Make the ChromeOS app list button trigger on mouse press.

This CL makes the app list button trigger on mouse press by adding a
set_notify_action() method to CustomButton which lets clients choose
when the ButtonListener should be notified.

This will fix an issue with the app list reshowing on slow mouse presses
and decrease perceived app list startup time.

BUG=484860

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

Cr-Commit-Position: refs/heads/master@{#329132}
ash/shelf/app_list_button.cc
ui/views/controls/button/custom_button.cc
ui/views/controls/button/custom_button.h
ui/views/controls/button/custom_button_unittest.cc