diff options
author | Richard He <linyhe@microsoft.com> | 2022-04-28 10:23:33 +0000 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-04-28 03:33:03 -0700 |
commit | 7d6238776bb4d8b0782a76cf2cca2ecb287043d2 (patch) | |
tree | 8263699d82b242d554ce3f05a76958b533ac76b5 /BUILD.gn | |
parent | 4ade930538ebef2b02cad778315bedb24bf50070 (diff) | |
download | webview_support_interfaces-7d6238776bb4d8b0782a76cf2cca2ecb287043d2.tar.gz |
Reland "Replace String with WebMessagePayload for AndroidX WebMessage API"
This is a reland of commit bc7514a7cf7b67ffc3fb0698310a23246df5a7c5
- Keep WebContents#postMessageToMainFrame(String, ...), it's used
by downstream.
Original change's description:
> Replace String with WebMessagePayload for AndroidX WebMessage API
>
> Design doc: https://docs.google.com/document/d/1nsQnwwY43OuA4PsSaMioiKA0c_M1eV1XX2q15YFA7cI/edit?usp=sharing
>
> This CL did not add new features.
> - Add a new boundary type WebMessagePayload to replace String
> WebMessage.getData().
> - Add new data class MessagePayload in content/, and replace existing
> PostMessage API with the new type.
> - A followup change will add ArrayBuffer support in
> WebViewCompat.postMessageToMainFrame and
> WebChannelCompat.postMessage.
>
> How to test: run tests in existing AndroidX Webkit.
>
> Bug: 1023334
> Change-Id: Ib5b35b974bee597a6efada75503c5288f7058c50
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3583520
> Reviewed-by: Bo Liu <boliu@chromium.org>
> Reviewed-by: Richard Coles <torne@chromium.org>
> Reviewed-by: Peter Conn <peconn@chromium.org>
> Commit-Queue: Linyue He <linyhe@microsoft.com>
> Cr-Commit-Position: refs/heads/main@{#995852}
Bug: 1023334
Change-Id: I9e2fa991d04e575add848d908a5d097a35a990b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3607795
Reviewed-by: Bo Liu <boliu@chromium.org>
Commit-Queue: Linyue He <linyhe@microsoft.com>
Reviewed-by: Richard Coles <torne@chromium.org>
Reviewed-by: Peter Conn <peconn@chromium.org>
Cr-Commit-Position: refs/heads/main@{#997137}
NOKEYCHECK=True
GitOrigin-RevId: 173c29edc14315e542c0c497d0d5bee5c718a289
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -23,6 +23,7 @@ android_library("boundary_interface_java") { "src/org/chromium/support_lib_boundary/WebMessageBoundaryInterface.java", "src/org/chromium/support_lib_boundary/WebMessageCallbackBoundaryInterface.java", "src/org/chromium/support_lib_boundary/WebMessageListenerBoundaryInterface.java", + "src/org/chromium/support_lib_boundary/WebMessagePayloadBoundaryInterface.java", "src/org/chromium/support_lib_boundary/WebMessagePortBoundaryInterface.java", "src/org/chromium/support_lib_boundary/WebResourceErrorBoundaryInterface.java", "src/org/chromium/support_lib_boundary/WebResourceRequestBoundaryInterface.java", |