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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.h

Issue 465313003: Update the new avatar menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased again Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/profiles/profile_chooser_view.h
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.h b/chrome/browser/ui/views/profiles/profile_chooser_view.h
index ea74b9fcbca8a9cec8dc38c6b01d9285851ba6ed..87708af3616bbfb7ee9c98e401ec1db92f513e0f 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.h
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.h
@@ -152,6 +152,9 @@ class ProfileChooserView : public views::BubbleDelegateView,
// Removes the currently selected account and attempts to restart Chrome.
void RemoveAccount();
+ // Close the tutorial card.
+ void DismissTutorial();
+
// Creates a tutorial card to introduce an upgrade user to the new avatar
// menu if needed. |tutorial_shown| indicates if the tutorial has already been
// shown in the previous active view. |avatar_item| refers to the current
@@ -167,19 +170,21 @@ class ProfileChooserView : public views::BubbleDelegateView,
// Creates a a tutorial card to show the errors in the last Chrome signin.
views::View* CreateSigninErrorView();
- // Creates a tutorial card with the specified |title_text|, |context_text|,
- // and a bottom row with a right-aligned link using the specified |link_text|,
- // and a left aligned button using the specified |button_text|. The method
- // sets |link| to point to the newly created link, |button| to the newly
- // created button, and |tutorial_mode_| to the given |tutorial_mode|.
+ // Creates a tutorial card. If |stack_button| is true, places the button above
+ // the link otherwise places both on the same row with the link left aligned
+ // and button right aligned. The method sets |link| to point to the newly
+ // create link, |button| to the newly created button, and |tutorial_mode_| to
+ // the given |tutorial_mode|.
views::View* CreateTutorialView(
profiles::TutorialMode tutorial_mode,
const base::string16& title_text,
const base::string16& content_text,
const base::string16& link_text,
const base::string16& button_text,
+ bool stack_button,
views::Link** link,
- views::LabelButton** button);
+ views::LabelButton** button,
+ views::ImageButton** close_button);
// Create a view that shows various options for an upgrade user who is not
// the same person as the currently signed in user.
@@ -205,6 +210,7 @@ class ProfileChooserView : public views::BubbleDelegateView,
views::Link* tutorial_sync_settings_link_;
views::LabelButton* tutorial_see_whats_new_button_;
views::Link* tutorial_not_you_link_;
+ views::ImageButton* tutorial_close_button_;
// Links and buttons displayed in the active profile card.
views::Link* manage_accounts_link_;

Powered by Google App Engine
This is Rietveld 408576698