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_CWV_WEB_VIEW_H_ | 4 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ |
5 #define IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ | 5 #define IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ |
6 | 6 |
7 #import <ChromeWebView/cwv_export.h> | |
8 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
9 | 8 |
| 9 #import "cwv_export.h" |
| 10 |
10 @class CWVScrollView; | 11 @class CWVScrollView; |
11 @class CWVTranslationController; | 12 @class CWVTranslationController; |
12 @class CWVWebViewConfiguration; | 13 @class CWVWebViewConfiguration; |
13 @protocol CWVUIDelegate; | 14 @protocol CWVUIDelegate; |
14 @protocol CWVNavigationDelegate; | 15 @protocol CWVNavigationDelegate; |
15 | 16 |
16 // A web view component (like WKWebView) which uses iOS Chromium's web view | 17 // A web view component (like WKWebView) which uses iOS Chromium's web view |
17 // implementation. | 18 // implementation. |
18 // | 19 // |
19 // In addition to WKWebView features, it allows Translate, Find In Page, | 20 // In addition to WKWebView features, it allows Translate, Find In Page, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 - (void)loadRequest:(NSURLRequest*)request; | 110 - (void)loadRequest:(NSURLRequest*)request; |
110 | 111 |
111 // Evaluates a JavaScript string. | 112 // Evaluates a JavaScript string. |
112 // The completion handler is invoked when script evaluation completes. | 113 // The completion handler is invoked when script evaluation completes. |
113 - (void)evaluateJavaScript:(NSString*)javaScriptString | 114 - (void)evaluateJavaScript:(NSString*)javaScriptString |
114 completionHandler:(void (^)(id, NSError*))completionHandler; | 115 completionHandler:(void (^)(id, NSError*))completionHandler; |
115 | 116 |
116 @end | 117 @end |
117 | 118 |
118 #endif // IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ | 119 #endif // IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ |
OLD | NEW |