| 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 |
| 11 #include "chrome/browser/profiles/avatar_menu.h" | 11 #include "chrome/browser/profiles/avatar_menu.h" |
| 12 #include "chrome/browser/profiles/avatar_menu_observer.h" | 12 #include "chrome/browser/profiles/avatar_menu_observer.h" |
| 13 #include "chrome/browser/profiles/profile_metrics.h" | 13 #include "chrome/browser/profiles/profile_metrics.h" |
| 14 #include "chrome/browser/ui/browser_window.h" | 14 #include "chrome/browser/ui/browser_window.h" |
| 15 #include "chrome/browser/ui/profile_chooser_constants.h" | 15 #include "chrome/browser/ui/profile_chooser_constants.h" |
| 16 #include "components/web_modal/popup_manager.h" |
| 16 #include "content/public/browser/web_contents_delegate.h" | 17 #include "content/public/browser/web_contents_delegate.h" |
| 17 #include "google_apis/gaia/oauth2_token_service.h" | 18 #include "google_apis/gaia/oauth2_token_service.h" |
| 18 #include "ui/views/bubble/bubble_delegate.h" | 19 #include "ui/views/bubble/bubble_delegate.h" |
| 19 #include "ui/views/controls/button/button.h" | 20 #include "ui/views/controls/button/button.h" |
| 20 #include "ui/views/controls/link_listener.h" | 21 #include "ui/views/controls/link_listener.h" |
| 21 #include "ui/views/controls/styled_label_listener.h" | 22 #include "ui/views/controls/styled_label_listener.h" |
| 22 #include "ui/views/controls/textfield/textfield_controller.h" | 23 #include "ui/views/controls/textfield/textfield_controller.h" |
| 23 | 24 |
| 24 class EditableProfilePhoto; | 25 class EditableProfilePhoto; |
| 25 class EditableProfileName; | 26 class EditableProfileName; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 212 |
| 212 // Create a view that shows various options for an upgrade user who is not | 213 // Create a view that shows various options for an upgrade user who is not |
| 213 // the same person as the currently signed in user. | 214 // the same person as the currently signed in user. |
| 214 views::View* CreateSwitchUserView(); | 215 views::View* CreateSwitchUserView(); |
| 215 | 216 |
| 216 bool ShouldShowGoIncognito() const; | 217 bool ShouldShowGoIncognito() const; |
| 217 | 218 |
| 218 // Clean-up done after an action was performed in the ProfileChooser. | 219 // Clean-up done after an action was performed in the ProfileChooser. |
| 219 void PostActionPerformed(ProfileMetrics::ProfileDesktopMenu action_performed); | 220 void PostActionPerformed(ProfileMetrics::ProfileDesktopMenu action_performed); |
| 220 | 221 |
| 222 scoped_ptr<web_modal::PopupManager> popup_manager_; |
| 221 scoped_ptr<AvatarMenu> avatar_menu_; | 223 scoped_ptr<AvatarMenu> avatar_menu_; |
| 222 Browser* browser_; | 224 Browser* browser_; |
| 223 | 225 |
| 224 // Other profiles used in the "fast profile switcher" view. | 226 // Other profiles used in the "fast profile switcher" view. |
| 225 ButtonIndexes open_other_profile_indexes_map_; | 227 ButtonIndexes open_other_profile_indexes_map_; |
| 226 | 228 |
| 227 // Buttons associated with the current profile. | 229 // Buttons associated with the current profile. |
| 228 AccountButtonIndexes delete_account_button_map_; | 230 AccountButtonIndexes delete_account_button_map_; |
| 229 AccountButtonIndexes reauth_account_button_map_; | 231 AccountButtonIndexes reauth_account_button_map_; |
| 230 | 232 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // The current tutorial mode. | 275 // The current tutorial mode. |
| 274 profiles::TutorialMode tutorial_mode_; | 276 profiles::TutorialMode tutorial_mode_; |
| 275 | 277 |
| 276 // The GAIA service type provided in the response header. | 278 // The GAIA service type provided in the response header. |
| 277 signin::GAIAServiceType gaia_service_type_; | 279 signin::GAIAServiceType gaia_service_type_; |
| 278 | 280 |
| 279 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); | 281 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); |
| 280 }; | 282 }; |
| 281 | 283 |
| 282 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ | 284 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ |
| OLD | NEW |