| 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_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/profiles/profile_metrics.h" | 13 #include "chrome/browser/profiles/profile_metrics.h" |
| 14 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 14 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
| 15 #include "chrome/browser/ui/profile_chooser_constants.h" | 15 #include "chrome/browser/ui/profile_chooser_constants.h" |
| 16 #include "components/signin/core/browser/signin_header_helper.h" | 16 #include "components/signin/core/browser/signin_header_helper.h" |
| 17 #include "components/signin/core/browser/signin_metrics.h" |
| 17 | 18 |
| 18 class AvatarMenu; | 19 class AvatarMenu; |
| 19 class ActiveProfileObserverBridge; | 20 class ActiveProfileObserverBridge; |
| 20 class Browser; | 21 class Browser; |
| 21 class ProfileOAuth2TokenService; | 22 class ProfileOAuth2TokenService; |
| 22 | 23 |
| 23 namespace content { | 24 namespace content { |
| 24 class WebContents; | 25 class WebContents; |
| 25 } | 26 } |
| 26 class GaiaWebContentsDelegate; | 27 class GaiaWebContentsDelegate; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 57 | 58 |
| 58 // Web contents used by the inline signin view. | 59 // Web contents used by the inline signin view. |
| 59 scoped_ptr<content::WebContents> webContents_; | 60 scoped_ptr<content::WebContents> webContents_; |
| 60 scoped_ptr<GaiaWebContentsDelegate> webContentsDelegate_; | 61 scoped_ptr<GaiaWebContentsDelegate> webContentsDelegate_; |
| 61 | 62 |
| 62 // Whether the bubble is displayed for an active guest profile. | 63 // Whether the bubble is displayed for an active guest profile. |
| 63 BOOL isGuestSession_; | 64 BOOL isGuestSession_; |
| 64 | 65 |
| 65 // The GAIA service type that caused this menu to open. | 66 // The GAIA service type that caused this menu to open. |
| 66 signin::GAIAServiceType serviceType_; | 67 signin::GAIAServiceType serviceType_; |
| 68 |
| 69 // The current access point of sign in. |
| 70 signin_metrics::AccessPoint accessPoint_; |
| 67 } | 71 } |
| 68 | 72 |
| 69 - (id)initWithBrowser:(Browser*)browser | 73 - (id)initWithBrowser:(Browser*)browser |
| 70 anchoredAt:(NSPoint)point | 74 anchoredAt:(NSPoint)point |
| 71 viewMode:(profiles::BubbleViewMode)viewMode | 75 viewMode:(profiles::BubbleViewMode)viewMode |
| 72 tutorialMode:(profiles::TutorialMode)tutorialMode | 76 tutorialMode:(profiles::TutorialMode)tutorialMode |
| 73 serviceType:(signin::GAIAServiceType)GAIAServiceType; | 77 serviceType:(signin::GAIAServiceType)GAIAServiceType |
| 78 accessPoint:(signin_metrics::AccessPoint)accessPoint; |
| 74 | 79 |
| 75 // Creates all the subviews of the avatar bubble for |viewToDisplay|. | 80 // Creates all the subviews of the avatar bubble for |viewToDisplay|. |
| 76 - (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay; | 81 - (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay; |
| 77 | 82 |
| 78 // Returns the view currently displayed by the bubble. | 83 // Returns the view currently displayed by the bubble. |
| 79 - (profiles::BubbleViewMode)viewMode; | 84 - (profiles::BubbleViewMode)viewMode; |
| 80 | 85 |
| 81 // Sets the tutorial mode of the bubble. | 86 // Sets the tutorial mode of the bubble. |
| 82 - (void)setTutorialMode:(profiles::TutorialMode)tutorialMode; | 87 - (void)setTutorialMode:(profiles::TutorialMode)tutorialMode; |
| 83 | 88 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 @interface ProfileChooserController (ExposedForTesting) | 133 @interface ProfileChooserController (ExposedForTesting) |
| 129 - (id)initWithBrowser:(Browser*)browser | 134 - (id)initWithBrowser:(Browser*)browser |
| 130 anchoredAt:(NSPoint)point | 135 anchoredAt:(NSPoint)point |
| 131 viewMode:(profiles::BubbleViewMode)viewMode | 136 viewMode:(profiles::BubbleViewMode)viewMode |
| 132 tutorialMode:(profiles::TutorialMode)tutorialMode | 137 tutorialMode:(profiles::TutorialMode)tutorialMode |
| 133 serviceType:(signin::GAIAServiceType)GAIAServiceType; | 138 serviceType:(signin::GAIAServiceType)GAIAServiceType; |
| 134 - (IBAction)dismissTutorial:(id)sender; | 139 - (IBAction)dismissTutorial:(id)sender; |
| 135 @end | 140 @end |
| 136 | 141 |
| 137 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ | 142 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ |
| OLD | NEW |