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

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

Issue 986653004: Add fullscreen permission controls to settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
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 71e340d03d478c44eea597a8868888f974a89ef7..b1de7cb65eb81fa897ff923c52a12900cbe30b68 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
@@ -361,6 +361,15 @@ public 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() {
@@ -482,6 +491,20 @@ public 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() {
@@ -845,6 +868,8 @@ public 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();
@@ -869,6 +894,7 @@ public 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 nativeSetPasswordManagerAutoSigninEnabled(boolean enabled);
private native void nativeSetProtectedMediaIdentifierEnabled(boolean enabled);

Powered by Google App Engine
This is Rietveld 408576698