OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_WEB_VIEW_PUBLIC_CWV_PREFERENCES_H_ |
| 6 #define IOS_WEB_VIEW_PUBLIC_CWV_PREFERENCES_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #import "cwv_export.h" |
| 11 |
| 12 // Preferences for user settings. |
| 13 CWV_EXPORT |
| 14 @interface CWVPreferences : NSObject |
| 15 |
| 16 // Whether or not translation as a feature is turned on. |
| 17 @property(nonatomic, assign, getter=isTranslationEnabled) |
| 18 BOOL translationEnabled; |
| 19 |
| 20 - (instancetype)init NS_UNAVAILABLE; |
| 21 |
| 22 // Resets all translation settings back to default. In particular, this will |
| 23 // change all translation policies back to CWVTranslationPolicyAsk. |
| 24 - (void)resetTranslationSettings; |
| 25 |
| 26 @end |
| 27 |
| 28 #endif // IOS_WEB_VIEW_PUBLIC_CWV_PREFERENCES_H_ |
OLD | NEW |