| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 AvatarMenu* avatar_menu); | 143 AvatarMenu* avatar_menu); |
| 144 | 144 |
| 145 // Creates the main profile card for the profile |avatar_item|. |is_guest| | 145 // Creates the main profile card for the profile |avatar_item|. |is_guest| |
| 146 // is used to determine whether to show any Sign in/Sign out/Manage accounts | 146 // is used to determine whether to show any Sign in/Sign out/Manage accounts |
| 147 // links. | 147 // links. |
| 148 views::View* CreateCurrentProfileView( | 148 views::View* CreateCurrentProfileView( |
| 149 const AvatarMenu::Item& avatar_item, | 149 const AvatarMenu::Item& avatar_item, |
| 150 bool is_guest); | 150 bool is_guest); |
| 151 views::View* CreateGuestProfileView(); | 151 views::View* CreateGuestProfileView(); |
| 152 views::View* CreateOtherProfilesView(const Indexes& avatars_to_show); | 152 views::View* CreateOtherProfilesView(const Indexes& avatars_to_show); |
| 153 views::View* CreateOptionsView(bool display_lock); | 153 views::View* CreateOptionsView(bool display_lock, AvatarMenu* avatar_menu); |
| 154 views::View* CreateSupervisedUserDisclaimerView(); | 154 views::View* CreateSupervisedUserDisclaimerView(); |
| 155 | 155 |
| 156 // Account Management view for the profile |avatar_item|. | 156 // Account Management view for the profile |avatar_item|. |
| 157 views::View* CreateCurrentProfileAccountsView( | 157 views::View* CreateCurrentProfileAccountsView( |
| 158 const AvatarMenu::Item& avatar_item); | 158 const AvatarMenu::Item& avatar_item); |
| 159 void CreateAccountButton(views::GridLayout* layout, | 159 void CreateAccountButton(views::GridLayout* layout, |
| 160 const std::string& account_id, | 160 const std::string& account_id, |
| 161 bool is_primary_account, | 161 bool is_primary_account, |
| 162 bool reauth_required, | 162 bool reauth_required, |
| 163 int width); | 163 int width); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 views::Link* manage_accounts_link_; | 239 views::Link* manage_accounts_link_; |
| 240 views::LabelButton* signin_current_profile_link_; | 240 views::LabelButton* signin_current_profile_link_; |
| 241 views::LabelButton* auth_error_email_button_; | 241 views::LabelButton* auth_error_email_button_; |
| 242 | 242 |
| 243 // The profile name and photo in the active profile card. Owned by the | 243 // The profile name and photo in the active profile card. Owned by the |
| 244 // views hierarchy. | 244 // views hierarchy. |
| 245 EditableProfilePhoto* current_profile_photo_; | 245 EditableProfilePhoto* current_profile_photo_; |
| 246 EditableProfileName* current_profile_name_; | 246 EditableProfileName* current_profile_name_; |
| 247 | 247 |
| 248 // Action buttons. | 248 // Action buttons. |
| 249 views::LabelButton* guest_profile_button_; |
| 249 views::LabelButton* users_button_; | 250 views::LabelButton* users_button_; |
| 250 views::LabelButton* go_incognito_button_; | 251 views::LabelButton* go_incognito_button_; |
| 251 views::LabelButton* lock_button_; | 252 views::LabelButton* lock_button_; |
| 252 views::Link* add_account_link_; | 253 views::Link* add_account_link_; |
| 253 | 254 |
| 254 // Buttons displayed in the gaia signin view. | 255 // Buttons displayed in the gaia signin view. |
| 255 views::ImageButton* gaia_signin_cancel_button_; | 256 views::ImageButton* gaia_signin_cancel_button_; |
| 256 | 257 |
| 257 // Links and buttons displayed in the account removal view. | 258 // Links and buttons displayed in the account removal view. |
| 258 views::LabelButton* remove_account_button_; | 259 views::LabelButton* remove_account_button_; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 275 // The GAIA service type provided in the response header. | 276 // The GAIA service type provided in the response header. |
| 276 signin::GAIAServiceType gaia_service_type_; | 277 signin::GAIAServiceType gaia_service_type_; |
| 277 | 278 |
| 278 // The current access point of sign in. | 279 // The current access point of sign in. |
| 279 const signin_metrics::AccessPoint access_point_; | 280 const signin_metrics::AccessPoint access_point_; |
| 280 | 281 |
| 281 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 282 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
| 282 }; | 283 }; |
| 283 | 284 |
| 284 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 285 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
| OLD | NEW |