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

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

Issue 1413533009: Make the new Gaia password separated signin flow modal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback and added some comments. Created 5 years 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // We normally close the bubble any time it becomes inactive but this can lead 116 // We normally close the bubble any time it becomes inactive but this can lead
117 // to flaky tests where unexpected UI events are triggering this behavior. 117 // to flaky tests where unexpected UI events are triggering this behavior.
118 // Tests set this to "false" for more consistent operation. 118 // Tests set this to "false" for more consistent operation.
119 static bool close_on_deactivate_for_testing_; 119 static bool close_on_deactivate_for_testing_;
120 120
121 void ResetView(); 121 void ResetView();
122 122
123 // Shows the bubble with the |view_to_display|. 123 // Shows the bubble with the |view_to_display|.
124 void ShowView(profiles::BubbleViewMode view_to_display, 124 void ShowView(profiles::BubbleViewMode view_to_display,
125 AvatarMenu* avatar_menu); 125 AvatarMenu* avatar_menu);
126 void ShowViewFromMode(profiles::BubbleViewMode mode);
126 127
127 // Creates the profile chooser view. 128 // Creates the profile chooser view.
128 views::View* CreateProfileChooserView(AvatarMenu* avatar_menu); 129 views::View* CreateProfileChooserView(AvatarMenu* avatar_menu);
129 130
130 // Populates |layout| with only a list of the profiles available to 131 // Populates |layout| with only a list of the profiles available to
131 // switch to. 132 // switch to.
132 void PopulateMinimalProfileChooserView(views::GridLayout* layout, 133 void PopulateMinimalProfileChooserView(views::GridLayout* layout,
133 AvatarMenu* avatar_menu); 134 AvatarMenu* avatar_menu);
134 135
135 // Populates |layout| with all the elements of the Avatar Menu (current user 136 // Populates |layout| with all the elements of the Avatar Menu (current user
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // The current tutorial mode. 268 // The current tutorial mode.
268 profiles::TutorialMode tutorial_mode_; 269 profiles::TutorialMode tutorial_mode_;
269 270
270 // The GAIA service type provided in the response header. 271 // The GAIA service type provided in the response header.
271 signin::GAIAServiceType gaia_service_type_; 272 signin::GAIAServiceType gaia_service_type_;
272 273
273 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); 274 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView);
274 }; 275 };
275 276
276 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ 277 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698