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

Issue 2851543002: Update avatar button to MD (part 1) (Closed)

Created:
3 years, 7 months ago by emx
Modified:
3 years, 7 months ago
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update avatar button to MD (part 1) 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" (20px) 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 bug 716365) 4) Change icon and highlighting for MD button 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) BUG=635699 Review-Url: https://codereview.chromium.org/2851543002 Cr-Commit-Position: refs/heads/master@{#471279} Committed: https://chromium.googlesource.com/chromium/src/+/da9bbac7c610430c9b94142d83ce56ee1d4f2f87

Patch Set 1 #

Total comments: 9

Patch Set 2 : Renamed NewAvatarButton->ThemedAvatarButton and MaterialDesignAvatarButton->Win10NativeAvatarButton… #

Total comments: 12

Patch Set 3 : More review changes #

Total comments: 21

Patch Set 4 : Further review changes #

Patch Set 5 : Made AvatarButton inherit from LabelButton once more (instead of MenuButton) #

Patch Set 6 : Merged ThemedAvatarButton and Win10NativeAvatarButton into the base AvatarButton class #

Total comments: 107

Patch Set 7 : Review changes and MinimizeButtonMetrics for avatar button width/height #

Patch Set 8 : Rebased on CL 2868293002 [Rename new_avatar_button.* to avatar_button] #

Total comments: 14

Patch Set 9 : Using a hardcoded minimum width again + other fixes #

