diff options
Diffstat (limited to 'src/org/chromium')
3 files changed, 31 insertions, 0 deletions
diff --git a/src/org/chromium/support_lib_boundary/SupportLibraryInfoBoundaryInterface.java b/src/org/chromium/support_lib_boundary/SupportLibraryInfoBoundaryInterface.java new file mode 100644 index 0000000..11a141f --- /dev/null +++ b/src/org/chromium/support_lib_boundary/SupportLibraryInfoBoundaryInterface.java @@ -0,0 +1,12 @@ +// Copyright 2018 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package org.chromium.support_lib_boundary; + +/** + * Contains information about the WebView support library side, e.g. which features are supported on + * that side. + * This is passed to the WebView APK code on support library initialization. + */ +public interface SupportLibraryInfoBoundaryInterface { String[] getSupportedFeatures(); } diff --git a/src/org/chromium/support_lib_boundary/WebViewProviderFactoryBoundaryInterface.java b/src/org/chromium/support_lib_boundary/WebViewProviderFactoryBoundaryInterface.java index e868f7a..094e2cf 100644 --- a/src/org/chromium/support_lib_boundary/WebViewProviderFactoryBoundaryInterface.java +++ b/src/org/chromium/support_lib_boundary/WebViewProviderFactoryBoundaryInterface.java @@ -14,4 +14,5 @@ public interface WebViewProviderFactoryBoundaryInterface { /* SupportLibraryWebViewChromium */ InvocationHandler createWebView(WebView webview); /* SupportLibWebkitToCompatConverter */ InvocationHandler getWebkitToCompatConverter(); /* StaticsAdapter */ InvocationHandler getStatics(); + String[] getSupportedFeatures(); } diff --git a/src/org/chromium/support_lib_boundary/util/Features.java b/src/org/chromium/support_lib_boundary/util/Features.java new file mode 100644 index 0000000..d74ea55 --- /dev/null +++ b/src/org/chromium/support_lib_boundary/util/Features.java @@ -0,0 +1,18 @@ +// Copyright 2018 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package org.chromium.support_lib_boundary.util; + +/** + * Class containing all the features the support library can support. + * This class lives in the boundary interface directory so that the Android Support Library and + * Chromium can share its definition. + */ +public class Features { + // This class just contains constants representing features. + private Features() {} + + // WebViewCompat.postVisualStateCallback + public static final String VISUAL_STATE_CALLBACK = "VISUAL_STATE_CALLBACK"; +} |