Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Unified Diff: ios/web_view/public/cwv_translation_controller.h

Issue 2965303002: Expose method to reset translate settings. (Closed)
Patch Set: move to class method Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 ee3106649081725778d7c3999c2ca9b73fe042d1..8ac044c6d53aff79fded4d30cf483c8304df4940 100644
--- a/ios/web_view/public/cwv_translation_controller.h
+++ b/ios/web_view/public/cwv_translation_controller.h
@@ -52,6 +52,9 @@ CWV_EXPORT
@property(nonatomic, readonly)
NSSet<CWVTranslationLanguage*>* supportedLanguages;
+// Resets all translation policies to CWVTranslationPolicyAsk.
++ (void)resetTranslationPolicies;
+
// Begins translation on the current page from |sourceLanguage| to
// |targetLanguage|. These language parameters must be chosen from
// |supportedLanguages|. Set |userInitiated| to YES if translation

Powered by Google App Engine
This is Rietveld 408576698