Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: chrome/browser/ui/views/profiles/profile_chooser_view.h

Issue 1120013003: Add right-click user switching tutorial bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // Creates a tutorial card to introduce an upgrade user to the new avatar 169 // 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 170 // menu. |avatar_item| refers to the current profile.
171 // shown in the previous active view. |avatar_item| refers to the current 171 views::View* CreateWelcomeUpgradeTutorialView(
172 // profile. 172 const AvatarMenu::Item& avatar_item);
173 views::View* CreateWelcomeUpgradeTutorialViewIfNeeded(
174 bool tutorial_shown, const AvatarMenu::Item& avatar_item);
175 173
176 // Creates a tutorial card to have the user confirm the last Chrome signin, 174 // 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, 175 // Chrome sync will be delayed until the user either dismisses the tutorial,
178 // or configures sync through the "Settings" link. 176 // or configures sync through the "Settings" link.
179 views::View* CreateSigninConfirmationView(); 177 views::View* CreateSigninConfirmationView();
180 178
181 // Creates a a tutorial card to show the errors in the last Chrome signin. 179 // Creates a tutorial card to show the errors in the last Chrome signin.
182 views::View* CreateSigninErrorView(); 180 views::View* CreateSigninErrorView();
183 181
182 // Creates a tutorial card telling the user about right-click user switching.
183 views::View* CreateRightClickTutorialView();
184
185 views::View* CreateTutorialViewIfNeeded(const AvatarMenu::Item& item);
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/profile_chooser_constants.h ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698