| Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
|
| index 57df391dc04b5f57ddb2bd2dcc541c0b2cd37a86..bf5681a04dcd45440256f8b1a89879512791ef86 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
|
| @@ -328,6 +328,15 @@ public final class PrefServiceBridge {
|
| }
|
|
|
| /**
|
| + * Allow fullscreen without asking user for permission.
|
| + *
|
| + * @param allowed Whether to allow fullscreen without user permission.
|
| + */
|
| + public void setFullscreenAllowed(boolean allowed) {
|
| + nativeSetFullscreenAllowed(allowed);
|
| + }
|
| +
|
| + /**
|
| * @return whether Search Suggest is enabled.
|
| */
|
| public boolean isSearchSuggestEnabled() {
|
| @@ -449,6 +458,20 @@ public final class PrefServiceBridge {
|
| }
|
|
|
| /**
|
| + * @return whether fullscreen is configured by policy.
|
| + */
|
| + public boolean isFullscreenManaged() {
|
| + return nativeGetFullscreenManaged();
|
| + }
|
| +
|
| + /**
|
| + * @return whether fullscreen is allowed.
|
| + */
|
| + public boolean isFullscreenAllowed() {
|
| + return nativeGetFullscreenAllowed();
|
| + }
|
| +
|
| + /**
|
| * @return whether the web service to resolve navigation error is enabled.
|
| */
|
| public boolean isResolveNavigationErrorEnabled() {
|
| @@ -775,6 +798,8 @@ public final class PrefServiceBridge {
|
| private native boolean nativeGetJavaScriptManaged();
|
| private native boolean nativeGetCameraMicUserModifiable();
|
| private native boolean nativeGetCameraMicManagedByCustodian();
|
| + private native boolean nativeGetFullscreenAllowed();
|
| + private native boolean nativeGetFullscreenManaged();
|
| private native boolean nativeGetTranslateEnabled();
|
| private native boolean nativeGetTranslateManaged();
|
| private native boolean nativeGetResolveNavigationErrorEnabled();
|
| @@ -798,6 +823,7 @@ public final class PrefServiceBridge {
|
| private native void nativeSetAllowCookiesEnabled(boolean allow);
|
| private native void nativeSetBlockThirdPartyCookiesEnabled(boolean enabled);
|
| private native void nativeSetDoNotTrackEnabled(boolean enabled);
|
| + private native void nativeSetFullscreenAllowed(boolean allowed);
|
| private native void nativeSetRememberPasswordsEnabled(boolean allow);
|
| private native void nativeSetProtectedMediaIdentifierEnabled(boolean enabled);
|
| private native boolean nativeGetAllowLocationEnabled();
|
|
|