| Index: ios/chrome/browser/ui/settings/accounts_collection_view_controller.h
|
| diff --git a/ios/chrome/browser/ui/settings/accounts_collection_view_controller.h b/ios/chrome/browser/ui/settings/accounts_collection_view_controller.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4a0b9c112d7c4cbc7c71b9a4a91e61d1dfa4995a
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/ui/settings/accounts_collection_view_controller.h
|
| @@ -0,0 +1,43 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_CHROME_BROWSER_UI_SETTINGS_ACCOUNTS_COLLECTION_VIEW_CONTROLLER_H_
|
| +#define IOS_CHROME_BROWSER_UI_SETTINGS_ACCOUNTS_COLLECTION_VIEW_CONTROLLER_H_
|
| +
|
| +#import "ios/chrome/browser/sync/sync_observer_bridge.h"
|
| +#import "ios/chrome/browser/ui/settings/settings_navigation_controller.h"
|
| +#import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller.h"
|
| +
|
| +// The accessibility identifier of the view controller's view.
|
| +extern NSString* const kSettingsAccountsId;
|
| +// The accessibility identifier of the header of the accounts list.
|
| +extern NSString* const kSettingsHeaderId;
|
| +// The accessibility identifier of the signout cell.
|
| +extern NSString* const kSettingsAccountsSignoutCellId;
|
| +// The accessibility identifier of the sync account cell.
|
| +extern NSString* const kSettingsAccountsSyncCellId;
|
| +
|
| +namespace ios {
|
| +class ChromeBrowserState;
|
| +} // namespace ios
|
| +
|
| +// Collection View that handles the settings for accounts when the user is
|
| +// signed in
|
| +// to Chrome.
|
| +@interface AccountsCollectionViewController
|
| + : SettingsRootCollectionViewController<SettingsControllerProtocol>
|
| +
|
| +// |browserState| must not be nil.
|
| +// If |closeSettingsOnAddAccount| is YES, then this account table view
|
| +// controller will close the setting screen when an account is added.
|
| +- (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState
|
| + closeSettingsOnAddAccount:(BOOL)closeSettingsOnAddAccount
|
| + NS_DESIGNATED_INITIALIZER;
|
| +
|
| +- (instancetype)initWithStyle:(CollectionViewControllerStyle)style
|
| + NS_UNAVAILABLE;
|
| +
|
| +@end
|
| +
|
| +#endif // IOS_CHROME_BROWSER_UI_SETTINGS_ACCOUNTS_COLLECTION_VIEW_CONTROLLER_H_
|
|
|