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

Issue 8709001: Views: Custom drawing for GAIA avatar pictures (Closed)

Created:
9 years ago by sail
Modified:
9 years ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Visibility:
Public.

Description

Views: Custom drawing for GAIA avatar pictures This CL updates the way we draw GAIA avatar pictures in the title bar and in the avatar menu bubble. Screenshots: normal: http://imgur.com/zkzl1,6tZfR#0 maximized: http://imgur.com/zkzl1,6tZfR#1 BUG=91241 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112171 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112177

Patch Set 1 #

Total comments: 5

Patch Set 2 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -32 lines) Patch
M chrome/browser/ui/views/avatar_menu_bubble_view.cc View 1 6 chunks +20 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_button.h View 1 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_button.cc View 7 chunks +30 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
sail
http://codereview.chromium.org/8709001/diff/1/chrome/browser/ui/views/avatar_menu_bubble_view.cc File chrome/browser/ui/views/avatar_menu_bubble_view.cc (left): http://codereview.chromium.org/8709001/diff/1/chrome/browser/ui/views/avatar_menu_bubble_view.cc#oldcode236 chrome/browser/ui/views/avatar_menu_bubble_view.cc:236: icon.width(), icon.height(), 0, 0, kIconWidth, height()); This old code ...
9 years ago (2011-11-26 06:59:04 UTC) #1
Peter Kasting
LGTM http://codereview.chromium.org/8709001/diff/1/chrome/browser/ui/views/avatar_menu_button.cc File chrome/browser/ui/views/avatar_menu_button.cc (right): http://codereview.chromium.org/8709001/diff/1/chrome/browser/ui/views/avatar_menu_button.cc#newcode60 chrome/browser/ui/views/avatar_menu_button.cc:60: int x = 2; Nit: Wouldn't it make ...
9 years ago (2011-11-28 22:01:36 UTC) #2
sail
http://codereview.chromium.org/8709001/diff/1/chrome/browser/ui/views/avatar_menu_button.cc File chrome/browser/ui/views/avatar_menu_button.cc (right): http://codereview.chromium.org/8709001/diff/1/chrome/browser/ui/views/avatar_menu_button.cc#newcode60 chrome/browser/ui/views/avatar_menu_button.cc:60: int x = 2; On 2011/11/28 22:01:36, Peter Kasting ...
9 years ago (2011-11-28 23:09:36 UTC) #3
Peter Kasting
On 2011/11/28 23:09:36, sail wrote: > On 2011/11/28 22:01:36, Peter Kasting wrote: > > This ...
9 years ago (2011-11-29 00:49:48 UTC) #4
Peter Kasting
9 years ago (2011-11-29 00:49:48 UTC) #5
On 2011/11/28 23:09:36, sail wrote:
> On 2011/11/28 22:01:36, Peter Kasting wrote:
> > This would be robust against any size changes.
> 
> I think that's a good idea. I'm working on a separate CL to clean up this
> function. Mind if I do this change in that CL?

Whatever you like.

> On 2011/11/28 22:01:36, Peter Kasting wrote:
> > Nit: Why use a scoped_ptr here?  Why not just use an object and say "icon_ =
> > icon;"?
> 
> gfx::Image doesn't have a default constructor so it's hard to use a object
> variable here.

Ah.

I wonder if it would be sane to try and create a NULL constructor.  SkBitmap has
one so it seems like gfx::Image could have one that meant something similar. 
Outside the scope of this change.  Up to you whether you want to comment on the
declaration why we use a scoped_ptr.

Powered by Google App Engine
This is Rietveld 408576698