Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Issue 7647002: [Mac] Implement the avatar menu bubble. (Closed)

Created:
9 years, 4 months ago by Robert Sesek
Modified:
9 years, 4 months ago
Reviewers:
sail
CC:
chromium-reviews
Visibility:
Public.

Description

[Mac] Implement the avatar menu bubble. This also makes a change to AvatarMenuModel such that it no longer notifies its delegate that the model changed at time of construction. It will now only notify after any other change occurs. This requires clients to now schedule a layout themselves after constructing the model. BUG=60105 TEST=Run with --multi-profiles. Click on avatar. See bubble menu. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96851

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : Address comments #

Patch Set 4 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1339 lines, -66 lines) Patch
A chrome/app/nibs/AvatarMenuItem.xib View 1 2 1 chunk +592 lines, -0 lines 0 comments Download
M chrome/browser/profiles/avatar_menu_model.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/profiles/avatar_menu_model_unittest.cc View 1 2 3 5 chunks +7 lines, -43 lines 0 comments Download
A chrome/browser/profiles/fake_profile_info_interface.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/profiles/fake_profile_info_interface.cc View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/avatar_button.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/browser/avatar_button.mm View 7 chunks +18 lines, -13 lines 0 comments Download
A chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.h View 1 2 3 1 chunk +112 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.mm View 1 2 3 1 chunk +326 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller_unittest.mm View 1 2 3 1 chunk +192 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_bubble_view.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Robert Sesek
9 years, 4 months ago (2011-08-12 22:55:06 UTC) #1
Robert Sesek
I always forget the screenshots. I even take them -- just forget to attach them. ...
9 years, 4 months ago (2011-08-12 22:55:54 UTC) #2
sail
LGTM! Some layout issues: - Bottom of the New user link should be 12 pixels ...
9 years, 4 months ago (2011-08-13 00:02:39 UTC) #3
Robert Sesek
All changes addressed. Even added a unit test. http://codereview.chromium.org/7647002/diff/2001/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.mm File chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.mm (right): http://codereview.chromium.org/7647002/diff/2001/chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.mm#newcode177 chrome/browser/ui/cocoa/browser/avatar_menu_bubble_controller.mm:177: [newButton ...
9 years, 4 months ago (2011-08-15 20:17:21 UTC) #4
Robert Sesek
Screen shot (do'h): http://cl.ly/0E3o3f2G2l022i1f2j19 "Alpha" is in hover state; "Default" is active.
9 years, 4 months ago (2011-08-15 20:20:55 UTC) #5
sail
9 years, 4 months ago (2011-08-15 21:10:27 UTC) #6
LGTM
The test looks awesome.

Powered by Google App Engine
This is Rietveld 408576698