OLD | NEW |
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 Loading... |
117 // We normally close the bubble any time it becomes inactive but this can lead | 117 // We normally close the bubble any time it becomes inactive but this can lead |
118 // to flaky tests where unexpected UI events are triggering this behavior. | 118 // to flaky tests where unexpected UI events are triggering this behavior. |
119 // Tests set this to "false" for more consistent operation. | 119 // Tests set this to "false" for more consistent operation. |
120 static bool close_on_deactivate_for_testing_; | 120 static bool close_on_deactivate_for_testing_; |
121 | 121 |
122 void ResetView(); | 122 void ResetView(); |
123 | 123 |
124 // Shows the bubble with the |view_to_display|. | 124 // Shows the bubble with the |view_to_display|. |
125 void ShowView(profiles::BubbleViewMode view_to_display, | 125 void ShowView(profiles::BubbleViewMode view_to_display, |
126 AvatarMenu* avatar_menu); | 126 AvatarMenu* avatar_menu); |
| 127 void ShowViewFromMode(profiles::BubbleViewMode mode); |
127 | 128 |
128 // Creates the profile chooser view. | 129 // Creates the profile chooser view. |
129 views::View* CreateProfileChooserView(AvatarMenu* avatar_menu); | 130 views::View* CreateProfileChooserView(AvatarMenu* avatar_menu); |
130 | 131 |
131 // Populates |layout| with only a list of the profiles available to | 132 // Populates |layout| with only a list of the profiles available to |
132 // switch to. | 133 // switch to. |
133 void PopulateMinimalProfileChooserView(views::GridLayout* layout, | 134 void PopulateMinimalProfileChooserView(views::GridLayout* layout, |
134 AvatarMenu* avatar_menu); | 135 AvatarMenu* avatar_menu); |
135 | 136 |
136 // Populates |layout| with all the elements of the Avatar Menu (current user | 137 // Populates |layout| with all the elements of the Avatar Menu (current user |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // The current tutorial mode. | 269 // The current tutorial mode. |
269 profiles::TutorialMode tutorial_mode_; | 270 profiles::TutorialMode tutorial_mode_; |
270 | 271 |
271 // The GAIA service type provided in the response header. | 272 // The GAIA service type provided in the response header. |
272 signin::GAIAServiceType gaia_service_type_; | 273 signin::GAIAServiceType gaia_service_type_; |
273 | 274 |
274 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 275 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
275 }; | 276 }; |
276 | 277 |
277 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 278 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
OLD | NEW |