OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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_PHYSICAL_WEB_COLLECTION_VIEW_CONTROLLER_H
_ |
| 6 #define IOS_CHROME_BROWSER_UI_SETTINGS_PHYSICAL_WEB_COLLECTION_VIEW_CONTROLLER_H
_ |
| 7 |
| 8 #import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller
.h" |
| 9 |
| 10 #include "components/prefs/pref_service.h" |
| 11 |
| 12 // This View Controller is responsible for managing the settings related to |
| 13 // the Physical Web. |
| 14 @interface PhysicalWebCollectionViewController |
| 15 : SettingsRootCollectionViewController |
| 16 |
| 17 // The designated initializer. |
| 18 - (instancetype)initWithPrefs:(PrefService*)prefs NS_DESIGNATED_INITIALIZER; |
| 19 |
| 20 - (instancetype)init NS_UNAVAILABLE; |
| 21 |
| 22 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
| 23 NS_UNAVAILABLE; |
| 24 |
| 25 // Given the current Physical Web preference state, determine whether the |
| 26 // preference should be rendered as enabled. |
| 27 + (BOOL)shouldEnableForPreferenceState:(int)preferenceState; |
| 28 |
| 29 @end |
| 30 |
| 31 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_PHYSICAL_WEB_COLLECTION_VIEW_CONTROLLE
R_H_ |
OLD | NEW |