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 50044ae9e2bd94dae0e8ffe57202de5dc144819f..d619963d7fddc1478b664eefe9ce7351b079505c 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 |
@@ -1297,6 +1297,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); |
@@ -3196,6 +3204,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); |