Index: ios/web/web_state/ui/web_view_js_utils.h |
diff --git a/ios/web/web_state/ui/web_view_js_utils.h b/ios/web/web_state/ui/web_view_js_utils.h |
index 37d8be31f10a5df05abcb0d6c638c3afdbf01ffa..e1dec69898a66737464909119da77c7f0420e490 100644 |
--- a/ios/web/web_state/ui/web_view_js_utils.h |
+++ b/ios/web/web_state/ui/web_view_js_utils.h |
@@ -9,13 +9,8 @@ |
#include "ios/web/public/block_types.h" |
-@class UIWebView; |
@class WKWebView; |
-// This file contains functions that asynchronously evaluate JavaScript on |
-// WKWebView/UIWebView and provide result in the same format. Call |
-// |completion_handler| with results of the evaluation or an NSError if there is |
-// an error. The |completion_handler| can be nil. |
namespace web { |
// The domain for JS evaluation NSErrors in web. |
@@ -27,18 +22,9 @@ enum JSEvaluationErrorCode { |
JS_EVALUATION_ERROR_CODE_NO_WEB_VIEW = 1, |
}; |
-// The error code for JS evaluation NSErrors. |
-extern const NSInteger kJSEvaluationErrorCode; |
- |
-// Asynchronous adaptor to evaluate JavaScript on UIWebView. Provides evaluation |
-// result as it is, without modifications. |
-void EvaluateJavaScript(UIWebView* web_view, |
- NSString* script, |
- JavaScriptCompletion completion_handler); |
- |
-// Evaluates JavaScript on WKWebView. Provides evaluation result in the same |
-// format as UIWebView. If the web view cannot evaluate JS at the moment, |
-// |completion_handler| is called with an NSError. |
+// Evaluates JavaScript on WKWebView. Provides evaluation result as a string. |
+// If the web view cannot evaluate JS at the moment, |completion_handler| is |
+// called with an NSError. |
void EvaluateJavaScript(WKWebView* web_view, |
NSString* script, |
JavaScriptCompletion completion_handler); |