Chromium Code Reviews| Index: ios/web_view/public/cwv_translation_configuration.h |
| diff --git a/ios/web_view/public/cwv_translation_configuration.h b/ios/web_view/public/cwv_translation_configuration.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d9615068580b8e02f1bd681e050df1ef9b4a1781 |
| --- /dev/null |
| +++ b/ios/web_view/public/cwv_translation_configuration.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_CONFIGURATION_H_ |
| +#define IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_CONFIGURATION_H_ |
| + |
| +#import <Foundation/Foundation.h> |
| + |
| +#import "cwv_export.h" |
| + |
| +// Configuration used for translation. |
| +CWV_EXPORT |
| +@interface CWVTranslationConfiguration : NSObject |
| + |
| +// Whether or not translation as a feature is turned on. |
| +@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.
|
| + |
| +// 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.
|
| +- (instancetype)init NS_UNAVAILABLE; |
| + |
| +// Resets all translation settings back to default. In particular, this will |
| +// change all translation policies back to CWVTranslationPolicyAsk. |
| +- (void)reset; |
| + |
| +@end |
| + |
| +#endif // IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_CONFIGURATION_H_ |