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

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

Issue 2589583003: Upstream Chrome on iOS source code [7/11]. (Closed)
Patch Set: Created 4 years 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_DATAPLAN_USAGE_COLLECTION_VIEW_CONTROLLER _H_
6 #define IOS_CHROME_BROWSER_UI_SETTINGS_DATAPLAN_USAGE_COLLECTION_VIEW_CONTROLLER _H_
7
8 #import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller .h"
9
10 class PrefService;
11
12 // Class that handles the UI and preference setting for options that require
13 // three states: 'Always', 'Only on WiFi', and 'Never'.
14 @interface DataplanUsageCollectionViewController
15 : SettingsRootCollectionViewController
16
17 - (instancetype)initWithPrefs:(PrefService*)prefs
18 basePref:(const char*)basePreference
19 wifiPref:(const char*)wifiPreference
20 title:(NSString*)title NS_DESIGNATED_INITIALIZER;
21
22 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style
23 NS_UNAVAILABLE;
24
25 // Returns the text for the current setting, based on the values of the
26 // preferences. Kept in this class, so that all of the code to translate from
27 // preferences to UI is in one place.
28 + (NSString*)currentLabelForPreference:(PrefService*)prefs
29 basePref:(const char*)basePreference
30 wifiPref:(const char*)wifiPreference;
31 @end
32
33 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_DATAPLAN_USAGE_COLLECTION_VIEW_CONTROL LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698