diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-20 23:32:25 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-20 23:32:25 +0000 |
commit | 03b419a79788578d04065b0943fa277504629ede (patch) | |
tree | 9e72548f3be6a8302ba78952f18dde25d70323b3 | |
parent | ff4e61a50a088a0e501668bf9f5ed1114e9fe9b6 (diff) | |
parent | 1d57503f5e0da6b577df5bc806e34247b7b1dfda (diff) | |
download | webview_support_interfaces-androidx-emoji2-release.tar.gz |
Snap for 10534207 from 1d57503f5e0da6b577df5bc806e34247b7b1dfda to androidx-emoji2-releaseandroidx-emoji2-release
Change-Id: I7e41fa88a20d2149a6294b01f8d00d5ef33e689c
-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"; |