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

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Make OnFullscreenStateChanged a function at the RWVHB level. cr feedback Created 3 years, 6 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/web_contents/web_contents_android.cc
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
index 6e28cebb078eabf538ea49ce75af538276a1caac..aef1e9793301fa9d025d33ce5a60f625aa200739 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -317,6 +317,15 @@ jint WebContentsAndroid::GetBackgroundColor(JNIEnv* env,
return rwhva->GetCachedBackgroundColor();
}
+jboolean WebContentsAndroid::CanShowThumbnailPlaceholder(
+ JNIEnv* env,
+ const JavaParamRef<jobject>& obj) {
+ RenderWidgetHostViewAndroid* rwhva = GetRenderWidgetHostViewAndroid();
+ if (!rwhva)
+ return true;
+ return rwhva->CanShowThumbnailPlaceholder();
+}
+
ScopedJavaLocalRef<jstring> WebContentsAndroid::GetURL(
JNIEnv* env,
const JavaParamRef<jobject>& obj) const {

Powered by Google App Engine
This is Rietveld 408576698