diff options
author | Peter Birk Pakkenberg <pbirk@google.com> | 2023-04-19 11:42:19 +0100 |
---|---|---|
committer | Peter Birk Pakkenberg <pbirk@google.com> | 2023-04-19 11:42:19 +0100 |
commit | 1d57503f5e0da6b577df5bc806e34247b7b1dfda (patch) | |
tree | 9e72548f3be6a8302ba78952f18dde25d70323b3 | |
parent | 7d5d6f58a04393740eaa7a8389e0e6555982645b (diff) | |
parent | 8dcbe3ad0b44f12e76c9650c23a1c8e7dbae536e (diff) | |
download | webview_support_interfaces-1d57503f5e0da6b577df5bc806e34247b7b1dfda.tar.gz |
[AndroidX Webkit] roll boundary interfaces to 8dcbe3aandroidx-health-release
This rolls the boundary interfaces for the androidx.webkit module
to include the following commit range:
https://android.googlesource.com/platform/external/webview_support_interfaces/+log/7d5d6f58a04393740eaa7a8389e0e6555982645b..8dcbe3ad0b44f12e76c9650c23a1c8e7dbae536e
Test: N/A
Change-Id: I27102ce75006413ec8db39125f4234a963a1b048
-rw-r--r-- | src/org/chromium/support_lib_boundary/JsReplyProxyBoundaryInterface.java | 7 | ||||
-rw-r--r-- | src/org/chromium/support_lib_boundary/util/Features.java | 12 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/org/chromium/support_lib_boundary/JsReplyProxyBoundaryInterface.java b/src/org/chromium/support_lib_boundary/JsReplyProxyBoundaryInterface.java index 046b157..689982f 100644 --- a/src/org/chromium/support_lib_boundary/JsReplyProxyBoundaryInterface.java +++ b/src/org/chromium/support_lib_boundary/JsReplyProxyBoundaryInterface.java @@ -4,9 +4,16 @@ package org.chromium.support_lib_boundary; +import java.lang.reflect.InvocationHandler; + /** * Boundary interface for org.chromium.android_webview.WebMessageListener. */ public interface JsReplyProxyBoundaryInterface extends IsomorphicObjectBoundaryInterface { + /** + * Prefer using {@link #postMessageWithPayload}. + */ void postMessage(String message); + + void postMessageWithPayload(/* MessagePayload */ InvocationHandler payload); } diff --git a/src/org/chromium/support_lib_boundary/util/Features.java b/src/org/chromium/support_lib_boundary/util/Features.java index a0e17e5..30a7bfa 100644 --- a/src/org/chromium/support_lib_boundary/util/Features.java +++ b/src/org/chromium/support_lib_boundary/util/Features.java @@ -105,11 +105,17 @@ public class Features { public static final String SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL = "SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL"; + /** + * Feature was renamed to WEB_MESSAGE_ARRAY_BUFFER. + */ + public static final String WEB_MESSAGE_GET_MESSAGE_PAYLOAD = "WEB_MESSAGE_GET_MESSAGE_PAYLOAD"; + + // JsReplyProxy.postMessageWithPayload // WebMessage.getMessagePayload - // WebMessagePayload.getType - // WebMessagePayload.getAsString // WebMessagePayload.getAsArrayBuffer - public static final String WEB_MESSAGE_GET_MESSAGE_PAYLOAD = "WEB_MESSAGE_GET_MESSAGE_PAYLOAD"; + // WebMessagePayload.getAsString + // WebMessagePayload.getType + public static final String WEB_MESSAGE_ARRAY_BUFFER = "WEB_MESSAGE_ARRAY_BUFFER"; // WebMessagePortCompat.postMessage public static final String WEB_MESSAGE_PORT_POST_MESSAGE = "WEB_MESSAGE_PORT_POST_MESSAGE"; |