summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/profiles/profile_chooser_view.h
diff options
context:
space:
mode:
authorguohui@chromium.org <guohui@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-14 18:33:24 +0000
committerguohui@chromium.org <guohui@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-14 18:33:24 +0000
commit379903224afd83422601c9c037267fd54fb72844 (patch)
tree56526c02a0f23be34844d41036b1fde1991b3b2a /chrome/browser/ui/views/profiles/profile_chooser_view.h
parent1200e7e53f1a133481b82287dd88393f473227c3 (diff)
downloadchromium_src-379903224afd83422601c9c037267fd54fb72844.zip
chromium_src-379903224afd83422601c9c037267fd54fb72844.tar.gz
chromium_src-379903224afd83422601c9c037267fd54fb72844.tar.bz2
Hook all preview tutorials together
This CL hooks all preview tutorial together, including the mirror preview tutorial, user manager tutorial and 'you are all set' avatar tutorial. See mock 3-5 at https://docs.google.com/a/google.com/presentation/d/1UMAexroivw01osOXpnEqbQcE3FMyDkc9eZoIszm4DP4/edit#slide=id.g12716c613_09 snapshot at https://x20web.corp.google.com/users/gu/guohui/www/preview_hooked.png BUG=358265 Review URL: https://codereview.chromium.org/226363009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263677 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/profiles/profile_chooser_view.h')
-rw-r--r--chrome/browser/ui/views/profiles/profile_chooser_view.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.h b/chrome/browser/ui/views/profiles/profile_chooser_view.h
index 872bdd3..90c1d36 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.h
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.h
@@ -57,10 +57,7 @@ class ProfileChooserView : public views::BubbleDelegateView,
// Shows a web view for adding secondary accounts.
BUBBLE_VIEW_MODE_GAIA_ADD_ACCOUNT,
// Shows a view for confirming account removal.
- BUBBLE_VIEW_MODE_ACCOUNT_REMOVAL,
- // Shows a fast profile switcher view with a tutorial card that prompts the
- // user to preview new profile management.
- BUBBLE_VIEW_MODE_NEW_PROFILE_MANAGEMENT_PREVIEW
+ BUBBLE_VIEW_MODE_ACCOUNT_REMOVAL
};
// Shows the bubble if one is not already showing. This allows us to easily
@@ -95,7 +92,8 @@ class ProfileChooserView : public views::BubbleDelegateView,
ProfileChooserView(views::View* anchor_view,
views::BubbleBorder::Arrow arrow,
const gfx::Rect& anchor_rect,
- Browser* browser);
+ Browser* browser,
+ BubbleViewMode view_mode);
virtual ~ProfileChooserView();
// views::BubbleDelegateView:
@@ -133,10 +131,15 @@ class ProfileChooserView : public views::BubbleDelegateView,
void ResetView();
- // Shows either the profile chooser or the account management views.
+ // Shows the bubble with the |view_to_display|.
void ShowView(BubbleViewMode view_to_display,
AvatarMenu* avatar_menu);
+ // Creates the profile chooser view. |tutorial_shown| indicates if the "mirror
+ // enabled" tutorial was shown or not in the last active view.
+ views::View* CreateProfileChooserView(AvatarMenu* avatar_menu,
+ bool tutorial_shown);
+
// Creates the main profile card for the profile |avatar_item|. |is_guest|
// is used to determine whether to show any Sign in/Sign out/Manage accounts
// links.
@@ -166,9 +169,8 @@ class ProfileChooserView : public views::BubbleDelegateView,
// Removes the currently selected account and attempts to restart Chrome.
void RemoveAccount();
- // Creates an avatar bubble view that shows a redesigned avatar menu with the
- // same functionality as the old one, plus a tutorial card at the top
- // prompting the user to try out the new profile management UI.
+ // Creates a a tutorial card at the top prompting the user to try out the new
+ // profile management UI.
views::View* CreateNewProfileManagementPreviewView();
// Creates a tutorial card shown when new profile management preview is