| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 bool tutorial_shown, const AvatarMenu::Item& avatar_item); | 160 bool tutorial_shown, const AvatarMenu::Item& avatar_item); |
| 161 | 161 |
| 162 // Creates a tutorial card to have the user confirm the last Chrome signin, | 162 // Creates a tutorial card to have the user confirm the last Chrome signin, |
| 163 // Chrome sync will be delayed until the user either dismisses the tutorial, | 163 // Chrome sync will be delayed until the user either dismisses the tutorial, |
| 164 // or configures sync through the "Settings" link. | 164 // or configures sync through the "Settings" link. |
| 165 views::View* CreateSigninConfirmationView(); | 165 views::View* CreateSigninConfirmationView(); |
| 166 | 166 |
| 167 // Creates a a tutorial card to show the errors in the last Chrome signin. | 167 // Creates a a tutorial card to show the errors in the last Chrome signin. |
| 168 views::View* CreateSigninErrorView(); | 168 views::View* CreateSigninErrorView(); |
| 169 | 169 |
| 170 // Creates a tutorial card with the specified |title_text|, |context_text|, | 170 // Creates a tutorial card. If |stack_button| is true, places the button above |
| 171 // and a bottom row with a right-aligned link using the specified |link_text|, | 171 // the link otherwise places both on the same row with the link left aligned |
| 172 // and a left aligned button using the specified |button_text|. The method | 172 // and button right aligned. The method sets |link| to point to the newly |
| 173 // sets |link| to point to the newly created link, |button| to the newly | 173 // create link, |button| to the newly created button, and |tutorial_mode_| to |
| 174 // created button, and |tutorial_mode_| to the given |tutorial_mode|. | 174 // the given |tutorial_mode|. |
| 175 views::View* CreateTutorialView( | 175 views::View* CreateTutorialView( |
| 176 profiles::TutorialMode tutorial_mode, | 176 profiles::TutorialMode tutorial_mode, |
| 177 const base::string16& title_text, | 177 const base::string16& title_text, |
| 178 const base::string16& content_text, | 178 const base::string16& content_text, |
| 179 const base::string16& link_text, | 179 const base::string16& link_text, |
| 180 const base::string16& button_text, | 180 const base::string16& button_text, |
| 181 bool stack_button, |
| 181 views::Link** link, | 182 views::Link** link, |
| 182 views::LabelButton** button); | 183 views::LabelButton** button); |
| 183 | 184 |
| 184 // Create a view that shows various options for an upgrade user who is not | 185 // Create a view that shows various options for an upgrade user who is not |
| 185 // the same person as the currently signed in user. | 186 // the same person as the currently signed in user. |
| 186 views::View* CreateSwitchUserView(); | 187 views::View* CreateSwitchUserView(); |
| 187 | 188 |
| 188 bool ShouldShowGoIncognito() const; | 189 bool ShouldShowGoIncognito() const; |
| 189 | 190 |
| 190 // Clean-up done after an action was performed in the ProfileChooser. | 191 // Clean-up done after an action was performed in the ProfileChooser. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // The current tutorial mode. | 244 // The current tutorial mode. |
| 244 profiles::TutorialMode tutorial_mode_; | 245 profiles::TutorialMode tutorial_mode_; |
| 245 | 246 |
| 246 // The GAIA service type provided in the response header. | 247 // The GAIA service type provided in the response header. |
| 247 signin::GAIAServiceType gaia_service_type_; | 248 signin::GAIAServiceType gaia_service_type_; |
| 248 | 249 |
| 249 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 250 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
| 250 }; | 251 }; |
| 251 | 252 |
| 252 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 253 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
| OLD | NEW |