| 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 <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
| 8 | 8 |
| 9 // TODO(crbug.com/704946): Make framework style include work everywhere and | 9 #include "cwv_export.h" |
| 10 // remove this #if. | |
| 11 #if defined(CWV_IMPLEMENTATION) | |
| 12 #include "ios/web_view/public/cwv_export.h" | |
| 13 #else | |
| 14 #include <ChromeWebView/cwv_export.h> | |
| 15 #endif | |
| 16 | 10 |
| 17 @class CWVWebViewConfiguration; | 11 @class CWVWebViewConfiguration; |
| 18 @protocol CWVUIDelegate; | 12 @protocol CWVUIDelegate; |
| 19 @protocol CWVTranslateDelegate; | 13 @protocol CWVTranslateDelegate; |
| 20 @protocol CWVNavigationDelegate; | 14 @protocol CWVNavigationDelegate; |
| 21 | 15 |
| 22 // A web view component (like WKWebView) which uses iOS Chromium's web view | 16 // A web view component (like WKWebView) which uses iOS Chromium's web view |
| 23 // implementation. | 17 // implementation. |
| 24 // | 18 // |
| 25 // In addition to WKWebView features, it allows Translate, Find In Page, | 19 // In addition to WKWebView features, it allows Translate, Find In Page, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 - (void)loadRequest:(NSURLRequest*)request; | 79 - (void)loadRequest:(NSURLRequest*)request; |
| 86 | 80 |
| 87 // Evaluates a JavaScript string. | 81 // Evaluates a JavaScript string. |
| 88 // The completion handler is invoked when script evaluation completes. | 82 // The completion handler is invoked when script evaluation completes. |
| 89 - (void)evaluateJavaScript:(NSString*)javaScriptString | 83 - (void)evaluateJavaScript:(NSString*)javaScriptString |
| 90 completionHandler:(void (^)(id, NSError*))completionHandler; | 84 completionHandler:(void (^)(id, NSError*))completionHandler; |
| 91 | 85 |
| 92 @end | 86 @end |
| 93 | 87 |
| 94 #endif // IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ | 88 #endif // IOS_WEB_VIEW_PUBLIC_CWV_WEB_VIEW_H_ |
| OLD | NEW |