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

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

Issue 11280284: onShowCustomView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix NullContentsClient compilation error #2 Created 7 years, 10 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: 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 9d98d6e65d273c63b059a93195212f448e0e05d8..216d45895dbb2ad8e9e7bd211e27cb29b5f0be88 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -27,6 +27,7 @@ import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
import org.chromium.base.ThreadUtils;
import org.chromium.content.browser.ContentSettings;
+import org.chromium.content.browser.ContentVideoView;
import org.chromium.content.browser.ContentViewCore;
import org.chromium.content.browser.LoadUrlParams;
import org.chromium.content.browser.NavigationHistory;
@@ -276,6 +277,9 @@ public class AwContents {
mContentViewCore.getNativeContentViewCore());
mDIPScale = DeviceDisplayInfo.create(containerView.getContext()).getDIPScale();
+
+ ContentVideoView.registerContentVideoViewContextDelegate(
+ new AwContentVideoViewDelegate(contentsClient, containerView.getContext()));
}
public ContentViewCore getContentViewCore() {

Powered by Google App Engine
This is Rietveld 408576698