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> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // Whether the bubble is displayed for an active guest profile. | 60 // Whether the bubble is displayed for an active guest profile. |
61 BOOL isGuestSession_; | 61 BOOL isGuestSession_; |
62 | 62 |
63 // The GAIA service type that caused this menu to open. | 63 // The GAIA service type that caused this menu to open. |
64 signin::GAIAServiceType serviceType_; | 64 signin::GAIAServiceType serviceType_; |
65 } | 65 } |
66 | 66 |
67 - (id)initWithBrowser:(Browser*)browser | 67 - (id)initWithBrowser:(Browser*)browser |
68 anchoredAt:(NSPoint)point | 68 anchoredAt:(NSPoint)point |
69 withMode:(profiles::BubbleViewMode)mode | 69 viewMode:(profiles::BubbleViewMode)viewMode |
70 withServiceType:(signin::GAIAServiceType)GAIAServiceType; | 70 tutorialMode:(profiles::TutorialMode)tutorialMode |
| 71 serviceType:(signin::GAIAServiceType)GAIAServiceType; |
71 | 72 |
72 // Creates all the subviews of the avatar bubble for |viewToDisplay|. | 73 // Creates all the subviews of the avatar bubble for |viewToDisplay|. |
73 - (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay; | 74 - (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay; |
74 | 75 |
75 // Returns the view currently displayed by the bubble. | 76 // Returns the view currently displayed by the bubble. |
76 - (profiles::BubbleViewMode)viewMode; | 77 - (profiles::BubbleViewMode)viewMode; |
77 | 78 |
78 // Sets the tutorial mode of the bubble. | 79 // Sets the tutorial mode of the bubble. |
79 - (void)setTutorialMode:(profiles::TutorialMode)tutorialMode; | 80 - (void)setTutorialMode:(profiles::TutorialMode)tutorialMode; |
80 | 81 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 119 |
119 // Clean-up done after an action was performed in the ProfileChooser. | 120 // Clean-up done after an action was performed in the ProfileChooser. |
120 - (void)postActionPerformed:(ProfileMetrics::ProfileDesktopMenu)action; | 121 - (void)postActionPerformed:(ProfileMetrics::ProfileDesktopMenu)action; |
121 @end | 122 @end |
122 | 123 |
123 // Testing API ///////////////////////////////////////////////////////////////// | 124 // Testing API ///////////////////////////////////////////////////////////////// |
124 | 125 |
125 @interface ProfileChooserController (ExposedForTesting) | 126 @interface ProfileChooserController (ExposedForTesting) |
126 - (id)initWithBrowser:(Browser*)browser | 127 - (id)initWithBrowser:(Browser*)browser |
127 anchoredAt:(NSPoint)point | 128 anchoredAt:(NSPoint)point |
128 withMode:(profiles::BubbleViewMode)mode | 129 viewMode:(profiles::BubbleViewMode)viewMode |
129 withServiceType:(signin::GAIAServiceType)serviceType; | 130 tutorialMode:(profiles::TutorialMode)tutorialMode |
| 131 serviceType:(signin::GAIAServiceType)GAIAServiceType; |
130 @end | 132 @end |
131 | 133 |
132 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ | 134 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ |
OLD | NEW |