Chromium Code Reviews| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 | 159 |
| 160 // Creates a view to confirm account removal for |account_id_to_remove_|. | 160 // Creates a view to confirm account removal for |account_id_to_remove_|. |
| 161 views::View* CreateAccountRemovalView(); | 161 views::View* CreateAccountRemovalView(); |
| 162 | 162 |
| 163 // Removes the currently selected account and attempts to restart Chrome. | 163 // Removes the currently selected account and attempts to restart Chrome. |
| 164 void RemoveAccount(); | 164 void RemoveAccount(); |
| 165 | 165 |
| 166 // Close the tutorial card. | 166 // Close the tutorial card. |
| 167 void DismissTutorial(); | 167 void DismissTutorial(); |
| 168 | 168 |
| 169 // Returns true if the Welcome/Upgrade tutorial bubble should be shown to the | |
| 170 // user, false otherwise. | |
| 171 bool ShouldShowWelcomeUpgradeTutorial(); | |
|
sky
2015/05/14 17:34:56
Are these ShouldShowFoo functions really platform
Mike Lerman
2015/05/14 17:39:58
Oooh I like! That more common place would be profi
anthonyvd
2015/05/14 20:24:17
Good point, done!
| |
| 172 | |
| 173 // Returns true if the tutorial informing the user about right-click user | |
| 174 // switching should be shown, false otherwise. | |
| 175 bool ShouldShowRightClickTutorialView(); | |
| 176 | |
| 169 // Creates a tutorial card to introduce an upgrade user to the new avatar | 177 // Creates a tutorial card to introduce an upgrade user to the new avatar |
| 170 // menu if needed. |tutorial_shown| indicates if the tutorial has already been | 178 // menu. |avatar_item| refers to the current profile. |
| 171 // shown in the previous active view. |avatar_item| refers to the current | 179 views::View* CreateWelcomeUpgradeTutorialView( |
| 172 // profile. | 180 const AvatarMenu::Item& avatar_item); |
| 173 views::View* CreateWelcomeUpgradeTutorialViewIfNeeded( | |
| 174 bool tutorial_shown, const AvatarMenu::Item& avatar_item); | |
| 175 | 181 |
| 176 // Creates a tutorial card to have the user confirm the last Chrome signin, | 182 // Creates a tutorial card to have the user confirm the last Chrome signin, |
| 177 // Chrome sync will be delayed until the user either dismisses the tutorial, | 183 // Chrome sync will be delayed until the user either dismisses the tutorial, |
| 178 // or configures sync through the "Settings" link. | 184 // or configures sync through the "Settings" link. |
| 179 views::View* CreateSigninConfirmationView(); | 185 views::View* CreateSigninConfirmationView(); |
| 180 | 186 |
| 181 // Creates a a tutorial card to show the errors in the last Chrome signin. | 187 // Creates a tutorial card to show the errors in the last Chrome signin. |
| 182 views::View* CreateSigninErrorView(); | 188 views::View* CreateSigninErrorView(); |
| 183 | 189 |
| 190 // Creates a tutorial card telling the user about right-click user switching. | |
| 191 views::View* CreateRightClickTutorialView(); | |
| 192 | |
| 193 views::View* CreateTutorialViewIfNeeded(const AvatarMenu::Item& item); | |
| 194 | |
| 184 // Creates a tutorial card. If |stack_button| is true, places the button above | 195 // Creates a tutorial card. If |stack_button| is true, places the button above |
| 185 // the link otherwise places both on the same row with the link left aligned | 196 // the link otherwise places both on the same row with the link left aligned |
| 186 // and button right aligned. The method sets |link| to point to the newly | 197 // and button right aligned. The method sets |link| to point to the newly |
| 187 // create link, |button| to the newly created button, and |tutorial_mode_| to | 198 // create link, |button| to the newly created button, and |tutorial_mode_| to |
| 188 // the given |tutorial_mode|. | 199 // the given |tutorial_mode|. |
| 189 views::View* CreateTutorialView( | 200 views::View* CreateTutorialView( |
| 190 profiles::TutorialMode tutorial_mode, | 201 profiles::TutorialMode tutorial_mode, |
| 191 const base::string16& title_text, | 202 const base::string16& title_text, |
| 192 const base::string16& content_text, | 203 const base::string16& content_text, |
| 193 const base::string16& link_text, | 204 const base::string16& link_text, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 261 // The current tutorial mode. | 272 // The current tutorial mode. |
| 262 profiles::TutorialMode tutorial_mode_; | 273 profiles::TutorialMode tutorial_mode_; |
| 263 | 274 |
| 264 // The GAIA service type provided in the response header. | 275 // The GAIA service type provided in the response header. |
| 265 signin::GAIAServiceType gaia_service_type_; | 276 signin::GAIAServiceType gaia_service_type_; |
| 266 | 277 |
| 267 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 278 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
| 268 }; | 279 }; |
| 269 | 280 |
| 270 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 281 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
| OLD | NEW |