| 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
|
| deleted file mode 100644
|
| index 02510d18c71985f268edb4f3c9edecbad8729494..0000000000000000000000000000000000000000
|
| --- a/ios/web_view/public/criwv_web_view.h
|
| +++ /dev/null
|
| @@ -1,74 +0,0 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -#ifndef IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_H_
|
| -#define IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_H_
|
| -
|
| -#import <UIKit/UIKit.h>
|
| -
|
| -@class CRIWVWebViewConfiguration;
|
| -@protocol CRIWVWebViewDelegate;
|
| -
|
| -// 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.
|
| -@interface CRIWVWebView : UIView
|
| -
|
| -// The view used to display web content.
|
| -@property(nonatomic, readonly) UIView* view;
|
| -
|
| -// This web view's delegate.
|
| -@property(nonatomic, weak) id<CRIWVWebViewDelegate> delegate;
|
| -
|
| -// Whether or not this web view can go backwards or forwards.
|
| -@property(nonatomic, readonly) BOOL canGoBack;
|
| -@property(nonatomic, readonly) BOOL canGoForward;
|
| -
|
| -// Whether or not this web view is loading a page.
|
| -@property(nonatomic, readonly) BOOL isLoading;
|
| -
|
| -// The current URL, for display to the user.
|
| -@property(nonatomic, readonly) NSURL* visibleURL;
|
| -
|
| -// The current page title.
|
| -@property(nonatomic, readonly) NSString* pageTitle;
|
| -
|
| -// The current load progress, as a fraction between 0 and 1. This value is
|
| -// undefined if the web view is not currently loading.
|
| -@property(nonatomic, readonly) CGFloat loadProgress;
|
| -
|
| -// |configuration| must not be null
|
| -- (instancetype)initWithFrame:(CGRect)frame
|
| - configuration:(CRIWVWebViewConfiguration*)configuration
|
| - NS_DESIGNATED_INITIALIZER;
|
| -
|
| -- (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;
|
| -- (void)goForward;
|
| -
|
| -// Reloads the current page.
|
| -- (void)reload;
|
| -
|
| -// Stops loading the current page.
|
| -- (void)stopLoading;
|
| -
|
| -// Loads the given URL request in this web view.
|
| -// Unlike WKWebView, this method supports HTTPBody.
|
| -- (void)loadRequest:(NSURLRequest*)request;
|
| -
|
| -// Evaluates a JavaScript string.
|
| -// The completion handler is invoked when script evaluation completes.
|
| -- (void)evaluateJavaScript:(NSString*)javaScriptString
|
| - completionHandler:(void (^)(id, NSError*))completionHandler;
|
| -
|
| -@end
|
| -
|
| -#endif // IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_H_
|
|
|