| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Whether sync changes should be committed when the settings are being | 45 // Whether sync changes should be committed when the settings are being |
| 46 // dismissed. Defaults to YES. | 46 // dismissed. Defaults to YES. |
| 47 @property(nonatomic, assign) BOOL shouldCommitSyncChangesOnDismissal; | 47 @property(nonatomic, assign) BOOL shouldCommitSyncChangesOnDismissal; |
| 48 | 48 |
| 49 // Creates a new SettingsCollectionViewController and the chrome around it. | 49 // Creates a new SettingsCollectionViewController and the chrome around it. |
| 50 // |browserState| is used to personalize some settings aspects and should not be | 50 // |browserState| is used to personalize some settings aspects and should not be |
| 51 // nil. |delegate| may be nil. | 51 // nil. |delegate| may be nil. |
| 52 // clang-format off | 52 // clang-format off |
| 53 + (SettingsNavigationController*)newSettingsMainControllerWithMainBrowserState: | 53 + (SettingsNavigationController*)newSettingsMainControllerWithMainBrowserState: |
| 54 (ios::ChromeBrowserState*)browserState | 54 (ios::ChromeBrowserState*)browserState |
| 55 currentBrowserState: | |
| 56 (ios::ChromeBrowserState*)currentBrowserState | |
| 57 delegate: | 55 delegate: |
| 58 (id<SettingsNavigationControllerDelegate>)delegate; | 56 (id<SettingsNavigationControllerDelegate>)delegate; |
| 59 // clang-format on | 57 // clang-format on |
| 60 | 58 |
| 61 // Creates a new AccountsCollectionViewController and the chrome around it. | 59 // Creates a new AccountsCollectionViewController and the chrome around it. |
| 62 // |browserState| is used to personalize some settings aspects and should not be | 60 // |browserState| is used to personalize some settings aspects and should not be |
| 63 // nil. |delegate| may be nil. | 61 // nil. |delegate| may be nil. |
| 64 + (SettingsNavigationController*) | 62 + (SettingsNavigationController*) |
| 65 newAccountsController:(ios::ChromeBrowserState*)browserState | 63 newAccountsController:(ios::ChromeBrowserState*)browserState |
| 66 delegate:(id<SettingsNavigationControllerDelegate>)delegate; | 64 delegate:(id<SettingsNavigationControllerDelegate>)delegate; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Initializes the UINavigationController with |rootViewController|. | 159 // Initializes the UINavigationController with |rootViewController|. |
| 162 // User of this class should not call the normal |initWithRootViewController|. | 160 // User of this class should not call the normal |initWithRootViewController|. |
| 163 - (instancetype) | 161 - (instancetype) |
| 164 initWithRootViewController:(UIViewController*)rootViewController | 162 initWithRootViewController:(UIViewController*)rootViewController |
| 165 browserState:(ios::ChromeBrowserState*)browserState | 163 browserState:(ios::ChromeBrowserState*)browserState |
| 166 delegate:(id<SettingsNavigationControllerDelegate>)delegate; | 164 delegate:(id<SettingsNavigationControllerDelegate>)delegate; |
| 167 | 165 |
| 168 @end | 166 @end |
| 169 | 167 |
| 170 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_NAVIGATION_CONTROLLER_H_ | 168 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |