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

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

Issue 2839093002: Implemented new Translate API for purely Objective-C clients. (Closed)
Patch Set: added TODO Created 3 years, 8 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.h
diff --git a/ios/web_view/public/cwv_web_view.h b/ios/web_view/public/cwv_web_view.h
index 639a85c954f5fa5e36d3eb625ae9af8ce8be3db1..b0e4d68446c33ca36dd4f06bafaadcecb9865408 100644
--- a/ios/web_view/public/cwv_web_view.h
+++ b/ios/web_view/public/cwv_web_view.h
@@ -8,8 +8,8 @@
#import <UIKit/UIKit.h>
@class CWVWebViewConfiguration;
+@class CWVTranslationController;
@protocol CWVUIDelegate;
-@protocol CWVTranslateDelegate;
@protocol CWVNavigationDelegate;
// A web view component (like WKWebView) which uses iOS Chromium's web view
@@ -28,12 +28,12 @@ CWV_EXPORT
// This web view's navigation delegate.
@property(nonatomic, weak) id<CWVNavigationDelegate> navigationDelegate;
+// This web view's translation controller.
+@property(nonatomic, readonly) CWVTranslationController* translationController;
+
// This web view's UI delegate
@property(nonatomic, weak) id<CWVUIDelegate> UIDelegate;
-// A delegate for the translation feature.
-@property(nonatomic, weak) id<CWVTranslateDelegate> translationDelegate;
-
// Whether or not this web view can go backwards or forwards.
@property(nonatomic, readonly) BOOL canGoBack;
@property(nonatomic, readonly) BOOL canGoForward;

Powered by Google App Engine
This is Rietveld 408576698