[Mac] Redesign the new avatar button.
commitc86c1fcf7beec49a7b362208da99904e5aee13fd
authornoms <noms@chromium.org>
Mon, 29 Sep 2014 21:00:42 +0000 (29 14:00 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 29 Sep 2014 21:00:53 +0000 (29 21:00 +0000)
tree300b452f9c100c83649d62967d2d6a0f71a0a14a
parent4c1d1ef9c811b58e83bff3e9cd8012d801bfa88b
[Mac] Redesign the new avatar button.

Screenshots: https://drive.google.com/open?id=0B1B1Up4p2NRMRXpYbGJ6emtlX0U&authuser=1

TL; DR:
- never show a drop down arrow in the button.
- this means that we no longer need to do the auth error drawing magic, as we can use the
button's image. Also cleaned up ALL of that insane code.
- if there is one local, non-signed in profile, show a tiny button with a generic avatar
- in all other cases, show the avatar button with the profile name
- increased the button height by 1px so that it's perfectly aligned with the new tab button

BUG=410946

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

Cr-Commit-Position: refs/heads/master@{#297255}
chrome/app/theme/default_100_percent/mac/avatar_button/sign_in_button_arrow.png [deleted file]
chrome/app/theme/default_100_percent/mac/avatar_button/sign_in_button_arrow_hover.png [deleted file]
chrome/app/theme/default_100_percent/mac/avatar_button/sign_in_button_arrow_pressed.png [deleted file]
chrome/app/theme/default_200_percent/mac/avatar_button/sign_in_button_arrow.png [deleted file]
chrome/app/theme/default_200_percent/mac/avatar_button/sign_in_button_arrow_hover.png [deleted file]
chrome/app/theme/default_200_percent/mac/avatar_button/sign_in_button_arrow_pressed.png [deleted file]
chrome/app/theme/theme_resources.grd
chrome/browser/ui/cocoa/profiles/avatar_button_controller.h
chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm