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

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

Issue 869793004: Bring up the Fast User Switcher on Shift+Click on the new Avatar Button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase before submit Created 5 years, 10 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 void ResetView(); 118 void ResetView();
119 119
120 // Shows the bubble with the |view_to_display|. 120 // Shows the bubble with the |view_to_display|.
121 void ShowView(profiles::BubbleViewMode view_to_display, 121 void ShowView(profiles::BubbleViewMode view_to_display,
122 AvatarMenu* avatar_menu); 122 AvatarMenu* avatar_menu);
123 123
124 // Creates the profile chooser view. 124 // Creates the profile chooser view.
125 views::View* CreateProfileChooserView(AvatarMenu* avatar_menu); 125 views::View* CreateProfileChooserView(AvatarMenu* avatar_menu);
126 126
127 // Populates |layout| with only a list of the profiles available to
128 // switch to.
129 void PopulateMinimalProfileChooserView(views::GridLayout* layout,
130 AvatarMenu* avatar_menu);
131
132 // Populates |layout| with all the elements of the Avatar Menu (current user
133 // bubble, options buttons, tutorials).
134 void PopulateCompleteProfileChooserView(views::GridLayout* layout,
135 AvatarMenu* avatar_menu);
136
127 // Creates the main profile card for the profile |avatar_item|. |is_guest| 137 // Creates the main profile card for the profile |avatar_item|. |is_guest|
128 // is used to determine whether to show any Sign in/Sign out/Manage accounts 138 // is used to determine whether to show any Sign in/Sign out/Manage accounts
129 // links. 139 // links.
130 views::View* CreateCurrentProfileView( 140 views::View* CreateCurrentProfileView(
131 const AvatarMenu::Item& avatar_item, 141 const AvatarMenu::Item& avatar_item,
132 bool is_guest); 142 bool is_guest);
133 views::View* CreateGuestProfileView(); 143 views::View* CreateGuestProfileView();
134 views::View* CreateOtherProfilesView(const Indexes& avatars_to_show); 144 views::View* CreateOtherProfilesView(const Indexes& avatars_to_show);
135 views::View* CreateOptionsView(bool display_lock); 145 views::View* CreateOptionsView(bool display_lock);
136 views::View* CreateSupervisedUserDisclaimerView(); 146 views::View* CreateSupervisedUserDisclaimerView();
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // The current tutorial mode. 261 // The current tutorial mode.
252 profiles::TutorialMode tutorial_mode_; 262 profiles::TutorialMode tutorial_mode_;
253 263
254 // The GAIA service type provided in the response header. 264 // The GAIA service type provided in the response header.
255 signin::GAIAServiceType gaia_service_type_; 265 signin::GAIAServiceType gaia_service_type_;
256 266
257 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); 267 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView);
258 }; 268 };
259 269
260 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ 270 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/new_avatar_button.cc ('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