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

Issue 1608843002: Start untangling the avatar switcher from BrowserNonClientFrameView (Closed)

Created:
4 years, 11 months ago by tapted
Modified:
4 years, 11 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@20160119-MacViewsBrowser-Compile
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Start untangling the avatar switcher from BrowserNonClientFrameView With Metro gone, Ash no longer needs the "new style" avatar switcher. (ChromeOS never needed it). MacViews will eventually want it, so start consolidating the logic so that it can be reused. Hide the details of NewAvatarButton -- most things just need a views::View. Adds an `AvatarButtonManager` component, then - Moves BNCFV::UpdateNewAvatarButton() to AvatarButtonManager::Update() - Moves the many BNCFV*::ButtonPressed() handlers to AvatarButtonManager The button-style enum moves to avatar_button_style.h so that the details of NewAvatarButton can be properly encapsulated. BUG=565989, 558054 Committed: https://crrev.com/1d9cf8afd778e64698fe69e43b9428453ee181d1 Cr-Commit-Position: refs/heads/master@{#370845}

Patch Set 1 #

Patch Set 2 : Fix mus, self review pass #

Patch Set 3 : Fix dates :| #

Patch Set 4 : Fix test #

Patch Set 5 : various selfnits #

Total comments: 5

Patch Set 6 : did I rebase this? #

Patch Set 7 : rename, enum class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -189 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/frame/avatar_button_manager.h View 1 2 3 4 5 6 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/frame/avatar_button_manager.cc View 1 2 3 4 5 6 1 chunk +49 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.h View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.h View 1 2 3 4 5 6 5 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.cc View 1 2 3 4 5 6 4 chunks +4 lines, -21 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h View 1 4 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 3 7 chunks +2 lines, -65 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_factory_views.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.h View 1 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc View 1 2 3 4 5 6 1 chunk +1 line, -20 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.h View 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 6 2 chunks +1 line, -19 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 6 3 chunks +1 line, -15 lines 0 comments Download
A chrome/browser/ui/views/profiles/avatar_button_style.h View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.h View 1 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
tapted
Hi sky, please take a look. (there is a CL that goes the next step ...
4 years, 11 months ago (2016-01-20 02:20:01 UTC) #5
sky
Only naming nits https://codereview.chromium.org/1608843002/diff/80001/chrome/browser/ui/views/frame/avatar_button_bridge.h File chrome/browser/ui/views/frame/avatar_button_bridge.h (right): https://codereview.chromium.org/1608843002/diff/80001/chrome/browser/ui/views/frame/avatar_button_bridge.h#newcode15 chrome/browser/ui/views/frame/avatar_button_bridge.h:15: class AvatarButtonBridge : public views::ButtonListener { ...
4 years, 11 months ago (2016-01-20 17:05:36 UTC) #6
tapted
PTAL https://codereview.chromium.org/1608843002/diff/80001/chrome/browser/ui/views/frame/avatar_button_bridge.h File chrome/browser/ui/views/frame/avatar_button_bridge.h (right): https://codereview.chromium.org/1608843002/diff/80001/chrome/browser/ui/views/frame/avatar_button_bridge.h#newcode15 chrome/browser/ui/views/frame/avatar_button_bridge.h:15: class AvatarButtonBridge : public views::ButtonListener { On 2016/01/20 ...
4 years, 11 months ago (2016-01-21 01:33:21 UTC) #8
sky
LGTM
4 years, 11 months ago (2016-01-21 14:36:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1608843002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1608843002/120001
4 years, 11 months ago (2016-01-21 23:46:19 UTC) #11
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 11 months ago (2016-01-22 00:22:26 UTC) #13
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 00:23:40 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1d9cf8afd778e64698fe69e43b9428453ee181d1
Cr-Commit-Position: refs/heads/master@{#370845}

Powered by Google App Engine
This is Rietveld 408576698