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

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

Issue 2983453002: Expose way to enable/disable translate. (Closed)
Patch Set: Refactor settings 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_web_view_configuration.h
diff --git a/ios/web_view/public/cwv_web_view_configuration.h b/ios/web_view/public/cwv_web_view_configuration.h
index e1de0986ae24ad7206ab2b9b7064b48bcaa473fb..76145c87f1f4f20af728e37a6a3727bef13ac8e8 100644
--- a/ios/web_view/public/cwv_web_view_configuration.h
+++ b/ios/web_view/public/cwv_web_view_configuration.h
@@ -9,6 +9,7 @@
#import "cwv_export.h"
+@class CWVTranslationConfiguration;
@class CWVUserContentController;
@class CWVWebsiteDataStore;
@@ -24,6 +25,10 @@ CWV_EXPORT
- (instancetype)init NS_UNAVAILABLE;
+// Allows configuration of translation settings.
+@property(nonatomic, readonly)
+ CWVTranslationConfiguration* translationConfiguration;
Eugene But (OOO till 7-30) 2017/07/14 00:22:43 In Objective-C, configuration objects are used to
Hiroshi Ichikawa 2017/07/14 01:18:39 I would slightly prefer CWVTranslationPreferences
jzw1 2017/07/14 02:09:50 Going to call this new thing CWVPreferences.
+
// The user content controller to associate with web views created using this
// configuration.
@property(nonatomic, readonly) CWVUserContentController* userContentController;

Powered by Google App Engine
This is Rietveld 408576698