OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_COLLECTION_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_COLLECTION_VIEW_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_COLLECTION_VIEW_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_COLLECTION_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h" | 8 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h" |
9 #import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller
.h" | 9 #import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller
.h" |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 // The accessibility identifier of the Voice Search cell. | 28 // The accessibility identifier of the Voice Search cell. |
29 extern NSString* const kSettingsVoiceSearchCellId; | 29 extern NSString* const kSettingsVoiceSearchCellId; |
30 | 30 |
31 // This class is the collection view for the application settings. | 31 // This class is the collection view for the application settings. |
32 @interface SettingsCollectionViewController | 32 @interface SettingsCollectionViewController |
33 : SettingsRootCollectionViewController<SettingsControllerProtocol> | 33 : SettingsRootCollectionViewController<SettingsControllerProtocol> |
34 | 34 |
35 // The controller used to signin on this screen. Returns nil unless a signin is | 35 // The controller used to signin on this screen. Returns nil unless a signin is |
36 // currently occuring. | 36 // currently occuring. |
37 @property(nonatomic, readonly) | 37 @property(weak, nonatomic, readonly) |
38 SigninInteractionController* signinInteractionController; | 38 SigninInteractionController* signinInteractionController; |
39 | 39 |
40 // Initializes a new SettingsCollectionViewController. |mainBrowserState|, | 40 // Initializes a new SettingsCollectionViewController. |mainBrowserState|, |
41 // |currentBrowserState| and |dataSource| must not be nil. | 41 // |currentBrowserState| and |dataSource| must not be nil. |
42 // If |currentBrowserState| is not off the record, then it must be equal to | 42 // If |currentBrowserState| is not off the record, then it must be equal to |
43 // |mainBrowserState|. | 43 // |mainBrowserState|. |
44 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)mainBrowserState | 44 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)mainBrowserState |
45 currentBrowserState: | 45 currentBrowserState: |
46 (ios::ChromeBrowserState*)currentBrowserState | 46 (ios::ChromeBrowserState*)currentBrowserState |
47 NS_DESIGNATED_INITIALIZER; | 47 NS_DESIGNATED_INITIALIZER; |
48 | 48 |
49 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style | 49 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
50 NS_UNAVAILABLE; | 50 NS_UNAVAILABLE; |
51 | 51 |
52 - (instancetype)init NS_UNAVAILABLE; | 52 - (instancetype)init NS_UNAVAILABLE; |
53 | 53 |
54 @end | 54 @end |
55 | 55 |
56 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_COLLECTION_VIEW_CONTROLLER_H_ | 56 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_COLLECTION_VIEW_CONTROLLER_H_ |
OLD | NEW |