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

Issue 264303006: Support full-screen and single-profile avatar bubbles. (Closed)

Created:
6 years, 7 months ago by msw
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tfarina, guohui, noms (inactive), James Cook, jwd, Bernhard Bauer, Matt Giuca
Visibility:
Public.

Description

Support full-screen and single-profile avatar bubbles. Enable IDC_SHOW_AVATAR_MENU for normal browser windows. (full-screen and single-profile windows are now allowed) (non-tabbed and incognito windows are still disallowed) Nix BrowserCommandController's use of ProfileManager. (no commands rely on the profile count anymore) Cleanup some BrowserCommandController code. Inline AvatarMenuButton::ShowAvatarBubble in BrowserView. (ShowAvatarBubbleFromAvatarButton needs to set an anchor) (single-profile windows have no avatar icon; use hotdogs) Anchor to the Chrome menu button in Mac single-profile too. Take an ArrowPaintType in AvatarMenuBubbleView::ShowBubble. (lets fullscreen hide the arrow, there's no visible anchor) (this corresponds with fullscreen bookmark bubble behavior) Remove a stale Windows Valgrind DrMemory test exclusion entry. (test name was changed, but the exclusion wasn't; isn't needed) BUG=255452, 167014 TEST=The avatar menu shows for Ctrl+Shift+M even in fullscreen and even for single-profile Chrome windows. Test with and without the experimental --new-profile-management, and in LTR and RTL Chrome UI modes. R=pkasting@chromium.org, asvitkine@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270126

Patch Set 1 #

Total comments: 6

Patch Set 2 : Support the avatar bubble in browser window fullscreen. #

Patch Set 3 : Support the avatar bubble for single profile browser windows. #

Patch Set 4 : Nix BrowserCommandController's use of profile counts; cleanup. #

Patch Set 5 : Fix single-profile anchoring on Mac. #

Patch Set 6 : Update unit tests; remove stale test exclusion. #

Patch Set 7 : Never enable the command on ChromeOS. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -156 lines) Patch
M chrome/browser/ui/browser.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.h View 1 2 3 6 chunks +1 line, -15 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 7 chunks +17 lines, -65 lines 0 comments Download
M chrome/browser/ui/browser_command_controller_unittest.cc View 1 2 3 4 5 10 chunks +16 lines, -36 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_menu_bubble_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_menu_button.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_menu_button.cc View 1 2 3 3 chunks +4 lines, -27 lines 0 comments Download
M tools/valgrind/gtest_exclude/unit_tests.gtest-drmemory_win32.txt View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
msw
Hey Peter, please take a look; thanks!
6 years, 7 months ago (2014-05-07 19:38:10 UTC) #1
Peter Kasting
https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc File chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc (left): https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc#oldcode494 chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc:494: DCHECK(chrome::IsCommandEnabled(browser, IDC_SHOW_AVATAR_MENU)); So it actually makes sense to show ...
6 years, 7 months ago (2014-05-07 20:58:44 UTC) #2
msw
https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc File chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc (left): https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc#oldcode494 chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc:494: DCHECK(chrome::IsCommandEnabled(browser, IDC_SHOW_AVATAR_MENU)); On 2014/05/07 20:58:44, Peter Kasting wrote: > ...
6 years, 7 months ago (2014-05-07 21:31:07 UTC) #3
Peter Kasting
https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc File chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc (left): https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc#oldcode494 chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc:494: DCHECK(chrome::IsCommandEnabled(browser, IDC_SHOW_AVATAR_MENU)); On 2014/05/07 21:31:07, msw wrote: > On ...
6 years, 7 months ago (2014-05-07 21:33:36 UTC) #4
msw
https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc File chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc (left): https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc#oldcode494 chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc:494: DCHECK(chrome::IsCommandEnabled(browser, IDC_SHOW_AVATAR_MENU)); On 2014/05/07 21:33:36, Peter Kasting wrote: > ...
6 years, 7 months ago (2014-05-07 21:47:42 UTC) #5
Peter Kasting
https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc File chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc (left): https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc#oldcode494 chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc:494: DCHECK(chrome::IsCommandEnabled(browser, IDC_SHOW_AVATAR_MENU)); On 2014/05/07 21:47:43, msw wrote: > On ...
6 years, 7 months ago (2014-05-07 21:50:04 UTC) #6
msw
https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc File chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc (left): https://codereview.chromium.org/264303006/diff/1/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc#oldcode494 chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc:494: DCHECK(chrome::IsCommandEnabled(browser, IDC_SHOW_AVATAR_MENU)); On 2014/05/07 21:50:05, Peter Kasting wrote: > ...
6 years, 7 months ago (2014-05-07 23:19:18 UTC) #7
Peter Kasting
On 2014/05/07 23:19:18, msw wrote: > The latest patch set adds support for the command ...
6 years, 7 months ago (2014-05-07 23:21:00 UTC) #8
msw
On 2014/05/07 23:21:00, Peter Kasting wrote: > On 2014/05/07 23:19:18, msw wrote: > > The ...
6 years, 7 months ago (2014-05-07 23:50:02 UTC) #9
Peter Kasting
On 2014/05/07 23:50:02, msw wrote: > Anyway, > the menu does show an add user ...
6 years, 7 months ago (2014-05-07 23:57:00 UTC) #10
msw
On 2014/05/07 23:57:00, Peter Kasting wrote: > On 2014/05/07 23:50:02, msw wrote: > > Anyway, ...
6 years, 7 months ago (2014-05-09 01:10:12 UTC) #11
msw
Friendly ping, please take a look as you have time; thanks!
6 years, 7 months ago (2014-05-12 23:04:05 UTC) #12
Peter Kasting
LGTM
6 years, 7 months ago (2014-05-12 23:38:24 UTC) #13
msw
Hey Alexei, please review c/b/ui/cocoa/browser_window_cocoa.mm; thanks!
6 years, 7 months ago (2014-05-13 08:11:42 UTC) #14
Alexei Svitkine (slow)
cocoa lgtm
6 years, 7 months ago (2014-05-13 14:42:20 UTC) #15
msw
The CQ bit was checked by msw@chromium.org
6 years, 7 months ago (2014-05-13 14:43:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/264303006/170001
6 years, 7 months ago (2014-05-13 14:43:22 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 16:47:16 UTC) #18
Message was sent while issue was closed.
Change committed as 270126

Powered by Google App Engine
This is Rietveld 408576698