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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // shown in the previous active view. |avatar_item| refers to the current | 171 // shown in the previous active view. |avatar_item| refers to the current |
172 // profile. | 172 // profile. |
173 views::View* CreateWelcomeUpgradeTutorialViewIfNeeded( | 173 views::View* CreateWelcomeUpgradeTutorialViewIfNeeded( |
174 bool tutorial_shown, const AvatarMenu::Item& avatar_item); | 174 bool tutorial_shown, const AvatarMenu::Item& avatar_item); |
175 | 175 |
176 // Creates a tutorial card to have the user confirm the last Chrome signin, | 176 // 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, | 177 // Chrome sync will be delayed until the user either dismisses the tutorial, |
178 // or configures sync through the "Settings" link. | 178 // or configures sync through the "Settings" link. |
179 views::View* CreateSigninConfirmationView(); | 179 views::View* CreateSigninConfirmationView(); |
180 | 180 |
181 // Creates a a tutorial card to show the errors in the last Chrome signin. | 181 // Creates a tutorial card to show the errors in the last Chrome signin. |
182 views::View* CreateSigninErrorView(); | 182 views::View* CreateSigninErrorView(); |
183 | 183 |
| 184 // Creates a tutorial card telling the user about right-click user switching. |
| 185 views::View* CreateRightClickTutorialViewIfNeeded(); |
| 186 |
184 // Creates a tutorial card. If |stack_button| is true, places the button above | 187 // 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 | 188 // 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 | 189 // 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 | 190 // create link, |button| to the newly created button, and |tutorial_mode_| to |
188 // the given |tutorial_mode|. | 191 // the given |tutorial_mode|. |
189 views::View* CreateTutorialView( | 192 views::View* CreateTutorialView( |
190 profiles::TutorialMode tutorial_mode, | 193 profiles::TutorialMode tutorial_mode, |
191 const base::string16& title_text, | 194 const base::string16& title_text, |
192 const base::string16& content_text, | 195 const base::string16& content_text, |
193 const base::string16& link_text, | 196 const base::string16& link_text, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // The current tutorial mode. | 264 // The current tutorial mode. |
262 profiles::TutorialMode tutorial_mode_; | 265 profiles::TutorialMode tutorial_mode_; |
263 | 266 |
264 // The GAIA service type provided in the response header. | 267 // The GAIA service type provided in the response header. |
265 signin::GAIAServiceType gaia_service_type_; | 268 signin::GAIAServiceType gaia_service_type_; |
266 | 269 |
267 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 270 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
268 }; | 271 }; |
269 | 272 |
270 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 273 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
OLD | NEW |