Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
index 9a3bf0c67c75a39fd5c943b2f7b8ccba64cf0d29..6c612aaceb2741bd97d14a82573e895146b66723 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
@@ -1286,6 +1286,14 @@ public class ContentViewCore |
} |
} |
+ /** |
+ * Requests the renderer insert a link to the specified stylesheet in the |
+ * main frame's document. |
+ */ |
+ void addStyleSheetByURL(String url) { |
+ nativeAddStyleSheetByURL(mNativeContentViewCore, url); |
+ } |
+ |
/** Callback interface for evaluateJavaScript(). */ |
public interface JavaScriptCallback { |
void handleJavaScriptResult(String jsonResult); |
@@ -3163,6 +3171,9 @@ public class ContentViewCore |
private native void nativeClearHistory(long nativeContentViewCoreImpl); |
+ private native void nativeAddStyleSheetByURL(long nativeContentViewCoreImpl, |
+ String stylesheetUrl); |
+ |
private native void nativeEvaluateJavaScript(long nativeContentViewCoreImpl, |
String script, JavaScriptCallback callback, boolean startRenderer); |