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_SYNC_SETTINGS_COLLECTION_VIEW_CONTROLLER_
H_ |
| 6 #define IOS_CHROME_BROWSER_UI_SETTINGS_SYNC_SETTINGS_COLLECTION_VIEW_CONTROLLER_
H_ |
| 7 |
| 8 #import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller
.h" |
| 9 |
| 10 namespace ios { |
| 11 class ChromeBrowserState; |
| 12 } // namespace ios |
| 13 |
| 14 // The a11y identifier of the view controller's view. |
| 15 extern NSString* const kSettingsSyncId; |
| 16 // Notification when a switch account operation will start. |
| 17 extern NSString* const kSwitchAccountWillStartNotification; |
| 18 // Notification when a switch account operation did finish. |
| 19 extern NSString* const kSwitchAccountDidFinishNotification; |
| 20 |
| 21 @interface SyncSettingsCollectionViewController |
| 22 : SettingsRootCollectionViewController |
| 23 |
| 24 // |browserState| must not be nil. |
| 25 // |allowSwitchSyncAccount| indicates whether switching sync account is allowed |
| 26 // on the screen. |
| 27 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState |
| 28 allowSwitchSyncAccount:(BOOL)allowSwitchSyncAccount |
| 29 NS_DESIGNATED_INITIALIZER; |
| 30 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
| 31 NS_UNAVAILABLE; |
| 32 |
| 33 @end |
| 34 |
| 35 @interface SyncSettingsCollectionViewController (UsedForTesting) |
| 36 // Returns YES if a sync error cell should be displayed. |
| 37 - (BOOL)shouldDisplaySyncError; |
| 38 // Return YES if the Sync settings should be disabled because of a Sync error. |
| 39 - (BOOL)shouldDisableSettingsOnSyncError; |
| 40 // Returns YES if the encryption cell should display an error. |
| 41 - (BOOL)shouldDisplayEncryptionError; |
| 42 @end |
| 43 |
| 44 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_SYNC_SETTINGS_COLLECTION_VIEW_CONTROLL
ER_H_ |
OLD | NEW |