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

Issue 2832823002: Update avatar button to MD (Closed)

Created:
3 years, 8 months ago by emx
Modified:
3 years, 3 months ago
CC:
chromium-reviews, tfarina, oshima+watch_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update avatar button to MD Summary of changes made [ see screenshots in https://bugs.chromium.org/p/chromium/issues/detail?id=635699&desc=2#c36 ]: 1) Show new MD button only on Windows 10 and only if not using a theme 2) Make MD button "cozy" (22px) when tabstrip is full and not maximised and text direction is LTR (RTL can be tested with --force-ui-direction=rtl) 3) Make "tall" (non-cozy) MD button the same height as caption bar buttons - it's not pixel-perfect (see issue 668278) 4) Change icon and highlighting for MD button (see screenshots attached) 5) Show "ink drop" animation when MD button is clicked, like for bookmarks bar and other menu buttons 6) Make menu appear on press, not on release (for all platforms, not just Windows 10) 7) Keep button in "pressed" state while the profile menu is shown (for all platforms) BUG=635699

Patch Set 1 #

Patch Set 2 : Linux build fixes #

Patch Set 3 : Fixed ProfileChooserViewExtensionsTest browser tests #

Total comments: 24

Patch Set 4 : Addressed review comments and fixed border issue at 150% and 175% scaling #

Patch Set 5 : Fixed bad merge that duplicated the GetMinimizeButtonHeight() method in some files #

Total comments: 2

Patch Set 6 : Fixed button border and merged in CL 2833363002 #

Patch Set 7 : Rebased on CL 2833363002 #

Total comments: 22

Patch Set 8 : Fix for --force-device-scale-factor, vector icon, review comments #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+527 lines, -237 lines) Patch
M chrome/browser/ui/views/frame/avatar_button_manager.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/frame/avatar_button_manager.cc View 1 2 3 4 5 6 7 3 chunks +36 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc View 1 2 3 4 5 6 7 5 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.h View 1 2 3 4 5 6 7 6 chunks +19 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 6 7 13 chunks +79 lines, -24 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_button_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.h View 1 2 3 4 5 6 7 3 chunks +72 lines, -21 lines 11 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.cc View 1 2 3 4 5 6 7 6 chunks +211 lines, -110 lines 2 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 5 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 5 chunks +22 lines, -5 lines 2 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M ui/display/win/screen_win.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ui/display/win/screen_win.cc View 1 2 3 4 5 6 7 2 chunks +27 lines, -23 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 40 (28 generated)
emx
Initial review, please!
3 years, 8 months ago (2017-04-20 15:42:07 UTC) #10
msarda
The CL looks good overall. I have a bunch of nit comments. I think for ...
3 years, 8 months ago (2017-04-21 09:43:28 UTC) #13
emx
Mihai, I've addressed all your comments and also: 1) Fixed an issue where the cozy ...
3 years, 8 months ago (2017-04-24 16:23:10 UTC) #17
msarda
LGTM with 2 nits. https://codereview.chromium.org/2832823002/diff/80001/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/2832823002/diff/80001/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode164 chrome/browser/ui/views/profiles/new_avatar_button.cc:164: void AvatarButton::SetButtonFromIdr(const int button_idr) { ...
3 years, 8 months ago (2017-04-25 08:26:02 UTC) #24
emx
Hi Peter, this is the main CL for the avatar button change, which includes the ...
3 years, 8 months ago (2017-04-25 12:42:00 UTC) #26
Peter Kasting
Only reviewed up through browser_non_client_frame_view_mus.cc due to lack of time. https://codereview.chromium.org/2832823002/diff/120001/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/2832823002/diff/120001/chrome/app/theme/theme_resources.grd#newcode438 ...
3 years, 8 months ago (2017-04-26 02:09:53 UTC) #31
Evan Stade
Peter pinged me to take a look at this CL because I'm working on a ...
3 years, 7 months ago (2017-04-27 01:30:55 UTC) #33
emx
https://codereview.chromium.org/2832823002/diff/120001/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/2832823002/diff/120001/chrome/app/theme/theme_resources.grd#newcode438 chrome/app/theme/theme_resources.grd:438: <structure type="chrome_scaled_image" name="IDR_AVATAR_MD_BUTTON_AVATAR" file="win/avatar_button/win10/sign_in_button_avatar.png" /> On 2017/04/26 02:09:53, Peter ...
3 years, 7 months ago (2017-04-27 16:30:59 UTC) #34
Evan Stade
https://codereview.chromium.org/2832823002/diff/140001/chrome/browser/ui/views/profiles/new_avatar_button.h File chrome/browser/ui/views/profiles/new_avatar_button.h (right): https://codereview.chromium.org/2832823002/diff/140001/chrome/browser/ui/views/profiles/new_avatar_button.h#newcode75 chrome/browser/ui/views/profiles/new_avatar_button.h:75: class NewAvatarButton : public AvatarButton { On 2017/04/27 16:30:58, ...
3 years, 7 months ago (2017-04-27 17:03:30 UTC) #35
Peter Kasting
Sorry, I didn't get to reviewing the new version of this before going on vacation. ...
3 years, 7 months ago (2017-04-28 06:51:55 UTC) #36
Peter Kasting
It looks like you split out part of this into https://codereview.chromium.org/2851543002/ . I'm going to ...
3 years, 7 months ago (2017-05-05 23:59:27 UTC) #37
Peter Kasting
3 years, 3 months ago (2017-08-29 04:10:32 UTC) #40
Message was sent while issue was closed.
Author no longer on the project; closing.  +CC bsep as feature owner in case
there's any value here (though it'd probably take a rebase to find out).

Powered by Google App Engine
This is Rietveld 408576698