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

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

Issue 2692903002: Don't show media controls when there is a persistent video. (Closed)
Patch Set: rebase Created 3 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: content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
index 657c9a0f81a816d1ebd2f17a9c966a205fc9847f..322d0727a97e5a642207395345683c1bb8916a98 100644
--- a/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
+++ b/content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java
@@ -517,6 +517,11 @@ import java.util.UUID;
nativeDismissTextHandles(mNativeWebContentsAndroid);
}
+ @Override
+ public void setHasPersistentVideo(boolean value) {
+ nativeSetHasPersistentVideo(mNativeWebContentsAndroid, value);
+ }
+
@CalledByNative
private final void setMediaSession(MediaSessionImpl mediaSession) {
mMediaSession = mediaSession;
@@ -604,4 +609,5 @@ import java.util.UUID;
String url, boolean isFavicon, int maxBitmapSize,
boolean bypassCache, ImageDownloadCallback callback);
private native void nativeDismissTextHandles(long nativeWebContentsAndroid);
+ private native void nativeSetHasPersistentVideo(long nativeWebContentsAndroid, boolean value);
}

Powered by Google App Engine
This is Rietveld 408576698