Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: ios/chrome/browser/ui/settings/settings_collection_view_controller.h

Issue 2587023002: Upstream Chrome on iOS source code [8/11]. (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_SETTINGS_COLLECTION_VIEW_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_COLLECTION_VIEW_CONTROLLER_H_
7
8 #import "ios/chrome/browser/ui/settings/settings_navigation_controller.h"
9 #import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller .h"
10
11 @class SigninInteractionController;
12 namespace ios {
13 class ChromeBrowserState;
14 } // namespace ios
15
16 // The accessibility identifier of the settings collection view.
17 extern NSString* const kSettingsCollectionViewId;
18
19 // The accessibility identifier of the sign in cell.
20 extern NSString* const kSettingsSignInCellId;
21
22 // The accessibility identifier of the account cell.
23 extern NSString* const kSettingsAccountCellId;
24
25 // The accessibility identifier of the Search Engine cell.
26 extern NSString* const kSettingsSearchEngineCellId;
27
28 // The accessibility identifier of the Voice Search cell.
29 extern NSString* const kSettingsVoiceSearchCellId;
30
31 // This class is the collection view for the application settings.
32 @interface SettingsCollectionViewController
33 : SettingsRootCollectionViewController<SettingsControllerProtocol>
34
35 // The controller used to signin on this screen. Returns nil unless a signin is
36 // currently occuring.
37 @property(nonatomic, readonly)
38 SigninInteractionController* signinInteractionController;
39
40 // Initializes a new SettingsCollectionViewController. |mainBrowserState|,
41 // |currentBrowserState| and |dataSource| must not be nil.
42 // If |currentBrowserState| is not off the record, then it must be equal to
43 // |mainBrowserState|.
44 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)mainBrowserState
45 currentBrowserState:
46 (ios::ChromeBrowserState*)currentBrowserState
47 NS_DESIGNATED_INITIALIZER;
48
49 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style
50 NS_UNAVAILABLE;
51
52 - (instancetype)init NS_UNAVAILABLE;
53
54 @end
55
56 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_COLLECTION_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698