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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // Shows the signin tab in the browser. | 99 // Shows the signin tab in the browser. |
100 - (IBAction)showTabbedSigninPage:(id)sender; | 100 - (IBAction)showTabbedSigninPage:(id)sender; |
101 | 101 |
102 // Adds an account to the active profile. | 102 // Adds an account to the active profile. |
103 - (IBAction)addAccount:(id)sender; | 103 - (IBAction)addAccount:(id)sender; |
104 | 104 |
105 // Shows the account removal view to confirm removing the currently selected | 105 // Shows the account removal view to confirm removing the currently selected |
106 // account from the active profile if possible. | 106 // account from the active profile if possible. |
107 - (IBAction)showAccountRemovalView:(id)sender; | 107 - (IBAction)showAccountRemovalView:(id)sender; |
108 | 108 |
| 109 // Shows the account reauthentication view to re-sign in the currently selected |
| 110 // account from the active profile if possible. |
| 111 - (IBAction)showAccountReauthenticationView:(id)sender; |
| 112 |
109 // Removes the current account |accountIdToRemove_|. | 113 // Removes the current account |accountIdToRemove_|. |
110 - (IBAction)removeAccount:(id)sender; | 114 - (IBAction)removeAccount:(id)sender; |
111 | 115 |
112 // Reset the WebContents used by the Gaia embedded view. | 116 // Reset the WebContents used by the Gaia embedded view. |
113 - (void)cleanUpEmbeddedViewContents; | 117 - (void)cleanUpEmbeddedViewContents; |
114 | 118 |
115 // Clean-up done after an action was performed in the ProfileChooser. | 119 // Clean-up done after an action was performed in the ProfileChooser. |
116 - (void)postActionPerformed:(ProfileMetrics::ProfileDesktopMenu)action; | 120 - (void)postActionPerformed:(ProfileMetrics::ProfileDesktopMenu)action; |
117 @end | 121 @end |
118 | 122 |
119 // Testing API ///////////////////////////////////////////////////////////////// | 123 // Testing API ///////////////////////////////////////////////////////////////// |
120 | 124 |
121 @interface ProfileChooserController (ExposedForTesting) | 125 @interface ProfileChooserController (ExposedForTesting) |
122 - (id)initWithBrowser:(Browser*)browser | 126 - (id)initWithBrowser:(Browser*)browser |
123 anchoredAt:(NSPoint)point | 127 anchoredAt:(NSPoint)point |
124 withMode:(profiles::BubbleViewMode)mode | 128 withMode:(profiles::BubbleViewMode)mode |
125 withServiceType:(signin::GAIAServiceType)serviceType; | 129 withServiceType:(signin::GAIAServiceType)serviceType; |
126 @end | 130 @end |
127 | 131 |
128 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ | 132 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ |
OLD | NEW |