OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_SETTINGS_ACCOUNTS_COLLECTION_VIEW_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_SETTINGS_ACCOUNTS_COLLECTION_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #import "ios/chrome/browser/sync/sync_observer_bridge.h" |
| 9 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h" |
| 10 #import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller
.h" |
| 11 |
| 12 // The accessibility identifier of the view controller's view. |
| 13 extern NSString* const kSettingsAccountsId; |
| 14 // The accessibility identifier of the header of the accounts list. |
| 15 extern NSString* const kSettingsHeaderId; |
| 16 // The accessibility identifier of the signout cell. |
| 17 extern NSString* const kSettingsAccountsSignoutCellId; |
| 18 // The accessibility identifier of the sync account cell. |
| 19 extern NSString* const kSettingsAccountsSyncCellId; |
| 20 |
| 21 namespace ios { |
| 22 class ChromeBrowserState; |
| 23 } // namespace ios |
| 24 |
| 25 // Collection View that handles the settings for accounts when the user is |
| 26 // signed in |
| 27 // to Chrome. |
| 28 @interface AccountsCollectionViewController |
| 29 : SettingsRootCollectionViewController<SettingsControllerProtocol> |
| 30 |
| 31 // |browserState| must not be nil. |
| 32 // If |closeSettingsOnAddAccount| is YES, then this account table view |
| 33 // controller will close the setting screen when an account is added. |
| 34 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState |
| 35 closeSettingsOnAddAccount:(BOOL)closeSettingsOnAddAccount |
| 36 NS_DESIGNATED_INITIALIZER; |
| 37 |
| 38 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
| 39 NS_UNAVAILABLE; |
| 40 |
| 41 @end |
| 42 |
| 43 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_ACCOUNTS_COLLECTION_VIEW_CONTROLLER_H_ |
OLD | NEW |