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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Shows the signin tab in the browser. | 93 // Shows the signin tab in the browser. |
94 - (IBAction)showTabbedSigninPage:(id)sender; | 94 - (IBAction)showTabbedSigninPage:(id)sender; |
95 | 95 |
96 // Adds an account to the active profile. | 96 // Adds an account to the active profile. |
97 - (IBAction)addAccount:(id)sender; | 97 - (IBAction)addAccount:(id)sender; |
98 | 98 |
99 // Shows the account removal view to confirm removing the currently selected | 99 // Shows the account removal view to confirm removing the currently selected |
100 // account from the active profile if possible. | 100 // account from the active profile if possible. |
101 - (IBAction)showAccountRemovalView:(id)sender; | 101 - (IBAction)showAccountRemovalView:(id)sender; |
102 | 102 |
| 103 // Shows the account reauthentication view to re-sign in the currently selected |
| 104 // account from the active profile if possible. |
| 105 - (IBAction)showAccountReauthView:(id)sender; |
| 106 |
103 // Removes the current account |accountIdToRemove_|. | 107 // Removes the current account |accountIdToRemove_|. |
104 - (IBAction)removeAccount:(id)sender; | 108 - (IBAction)removeAccount:(id)sender; |
105 | 109 |
106 // Reset the WebContents used by the Gaia embedded view. | 110 // Reset the WebContents used by the Gaia embedded view. |
107 - (void)cleanUpEmbeddedViewContents; | 111 - (void)cleanUpEmbeddedViewContents; |
108 @end | 112 @end |
109 | 113 |
110 // Testing API ///////////////////////////////////////////////////////////////// | 114 // Testing API ///////////////////////////////////////////////////////////////// |
111 | 115 |
112 @interface ProfileChooserController (ExposedForTesting) | 116 @interface ProfileChooserController (ExposedForTesting) |
113 - (id)initWithBrowser:(Browser*)browser | 117 - (id)initWithBrowser:(Browser*)browser |
114 anchoredAt:(NSPoint)point | 118 anchoredAt:(NSPoint)point |
115 withMode:(profiles::BubbleViewMode)mode; | 119 withMode:(profiles::BubbleViewMode)mode; |
116 @end | 120 @end |
117 | 121 |
118 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ | 122 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_CHOOSER_CONTROLLER_H_ |
OLD | NEW |