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

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: addressing comments 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 63d6df5d9c3f85ee11158695573f565564f4512e..8eefdc724e51d40d6f260bbcc706f2f04dbc8bac 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() {
@@ -782,6 +805,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();
@@ -806,6 +831,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();

Powered by Google App Engine
This is Rietveld 408576698