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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 anchoredAt:(NSPoint)point | 68 anchoredAt:(NSPoint)point |
69 withMode:(profiles::BubbleViewMode)mode | 69 withMode:(profiles::BubbleViewMode)mode |
70 withServiceType:(signin::GAIAServiceType)GAIAServiceType; | 70 withServiceType:(signin::GAIAServiceType)GAIAServiceType; |
71 | 71 |
72 // Creates all the subviews of the avatar bubble for |viewToDisplay|. | 72 // Creates all the subviews of the avatar bubble for |viewToDisplay|. |
73 - (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay; | 73 - (void)initMenuContentsWithView:(profiles::BubbleViewMode)viewToDisplay; |
74 | 74 |
75 // Returns the view currently displayed by the bubble. | 75 // Returns the view currently displayed by the bubble. |
76 - (profiles::BubbleViewMode)viewMode; | 76 - (profiles::BubbleViewMode)viewMode; |
77 | 77 |
| 78 // Sets the tutorial mode of the bubble. |
| 79 - (void)setTutorialMode:(profiles::TutorialMode)tutorialMode; |
| 80 |
78 // Switches to a given profile. |sender| is an ProfileChooserItemController. | 81 // Switches to a given profile. |sender| is an ProfileChooserItemController. |
79 - (IBAction)switchToProfile:(id)sender; | 82 - (IBAction)switchToProfile:(id)sender; |
80 | 83 |
81 // Shows the User Manager. | 84 // Shows the User Manager. |
82 - (IBAction)showUserManager:(id)sender; | 85 - (IBAction)showUserManager:(id)sender; |
83 | 86 |
84 // Closes all guest browsers and shows the User Manager. | 87 // Closes all guest browsers and shows the User Manager. |
85 - (IBAction)exitGuest:(id)sender; | 88 - (IBAction)exitGuest:(id)sender; |
86 | 89 |
87 // Shows the account management view. | 90 // Shows the account management view. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Testing API ///////////////////////////////////////////////////////////////// | 123 // Testing API ///////////////////////////////////////////////////////////////// |
121 | 124 |
122 @interface ProfileChooserController (ExposedForTesting) | 125 @interface ProfileChooserController (ExposedForTesting) |
123 - (id)initWithBrowser:(Browser*)browser | 126 - (id)initWithBrowser:(Browser*)browser |
124 anchoredAt:(NSPoint)point | 127 anchoredAt:(NSPoint)point |
125 withMode:(profiles::BubbleViewMode)mode | 128 withMode:(profiles::BubbleViewMode)mode |
126 withServiceType:(signin::GAIAServiceType)serviceType; | 129 withServiceType:(signin::GAIAServiceType)serviceType; |
127 @end | 130 @end |
128 | 131 |
129 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ | 132 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ |
OLD | NEW |