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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 387703004: Navigation transitions: Parse out transition-entering-stylesheet link headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more tests on java side Created 6 years, 5 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
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 21262f341a847966bdf9e258a8b312e4f8f2cf4d..53665a8db1d2965c79cbf0dc32461acfb01ff4b7 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
@@ -241,6 +241,12 @@ public class ContentViewCore
* if it's supported.
*/
public boolean willHandleDeferAfterResponseStarted();
+
+ /**
+ * Called when the navigation is deferred immediately after the response
+ * started.
+ */
+ public void addStylesheetToTransition(String stylesheet);
}
private final Context mContext;
@@ -3173,6 +3179,13 @@ public class ContentViewCore
mNavigationTransitionDelegate = delegate;
}
+ @CalledByNative
+ private void addStylesheetToTransition(String stylesheet) {
+ if (mNavigationTransitionDelegate != null ) {
+ mNavigationTransitionDelegate.addStylesheetToTransition(stylesheet);
+ }
+ }
+
/**
* Offer a long press gesture to the embedding View, primarily for WebView compatibility.
*

Powered by Google App Engine
This is Rietveld 408576698