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

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

Issue 2693203002: Provide a WebContents API to discover the playback of a fullscreen video. (Closed)
Patch Set: review comments and compile fix 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 322d0727a97e5a642207395345683c1bb8916a98..13aa756e8f9ed9dce4105cc23f939de6f1463569 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
@@ -522,6 +522,11 @@ import java.util.UUID;
nativeSetHasPersistentVideo(mNativeWebContentsAndroid, value);
}
+ @Override
+ public boolean hasActiveEffectivelyFullscreenVideo() {
+ return nativeHasActiveEffectivelyFullscreenVideo(mNativeWebContentsAndroid);
+ }
+
@CalledByNative
private final void setMediaSession(MediaSessionImpl mediaSession) {
mMediaSession = mediaSession;
@@ -610,4 +615,5 @@ import java.util.UUID;
boolean bypassCache, ImageDownloadCallback callback);
private native void nativeDismissTextHandles(long nativeWebContentsAndroid);
private native void nativeSetHasPersistentVideo(long nativeWebContentsAndroid, boolean value);
+ private native boolean nativeHasActiveEffectivelyFullscreenVideo(long nativeWebContentsAndroid);
}

Powered by Google App Engine
This is Rietveld 408576698