diff options
author | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-18 11:09:33 +0000 |
---|---|---|
committer | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-18 11:09:33 +0000 |
commit | 5be161fb5d87646cbf59ba802a9ac573d4eab40a (patch) | |
tree | a1b3863edc190b0d4c23498bf7f0a307200540eb /ui/ui_unittests.gypi | |
parent | ca43f4da1465d829439f68184f01448b42206483 (diff) | |
download | chromium_src-5be161fb5d87646cbf59ba802a9ac573d4eab40a.zip chromium_src-5be161fb5d87646cbf59ba802a9ac573d4eab40a.tar.gz chromium_src-5be161fb5d87646cbf59ba802a9ac573d4eab40a.tar.bz2 |
Menu for the OSX app launcher, HoverImageMenuButton in src/ui/base/cocoa/controls.
Adds a drop-down menu to the right of the search entry area on the OSX
app launcher. The menu is shown when clicked, and the button responds to
hover effects.
The menu button uses a new class, HoverImageMenuButton, which is derived
from an NSPopUpButton with minor extensions. Notably, it does not have a
dependency on browser themes, as does MenuButton from
chrome/browser/ui/cocoa. It tracks the mouse hover state and updates
the cell, which extends NSPopUpButtonCell and shows only the image in
the control frame -- no border, bezel, label, or dropdown arrow.
HoverImageMenuButtonCell supports a hover image, which behaves much like
an additional 'alternateImage' from NSButtonCell but for the hover
state, rather than the 'pressed' (or 'lit') state.
The menu shows the currently signed-in user, in a custom view as the
first item. It also (currently) shows menu options for Settings, Help, and
Feedback.
BUG=138633
TEST=Added app_list_unittests AppsSearchBoxMenuTest and
AppsSearchBoxMenuTest and tested manually to ensure the items are
launched correctly. Added ui_unittests HoverImageMenuButtonTest.*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206237
Review URL: https://chromiumcodereview.appspot.com/15955003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206930 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/ui_unittests.gypi')
-rw-r--r-- | ui/ui_unittests.gypi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ui_unittests.gypi b/ui/ui_unittests.gypi index b6fa266..7735fcc 100644 --- a/ui/ui_unittests.gypi +++ b/ui/ui_unittests.gypi @@ -140,6 +140,7 @@ 'base/clipboard/custom_data_helper_unittest.cc', 'base/cocoa/base_view_unittest.mm', 'base/cocoa/cocoa_event_utils_unittest.mm', + 'base/cocoa/controls/hover_image_menu_button_unittest.mm', 'base/cocoa/events_mac_unittest.mm', 'base/cocoa/focus_tracker_unittest.mm', 'base/cocoa/fullscreen_window_manager_unittest.mm', |