| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 #ifndef IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_H_ | 4 #ifndef IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_H_ |
| 5 #define IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_H_ | 5 #define IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_H_ |
| 6 | 6 |
| 7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
| 8 | 8 |
| 9 @protocol CRIWVWebViewDelegate; | 9 @protocol CRIWVWebViewDelegate; |
| 10 | 10 |
| 11 // Primary objective-c interface for web/. Just like a UIWebView, but better. | 11 // Primary objective-c interface for web/. Just like a WKWebView, but better. |
| 12 // Concrete instances can be created through CRIWV. | 12 // Concrete instances can be created through CRIWV. |
| 13 @protocol CRIWVWebView<NSObject> | 13 @protocol CRIWVWebView<NSObject> |
| 14 | 14 |
| 15 // The view used to display web content. | 15 // The view used to display web content. |
| 16 @property(nonatomic, readonly) UIView* view; | 16 @property(nonatomic, readonly) UIView* view; |
| 17 | 17 |
| 18 // This web view's delegate. | 18 // This web view's delegate. |
| 19 @property(nonatomic, readwrite, assign) id<CRIWVWebViewDelegate> delegate; | 19 @property(nonatomic, readwrite, assign) id<CRIWVWebViewDelegate> delegate; |
| 20 | 20 |
| 21 // Whether or not this web view can go backwards or forwards. | 21 // Whether or not this web view can go backwards or forwards. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 50 - (void)loadURL:(NSURL*)url; | 50 - (void)loadURL:(NSURL*)url; |
| 51 | 51 |
| 52 // Evaluates a JavaScript string. | 52 // Evaluates a JavaScript string. |
| 53 // The completion handler is invoked when script evaluation completes. | 53 // The completion handler is invoked when script evaluation completes. |
| 54 - (void)evaluateJavaScript:(NSString*)javaScriptString | 54 - (void)evaluateJavaScript:(NSString*)javaScriptString |
| 55 completionHandler:(void (^)(id, NSError*))completionHandler; | 55 completionHandler:(void (^)(id, NSError*))completionHandler; |
| 56 | 56 |
| 57 @end | 57 @end |
| 58 | 58 |
| 59 #endif // IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_H_ | 59 #endif // IOS_WEB_VIEW_PUBLIC_CRIWV_WEB_VIEW_H_ |
| OLD | NEW |