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 <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 static bool close_on_deactivate_for_testing_; | 116 static bool close_on_deactivate_for_testing_; |
117 | 117 |
118 void ResetView(); | 118 void ResetView(); |
119 | 119 |
120 // Shows the bubble with the |view_to_display|. | 120 // Shows the bubble with the |view_to_display|. |
121 void ShowView(profiles::BubbleViewMode view_to_display, | 121 void ShowView(profiles::BubbleViewMode view_to_display, |
122 AvatarMenu* avatar_menu); | 122 AvatarMenu* avatar_menu); |
123 | 123 |
124 // Creates the profile chooser view. | 124 // Creates the profile chooser view. |
125 views::View* CreateProfileChooserView(AvatarMenu* avatar_menu); | 125 views::View* CreateProfileChooserView(AvatarMenu* avatar_menu); |
| 126 void PopulateMinimalProfileChooserView(views::GridLayout* layout, |
| 127 AvatarMenu* avatar_menu); |
| 128 void PopulateCompleteProfileChooserView(views::GridLayout* layout, |
| 129 AvatarMenu* avatar_menu); |
126 | 130 |
127 // Creates the main profile card for the profile |avatar_item|. |is_guest| | 131 // Creates the main profile card for the profile |avatar_item|. |is_guest| |
128 // is used to determine whether to show any Sign in/Sign out/Manage accounts | 132 // is used to determine whether to show any Sign in/Sign out/Manage accounts |
129 // links. | 133 // links. |
130 views::View* CreateCurrentProfileView( | 134 views::View* CreateCurrentProfileView( |
131 const AvatarMenu::Item& avatar_item, | 135 const AvatarMenu::Item& avatar_item, |
132 bool is_guest); | 136 bool is_guest); |
133 views::View* CreateGuestProfileView(); | 137 views::View* CreateGuestProfileView(); |
134 views::View* CreateOtherProfilesView(const Indexes& avatars_to_show); | 138 views::View* CreateOtherProfilesView(const Indexes& avatars_to_show); |
135 views::View* CreateOptionsView(bool display_lock); | 139 views::View* CreateOptionsView(bool display_lock); |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 // The current tutorial mode. | 255 // The current tutorial mode. |
252 profiles::TutorialMode tutorial_mode_; | 256 profiles::TutorialMode tutorial_mode_; |
253 | 257 |
254 // The GAIA service type provided in the response header. | 258 // The GAIA service type provided in the response header. |
255 signin::GAIAServiceType gaia_service_type_; | 259 signin::GAIAServiceType gaia_service_type_; |
256 | 260 |
257 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 261 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
258 }; | 262 }; |
259 | 263 |
260 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 264 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
OLD | NEW |