| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 public views::TextfieldController, | 43 public views::TextfieldController, |
| 44 public AvatarMenuObserver, | 44 public AvatarMenuObserver, |
| 45 public OAuth2TokenService::Observer { | 45 public OAuth2TokenService::Observer { |
| 46 public: | 46 public: |
| 47 // Different views that can be displayed in the bubble. | 47 // Different views that can be displayed in the bubble. |
| 48 enum BubbleViewMode { | 48 enum BubbleViewMode { |
| 49 // Shows a "fast profile switcher" view. | 49 // Shows a "fast profile switcher" view. |
| 50 BUBBLE_VIEW_MODE_PROFILE_CHOOSER, | 50 BUBBLE_VIEW_MODE_PROFILE_CHOOSER, |
| 51 // Shows a list of accounts for the active user. | 51 // Shows a list of accounts for the active user. |
| 52 BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT, | 52 BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT, |
| 53 // Shows a list of accounts for the active user, initiated from the |
| 54 // HTTP response header. |
| 55 BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT_FROM_HEADER, |
| 53 // Shows a web view for primary sign in. | 56 // Shows a web view for primary sign in. |
| 54 BUBBLE_VIEW_MODE_GAIA_SIGNIN, | 57 BUBBLE_VIEW_MODE_GAIA_SIGNIN, |
| 55 // Shows a web view for adding secondary accounts. | 58 // Shows a web view for adding secondary accounts. |
| 56 BUBBLE_VIEW_MODE_GAIA_ADD_ACCOUNT, | 59 BUBBLE_VIEW_MODE_GAIA_ADD_ACCOUNT, |
| 57 // Shows a view for confirming account removal. | 60 // Shows a view for confirming account removal. |
| 58 BUBBLE_VIEW_MODE_ACCOUNT_REMOVAL, | 61 BUBBLE_VIEW_MODE_ACCOUNT_REMOVAL, |
| 59 // Shows a view for ending new profile management preview. | 62 // Shows a view for ending new profile management preview. |
| 60 BUBBLE_VIEW_MODE_END_PREVIEW | 63 BUBBLE_VIEW_MODE_END_PREVIEW |
| 61 }; | 64 }; |
| 62 | 65 |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 248 |
| 246 // Records the account id to remove. | 249 // Records the account id to remove. |
| 247 std::string account_id_to_remove_; | 250 std::string account_id_to_remove_; |
| 248 | 251 |
| 249 // Active view mode. | 252 // Active view mode. |
| 250 BubbleViewMode view_mode_; | 253 BubbleViewMode view_mode_; |
| 251 | 254 |
| 252 // The current tutorial mode. | 255 // The current tutorial mode. |
| 253 TutorialMode tutorial_mode_; | 256 TutorialMode tutorial_mode_; |
| 254 | 257 |
| 258 // The view was prompted to open from a GAIA header |
| 259 bool opened_from_header_; |
| 260 |
| 255 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 261 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
| 256 }; | 262 }; |
| 257 | 263 |
| 258 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 264 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
| OLD | NEW |