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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java

Issue 2738893002: Add flag for enabling/disabling video fullscreen detection (Closed)
Patch Set: rebased Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java b/chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java
index a297c976fdd3212083bbc55b0174b90a334e9b36..b8f71672f6764accd22cd71e8ff3bb86bdb15435 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/AppHooks.java
@@ -11,6 +11,7 @@ import android.os.Handler;
import android.os.Looper;
import org.chromium.base.ContextUtils;
+import org.chromium.base.annotations.CalledByNative;
import org.chromium.chrome.browser.banners.AppDetailsDelegate;
import org.chromium.chrome.browser.customtabs.CustomTabsConnection;
import org.chromium.chrome.browser.datausage.ExternalDataUseObserver;
@@ -55,6 +56,7 @@ import org.chromium.policy.CombinedPolicyProvider;
public abstract class AppHooks {
private static AppHooksImpl sInstance;
+ @CalledByNative
public static AppHooks get() {
if (sInstance == null) {
sInstance = new AppHooksImpl();
@@ -304,4 +306,14 @@ public abstract class AppHooks {
// {@link android.app.Service#startForeground(int, Notification)}.
ContextUtils.getApplicationContext().startService(intent);
}
-}
+
+ /**
+ * @return Whether the renderer should detect whether video elements are in fullscreen. The
+ * detection results can be retrieved through
+ * {@link WebContents.hasActiveEffectivelyFullscreenVideo()}.
+ */
+ @CalledByNative
+ public boolean shouldDetectVideoFullscreen() {
+ return false;
+ }
+}
« no previous file with comments | « no previous file | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698