Index: content/public/android/java/src/org/chromium/content_public/browser/WebContents.java |
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java |
index b24c1d1f7869f398cdeee7d1d946b606015214e0..4c5067e438b1345f27c7a0a26d657e4a6ed18978 100644 |
--- a/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java |
+++ b/content/public/android/java/src/org/chromium/content_public/browser/WebContents.java |
@@ -146,4 +146,19 @@ public interface WebContents { |
*/ |
public void beginExitTransition(String cssSelector); |
+ /** |
+ * Injects the passed Javascript code in the current page and evaluates it. |
+ * If a result is required, pass in a callback. |
+ * Used in automation tests. |
Yaron
2014/08/13 20:49:25
Can you remove this line? I think it's historical:
AKVT
2014/08/14 05:31:45
Done.
|
+ * |
+ * @param script The Javascript to execute. |
+ * @param callback The callback to be fired off when a result is ready. The script's |
+ * result will be json encoded and passed as the parameter, and the call |
+ * will be made on the main thread. |
+ * If no result is required, pass null. |
+ * @param startRenderer Tells whether to start Renderer or not for initial empty document |
+ */ |
+ public void evaluateJavaScript(String script, JavaScriptCallback callback, |
+ boolean startRenderer); |
+ |
} |