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

Issue 2710543002: Linux/Windows: Adding tooltip in profile switcher menu. (Closed)

Created:
3 years, 10 months ago by jlebel
Modified:
3 years, 9 months ago
Reviewers:
Peter Kasting, msarda
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Linux/Windows: Adding tooltip in profile switcher menu. The current profile item menu displays the photo, the profile name and the email (only if the user is signed in). To display the profile name and the email one top of the other, the class NonInteractiveContainer is used. This view blocks the tooltips (see View::CanProcessEventsWithinSubtree()). To solve this problem, this NonInteractiveContainer view is removed and replaced by a GridLayout to be able to show the profile icon on the left, and the profile name and the email on the right. Impact for the current profile in the following cases: - Guest profile - Supervised profile - Not logged in - Logged in - Not logged in with account consistency flag - Logged in with account consistency flag Screenshot on Linux: https://drive.google.com/drive/folders/0ByXziH_JVCGJbExCUkJSeWdmbVk?usp=sharing Tested on windows by msarda BUG=674462 Review-Url: https://codereview.chromium.org/2710543002 Cr-Commit-Position: refs/heads/master@{#453904} Committed: https://chromium.googlesource.com/chromium/src/+/eded7142ea9f7ff109e9b3a5606cac4161aafbdb

Patch Set 1 #

Total comments: 6

Patch Set 2 : Update #

Total comments: 2

Patch Set 3 : Renaming #

Patch Set 4 : Fix for account consistency #

Total comments: 2

Patch Set 5 : Adding tmp variable #

Total comments: 2

Patch Set 6 : Fixing when logged in with account consistency flag #

Total comments: 2

Patch Set 7 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -38 lines) Patch
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 4 chunks +35 lines, -38 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
jlebel
Hello Mihai, Can you review this patch? Thanks,
3 years, 10 months ago (2017-02-20 16:04:09 UTC) #7
msarda
https://codereview.chromium.org/2710543002/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2710543002/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1749 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1749: ? (kCurrentProfileMenuItemHeight / 2) Should you divide by 2 ...
3 years, 10 months ago (2017-02-20 17:01:46 UTC) #8
jlebel
https://codereview.chromium.org/2710543002/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2710543002/diff/1/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1749 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1749: ? (kCurrentProfileMenuItemHeight / 2) On 2017/02/20 17:01:46, msarda wrote: ...
3 years, 10 months ago (2017-02-21 08:28:16 UTC) #11
msarda
LGTM with a nit. https://codereview.chromium.org/2710543002/diff/60001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2710543002/diff/60001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1747 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1747: int row_height = EditableProfilePhoto::icon_image_side() + ...
3 years, 10 months ago (2017-02-21 08:51:48 UTC) #12
jlebel
Hello Peter, I've redone my previous patch by following your advice. I removed the NonInteractiveContainer ...
3 years, 10 months ago (2017-02-21 09:06:18 UTC) #14
Peter Kasting
I'm sort of confused as to how this fixes the bug. Wasn't the original issue ...
3 years, 10 months ago (2017-02-23 02:02:22 UTC) #16
jlebel
Hello Peter, Sorry for taking so much time from you. The goal is to be ...
3 years, 10 months ago (2017-02-23 10:53:41 UTC) #17
jlebel
https://codereview.chromium.org/2710543002/diff/140001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2710543002/diff/140001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1753 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1753: avatar_item.signed_in ? (profile_card_height / 2) : profile_card_height); I don't ...
3 years, 10 months ago (2017-02-23 13:38:23 UTC) #18
Peter Kasting
On 2017/02/23 10:53:41, jlebel wrote: > The previous code was doing that with a first ...
3 years, 10 months ago (2017-02-24 00:48:40 UTC) #19
jlebel
Hello Peter, At the beginning, I didn’t know understand why the author of that code ...
3 years, 9 months ago (2017-02-28 15:21:38 UTC) #22
Peter Kasting
LGTM! On 2017/02/28 15:21:38, jlebel wrote: > I think BackgroundColorHoverButton can probably a subclass of ...
3 years, 9 months ago (2017-03-01 06:15:59 UTC) #23
jlebel
Thanks for your time. https://codereview.chromium.org/2710543002/diff/160001/chrome/browser/ui/views/profiles/profile_chooser_view.cc File chrome/browser/ui/views/profiles/profile_chooser_view.cc (right): https://codereview.chromium.org/2710543002/diff/160001/chrome/browser/ui/views/profiles/profile_chooser_view.cc#newcode1761 chrome/browser/ui/views/profiles/profile_chooser_view.cc:1761: (avatar_item.signed_in && !switches::IsEnableAccountConsistency()); On 2017/03/01 ...
3 years, 9 months ago (2017-03-01 10:39:42 UTC) #24
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/2710543002/180001
3 years, 9 months ago (2017-03-01 10:40:15 UTC) #27
commit-bot: I haz the power
3 years, 9 months ago (2017-03-01 11:25:26 UTC) #30
Message was sent while issue was closed.
Committed patchset #7 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/eded7142ea9f7ff109e9b3a5606c...

Powered by Google App Engine
This is Rietveld 408576698