
Before this patch, only Chrome provided the necessary implementation details for the PaymentRequest API via the ChromePaymentRequestService class (that implemented the BrowserPaymentRequest interface), but WebView did not have an equivalent class. This patch adds a new class AwPaymentRequestService that extends BrowserPaymentRequest interface to provide the necessary implementation details for the PaymentRequest API for WebView. After this patch, if a user enables the WebPayments flag in the WebView Dev UI, webpages that run in WebView can use the PaymentRequest API to invoke Android intent based payment applications. Design: go/webview-paymentrequest Binary-Size: Enables a large feature that was previously only in Clank. Fixed: 396430857 Change-Id: I4282f5222acda02e131d6829fef0f6d98035ed16 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6219300 Reviewed-by: Kavita Soni <kavitasoni@chromium.org> Reviewed-by: Richard (Torne) Coles <torne@chromium.org> Reviewed-by: Peter Conn <peconn@chromium.org> Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1424667}
Android WebView
Android WebView is an Android system component for displaying web content.
WebView (and
the related Android classes) are implemented by the code in the
//android_webview/
folder.
This directory contains the Android WebView implementation, as well as the implementation for the AndroidX Webkit support library.
Overview for Chromium team members and contributors
Please see WebView Architecture.
Want to use WebView in an Android app?
Please consult our API documentation and app development guides:
Want to build and install WebView on a device?
See our Chromium developer documentation.
Public mailing lists
- android-webview-dev@chromium.org: external discussion group for WebView developers and interested community members.
- android-webview-reviews@chromium.org: subscribe to code reviews affecting Android WebView code.