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

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

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/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 f8225d5e63171e5c7da3508237a17c8e950d56bc..842b860337c64cfd48970e683a8bce5ef33d700b 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -710,6 +710,12 @@ void WebContentsAndroid::SetHasPersistentVideo(
web_contents_->SetHasPersistentVideo(value);
}
+bool WebContentsAndroid::HasActiveEffectivelyFullscreenVideo(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj) {
+ return web_contents_->HasActiveEffectivelyFullscreenVideo();
+}
+
void WebContentsAndroid::OnFinishGetContentBitmap(
const JavaRef<jobject>& obj,
const JavaRef<jobject>& callback,

Powered by Google App Engine
This is Rietveld 408576698