|
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}
Total comments: 5
|
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
|
Total messages: 15 (8 generated)
|