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

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

Issue 2839093002: Implemented new Translate API for purely Objective-C clients. (Closed)
Patch Set: merge Created 3 years, 7 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
« no previous file with comments | « ios/web_view/public/cwv_translation_language.h ('k') | ios/web_view/shell/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3bf3ee6ab8bfb640c17d30b761f9d90f64ea6893..c4251df2e8ed2eaf929956ac8043c1da03b7acac 100644
--- a/ios/web_view/public/cwv_web_view.h
+++ b/ios/web_view/public/cwv_web_view.h
@@ -8,9 +8,9 @@
#import <UIKit/UIKit.h>
@class CWVScrollView;
+@class CWVTranslationController;
@class CWVWebViewConfiguration;
@protocol CWVUIDelegate;
-@protocol CWVTranslateDelegate;
@protocol CWVNavigationDelegate;
// A web view component (like WKWebView) which uses iOS Chromium's web view
@@ -29,12 +29,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;
« no previous file with comments | « ios/web_view/public/cwv_translation_language.h ('k') | ios/web_view/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698