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

Issue 7566050: Multi-Profiles: Change avatar menu to bubble view (Closed)

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

Description

Multi-Profiles: Change avatar menu to bubble view BUG= TEST=Ran on views and verified that things looked ok. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96306 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96311

Patch Set 1 #

Total comments: 17

Patch Set 2 : Address review comments #

Total comments: 7

Patch Set 3 : address review comments #

Total comments: 10

Patch Set 4 : address review comments #

Patch Set 5 : Address review comments #

Total comments: 4

Patch Set 6 : address review comments #

Patch Set 7 : fix build #

Patch Set 8 : fix build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -252 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/app/theme/profile_edit.png View 7 Binary file 0 comments Download
A chrome/app/theme/profile_edit_hover.png View 7 Binary file 0 comments Download
A chrome/app/theme/profile_edit_pressed.png View 7 Binary file 0 comments Download
A chrome/app/theme/profile_selected.png View 7 Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/avatar_menu_model.h View 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/avatar_menu_model.cc View 1 2 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/avatar_menu_model_observer.h View 1 2 7 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/profiles/avatar_menu_model_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/ui/views/avatar_menu.h View 7 1 chunk +0 lines, -38 lines 0 comments Download
D chrome/browser/ui/views/avatar_menu.cc View 7 1 chunk +0 lines, -199 lines 0 comments Download
A chrome/browser/ui/views/avatar_menu_bubble_view.h View 1 2 3 4 7 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/avatar_menu_bubble_view.cc View 1 2 3 4 5 7 1 chunk +264 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_button.cc View 1 7 2 chunks +14 lines, -6 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
sail
erg: profiles OWNER sky/pkasting: ui/views OWNER rsesek: everything else
9 years, 4 months ago (2011-08-05 00:10:04 UTC) #1
Elliot Glaysher
LGTM http://codereview.chromium.org/7566050/diff/1/chrome/browser/profiles/avatar_menu_model.cc File chrome/browser/profiles/avatar_menu_model.cc (right): http://codereview.chromium.org/7566050/diff/1/chrome/browser/profiles/avatar_menu_model.cc#newcode73 chrome/browser/profiles/avatar_menu_model.cc:73: void AvatarMenuModel::SwitchToProfile(size_t index) { Haha. I have to ...
9 years, 4 months ago (2011-08-05 00:14:31 UTC) #2
Robert Sesek
http://codereview.chromium.org/7566050/diff/1/chrome/browser/profiles/avatar_menu_model.cc File chrome/browser/profiles/avatar_menu_model.cc (right): http://codereview.chromium.org/7566050/diff/1/chrome/browser/profiles/avatar_menu_model.cc#newcode73 chrome/browser/profiles/avatar_menu_model.cc:73: void AvatarMenuModel::SwitchToProfile(size_t index) { On 2011/08/05 00:14:31, Elliot Glaysher ...
9 years, 4 months ago (2011-08-05 00:44:02 UTC) #3
sail
http://codereview.chromium.org/7566050/diff/1/chrome/browser/ui/views/avatar_menu_bubble_view.cc File chrome/browser/ui/views/avatar_menu_bubble_view.cc (right): http://codereview.chromium.org/7566050/diff/1/chrome/browser/ui/views/avatar_menu_bubble_view.cc#newcode22 chrome/browser/ui/views/avatar_menu_bubble_view.cc:22: const int ITEM_WIDTH = 210; On 2011/08/05 00:44:03, rsesek ...
9 years, 4 months ago (2011-08-05 01:28:21 UTC) #4
Robert Sesek
http://codereview.chromium.org/7566050/diff/7001/chrome/browser/ui/views/avatar_menu_bubble_view.cc File chrome/browser/ui/views/avatar_menu_bubble_view.cc (right): http://codereview.chromium.org/7566050/diff/7001/chrome/browser/ui/views/avatar_menu_bubble_view.cc#newcode38 chrome/browser/ui/views/avatar_menu_bubble_view.cc:38: int scaled_width; Two-space indents http://codereview.chromium.org/7566050/diff/7001/chrome/browser/ui/views/avatar_menu_bubble_view.cc#newcode152 chrome/browser/ui/views/avatar_menu_bubble_view.cc:152: OnAvatarMenuModelChanged(); The MenuModel ...
9 years, 4 months ago (2011-08-05 01:34:21 UTC) #5
Robert Sesek
http://codereview.chromium.org/7566050/diff/7001/chrome/browser/ui/views/avatar_menu_bubble_view.cc File chrome/browser/ui/views/avatar_menu_bubble_view.cc (right): http://codereview.chromium.org/7566050/diff/7001/chrome/browser/ui/views/avatar_menu_bubble_view.cc#newcode209 chrome/browser/ui/views/avatar_menu_bubble_view.cc:209: // TODO(sail): This function can get called before our ...
9 years, 4 months ago (2011-08-05 01:41:21 UTC) #6
sail
http://codereview.chromium.org/7566050/diff/7001/chrome/browser/ui/views/avatar_menu_bubble_view.cc File chrome/browser/ui/views/avatar_menu_bubble_view.cc (right): http://codereview.chromium.org/7566050/diff/7001/chrome/browser/ui/views/avatar_menu_bubble_view.cc#newcode38 chrome/browser/ui/views/avatar_menu_bubble_view.cc:38: int scaled_width; On 2011/08/05 01:34:21, rsesek wrote: > Two-space ...
9 years, 4 months ago (2011-08-05 01:50:24 UTC) #7
Robert Sesek
LGTM. I'm not a views expert, though.
9 years, 4 months ago (2011-08-05 01:51:30 UTC) #8
sail
On 2011/08/05 01:51:30, rsesek wrote: > LGTM. I'm not a views expert, though. Thanks for ...
9 years, 4 months ago (2011-08-05 01:54:32 UTC) #9
Peter Kasting
http://codereview.chromium.org/7566050/diff/5005/chrome/browser/ui/views/avatar_menu_bubble_view.cc File chrome/browser/ui/views/avatar_menu_bubble_view.cc (right): http://codereview.chromium.org/7566050/diff/5005/chrome/browser/ui/views/avatar_menu_bubble_view.cc#newcode56 chrome/browser/ui/views/avatar_menu_bubble_view.cc:56: class AddUserButton : public views::ImageButton { You should use ...
9 years, 4 months ago (2011-08-05 18:08:33 UTC) #10
sky
Since Peter is reviewing this I'm removing myself. -Scott
9 years, 4 months ago (2011-08-08 15:39:15 UTC) #11
sail
http://codereview.chromium.org/7566050/diff/5005/chrome/browser/ui/views/avatar_menu_bubble_view.cc File chrome/browser/ui/views/avatar_menu_bubble_view.cc (right): http://codereview.chromium.org/7566050/diff/5005/chrome/browser/ui/views/avatar_menu_bubble_view.cc#newcode56 chrome/browser/ui/views/avatar_menu_bubble_view.cc:56: class AddUserButton : public views::ImageButton { On 2011/08/05 18:08:33, ...
9 years, 4 months ago (2011-08-09 00:47:47 UTC) #12
Peter Kasting
LGTM except for one pretty important issue http://codereview.chromium.org/7566050/diff/12002/chrome/browser/ui/views/avatar_menu_bubble_view.cc File chrome/browser/ui/views/avatar_menu_bubble_view.cc (right): http://codereview.chromium.org/7566050/diff/12002/chrome/browser/ui/views/avatar_menu_bubble_view.cc#newcode108 chrome/browser/ui/views/avatar_menu_bubble_view.cc:108: return normal ...
9 years, 4 months ago (2011-08-09 21:49:05 UTC) #13
sail
http://codereview.chromium.org/7566050/diff/12002/chrome/browser/ui/views/avatar_menu_bubble_view.cc File chrome/browser/ui/views/avatar_menu_bubble_view.cc (right): http://codereview.chromium.org/7566050/diff/12002/chrome/browser/ui/views/avatar_menu_bubble_view.cc#newcode108 chrome/browser/ui/views/avatar_menu_bubble_view.cc:108: return normal ? SkColorSetRGB(30, 30, 30) : SkColorSetRGB(0, 0, ...
9 years, 4 months ago (2011-08-09 23:10:51 UTC) #14
Peter Kasting
9 years, 4 months ago (2011-08-09 23:14:07 UTC) #15
On 2011/08/09 23:10:51, sail wrote:
> Ahh good point, if you don't mind I'll fix this in a second CL.

That's fine.

Powered by Google App Engine
This is Rietveld 408576698