Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: ios/web/web_state/ui/web_view_js_utils.h

Issue 1808993002: [ios] Removed UIWebView JS evaluation code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODO Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/public/web_state/js/crw_js_injection_evaluator.h ('k') | ios/web/web_state/ui/web_view_js_utils.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ios/web/public/web_state/js/crw_js_injection_evaluator.h ('k') | ios/web/web_state/ui/web_view_js_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698