summaryrefslogtreecommitdiff
path: root/src/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.java')
-rw-r--r--src/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.java59
1 files changed, 51 insertions, 8 deletions
diff --git a/src/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.java b/src/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.java
index ef9eef8..f3a27ce 100644
--- a/src/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.java
+++ b/src/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.java
@@ -9,30 +9,37 @@ package org.chromium.support_lib_boundary;
// app-facing classes should have a boundary-interface that the WebView glue layer can build
// against.
+import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.util.Map;
import java.util.Set;
-/**
- * Boundary interface for WebSettingsCompat.
- */
+/** Boundary interface for WebSettingsCompat. */
public interface WebSettingsBoundaryInterface {
void setOffscreenPreRaster(boolean enabled);
+
boolean getOffscreenPreRaster();
void setSafeBrowsingEnabled(boolean enabled);
+
boolean getSafeBrowsingEnabled();
void setDisabledActionModeMenuItems(int menuItems);
+
int getDisabledActionModeMenuItems();
void setWillSuppressErrorPage(boolean suppressed);
+
boolean getWillSuppressErrorPage();
void setForceDark(int forceDarkMode);
+
int getForceDark();
void setAlgorithmicDarkeningAllowed(boolean allow);
+
boolean isAlgorithmicDarkeningAllowed();
@Retention(RetentionPolicy.SOURCE)
@@ -43,25 +50,61 @@ public interface WebSettingsBoundaryInterface {
}
void setForceDarkBehavior(@ForceDarkBehavior int forceDarkBehavior);
+
@ForceDarkBehavior
int getForceDarkBehavior();
@Retention(RetentionPolicy.SOURCE)
- @interface WebAuthnSupport {
+ @interface WebauthnSupport {
int NONE = 0;
int APP = 1;
int BROWSER = 2;
}
- void setWebAuthnSupport(@WebAuthnSupport int support);
- @WebAuthnSupport
- int getWebAuthnSupport();
+ void setWebauthnSupport(@WebauthnSupport int support);
+
+ @WebauthnSupport
+ int getWebauthnSupport();
void setRequestedWithHeaderOriginAllowList(Set<String> allowedOriginRules);
+
Set<String> getRequestedWithHeaderOriginAllowList();
void setEnterpriseAuthenticationAppLinkPolicyEnabled(boolean enabled);
+
boolean getEnterpriseAuthenticationAppLinkPolicyEnabled();
- void enableRestrictSensitiveWebContent();
+ void setUserAgentMetadataFromMap(Map<String, Object> uaMetadata);
+
+ Map<String, Object> getUserAgentMetadataMap();
+
+ @Retention(RetentionPolicy.SOURCE)
+ @interface AttributionBehavior {
+ int DISABLED = 0;
+ int APP_SOURCE_AND_WEB_TRIGGER = 1;
+ int WEB_SOURCE_AND_WEB_TRIGGER = 2;
+ int APP_SOURCE_AND_APP_TRIGGER = 3;
+ }
+
+ void setAttributionBehavior(@AttributionBehavior int behavior);
+
+ @AttributionBehavior
+ int getAttributionBehavior();
+
+ @Target(ElementType.TYPE_USE)
+ @Retention(RetentionPolicy.SOURCE)
+ @interface WebViewMediaIntegrityApiStatus {
+ int DISABLED = 0;
+ int ENABLED_WITHOUT_APP_IDENTITY = 1;
+ int ENABLED = 2;
+ }
+
+ void setWebViewMediaIntegrityApiStatus(
+ @WebViewMediaIntegrityApiStatus int defaultPermission,
+ Map<String, @WebViewMediaIntegrityApiStatus Integer> permissionConfig);
+
+ @WebViewMediaIntegrityApiStatus
+ int getWebViewMediaIntegrityApiDefaultStatus();
+
+ Map<String, @WebViewMediaIntegrityApiStatus Integer> getWebViewMediaIntegrityApiOverrideRules();
}