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_TRANSLATION_CONFIGURATION_H_ | |
6 #define IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_CONFIGURATION_H_ | |
7 | |
8 #import <Foundation/Foundation.h> | |
9 | |
10 #import "cwv_export.h" | |
11 | |
12 // Configuration used for translation. | |
13 CWV_EXPORT | |
14 @interface CWVTranslationConfiguration : NSObject | |
15 | |
16 // Whether or not translation as a feature is turned on. | |
17 @property(nonatomic, assign) BOOL enabled; | |
Eugene But (OOO till 7-30)
2017/07/14 00:22:43
@property(nonatomic, assign, getter=isEnabled) BOO
jzw1
2017/07/14 02:09:50
Done.
| |
18 | |
19 // Disable default initializer. | |
Eugene But (OOO till 7-30)
2017/07/14 00:22:43
Do we need this comment?
jzw1
2017/07/14 02:09:50
Done.
| |
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)reset; | |
25 | |
26 @end | |
27 | |
28 #endif // IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_CONFIGURATION_H_ | |
OLD | NEW |