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

Unified Diff: content/browser/android/content_view_core_impl.cc

Issue 387703004: Navigation transitions: Parse out transition-entering-stylesheet link headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index c91af2e030d6eca1c1c536ed0f46913fe436e4f8..2d76409a564704324eb6fe9c6f7ae42a0e12532a 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1601,12 +1601,22 @@ void ContentViewCoreImpl::RequestTextSurroundingSelection(
}
}
-void ContentViewCoreImpl::DidDeferAfterResponseStarted() {
+void ContentViewCoreImpl::DidDeferAfterResponseStarted(
+ const TransitionLayerData& transition_layer_data) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jobject> obj(java_ref_.get(env));
if (obj.is_null())
return;
Java_ContentViewCore_didDeferAfterResponseStarted(env, obj.obj());
+
+ std::vector<GURL>::const_iterator iter =
+ transition_layer_data.transition_stylesheets.begin();
+ for (; iter != transition_layer_data.transition_stylesheets.end(); ++iter) {
+ ScopedJavaLocalRef<jstring> jstring_url(ConvertUTF8ToJavaString(
+ env, iter->spec()));
+ Java_ContentViewCore_addStylesheetToTransition(
+ env, obj.obj(), jstring_url.obj());
+ }
}
bool ContentViewCoreImpl::WillHandleDeferAfterResponseStarted() {

Powered by Google App Engine
This is Rietveld 408576698