Commit 478d83e5 authored by janeliulwq's avatar janeliulwq Committed by Commit bot

Reflow of user menu's active profile card into a button

Reflowed the top section of the user menu (i.e. where the profile icon and avatar name are displayed) into a button that leads to chrome://settings/manageProfile.

See screenshots (marked with 4.*:
https://drive.google.com/corp/drive/folders/0B7Fvv7JszRyGY2NrSEhheHptdG8

Mockup:
https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Desktop%20Sign%20In/user_menu#%2Fspec-2.png

Upstream CL (landed):
https://codereview.chromium.org/2023093002/

BUG=615893

Review-Url: https://codereview.chromium.org/2052473003
Cr-Commit-Position: refs/heads/master@{#403919}
parent 9d8cb065
...@@ -240,13 +240,17 @@ class ProfileChooserView : public content::WebContentsDelegate, ...@@ -240,13 +240,17 @@ class ProfileChooserView : public content::WebContentsDelegate,
// Links and buttons displayed in the active profile card. // Links and buttons displayed in the active profile card.
views::Link* manage_accounts_link_; views::Link* manage_accounts_link_;
views::LabelButton* manage_accounts_button_;
views::LabelButton* signin_current_profile_button_; views::LabelButton* signin_current_profile_button_;
views::LabelButton* auth_error_email_button_; views::LabelButton* auth_error_email_button_;
// The profile name and photo in the active profile card. Owned by the // The profile name and photo in the active profile card in non-material-
// views hierarchy. // design user menu. Owned by the views hierarchy.
EditableProfilePhoto* current_profile_photo_; EditableProfilePhoto* current_profile_photo_;
EditableProfileName* current_profile_name_; EditableProfileName* current_profile_name_;
// For material design user menu, the active profile card owns the profile
// name and photo.
views::LabelButton* current_profile_card_;
// Action buttons. // Action buttons.
views::LabelButton* guest_profile_button_; views::LabelButton* guest_profile_button_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment