| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void ShowView(profiles::BubbleViewMode view_to_display, | 118 void ShowView(profiles::BubbleViewMode view_to_display, |
| 119 AvatarMenu* avatar_menu); | 119 AvatarMenu* avatar_menu); |
| 120 void ShowViewFromMode(profiles::BubbleViewMode mode); | 120 void ShowViewFromMode(profiles::BubbleViewMode mode); |
| 121 | 121 |
| 122 // Focuses the first profile button in the menu list. | 122 // Focuses the first profile button in the menu list. |
| 123 void FocusFirstProfileButton(); | 123 void FocusFirstProfileButton(); |
| 124 | 124 |
| 125 // Creates the profile chooser view. | 125 // Creates the profile chooser view. |
| 126 views::View* CreateProfileChooserView(AvatarMenu* avatar_menu); | 126 views::View* CreateProfileChooserView(AvatarMenu* avatar_menu); |
| 127 | 127 |
| 128 // Populates |layout| with only a list of the profiles available to | |
| 129 // switch to. | |
| 130 void PopulateMinimalProfileChooserView(views::GridLayout* layout, | |
| 131 AvatarMenu* avatar_menu); | |
| 132 | |
| 133 // Populates |layout| with all the elements of the Avatar Menu (current user | |
| 134 // bubble, options buttons, tutorials). | |
| 135 void PopulateCompleteProfileChooserView(views::GridLayout* layout, | |
| 136 AvatarMenu* avatar_menu); | |
| 137 | |
| 138 // Creates the main profile card for the profile |avatar_item|. |is_guest| | 128 // Creates the main profile card for the profile |avatar_item|. |is_guest| |
| 139 // is used to determine whether to show any Sign in/Sign out/Manage accounts | 129 // is used to determine whether to show any Sign in/Sign out/Manage accounts |
| 140 // links. | 130 // links. |
| 141 views::View* CreateCurrentProfileView( | 131 views::View* CreateCurrentProfileView( |
| 142 const AvatarMenu::Item& avatar_item, | 132 const AvatarMenu::Item& avatar_item, |
| 143 bool is_guest); | 133 bool is_guest); |
| 144 views::View* CreateGuestProfileView(); | 134 views::View* CreateGuestProfileView(); |
| 145 views::View* CreateOtherProfilesView(const Indexes& avatars_to_show); | 135 views::View* CreateOtherProfilesView(const Indexes& avatars_to_show); |
| 146 views::View* CreateOptionsView(bool display_lock, AvatarMenu* avatar_menu); | 136 views::View* CreateOptionsView(bool display_lock, AvatarMenu* avatar_menu); |
| 147 views::View* CreateSupervisedUserDisclaimerView(); | 137 views::View* CreateSupervisedUserDisclaimerView(); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // The GAIA service type provided in the response header. | 271 // The GAIA service type provided in the response header. |
| 282 signin::GAIAServiceType gaia_service_type_; | 272 signin::GAIAServiceType gaia_service_type_; |
| 283 | 273 |
| 284 // The current access point of sign in. | 274 // The current access point of sign in. |
| 285 const signin_metrics::AccessPoint access_point_; | 275 const signin_metrics::AccessPoint access_point_; |
| 286 | 276 |
| 287 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 277 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
| 288 }; | 278 }; |
| 289 | 279 |
| 290 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 280 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
| OLD | NEW |