Patch Set 10 : Fixed TODO comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -178 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/avatar_button_error_controller_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/avatar_button_manager.h View 1 2 3 4 5 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/avatar_button_manager.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.h View 1 2 3 4 5 6 7 8 5 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 chunks +67 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_button.h View 1 2 3 4 5 6 7 8 2 chunks +28 lines, -20 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_button.cc View 1 2 3 4 5 6 7 8 9 5 chunks +154 lines, -89 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_button_delegate.h View 1 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/controls/button/label_button.h View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 3 4 5 6 4 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 67 (39 generated)
emx
Hi Evan, I've made the changes from your review of CL 2832823002 here (except renaming ...
3 years, 7 months ago (2017-04-27 16:32:22 UTC) #3
Evan Stade
thanks for splitting this out! Could you make the CL description stand on its own, ...
3 years, 7 months ago (2017-04-27 17:15:02 UTC) #4
emx
I've renamed and moved the derived AvatarButton classes as requested in the other CL and ...
3 years, 7 months ago (2017-04-28 12:39:40 UTC) #6
Evan Stade
https://codereview.chromium.org/2851543002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.h File chrome/browser/ui/views/profiles/new_avatar_button.h (right): https://codereview.chromium.org/2851543002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.h#newcode19 chrome/browser/ui/views/profiles/new_avatar_button.h:19: class AvatarButton : public views::MenuButton, On 2017/04/28 12:39:40, emx ...
3 years, 7 months ago (2017-04-28 18:38:30 UTC) #11
emx
https://codereview.chromium.org/2851543002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.h File chrome/browser/ui/views/profiles/new_avatar_button.h (right): https://codereview.chromium.org/2851543002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.h#newcode19 chrome/browser/ui/views/profiles/new_avatar_button.h:19: class AvatarButton : public views::MenuButton, On 2017/04/28 18:38:29, Evan ...
3 years, 7 months ago (2017-05-02 15:17:11 UTC) #14
Evan Stade
thanks, patch is making great progress https://codereview.chromium.org/2851543002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.h File chrome/browser/ui/views/profiles/new_avatar_button.h (right): https://codereview.chromium.org/2851543002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.h#newcode19 chrome/browser/ui/views/profiles/new_avatar_button.h:19: class AvatarButton : ...
3 years, 7 months ago (2017-05-02 15:49:20 UTC) #15
chromium-reviews
Thanks for the quick review! I really don't know whether the avatar button is like ...
3 years, 7 months ago (2017-05-02 16:02:39 UTC) #16
Evan Stade
https://codereview.chromium.org/2851543002/diff/40001/chrome/browser/ui/views/profiles/win10_native_avatar_button.cc File chrome/browser/ui/views/profiles/win10_native_avatar_button.cc (right): https://codereview.chromium.org/2851543002/diff/40001/chrome/browser/ui/views/profiles/win10_native_avatar_button.cc#newcode15 chrome/browser/ui/views/profiles/win10_native_avatar_button.cc:15: const int kButtonMinWidth = 48; nit: unnamed namespace for ...
3 years, 7 months ago (2017-05-03 16:39:36 UTC) #19
emx
This patch set addresses all comments except for these 3 outstanding issues: 1) Changing base ...
3 years, 7 months ago (2017-05-03 17:11:00 UTC) #20
Evan Stade
https://codereview.chromium.org/2851543002/diff/40001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/2851543002/diff/40001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode739 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:739: ChildPreferredSizeChanged(profile_switcher_.view()); On 2017/05/03 17:10:59, emx wrote: > On 2017/05/02 ...
3 years, 7 months ago (2017-05-03 23:18:09 UTC) #21
emx
This addresses all the outstanding changes requested by Evan. Peter, adding you back to this ...
3 years, 7 months ago (2017-05-04 13:48:33 UTC) #28
Evan Stade
thanks for bearing with throughout this review. lgtm pending Peter's review. https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): ...
3 years, 7 months ago (2017-05-04 15:56:28 UTC) #29
Peter Kasting
https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode133 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:133: tab_strip_ = nullptr; On 2017/05/04 15:56:28, Evan Stade wrote: ...
3 years, 7 months ago (2017-05-06 02:23:09 UTC) #30
emx
https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode133 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:133: tab_strip_ = nullptr; On 2017/05/06 02:23:08, Peter Kasting wrote: ...
3 years, 7 months ago (2017-05-09 16:26:53 UTC) #31
Peter Kasting
Have not re-reviewed -- just responding to comments. Wanted to send a word of encouragement. ...
3 years, 7 months ago (2017-05-09 17:40:29 UTC) #32
emx
> Wanted to send a word of encouragement. This is a big change, and you've ...
3 years, 7 months ago (2017-05-10 17:38:49 UTC) #38
Peter Kasting
LGTM https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode427 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:427: frame()->GetRootView()->Layout(); On 2017/05/10 17:38:48, emx wrote: > On ...
3 years, 7 months ago (2017-05-11 01:03:44 UTC) #39
emx
Thanks a lot for that long-awaited LGTM! Submitting the remaining changes. https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): ...
3 years, 7 months ago (2017-05-11 12:56:11 UTC) #42
emx
Hi Mike, could you review the label_button changes, please?
3 years, 7 months ago (2017-05-11 12:57:20 UTC) #44
Evan Stade
https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode427 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:427: frame()->GetRootView()->Layout(); On 2017/05/11 01:03:42, Peter Kasting wrote: > On ...
3 years, 7 months ago (2017-05-11 14:29:09 UTC) #49
Peter Kasting
https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/2851543002/diff/120001/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode427 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:427: frame()->GetRootView()->Layout(); On 2017/05/11 14:29:09, Evan Stade wrote: > On ...
3 years, 7 months ago (2017-05-11 15:04:34 UTC) #50
msw
label_button.* rubber stamp lgtm
3 years, 7 months ago (2017-05-11 16:50:12 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2851543002/240001
3 years, 7 months ago (2017-05-12 08:22:42 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/292268)
3 years, 7 months ago (2017-05-12 09:14:41 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2851543002/240001
3 years, 7 months ago (2017-05-12 09:20:47 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/425040)
3 years, 7 months ago (2017-05-12 10:27:40 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2851543002/240001
3 years, 7 months ago (2017-05-12 11:34:32 UTC) #64
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 12:20:58 UTC) #67
Message was sent while issue was closed.
Committed patchset #10 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/da9bbac7c610430c9b94142d83ce...

Powered by Google App Engine
This is Rietveld 408576698