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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 667143002: [aw] Software mode tests for fullscreen API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixPowerBlockerNonMedia
Patch Set: Fix possible deadlock when entering fullscreen in software mode Created 6 years, 1 month 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: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 37aad23306bdd6098201359fecfe1dfce0f1b772..6053165469cccfa948eeaff4b9797c8f592d68be 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -663,6 +663,7 @@ public class AwContents {
// In fullscreen mode FullScreenView owns the AwViewMethodsImpl and AwContents
// a NullAwViewMethods.
FullScreenView fullScreenView = new FullScreenView(mContext, mAwViewMethods);
+ fullScreenView.setLayerType(mContainerView.getLayerType(), null);
boliu 2014/11/04 16:14:40 Let's do this in test classes somewhere. Say the b
mFullScreenTransitionsState.enterFullScreen(fullScreenView);
mAwViewMethods = new NullAwViewMethods(this, mInternalAccessAdapter, mContainerView);
mContainerView.removeOnLayoutChangeListener(mLayoutChangeListener);

Powered by Google App Engine
This is Rietveld 408576698