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> |
7 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
8 | 9 |
9 #include "cwv_export.h" | |
10 | |
11 @class CWVWebViewConfiguration; | 10 @class CWVWebViewConfiguration; |
12 @protocol CWVUIDelegate; | 11 @protocol CWVUIDelegate; |
13 @protocol CWVTranslateDelegate; | 12 @protocol CWVTranslateDelegate; |
14 @protocol CWVNavigationDelegate; | 13 @protocol CWVNavigationDelegate; |
15 | 14 |
16 // A web view component (like WKWebView) which uses iOS Chromium's web view | 15 // A web view component (like WKWebView) which uses iOS Chromium's web view |
17 // implementation. | 16 // implementation. |
18 // | 17 // |
19 // In addition to WKWebView features, it allows Translate, Find In Page, | 18 // In addition to WKWebView features, it allows Translate, Find In Page, |
20 // Customizable Context Menus, and maybe more. | 19 // Customizable Context Menus, and maybe more. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 - (void)loadRequest:(NSURLRequest*)request; | 78 - (void)loadRequest:(NSURLRequest*)request; |
80 | 79 |
81 // Evaluates a JavaScript string. | 80 // Evaluates a JavaScript string. |
82 // The completion handler is invoked when script evaluation completes. | 81 // The completion handler is invoked when script evaluation completes. |
83 - (void)evaluateJavaScript:(NSString*)javaScriptString | 82 - (void)evaluateJavaScript:(NSString*)javaScriptString |
84 completionHandler:(void (^)(id, NSError*))completionHandler; | 83 completionHandler:(void (^)(id, NSError*))completionHandler; |
85 | 84 |
86 @end | 85 @end |
87 | 86 |
88 #endif // IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ | 87 #endif // IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ |
OLD | NEW |