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

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

Issue 2675633002: Let CRIWVWebView inherit UIView instead of NSObject. (Closed)
Patch Set: Fix format. Created 3 years, 10 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/criwv.h ('k') | ios/web_view/public/criwv_web_view_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web_view/public/criwv_web_view.h
diff --git a/ios/web_view/public/criwv_web_view.h b/ios/web_view/public/criwv_web_view.h
index 5d2aeb40c8d23a2b966d557e8457885401ee639b..1bc56978383acf4cd9acfac6a27c0da72701078d 100644
--- a/ios/web_view/public/criwv_web_view.h
+++ b/ios/web_view/public/criwv_web_view.h
@@ -8,9 +8,14 @@
@protocol CRIWVWebViewDelegate;
-// Primary objective-c interface for web/. Just like a WKWebView, but better.
+// A web view component (like WKWebView) which uses iOS Chromium's web view
+// implementation.
+//
+// In addition to WKWebView features, it allows Translate, Find In Page,
+// Customizable Context Menus, and maybe more.
+//
// Concrete instances can be created through CRIWV.
-@protocol CRIWVWebView<NSObject>
+@interface CRIWVWebView : UIView
// The view used to display web content.
@property(nonatomic, readonly) UIView* view;
@@ -35,6 +40,9 @@
// undefined if the web view is not currently loading.
@property(nonatomic, readonly) CGFloat loadProgress;
+- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
+- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
+
// Navigates backwards or forwards by one page. Does nothing if the
// corresponding |canGoBack| or |canGoForward| method returns NO.
- (void)goBack;
« no previous file with comments | « ios/web_view/public/criwv.h ('k') | ios/web_view/public/criwv_web_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698