Chromium Code Reviews| Index: ios/web_view/public/cwv_translation_controller.h |
| diff --git a/ios/web_view/public/cwv_translation_controller.h b/ios/web_view/public/cwv_translation_controller.h |
| index 322965268cc4147208f1e96c33744d19d431d8fd..9519c4501d9aa91ee77fb6b5aa233720464657e6 100644 |
| --- a/ios/web_view/public/cwv_translation_controller.h |
| +++ b/ios/web_view/public/cwv_translation_controller.h |
| @@ -11,6 +11,7 @@ |
| NS_ASSUME_NONNULL_BEGIN |
| @class CWVTranslationLanguage; |
| +@class CWVTranslationPolicy; |
| @protocol CWVTranslationControllerDelegate; |
| // The error domain for translation errors. |
| @@ -64,6 +65,17 @@ CWV_EXPORT |
| // TODO(crbug.com/706289): Document what happens if you call this out of order. |
| - (void)revertTranslation; |
| +// Save or retrieve translation policies associated with a specified language. |
| +- (void)saveTranslationPolicy:(CWVTranslationPolicy*)policy |
|
Hiroshi Ichikawa
2017/05/10 08:36:56
1. Maybe "set" not "save" to be consistent with st
jzw1
2017/05/11 03:03:17
Done.
|
| + language:(CWVTranslationLanguage*)language; |
| +- (CWVTranslationPolicy*)translationPolicyForLanguage: |
| + (CWVTranslationLanguage*)language; |
| + |
| +// Save or retrieve translation policies associated with a specified page. |
| +- (void)saveTranslationPolicy:(CWVTranslationPolicy*)policy |
|
Hiroshi Ichikawa
2017/05/10 08:36:55
1. Maybe "set" not "save" to be consistent with st
jzw1
2017/05/11 03:03:17
Done.
|
| + pageHost:(NSString*)pageHost; |
| +- (CWVTranslationPolicy*)translationPolicyForPageHost:(NSString*)pageHost; |
| + |
| @end |
| NS_ASSUME_NONNULL_END |