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_IMPORT_DATA_COLLECTION_VIEW_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_SETTINGS_IMPORT_DATA_COLLECTION_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #include "ios/chrome/browser/signin/constants.h" |
| 9 #import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller
.h" |
| 10 |
| 11 @class ImportDataCollectionViewController; |
| 12 |
| 13 // The accessibility identifier of the Import Data cell. |
| 14 extern NSString* const kImportDataImportCellId; |
| 15 |
| 16 // The accessibility identifier of the Keep Data Separate cell. |
| 17 extern NSString* const kImportDataKeepSeparateCellId; |
| 18 |
| 19 // Notifies of the user action on the corresponding |
| 20 // ImportDataCollectionViewController. |
| 21 @protocol ImportDataControllerDelegate |
| 22 |
| 23 // Indicates that the user chose the clear data policy to be |shouldClearData| |
| 24 // when presented with |controller|. |
| 25 - (void)didChooseClearDataPolicy:(ImportDataCollectionViewController*)controller |
| 26 shouldClearData:(ShouldClearData)shouldClearData; |
| 27 |
| 28 @end |
| 29 |
| 30 // Collection View that handles how to import data during account switching. |
| 31 @interface ImportDataCollectionViewController |
| 32 : SettingsRootCollectionViewController |
| 33 |
| 34 // |fromEmail| is the email of the previously signed in account. |
| 35 // |toIdentity| is the email of the account switched to. |
| 36 // |isSignedIn| is whether the user is currently signed in. |
| 37 // |
| 38 // |fromEmail| and |toEmail| must not be NULL. |
| 39 - (instancetype)initWithDelegate:(id<ImportDataControllerDelegate>)delegate |
| 40 fromEmail:(NSString*)fromEmail |
| 41 toEmail:(NSString*)toEmail |
| 42 isSignedIn:(BOOL)isSignedIn NS_DESIGNATED_INITIALIZER; |
| 43 |
| 44 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
| 45 NS_UNAVAILABLE; |
| 46 |
| 47 @end |
| 48 |
| 49 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_IMPORT_DATA_COLLECTION_VIEW_CONTROLLER
_H_ |
OLD | NEW |