OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_NAVIGATION_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_NAVIGATION_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_NAVIGATION_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_NAVIGATION_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 @class OpenUrlCommand; | 10 @class OpenUrlCommand; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // Creates and displays a new ImportDataCollectionViewController. |browserState| | 120 // Creates and displays a new ImportDataCollectionViewController. |browserState| |
121 // should not be nil. | 121 // should not be nil. |
122 + (SettingsNavigationController*) | 122 + (SettingsNavigationController*) |
123 newImportDataController:(ios::ChromeBrowserState*)browserState | 123 newImportDataController:(ios::ChromeBrowserState*)browserState |
124 delegate:(id<SettingsNavigationControllerDelegate>)delegate | 124 delegate:(id<SettingsNavigationControllerDelegate>)delegate |
125 importDataDelegate:(id<ImportDataControllerDelegate>)importDataDelegate | 125 importDataDelegate:(id<ImportDataControllerDelegate>)importDataDelegate |
126 fromEmail:(NSString*)fromEmail | 126 fromEmail:(NSString*)fromEmail |
127 toEmail:(NSString*)toEmail | 127 toEmail:(NSString*)toEmail |
128 isSignedIn:(BOOL)isSignedIn; | 128 isSignedIn:(BOOL)isSignedIn; |
129 | 129 |
| 130 // Creates a new AutofillCollectionViewController and the chrome around it. |
| 131 // |browserState| is used to personalize some settings aspects and should not be |
| 132 // nil. |delegate| may be nil. |
| 133 + (SettingsNavigationController*) |
| 134 newAutofillController:(ios::ChromeBrowserState*)browserState |
| 135 delegate:(id<SettingsNavigationControllerDelegate>)delegate; |
| 136 |
130 // Returns a new Done button for a UINavigationItem which will call | 137 // Returns a new Done button for a UINavigationItem which will call |
131 // closeSettings when it is pressed. Should only be called by view controllers | 138 // closeSettings when it is pressed. Should only be called by view controllers |
132 // owned by SettingsNavigationController. | 139 // owned by SettingsNavigationController. |
133 - (UIBarButtonItem*)doneButton; | 140 - (UIBarButtonItem*)doneButton; |
134 | 141 |
135 // Returns the current main browser state. | 142 // Returns the current main browser state. |
136 - (ios::ChromeBrowserState*)mainBrowserState; | 143 - (ios::ChromeBrowserState*)mainBrowserState; |
137 | 144 |
138 // Notifies this |SettingsNavigationController| that it will be dismissed such | 145 // Notifies this |SettingsNavigationController| that it will be dismissed such |
139 // that it has a possibility to do necessary clean up. | 146 // that it has a possibility to do necessary clean up. |
(...skipping 14 matching lines...) Expand all Loading... |
154 // Initializes the UINavigationController with |rootViewController|. | 161 // Initializes the UINavigationController with |rootViewController|. |
155 // User of this class should not call the normal |initWithRootViewController|. | 162 // User of this class should not call the normal |initWithRootViewController|. |
156 - (instancetype) | 163 - (instancetype) |
157 initWithRootViewController:(UIViewController*)rootViewController | 164 initWithRootViewController:(UIViewController*)rootViewController |
158 browserState:(ios::ChromeBrowserState*)browserState | 165 browserState:(ios::ChromeBrowserState*)browserState |
159 delegate:(id<SettingsNavigationControllerDelegate>)delegate; | 166 delegate:(id<SettingsNavigationControllerDelegate>)delegate; |
160 | 167 |
161 @end | 168 @end |
162 | 169 |
163 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_NAVIGATION_CONTROLLER_H_ | 170 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |